airflow.providers.amazon.aws.sensors.cloud_formation

This module contains sensors for AWS CloudFormation.

Module Contents

class airflow.providers.amazon.aws.sensors.cloud_formation.CloudFormationCreateStackSensor(*, stack_name, aws_conn_id='aws_default', region_name=None, **kwargs)[source]

Bases: airflow.sensors.base.BaseSensorOperator

Waits for a stack to be created successfully on AWS CloudFormation.

Parameters
  • stack_name (str) -- The name of the stack to wait for (templated)

  • aws_conn_id (str) -- ID of the Airflow connection where credentials and extra configuration are stored

  • poke_interval (int) -- Time in seconds that the job should wait between each try

template_fields = ['stack_name'][source]
ui_color = #C5CAE9[source]
poke(self, context)[source]
hook(self)[source]

Create and return an AWSCloudFormationHook

class airflow.providers.amazon.aws.sensors.cloud_formation.CloudFormationDeleteStackSensor(*, stack_name: str, aws_conn_id: str = 'aws_default', region_name: Optional[str] = None, **kwargs)[source]

Bases: airflow.sensors.base.BaseSensorOperator

Waits for a stack to be deleted successfully on AWS CloudFormation.

Parameters
  • stack_name (str) -- The name of the stack to wait for (templated)

  • aws_conn_id (str) -- ID of the Airflow connection where credentials and extra configuration are stored

  • poke_interval (int) -- Time in seconds that the job should wait between each try

template_fields = ['stack_name'][source]
ui_color = #C5CAE9[source]
poke(self, context)[source]
hook(self)[source]

Create and return an AWSCloudFormationHook

Was this entry helpful?