airflow.providers.amazon.aws.hooks.cloud_formation

This module contains AWS CloudFormation Hook

Module Contents

class airflow.providers.amazon.aws.hooks.cloud_formation.AWSCloudFormationHook(*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: Union[client, resource])[source]

Get stack status from CloudFormation.

create_stack(self, stack_name: str, params: dict)[source]

Create stack in CloudFormation.

Parameters
  • stack_name (str) -- stack_name.

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

delete_stack(self, stack_name: str, params: Optional[dict] = None)[source]

Delete stack in CloudFormation.

Parameters
  • stack_name (str) -- stack_name.

  • params (dict) -- parameters to be passed to CloudFormation (optional).

Was this entry helpful?