AwsCloudFormationStackProperties

class aws_cdk.cloud_assembly_schema.AwsCloudFormationStackProperties(*, template_file, assume_role_arn=None, cloud_formation_execution_role_arn=None, parameters=None, requires_bootstrap_stack_version=None, stack_name=None, stack_template_asset_object_url=None, termination_protection=None)

Bases: object

Artifact properties for CloudFormation stacks.

Parameters
  • template_file (str) – A file relative to the assembly root which contains the CloudFormation template for this stack.

  • assume_role_arn (Optional[str]) – The role that needs to be assumed to deploy the stack. Default: - No role is assumed (current credentials are used)

  • cloud_formation_execution_role_arn (Optional[str]) – The role that is passed to CloudFormation to execute the change set. Default: - No role is passed (currently assumed role/credentials are used)

  • parameters (Optional[Mapping[str, str]]) – Values for CloudFormation stack parameters that should be passed when the stack is deployed. Default: - No parameters

  • requires_bootstrap_stack_version (Union[int, float, None]) – Version of bootstrap stack required to deploy this stack. Default: - No bootstrap stack required

  • stack_name (Optional[str]) – The name to use for the CloudFormation stack. Default: - name derived from artifact ID

  • stack_template_asset_object_url (Optional[str]) – If the stack template has already been included in the asset manifest, its asset URL. Default: - Not uploaded yet, upload just before deploying

  • termination_protection (Optional[bool]) – Whether to enable termination protection for this stack. Default: false

Attributes

assume_role_arn

The role that needs to be assumed to deploy the stack.

default :default: - No role is assumed (current credentials are used)

Return type

Optional[str]

cloud_formation_execution_role_arn

The role that is passed to CloudFormation to execute the change set.

default :default: - No role is passed (currently assumed role/credentials are used)

Return type

Optional[str]

parameters

Values for CloudFormation stack parameters that should be passed when the stack is deployed.

default :default: - No parameters

Return type

Optional[Mapping[str, str]]

requires_bootstrap_stack_version

Version of bootstrap stack required to deploy this stack.

default :default: - No bootstrap stack required

Return type

Union[int, float, None]

stack_name

The name to use for the CloudFormation stack.

default :default: - name derived from artifact ID

Return type

Optional[str]

stack_template_asset_object_url

If the stack template has already been included in the asset manifest, its asset URL.

default :default: - Not uploaded yet, upload just before deploying

Return type

Optional[str]

template_file

A file relative to the assembly root which contains the CloudFormation template for this stack.

Return type

str

termination_protection

Whether to enable termination protection for this stack.

default :default: false

Return type

Optional[bool]