/
pulumiTypes.go
303 lines (242 loc) · 11.2 KB
/
pulumiTypes.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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package route53recoverycontrol
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type ClusterClusterEndpoint struct {
// Cluster endpoint.
Endpoint *string `pulumi:"endpoint"`
// Region of the endpoint.
Region *string `pulumi:"region"`
}
// ClusterClusterEndpointInput is an input type that accepts ClusterClusterEndpointArgs and ClusterClusterEndpointOutput values.
// You can construct a concrete instance of `ClusterClusterEndpointInput` via:
//
// ClusterClusterEndpointArgs{...}
type ClusterClusterEndpointInput interface {
pulumi.Input
ToClusterClusterEndpointOutput() ClusterClusterEndpointOutput
ToClusterClusterEndpointOutputWithContext(context.Context) ClusterClusterEndpointOutput
}
type ClusterClusterEndpointArgs struct {
// Cluster endpoint.
Endpoint pulumi.StringPtrInput `pulumi:"endpoint"`
// Region of the endpoint.
Region pulumi.StringPtrInput `pulumi:"region"`
}
func (ClusterClusterEndpointArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterClusterEndpoint)(nil)).Elem()
}
func (i ClusterClusterEndpointArgs) ToClusterClusterEndpointOutput() ClusterClusterEndpointOutput {
return i.ToClusterClusterEndpointOutputWithContext(context.Background())
}
func (i ClusterClusterEndpointArgs) ToClusterClusterEndpointOutputWithContext(ctx context.Context) ClusterClusterEndpointOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterEndpointOutput)
}
// ClusterClusterEndpointArrayInput is an input type that accepts ClusterClusterEndpointArray and ClusterClusterEndpointArrayOutput values.
// You can construct a concrete instance of `ClusterClusterEndpointArrayInput` via:
//
// ClusterClusterEndpointArray{ ClusterClusterEndpointArgs{...} }
type ClusterClusterEndpointArrayInput interface {
pulumi.Input
ToClusterClusterEndpointArrayOutput() ClusterClusterEndpointArrayOutput
ToClusterClusterEndpointArrayOutputWithContext(context.Context) ClusterClusterEndpointArrayOutput
}
type ClusterClusterEndpointArray []ClusterClusterEndpointInput
func (ClusterClusterEndpointArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ClusterClusterEndpoint)(nil)).Elem()
}
func (i ClusterClusterEndpointArray) ToClusterClusterEndpointArrayOutput() ClusterClusterEndpointArrayOutput {
return i.ToClusterClusterEndpointArrayOutputWithContext(context.Background())
}
func (i ClusterClusterEndpointArray) ToClusterClusterEndpointArrayOutputWithContext(ctx context.Context) ClusterClusterEndpointArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterEndpointArrayOutput)
}
type ClusterClusterEndpointOutput struct{ *pulumi.OutputState }
func (ClusterClusterEndpointOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterClusterEndpoint)(nil)).Elem()
}
func (o ClusterClusterEndpointOutput) ToClusterClusterEndpointOutput() ClusterClusterEndpointOutput {
return o
}
func (o ClusterClusterEndpointOutput) ToClusterClusterEndpointOutputWithContext(ctx context.Context) ClusterClusterEndpointOutput {
return o
}
// Cluster endpoint.
func (o ClusterClusterEndpointOutput) Endpoint() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterClusterEndpoint) *string { return v.Endpoint }).(pulumi.StringPtrOutput)
}
// Region of the endpoint.
func (o ClusterClusterEndpointOutput) Region() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterClusterEndpoint) *string { return v.Region }).(pulumi.StringPtrOutput)
}
type ClusterClusterEndpointArrayOutput struct{ *pulumi.OutputState }
func (ClusterClusterEndpointArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ClusterClusterEndpoint)(nil)).Elem()
}
func (o ClusterClusterEndpointArrayOutput) ToClusterClusterEndpointArrayOutput() ClusterClusterEndpointArrayOutput {
return o
}
func (o ClusterClusterEndpointArrayOutput) ToClusterClusterEndpointArrayOutputWithContext(ctx context.Context) ClusterClusterEndpointArrayOutput {
return o
}
func (o ClusterClusterEndpointArrayOutput) Index(i pulumi.IntInput) ClusterClusterEndpointOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterClusterEndpoint {
return vs[0].([]ClusterClusterEndpoint)[vs[1].(int)]
}).(ClusterClusterEndpointOutput)
}
type SafetyRuleRuleConfig struct {
// Logical negation of the rule.
Inverted bool `pulumi:"inverted"`
// Number of controls that must be set when you specify an `ATLEAST` type rule.
Threshold int `pulumi:"threshold"`
// Rule type. Valid values are `ATLEAST`, `AND`, and `OR`.
Type string `pulumi:"type"`
}
// SafetyRuleRuleConfigInput is an input type that accepts SafetyRuleRuleConfigArgs and SafetyRuleRuleConfigOutput values.
// You can construct a concrete instance of `SafetyRuleRuleConfigInput` via:
//
// SafetyRuleRuleConfigArgs{...}
type SafetyRuleRuleConfigInput interface {
pulumi.Input
ToSafetyRuleRuleConfigOutput() SafetyRuleRuleConfigOutput
ToSafetyRuleRuleConfigOutputWithContext(context.Context) SafetyRuleRuleConfigOutput
}
type SafetyRuleRuleConfigArgs struct {
// Logical negation of the rule.
Inverted pulumi.BoolInput `pulumi:"inverted"`
// Number of controls that must be set when you specify an `ATLEAST` type rule.
Threshold pulumi.IntInput `pulumi:"threshold"`
// Rule type. Valid values are `ATLEAST`, `AND`, and `OR`.
Type pulumi.StringInput `pulumi:"type"`
}
func (SafetyRuleRuleConfigArgs) ElementType() reflect.Type {
return reflect.TypeOf((*SafetyRuleRuleConfig)(nil)).Elem()
}
func (i SafetyRuleRuleConfigArgs) ToSafetyRuleRuleConfigOutput() SafetyRuleRuleConfigOutput {
return i.ToSafetyRuleRuleConfigOutputWithContext(context.Background())
}
func (i SafetyRuleRuleConfigArgs) ToSafetyRuleRuleConfigOutputWithContext(ctx context.Context) SafetyRuleRuleConfigOutput {
return pulumi.ToOutputWithContext(ctx, i).(SafetyRuleRuleConfigOutput)
}
func (i SafetyRuleRuleConfigArgs) ToSafetyRuleRuleConfigPtrOutput() SafetyRuleRuleConfigPtrOutput {
return i.ToSafetyRuleRuleConfigPtrOutputWithContext(context.Background())
}
func (i SafetyRuleRuleConfigArgs) ToSafetyRuleRuleConfigPtrOutputWithContext(ctx context.Context) SafetyRuleRuleConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(SafetyRuleRuleConfigOutput).ToSafetyRuleRuleConfigPtrOutputWithContext(ctx)
}
// SafetyRuleRuleConfigPtrInput is an input type that accepts SafetyRuleRuleConfigArgs, SafetyRuleRuleConfigPtr and SafetyRuleRuleConfigPtrOutput values.
// You can construct a concrete instance of `SafetyRuleRuleConfigPtrInput` via:
//
// SafetyRuleRuleConfigArgs{...}
//
// or:
//
// nil
type SafetyRuleRuleConfigPtrInput interface {
pulumi.Input
ToSafetyRuleRuleConfigPtrOutput() SafetyRuleRuleConfigPtrOutput
ToSafetyRuleRuleConfigPtrOutputWithContext(context.Context) SafetyRuleRuleConfigPtrOutput
}
type safetyRuleRuleConfigPtrType SafetyRuleRuleConfigArgs
func SafetyRuleRuleConfigPtr(v *SafetyRuleRuleConfigArgs) SafetyRuleRuleConfigPtrInput {
return (*safetyRuleRuleConfigPtrType)(v)
}
func (*safetyRuleRuleConfigPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**SafetyRuleRuleConfig)(nil)).Elem()
}
func (i *safetyRuleRuleConfigPtrType) ToSafetyRuleRuleConfigPtrOutput() SafetyRuleRuleConfigPtrOutput {
return i.ToSafetyRuleRuleConfigPtrOutputWithContext(context.Background())
}
func (i *safetyRuleRuleConfigPtrType) ToSafetyRuleRuleConfigPtrOutputWithContext(ctx context.Context) SafetyRuleRuleConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(SafetyRuleRuleConfigPtrOutput)
}
type SafetyRuleRuleConfigOutput struct{ *pulumi.OutputState }
func (SafetyRuleRuleConfigOutput) ElementType() reflect.Type {
return reflect.TypeOf((*SafetyRuleRuleConfig)(nil)).Elem()
}
func (o SafetyRuleRuleConfigOutput) ToSafetyRuleRuleConfigOutput() SafetyRuleRuleConfigOutput {
return o
}
func (o SafetyRuleRuleConfigOutput) ToSafetyRuleRuleConfigOutputWithContext(ctx context.Context) SafetyRuleRuleConfigOutput {
return o
}
func (o SafetyRuleRuleConfigOutput) ToSafetyRuleRuleConfigPtrOutput() SafetyRuleRuleConfigPtrOutput {
return o.ToSafetyRuleRuleConfigPtrOutputWithContext(context.Background())
}
func (o SafetyRuleRuleConfigOutput) ToSafetyRuleRuleConfigPtrOutputWithContext(ctx context.Context) SafetyRuleRuleConfigPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v SafetyRuleRuleConfig) *SafetyRuleRuleConfig {
return &v
}).(SafetyRuleRuleConfigPtrOutput)
}
// Logical negation of the rule.
func (o SafetyRuleRuleConfigOutput) Inverted() pulumi.BoolOutput {
return o.ApplyT(func(v SafetyRuleRuleConfig) bool { return v.Inverted }).(pulumi.BoolOutput)
}
// Number of controls that must be set when you specify an `ATLEAST` type rule.
func (o SafetyRuleRuleConfigOutput) Threshold() pulumi.IntOutput {
return o.ApplyT(func(v SafetyRuleRuleConfig) int { return v.Threshold }).(pulumi.IntOutput)
}
// Rule type. Valid values are `ATLEAST`, `AND`, and `OR`.
func (o SafetyRuleRuleConfigOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v SafetyRuleRuleConfig) string { return v.Type }).(pulumi.StringOutput)
}
type SafetyRuleRuleConfigPtrOutput struct{ *pulumi.OutputState }
func (SafetyRuleRuleConfigPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**SafetyRuleRuleConfig)(nil)).Elem()
}
func (o SafetyRuleRuleConfigPtrOutput) ToSafetyRuleRuleConfigPtrOutput() SafetyRuleRuleConfigPtrOutput {
return o
}
func (o SafetyRuleRuleConfigPtrOutput) ToSafetyRuleRuleConfigPtrOutputWithContext(ctx context.Context) SafetyRuleRuleConfigPtrOutput {
return o
}
func (o SafetyRuleRuleConfigPtrOutput) Elem() SafetyRuleRuleConfigOutput {
return o.ApplyT(func(v *SafetyRuleRuleConfig) SafetyRuleRuleConfig {
if v != nil {
return *v
}
var ret SafetyRuleRuleConfig
return ret
}).(SafetyRuleRuleConfigOutput)
}
// Logical negation of the rule.
func (o SafetyRuleRuleConfigPtrOutput) Inverted() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *SafetyRuleRuleConfig) *bool {
if v == nil {
return nil
}
return &v.Inverted
}).(pulumi.BoolPtrOutput)
}
// Number of controls that must be set when you specify an `ATLEAST` type rule.
func (o SafetyRuleRuleConfigPtrOutput) Threshold() pulumi.IntPtrOutput {
return o.ApplyT(func(v *SafetyRuleRuleConfig) *int {
if v == nil {
return nil
}
return &v.Threshold
}).(pulumi.IntPtrOutput)
}
// Rule type. Valid values are `ATLEAST`, `AND`, and `OR`.
func (o SafetyRuleRuleConfigPtrOutput) Type() pulumi.StringPtrOutput {
return o.ApplyT(func(v *SafetyRuleRuleConfig) *string {
if v == nil {
return nil
}
return &v.Type
}).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ClusterClusterEndpointInput)(nil)).Elem(), ClusterClusterEndpointArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ClusterClusterEndpointArrayInput)(nil)).Elem(), ClusterClusterEndpointArray{})
pulumi.RegisterInputType(reflect.TypeOf((*SafetyRuleRuleConfigInput)(nil)).Elem(), SafetyRuleRuleConfigArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*SafetyRuleRuleConfigPtrInput)(nil)).Elem(), SafetyRuleRuleConfigArgs{})
pulumi.RegisterOutputType(ClusterClusterEndpointOutput{})
pulumi.RegisterOutputType(ClusterClusterEndpointArrayOutput{})
pulumi.RegisterOutputType(SafetyRuleRuleConfigOutput{})
pulumi.RegisterOutputType(SafetyRuleRuleConfigPtrOutput{})
}