-
Notifications
You must be signed in to change notification settings - Fork 17
/
StackSetParameters.go
118 lines (103 loc) · 3.29 KB
/
StackSetParameters.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
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"
)
// Base parameters for the StackSet.
//
// Example:
// parameters := codepipeline_actions.StackSetParameters_FromLiteral(map[string]*string{
// "BucketName": jsii.String("my-bucket"),
// "Asset1": jsii.String("true"),
// })
//
type StackSetParameters interface {
}
// The jsii proxy struct for StackSetParameters
type jsiiProxy_StackSetParameters struct {
_ byte // padding
}
func NewStackSetParameters_Override(s StackSetParameters) {
_init_.Initialize()
_jsii_.Create(
"aws-cdk-lib.aws_codepipeline_actions.StackSetParameters",
nil, // no parameters
s,
)
}
// Read the parameters from a JSON file from one of the pipeline's artifacts.
//
// The file needs to contain a list of `{ ParameterKey, ParameterValue, UsePreviousValue }` objects, like
// this:
//
// ```
// [
// {
// "ParameterKey": "BucketName",
// "ParameterValue": "my-bucket"
// },
// {
// "ParameterKey": "Asset1",
// "ParameterValue": "true"
// },
// {
// "ParameterKey": "Asset2",
// "UsePreviousValue": true
// }
// ]
// ```
//
// You must specify all template parameters. Parameters you don't specify will revert
// to their `Default` values as specified in the template.
//
// For of parameters you want to retain their existing values
// without specifying what those values are, set `UsePreviousValue: true`.
// Use of this feature is discouraged. CDK is for
// specifying desired-state infrastructure, and use of this feature makes the
// parameter values unmanaged.
func StackSetParameters_FromArtifactPath(artifactPath awscodepipeline.ArtifactPath) StackSetParameters {
_init_.Initialize()
if err := validateStackSetParameters_FromArtifactPathParameters(artifactPath); err != nil {
panic(err)
}
var returns StackSetParameters
_jsii_.StaticInvoke(
"aws-cdk-lib.aws_codepipeline_actions.StackSetParameters",
"fromArtifactPath",
[]interface{}{artifactPath},
&returns,
)
return returns
}
// A list of template parameters for your stack set.
//
// You must specify all template parameters. Parameters you don't specify will revert
// to their `Default` values as specified in the template.
//
// Specify the names of parameters you want to retain their existing values,
// without specifying what those values are, in an array in the second
// argument to this function. Use of this feature is discouraged. CDK is for
// specifying desired-state infrastructure, and use of this feature makes the
// parameter values unmanaged.
//
// Example:
// parameters := codepipeline_actions.StackSetParameters_FromLiteral(map[string]*string{
// "BucketName": jsii.String("my-bucket"),
// "Asset1": jsii.String("true"),
// })
//
func StackSetParameters_FromLiteral(parameters *map[string]*string, usePreviousValues *[]*string) StackSetParameters {
_init_.Initialize()
if err := validateStackSetParameters_FromLiteralParameters(parameters); err != nil {
panic(err)
}
var returns StackSetParameters
_jsii_.StaticInvoke(
"aws-cdk-lib.aws_codepipeline_actions.StackSetParameters",
"fromLiteral",
[]interface{}{parameters, usePreviousValues},
&returns,
)
return returns
}