-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsssm_StringParameterAttributes.go
66 lines (63 loc) · 3.12 KB
/
awsssm_StringParameterAttributes.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
package awsssm
// Attributes for parameters of various types of string.
//
// Example:
// // Example automatically generated from non-compiling source. May contain errors.
// // Retrieve the latest value of the non-secret parameter
// // with name "/My/String/Parameter".
// stringValue := ssm.stringParameter.fromStringParameterAttributes(this, jsii.String("MyValue"), &stringParameterAttributes{
// parameterName: jsii.String("/My/Public/Parameter"),
// }).stringValue
// stringValueVersionFromToken := ssm.stringParameter.fromStringParameterAttributes(this, jsii.String("MyValueVersionFromToken"), &stringParameterAttributes{
// parameterName: jsii.String("/My/Public/Parameter"),
// // parameter version from token
// version: parameterVersion,
// }).stringValue
//
// // Retrieve a specific version of the secret (SecureString) parameter.
// // 'version' is always required.
// secretValue := ssm.stringParameter.fromSecureStringParameterAttributes(this, jsii.String("MySecureValue"), &secureStringParameterAttributes{
// parameterName: jsii.String("/My/Secret/Parameter"),
// version: jsii.Number(5),
// })
// secretValueVersionFromToken := ssm.stringParameter.fromSecureStringParameterAttributes(this, jsii.String("MySecureValueVersionFromToken"), &secureStringParameterAttributes{
// parameterName: jsii.String("/My/Secret/Parameter"),
// // parameter version from token
// version: parameterVersion,
// })
//
// See: ParameterType.
//
type StringParameterAttributes struct {
// The name of the parameter store value.
//
// This value can be a token or a concrete string. If it is a concrete string
// and includes "/" it must also be prefixed with a "/" (fully-qualified).
ParameterName *string `field:"required" json:"parameterName" yaml:"parameterName"`
// Indicates of the parameter name is a simple name (i.e. does not include "/" separators).
//
// This is only required only if `parameterName` is a token, which means we
// are unable to detect if the name is simple or "path-like" for the purpose
// of rendering SSM parameter ARNs.
//
// If `parameterName` is not specified, `simpleName` must be `true` (or
// undefined) since the name generated by AWS CloudFormation is always a
// simple name.
SimpleName *bool `field:"optional" json:"simpleName" yaml:"simpleName"`
// The type of the string parameter.
// Deprecated: - use valueType instead.
Type ParameterType `field:"optional" json:"type" yaml:"type"`
// The type of the string parameter value.
//
// Using specific types can be helpful in catching invalid values
// at the start of creating or updating a stack. CloudFormation validates
// the values against existing values in the account.
//
// Note - if you want to allow values from different AWS accounts, use
// ParameterValueType.STRING
// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html#aws-ssm-parameter-types
//
ValueType ParameterValueType `field:"optional" json:"valueType" yaml:"valueType"`
// The version number of the value you wish to retrieve.
Version *float64 `field:"optional" json:"version" yaml:"version"`
}