- class aws_cdk.pipelines.StackDeployment(*args: Any, **kwargs)
Deployment of a single Stack.
You don’t need to instantiate this class – it will be automatically instantiated as necessary when you add a
Stageto a pipeline.
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import cx_api from aws_cdk import pipelines # cloud_formation_stack_artifact: cx_api.CloudFormationStackArtifact stack_deployment = pipelines.StackDeployment.from_artifact(cloud_formation_stack_artifact)
Add a dependency on another stack.
- Return type:
- add_stack_steps(pre, change_set, post)
Adds steps to each phase of the stack.
Template path on disk to CloudAssembly.
Account where the stack should be deployed.
Assets referenced by this stack.
Role to assume before deploying this stack.
Don’t assume any role
Steps that take place after stack is prepared but before stack deploys.
Your pipeline engine may not disable
Construct path for this stack.
Execution role to pass to CloudFormation.
No execution role
Steps to execute after stack deploys.
Steps that take place before stack is prepared.
If your pipeline engine disables ‘prepareStep’, then this will happen before stack deploys
Region where the stack should be deployed.
Artifact ID for this stack.
Other stacks this stack depends on.
Name for this stack.
Tags to apply to the stack.
The asset that represents the CloudFormation template for this stack.
The S3 URL which points to the template asset location in the publishing bucket.
undefinedif the stack template is not published. Use the
DefaultStackSynthesizerto ensure it is.