airflow.providers.amazon.aws.hooks.cloud_formation

This module contains AWS CloudFormation Hook

Module Contents

Classes

CloudFormationHook

Interact with AWS CloudFormation.

AWSCloudFormationHook

This hook is deprecated.

class airflow.providers.amazon.aws.hooks.cloud_formation.CloudFormationHook(*args, **kwargs)[source]

Bases: airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook

Interact with AWS CloudFormation.

Additional arguments (such as aws_conn_id) may be specified and are passed down to the underlying AwsBaseHook.

See also

AwsBaseHook

get_stack_status(self, stack_name)[source]

Get stack status from CloudFormation.

create_stack(self, stack_name, cloudformation_parameters)[source]

Create stack in CloudFormation.

Parameters
  • stack_name (str) -- stack_name.

  • cloudformation_parameters (dict) -- parameters to be passed to CloudFormation.

delete_stack(self, stack_name, cloudformation_parameters=None)[source]

Delete stack in CloudFormation.

Parameters
  • stack_name (str) -- stack_name.

  • cloudformation_parameters (Optional[dict]) -- parameters to be passed to CloudFormation (optional).

class airflow.providers.amazon.aws.hooks.cloud_formation.AWSCloudFormationHook(*args, **kwargs)[source]

Bases: CloudFormationHook

This hook is deprecated. Please use airflow.providers.amazon.aws.hooks.cloud_formation.CloudFormationHook.

Was this entry helpful?