-
Notifications
You must be signed in to change notification settings - Fork 17
/
awscdk_CfnDynamicReference.go
151 lines (127 loc) · 3.41 KB
/
awscdk_CfnDynamicReference.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
// An experiment to bundle the entire CDK into a single module
package awscdk
import (
_init_ "github.com/aws/aws-cdk-go/awscdk/jsii"
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
)
// References a dynamically retrieved value.
//
// This is a Construct so that subclasses will (eventually) be able to attach
// metadata to themselves without having to change call signatures.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import monocdk "github.com/aws/aws-cdk-go/awscdk"
//
// cfnDynamicReference := monocdk.NewCfnDynamicReference(monocdk.cfnDynamicReferenceService_SSM, jsii.String("key"))
//
// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/dynamic-references.html
//
// Experimental.
type CfnDynamicReference interface {
Intrinsic
// The captured stack trace which represents the location in which this token was created.
// Experimental.
CreationStack() *[]*string
// Creates a throwable Error object that contains the token creation stack trace.
// Experimental.
NewError(message *string) interface{}
// Produce the Token's value at resolution time.
// Experimental.
Resolve(_context IResolveContext) interface{}
// Turn this Token into JSON.
//
// Called automatically when JSON.stringify() is called on a Token.
// Experimental.
ToJSON() interface{}
// Convert an instance of this Token to a string.
//
// This method will be called implicitly by language runtimes if the object
// is embedded into a string. We treat it the same as an explicit
// stringification.
// Experimental.
ToString() *string
}
// The jsii proxy struct for CfnDynamicReference
type jsiiProxy_CfnDynamicReference struct {
jsiiProxy_Intrinsic
}
func (j *jsiiProxy_CfnDynamicReference) CreationStack() *[]*string {
var returns *[]*string
_jsii_.Get(
j,
"creationStack",
&returns,
)
return returns
}
// Experimental.
func NewCfnDynamicReference(service CfnDynamicReferenceService, key *string) CfnDynamicReference {
_init_.Initialize()
if err := validateNewCfnDynamicReferenceParameters(service, key); err != nil {
panic(err)
}
j := jsiiProxy_CfnDynamicReference{}
_jsii_.Create(
"monocdk.CfnDynamicReference",
[]interface{}{service, key},
&j,
)
return &j
}
// Experimental.
func NewCfnDynamicReference_Override(c CfnDynamicReference, service CfnDynamicReferenceService, key *string) {
_init_.Initialize()
_jsii_.Create(
"monocdk.CfnDynamicReference",
[]interface{}{service, key},
c,
)
}
func (c *jsiiProxy_CfnDynamicReference) NewError(message *string) interface{} {
if err := c.validateNewErrorParameters(message); err != nil {
panic(err)
}
var returns interface{}
_jsii_.Invoke(
c,
"newError",
[]interface{}{message},
&returns,
)
return returns
}
func (c *jsiiProxy_CfnDynamicReference) Resolve(_context IResolveContext) interface{} {
if err := c.validateResolveParameters(_context); err != nil {
panic(err)
}
var returns interface{}
_jsii_.Invoke(
c,
"resolve",
[]interface{}{_context},
&returns,
)
return returns
}
func (c *jsiiProxy_CfnDynamicReference) ToJSON() interface{} {
var returns interface{}
_jsii_.Invoke(
c,
"toJSON",
nil, // no parameters
&returns,
)
return returns
}
func (c *jsiiProxy_CfnDynamicReference) ToString() *string {
var returns *string
_jsii_.Invoke(
c,
"toString",
nil, // no parameters
&returns,
)
return returns
}