airflow.providers.amazon.aws.sensors.ec2

Module Contents

Classes

EC2InstanceStateSensor

Check the state of the AWS EC2 instance until

class airflow.providers.amazon.aws.sensors.ec2.EC2InstanceStateSensor(*, target_state: str, instance_id: str, aws_conn_id: str = 'aws_default', region_name: Optional[str] = None, **kwargs)[source]

Bases: airflow.sensors.base.BaseSensorOperator

Check the state of the AWS EC2 instance until state of the instance become equal to the target state.

Parameters
  • target_state (str) -- target state of instance

  • instance_id (str) -- id of the AWS EC2 instance

  • region_name (Optional[str]) -- (optional) aws region name associated with the client

template_fields :Sequence[str] = ['target_state', 'instance_id', 'region_name'][source]
ui_color = #cc8811[source]
ui_fgcolor = #ffffff[source]
valid_states = ['running', 'stopped', 'terminated'][source]
poke(self, context: airflow.utils.context.Context)[source]

Function that the sensors defined while deriving this class should override.

Was this entry helpful?