Class StackSetTemplate
The source of a StackSet template.
Inheritance
System.Object
StackSetTemplate
Namespace: Amazon.CDK.AWS.CodePipeline.Actions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class StackSetTemplate : DeputyBase
Syntax (vb)
Public MustInherit Class StackSetTemplate
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
Pipeline pipeline;
Artifact sourceOutput;
pipeline.AddStage(new StageOptions {
StageName = "DeployStackSets",
Actions = new [] {
// First, update the StackSet itself with the newest template
new CloudFormationDeployStackSetAction(new CloudFormationDeployStackSetActionProps {
ActionName = "UpdateStackSet",
RunOrder = 1,
StackSetName = "MyStackSet",
Template = StackSetTemplate.FromArtifactPath(sourceOutput.AtPath("template.yaml")),
// Change this to 'StackSetDeploymentModel.organizations()' if you want to deploy to OUs
DeploymentModel = StackSetDeploymentModel.SelfManaged(),
// This deploys to a set of accounts
StackInstances = StackInstances.InAccounts(new [] { "111111111111" }, new [] { "us-east-1", "eu-west-1" })
}),
// Afterwards, update/create additional instances in other accounts
new CloudFormationDeployStackInstancesAction(new CloudFormationDeployStackInstancesActionProps {
ActionName = "AddMoreInstances",
RunOrder = 2,
StackSetName = "MyStackSet",
StackInstances = StackInstances.InAccounts(new [] { "222222222222", "333333333333" }, new [] { "us-east-1", "eu-west-1" })
}) }
});
Synopsis
Constructors
StackSetTemplate() | |
StackSetTemplate(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
StackSetTemplate(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
FromArtifactPath(ArtifactPath_) | Use a file in an artifact as Stack Template. |
Constructors
StackSetTemplate()
protected StackSetTemplate()
StackSetTemplate(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected StackSetTemplate(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
StackSetTemplate(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected StackSetTemplate(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
FromArtifactPath(ArtifactPath_)
Use a file in an artifact as Stack Template.
public static StackSetTemplate FromArtifactPath(ArtifactPath_ artifactPath)
Parameters
- artifactPath ArtifactPath_
Returns