@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.945Z") @Stability(value=Stable) public class StackDeployment extends software.amazon.jsii.JsiiObject
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);
| Modifier | Constructor and Description |
|---|---|
protected |
StackDeployment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
StackDeployment(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStackDependency(StackDeployment stackDeployment)
Add a dependency on another stack.
|
void |
addStackSteps(List<Step> pre,
List<Step> changeSet,
List<Step> post)
Adds steps to each phase of the stack.
|
static StackDeployment |
fromArtifact(CloudFormationStackArtifact stackArtifact)
Build a `StackDeployment` from a Stack Artifact in a Cloud Assembly.
|
String |
getAbsoluteTemplatePath()
Template path on disk to CloudAssembly.
|
String |
getAccount()
Account where the stack should be deployed.
|
List<StackAsset> |
getAssets()
Assets referenced by this stack.
|
String |
getAssumeRoleArn()
Role to assume before deploying this stack.
|
List<Step> |
getChangeSet()
Steps that take place after stack is prepared but before stack deploys.
|
String |
getConstructPath()
Construct path for this stack.
|
String |
getExecutionRoleArn()
Execution role to pass to CloudFormation.
|
List<Step> |
getPost()
Steps to execute after stack deploys.
|
List<Step> |
getPre()
Steps that take place before stack is prepared.
|
String |
getRegion()
Region where the stack should be deployed.
|
String |
getStackArtifactId()
Artifact ID for this stack.
|
List<StackDeployment> |
getStackDependencies()
Other stacks this stack depends on.
|
String |
getStackName()
Name for this stack.
|
Map<String,String> |
getTags()
Tags to apply to the stack.
|
StackAsset |
getTemplateAsset()
The asset that represents the CloudFormation template for this stack.
|
String |
getTemplateUrl()
The S3 URL which points to the template asset location in the publishing bucket.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected StackDeployment(software.amazon.jsii.JsiiObjectRef objRef)
protected StackDeployment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @NotNull public static StackDeployment fromArtifact(@NotNull CloudFormationStackArtifact stackArtifact)
stackArtifact - This parameter is required.@Stability(value=Stable)
public void addStackDependency(@NotNull
StackDeployment stackDeployment)
stackDeployment - This parameter is required.@Stability(value=Stable)
public void addStackSteps(@NotNull
List<Step> pre,
@NotNull
List<Step> changeSet,
@NotNull
List<Step> post)
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.@Stability(value=Stable) @NotNull public String getAbsoluteTemplatePath()
@Stability(value=Stable) @NotNull public List<StackAsset> getAssets()
@Stability(value=Stable) @NotNull public List<Step> getChangeSet()
Your pipeline engine may not disable prepareStep.
@Stability(value=Stable) @NotNull public String getConstructPath()
@Stability(value=Stable) @NotNull public List<Step> getPost()
@Stability(value=Stable) @NotNull public List<Step> getPre()
If your pipeline engine disables 'prepareStep', then this will happen before stack deploys
@Stability(value=Stable) @NotNull public String getStackArtifactId()
@Stability(value=Stable) @NotNull public List<StackDeployment> getStackDependencies()
@Stability(value=Stable) @NotNull public String getStackName()
@Stability(value=Stable) @NotNull public Map<String,String> getTags()
@Stability(value=Stable) @Nullable public String getAccount()
Default: - Pipeline account
@Stability(value=Stable) @Nullable public String getAssumeRoleArn()
Default: - Don't assume any role
@Stability(value=Stable) @Nullable public String getExecutionRoleArn()
Default: - No execution role
@Stability(value=Stable) @Nullable public String getRegion()
Default: - Pipeline region
@Stability(value=Stable) @Nullable public StackAsset getTemplateAsset()
@Stability(value=Stable) @Nullable public String getTemplateUrl()
This is undefined if the stack template is not published. Use the
DefaultStackSynthesizer to ensure it is.
Example value: https://bucket.s3.amazonaws.com/object/key
Copyright © 2022. All rights reserved.