Package software.amazon.awscdk.pipelines
Class StackDeployment
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.pipelines.StackDeployment
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:49.890Z")
@Stability(Stable)
public class StackDeployment
extends software.amazon.jsii.JsiiObject
Deployment of a single Stack.
You don't need to instantiate this class -- it will
be automatically instantiated as necessary when you
add a Stage
to a pipeline.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.cxapi.*; import software.amazon.awscdk.pipelines.*; CloudFormationStackArtifact cloudFormationStackArtifact; StackDeployment stackDeployment = StackDeployment.fromArtifact(cloudFormationStackArtifact);
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
StackDeployment
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
StackDeployment
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addStackDependency
(StackDeployment stackDeployment) Add a dependency on another stack.void
Adds steps to each phase of the stack.static StackDeployment
fromArtifact
(CloudFormationStackArtifact stackArtifact) Build aStackDeployment
from a Stack Artifact in a Cloud Assembly.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.Steps that take place after stack is prepared but before stack deploys.Construct path for this stack.Execution role to pass to CloudFormation.getPost()
Steps to execute after stack deploys.getPre()
Steps that take place before stack is prepared.Region where the stack should be deployed.Artifact ID for this stack.Other stacks this stack depends on.Name for this stack.getTags()
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.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
StackDeployment
protected StackDeployment(software.amazon.jsii.JsiiObjectRef objRef) -
StackDeployment
protected StackDeployment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
fromArtifact
@Stability(Stable) @NotNull public static StackDeployment fromArtifact(@NotNull CloudFormationStackArtifact stackArtifact) Build aStackDeployment
from a Stack Artifact in a Cloud Assembly.- Parameters:
stackArtifact
- This parameter is required.
-
addStackDependency
Add a dependency on another stack.- Parameters:
stackDeployment
- This parameter is required.
-
addStackSteps
@Stability(Stable) public void addStackSteps(@NotNull List<Step> pre, @NotNull List<Step> changeSet, @NotNull List<Step> post) Adds steps to each phase of the stack.- Parameters:
pre
- steps executed before stack.prepare. This parameter is required.changeSet
- steps executed after stack.prepare and before stack.deploy. This parameter is required.post
- steps executed after stack.deploy. This parameter is required.
-
getAbsoluteTemplatePath
Template path on disk to CloudAssembly. -
getAssets
Assets referenced by this stack. -
getChangeSet
Steps that take place after stack is prepared but before stack deploys.Your pipeline engine may not disable
prepareStep
. -
getConstructPath
Construct path for this stack. -
getPost
Steps to execute after stack deploys. -
getPre
Steps that take place before stack is prepared.If your pipeline engine disables 'prepareStep', then this will happen before stack deploys
-
getStackArtifactId
Artifact ID for this stack. -
getStackDependencies
Other stacks this stack depends on. -
getStackName
Name for this stack. -
getTags
Tags to apply to the stack. -
getAccount
Account where the stack should be deployed.Default: - Pipeline account
-
getAssumeRoleArn
Role to assume before deploying this stack.Default: - Don't assume any role
-
getExecutionRoleArn
Execution role to pass to CloudFormation.Default: - No execution role
-
getRegion
Region where the stack should be deployed.Default: - Pipeline region
-
getTemplateAsset
The asset that represents the CloudFormation template for this stack. -
getTemplateUrl
The S3 URL which points to the template asset location in the publishing bucket.This is
undefined
if the stack template is not published. Use theDefaultStackSynthesizer
to ensure it is.Example value:
https://bucket.s3.amazonaws.com/object/key
-