Deployment of a single Stack.
Inheritance
StackDeployment
Namespace: Amazon.CDK.Pipelines
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class StackDeployment : DeputyBase
Syntax (vb)
Public Class StackDeployment Inherits DeputyBase
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CXAPI;
using Amazon.CDK.Pipelines;
CloudFormationStackArtifact cloudFormationStackArtifact;
var stackDeployment = StackDeployment.FromArtifact(cloudFormationStackArtifact);
Synopsis
Properties
| AbsoluteTemplatePath | Template path on disk to CloudAssembly. |
| Account | Account where the stack should be deployed. |
| Assets | Assets referenced by this stack. |
| AssumeRoleArn | Role to assume before deploying this stack. |
| ChangeSet | Steps that take place after stack is prepared but before stack deploys. |
| ConstructPath | Construct path for this stack. |
| ExecutionRoleArn | Execution role to pass to CloudFormation. |
| Post | Steps to execute after stack deploys. |
| Pre | Steps that take place before stack is prepared. |
| Region | Region where the stack should be deployed. |
| StackArtifactId | Artifact ID for this stack. |
| StackDependencies | Other stacks this stack depends on. |
| StackName | Name for this stack. |
| Tags | Tags to apply to the stack. |
| TemplateAsset | The asset that represents the CloudFormation template for this stack. |
| TemplateUrl | The S3 URL which points to the template asset location in the publishing bucket. |
Methods
Properties
AbsoluteTemplatePath
Template path on disk to CloudAssembly.
public virtual string AbsoluteTemplatePath { get; }
Property Value
Account
Account where the stack should be deployed.
public virtual string? Account { get; }
Property Value
Assets
Assets referenced by this stack.
public virtual IStackAsset[] Assets { get; }
Property Value
AssumeRoleArn
Role to assume before deploying this stack.
public virtual string? AssumeRoleArn { get; }
Property Value
ChangeSet
Steps that take place after stack is prepared but before stack deploys.
public virtual Step[] ChangeSet { get; }
Property Value
Step[]
ConstructPath
ExecutionRoleArn
Execution role to pass to CloudFormation.
public virtual string? ExecutionRoleArn { get; }
Property Value
Post
Pre
Steps that take place before stack is prepared.
public virtual Step[] Pre { get; }
Property Value
Step[]
Region
Region where the stack should be deployed.
public virtual string? Region { get; }
Property Value
StackArtifactId
StackDependencies
Other stacks this stack depends on.
public virtual StackDeployment[] StackDependencies { get; }
Property Value
StackName
Tags
Tags to apply to the stack.
public virtual IDictionary<string, string> Tags { get; }
Property Value
TemplateAsset
The asset that represents the CloudFormation template for this stack.
public virtual IStackAsset? TemplateAsset { get; }
Property Value
TemplateUrl
The S3 URL which points to the template asset location in the publishing bucket.
public virtual string? TemplateUrl { get; }
Property Value
Methods
AddStackDependency(StackDeployment)
Add a dependency on another stack.
public virtual void AddStackDependency(StackDeployment stackDeployment)
Parameters
- stackDeployment StackDeployment
AddStackSteps(Step[], Step[], Step[])
Adds steps to each phase of the stack.
public virtual void AddStackSteps(Step[] pre, Step[] changeSet, Step[] post)
Parameters
FromArtifact(CloudFormationStackArtifact)
Build a StackDeployment from a Stack Artifact in a Cloud Assembly.
public static StackDeployment FromArtifact(CloudFormationStackArtifact stackArtifact)
Parameters
- stackArtifact CloudFormationStackArtifact