airflow.providers.amazon.aws.sensors.cloud_formation
¶
This module contains sensors for AWS CloudFormation.
Module Contents¶
Classes¶
Waits for a stack to be created successfully on AWS CloudFormation. |
|
Waits for a stack to be deleted successfully on AWS CloudFormation. |
- class airflow.providers.amazon.aws.sensors.cloud_formation.CloudFormationCreateStackSensor(*, stack_name, **kwargs)[source]¶
Bases:
airflow.providers.amazon.aws.sensors.base_aws.AwsBaseSensor
[airflow.providers.amazon.aws.hooks.cloud_formation.CloudFormationHook
]Waits for a stack to be created successfully on AWS CloudFormation.
See also
For more information on how to use this sensor, take a look at the guide: Wait on an AWS CloudFormation stack creation state
- Parameters
stack_name – The name of the stack to wait for (templated)
aws_conn_id – The Airflow connection used for AWS credentials. If this is
None
or empty then the default boto3 behaviour is used. If running Airflow in a distributed manner and aws_conn_id is None or empty, then default boto3 configuration would be used (and must be maintained on each worker node).region_name – AWS region_name. If not specified then the default boto3 behaviour is used.
verify – Whether or not to verify SSL certificates. See: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/core/session.html
botocore_config – Configuration dictionary (key-values) for botocore client. See: https://botocore.amazonaws.com/v1/documentation/api/latest/reference/config.html
- class airflow.providers.amazon.aws.sensors.cloud_formation.CloudFormationDeleteStackSensor(*, stack_name, aws_conn_id='aws_default', region_name=None, **kwargs)[source]¶
Bases:
airflow.providers.amazon.aws.sensors.base_aws.AwsBaseSensor
[airflow.providers.amazon.aws.hooks.cloud_formation.CloudFormationHook
]Waits for a stack to be deleted successfully on AWS CloudFormation.
See also
For more information on how to use this sensor, take a look at the guide: Wait on an AWS CloudFormation stack deletion state
- Parameters
stack_name (str) – The name of the stack to wait for (templated)
aws_conn_id (str | None) – The Airflow connection used for AWS credentials. If this is
None
or empty then the default boto3 behaviour is used. If running Airflow in a distributed manner and aws_conn_id is None or empty, then default boto3 configuration would be used (and must be maintained on each worker node).region_name (str | None) – AWS region_name. If not specified then the default boto3 behaviour is used.
verify – Whether or not to verify SSL certificates. See: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/core/session.html
botocore_config – Configuration dictionary (key-values) for botocore client. See: https://botocore.amazonaws.com/v1/documentation/api/latest/reference/config.html