/
pulumiTypes.go
243 lines (190 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
// *** 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 docdb
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type ClusterParameterGroupParameter struct {
// Valid values are `immediate` and `pending-reboot`. Defaults to `pending-reboot`.
ApplyMethod *string `pulumi:"applyMethod"`
// The name of the documentDB parameter.
Name string `pulumi:"name"`
// The value of the documentDB parameter.
Value string `pulumi:"value"`
}
// ClusterParameterGroupParameterInput is an input type that accepts ClusterParameterGroupParameterArgs and ClusterParameterGroupParameterOutput values.
// You can construct a concrete instance of `ClusterParameterGroupParameterInput` via:
//
// ClusterParameterGroupParameterArgs{...}
type ClusterParameterGroupParameterInput interface {
pulumi.Input
ToClusterParameterGroupParameterOutput() ClusterParameterGroupParameterOutput
ToClusterParameterGroupParameterOutputWithContext(context.Context) ClusterParameterGroupParameterOutput
}
type ClusterParameterGroupParameterArgs struct {
// Valid values are `immediate` and `pending-reboot`. Defaults to `pending-reboot`.
ApplyMethod pulumi.StringPtrInput `pulumi:"applyMethod"`
// The name of the documentDB parameter.
Name pulumi.StringInput `pulumi:"name"`
// The value of the documentDB parameter.
Value pulumi.StringInput `pulumi:"value"`
}
func (ClusterParameterGroupParameterArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterParameterGroupParameter)(nil)).Elem()
}
func (i ClusterParameterGroupParameterArgs) ToClusterParameterGroupParameterOutput() ClusterParameterGroupParameterOutput {
return i.ToClusterParameterGroupParameterOutputWithContext(context.Background())
}
func (i ClusterParameterGroupParameterArgs) ToClusterParameterGroupParameterOutputWithContext(ctx context.Context) ClusterParameterGroupParameterOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterParameterGroupParameterOutput)
}
// ClusterParameterGroupParameterArrayInput is an input type that accepts ClusterParameterGroupParameterArray and ClusterParameterGroupParameterArrayOutput values.
// You can construct a concrete instance of `ClusterParameterGroupParameterArrayInput` via:
//
// ClusterParameterGroupParameterArray{ ClusterParameterGroupParameterArgs{...} }
type ClusterParameterGroupParameterArrayInput interface {
pulumi.Input
ToClusterParameterGroupParameterArrayOutput() ClusterParameterGroupParameterArrayOutput
ToClusterParameterGroupParameterArrayOutputWithContext(context.Context) ClusterParameterGroupParameterArrayOutput
}
type ClusterParameterGroupParameterArray []ClusterParameterGroupParameterInput
func (ClusterParameterGroupParameterArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ClusterParameterGroupParameter)(nil)).Elem()
}
func (i ClusterParameterGroupParameterArray) ToClusterParameterGroupParameterArrayOutput() ClusterParameterGroupParameterArrayOutput {
return i.ToClusterParameterGroupParameterArrayOutputWithContext(context.Background())
}
func (i ClusterParameterGroupParameterArray) ToClusterParameterGroupParameterArrayOutputWithContext(ctx context.Context) ClusterParameterGroupParameterArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterParameterGroupParameterArrayOutput)
}
type ClusterParameterGroupParameterOutput struct{ *pulumi.OutputState }
func (ClusterParameterGroupParameterOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterParameterGroupParameter)(nil)).Elem()
}
func (o ClusterParameterGroupParameterOutput) ToClusterParameterGroupParameterOutput() ClusterParameterGroupParameterOutput {
return o
}
func (o ClusterParameterGroupParameterOutput) ToClusterParameterGroupParameterOutputWithContext(ctx context.Context) ClusterParameterGroupParameterOutput {
return o
}
// Valid values are `immediate` and `pending-reboot`. Defaults to `pending-reboot`.
func (o ClusterParameterGroupParameterOutput) ApplyMethod() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterParameterGroupParameter) *string { return v.ApplyMethod }).(pulumi.StringPtrOutput)
}
// The name of the documentDB parameter.
func (o ClusterParameterGroupParameterOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v ClusterParameterGroupParameter) string { return v.Name }).(pulumi.StringOutput)
}
// The value of the documentDB parameter.
func (o ClusterParameterGroupParameterOutput) Value() pulumi.StringOutput {
return o.ApplyT(func(v ClusterParameterGroupParameter) string { return v.Value }).(pulumi.StringOutput)
}
type ClusterParameterGroupParameterArrayOutput struct{ *pulumi.OutputState }
func (ClusterParameterGroupParameterArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ClusterParameterGroupParameter)(nil)).Elem()
}
func (o ClusterParameterGroupParameterArrayOutput) ToClusterParameterGroupParameterArrayOutput() ClusterParameterGroupParameterArrayOutput {
return o
}
func (o ClusterParameterGroupParameterArrayOutput) ToClusterParameterGroupParameterArrayOutputWithContext(ctx context.Context) ClusterParameterGroupParameterArrayOutput {
return o
}
func (o ClusterParameterGroupParameterArrayOutput) Index(i pulumi.IntInput) ClusterParameterGroupParameterOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterParameterGroupParameter {
return vs[0].([]ClusterParameterGroupParameter)[vs[1].(int)]
}).(ClusterParameterGroupParameterOutput)
}
type GlobalClusterGlobalClusterMember struct {
// Amazon Resource Name (ARN) of member DB Cluster.
DbClusterArn *string `pulumi:"dbClusterArn"`
// Whether the member is the primary DB Cluster.
IsWriter *bool `pulumi:"isWriter"`
}
// GlobalClusterGlobalClusterMemberInput is an input type that accepts GlobalClusterGlobalClusterMemberArgs and GlobalClusterGlobalClusterMemberOutput values.
// You can construct a concrete instance of `GlobalClusterGlobalClusterMemberInput` via:
//
// GlobalClusterGlobalClusterMemberArgs{...}
type GlobalClusterGlobalClusterMemberInput interface {
pulumi.Input
ToGlobalClusterGlobalClusterMemberOutput() GlobalClusterGlobalClusterMemberOutput
ToGlobalClusterGlobalClusterMemberOutputWithContext(context.Context) GlobalClusterGlobalClusterMemberOutput
}
type GlobalClusterGlobalClusterMemberArgs struct {
// Amazon Resource Name (ARN) of member DB Cluster.
DbClusterArn pulumi.StringPtrInput `pulumi:"dbClusterArn"`
// Whether the member is the primary DB Cluster.
IsWriter pulumi.BoolPtrInput `pulumi:"isWriter"`
}
func (GlobalClusterGlobalClusterMemberArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GlobalClusterGlobalClusterMember)(nil)).Elem()
}
func (i GlobalClusterGlobalClusterMemberArgs) ToGlobalClusterGlobalClusterMemberOutput() GlobalClusterGlobalClusterMemberOutput {
return i.ToGlobalClusterGlobalClusterMemberOutputWithContext(context.Background())
}
func (i GlobalClusterGlobalClusterMemberArgs) ToGlobalClusterGlobalClusterMemberOutputWithContext(ctx context.Context) GlobalClusterGlobalClusterMemberOutput {
return pulumi.ToOutputWithContext(ctx, i).(GlobalClusterGlobalClusterMemberOutput)
}
// GlobalClusterGlobalClusterMemberArrayInput is an input type that accepts GlobalClusterGlobalClusterMemberArray and GlobalClusterGlobalClusterMemberArrayOutput values.
// You can construct a concrete instance of `GlobalClusterGlobalClusterMemberArrayInput` via:
//
// GlobalClusterGlobalClusterMemberArray{ GlobalClusterGlobalClusterMemberArgs{...} }
type GlobalClusterGlobalClusterMemberArrayInput interface {
pulumi.Input
ToGlobalClusterGlobalClusterMemberArrayOutput() GlobalClusterGlobalClusterMemberArrayOutput
ToGlobalClusterGlobalClusterMemberArrayOutputWithContext(context.Context) GlobalClusterGlobalClusterMemberArrayOutput
}
type GlobalClusterGlobalClusterMemberArray []GlobalClusterGlobalClusterMemberInput
func (GlobalClusterGlobalClusterMemberArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]GlobalClusterGlobalClusterMember)(nil)).Elem()
}
func (i GlobalClusterGlobalClusterMemberArray) ToGlobalClusterGlobalClusterMemberArrayOutput() GlobalClusterGlobalClusterMemberArrayOutput {
return i.ToGlobalClusterGlobalClusterMemberArrayOutputWithContext(context.Background())
}
func (i GlobalClusterGlobalClusterMemberArray) ToGlobalClusterGlobalClusterMemberArrayOutputWithContext(ctx context.Context) GlobalClusterGlobalClusterMemberArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(GlobalClusterGlobalClusterMemberArrayOutput)
}
type GlobalClusterGlobalClusterMemberOutput struct{ *pulumi.OutputState }
func (GlobalClusterGlobalClusterMemberOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GlobalClusterGlobalClusterMember)(nil)).Elem()
}
func (o GlobalClusterGlobalClusterMemberOutput) ToGlobalClusterGlobalClusterMemberOutput() GlobalClusterGlobalClusterMemberOutput {
return o
}
func (o GlobalClusterGlobalClusterMemberOutput) ToGlobalClusterGlobalClusterMemberOutputWithContext(ctx context.Context) GlobalClusterGlobalClusterMemberOutput {
return o
}
// Amazon Resource Name (ARN) of member DB Cluster.
func (o GlobalClusterGlobalClusterMemberOutput) DbClusterArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v GlobalClusterGlobalClusterMember) *string { return v.DbClusterArn }).(pulumi.StringPtrOutput)
}
// Whether the member is the primary DB Cluster.
func (o GlobalClusterGlobalClusterMemberOutput) IsWriter() pulumi.BoolPtrOutput {
return o.ApplyT(func(v GlobalClusterGlobalClusterMember) *bool { return v.IsWriter }).(pulumi.BoolPtrOutput)
}
type GlobalClusterGlobalClusterMemberArrayOutput struct{ *pulumi.OutputState }
func (GlobalClusterGlobalClusterMemberArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]GlobalClusterGlobalClusterMember)(nil)).Elem()
}
func (o GlobalClusterGlobalClusterMemberArrayOutput) ToGlobalClusterGlobalClusterMemberArrayOutput() GlobalClusterGlobalClusterMemberArrayOutput {
return o
}
func (o GlobalClusterGlobalClusterMemberArrayOutput) ToGlobalClusterGlobalClusterMemberArrayOutputWithContext(ctx context.Context) GlobalClusterGlobalClusterMemberArrayOutput {
return o
}
func (o GlobalClusterGlobalClusterMemberArrayOutput) Index(i pulumi.IntInput) GlobalClusterGlobalClusterMemberOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GlobalClusterGlobalClusterMember {
return vs[0].([]GlobalClusterGlobalClusterMember)[vs[1].(int)]
}).(GlobalClusterGlobalClusterMemberOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ClusterParameterGroupParameterInput)(nil)).Elem(), ClusterParameterGroupParameterArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ClusterParameterGroupParameterArrayInput)(nil)).Elem(), ClusterParameterGroupParameterArray{})
pulumi.RegisterInputType(reflect.TypeOf((*GlobalClusterGlobalClusterMemberInput)(nil)).Elem(), GlobalClusterGlobalClusterMemberArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*GlobalClusterGlobalClusterMemberArrayInput)(nil)).Elem(), GlobalClusterGlobalClusterMemberArray{})
pulumi.RegisterOutputType(ClusterParameterGroupParameterOutput{})
pulumi.RegisterOutputType(ClusterParameterGroupParameterArrayOutput{})
pulumi.RegisterOutputType(GlobalClusterGlobalClusterMemberOutput{})
pulumi.RegisterOutputType(GlobalClusterGlobalClusterMemberArrayOutput{})
}