-
Notifications
You must be signed in to change notification settings - Fork 17
/
StackSetTemplate.go
90 lines (79 loc) · 2.71 KB
/
StackSetTemplate.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
package awscodepipelineactions
import (
_init_ "github.com/aws/aws-cdk-go/awscdk/v2/jsii"
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
"github.com/aws/aws-cdk-go/awscdk/v2/awscodepipeline"
)
// The source of a StackSet template.
//
// Example:
// var pipeline pipeline
// var sourceOutput artifact
//
//
// pipeline.AddStage(&StageOptions{
// StageName: jsii.String("DeployStackSets"),
// Actions: []iAction{
// // First, update the StackSet itself with the newest template
// codepipeline_actions.NewCloudFormationDeployStackSetAction(&CloudFormationDeployStackSetActionProps{
// ActionName: jsii.String("UpdateStackSet"),
// RunOrder: jsii.Number(1),
// StackSetName: jsii.String("MyStackSet"),
// Template: codepipeline_actions.StackSetTemplate_FromArtifactPath(sourceOutput.AtPath(jsii.String("template.yaml"))),
//
// // Change this to 'StackSetDeploymentModel.organizations()' if you want to deploy to OUs
// DeploymentModel: codepipeline_actions.StackSetDeploymentModel_SelfManaged(),
// // This deploys to a set of accounts
// StackInstances: codepipeline_actions.StackInstances_InAccounts([]*string{
// jsii.String("111111111111"),
// }, []*string{
// jsii.String("us-east-1"),
// jsii.String("eu-west-1"),
// }),
// }),
//
// // Afterwards, update/create additional instances in other accounts
// codepipeline_actions.NewCloudFormationDeployStackInstancesAction(&CloudFormationDeployStackInstancesActionProps{
// ActionName: jsii.String("AddMoreInstances"),
// RunOrder: jsii.Number(2),
// StackSetName: jsii.String("MyStackSet"),
// StackInstances: codepipeline_actions.StackInstances_*InAccounts([]*string{
// jsii.String("222222222222"),
// jsii.String("333333333333"),
// }, []*string{
// jsii.String("us-east-1"),
// jsii.String("eu-west-1"),
// }),
// }),
// },
// })
//
type StackSetTemplate interface {
}
// The jsii proxy struct for StackSetTemplate
type jsiiProxy_StackSetTemplate struct {
_ byte // padding
}
func NewStackSetTemplate_Override(s StackSetTemplate) {
_init_.Initialize()
_jsii_.Create(
"aws-cdk-lib.aws_codepipeline_actions.StackSetTemplate",
nil, // no parameters
s,
)
}
// Use a file in an artifact as Stack Template.
func StackSetTemplate_FromArtifactPath(artifactPath awscodepipeline.ArtifactPath) StackSetTemplate {
_init_.Initialize()
if err := validateStackSetTemplate_FromArtifactPathParameters(artifactPath); err != nil {
panic(err)
}
var returns StackSetTemplate
_jsii_.StaticInvoke(
"aws-cdk-lib.aws_codepipeline_actions.StackSetTemplate",
"fromArtifactPath",
[]interface{}{artifactPath},
&returns,
)
return returns
}