/
pulumiTypes.go
234 lines (182 loc) · 9.75 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
// *** 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 appconfig
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type ConfigurationProfileValidator struct {
// Either the JSON Schema content or the Amazon Resource Name (ARN) of an AWS Lambda function.
Content *string `pulumi:"content"`
// The type of validator. Valid values: `JSON_SCHEMA` and `LAMBDA`.
Type string `pulumi:"type"`
}
// ConfigurationProfileValidatorInput is an input type that accepts ConfigurationProfileValidatorArgs and ConfigurationProfileValidatorOutput values.
// You can construct a concrete instance of `ConfigurationProfileValidatorInput` via:
//
// ConfigurationProfileValidatorArgs{...}
type ConfigurationProfileValidatorInput interface {
pulumi.Input
ToConfigurationProfileValidatorOutput() ConfigurationProfileValidatorOutput
ToConfigurationProfileValidatorOutputWithContext(context.Context) ConfigurationProfileValidatorOutput
}
type ConfigurationProfileValidatorArgs struct {
// Either the JSON Schema content or the Amazon Resource Name (ARN) of an AWS Lambda function.
Content pulumi.StringPtrInput `pulumi:"content"`
// The type of validator. Valid values: `JSON_SCHEMA` and `LAMBDA`.
Type pulumi.StringInput `pulumi:"type"`
}
func (ConfigurationProfileValidatorArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ConfigurationProfileValidator)(nil)).Elem()
}
func (i ConfigurationProfileValidatorArgs) ToConfigurationProfileValidatorOutput() ConfigurationProfileValidatorOutput {
return i.ToConfigurationProfileValidatorOutputWithContext(context.Background())
}
func (i ConfigurationProfileValidatorArgs) ToConfigurationProfileValidatorOutputWithContext(ctx context.Context) ConfigurationProfileValidatorOutput {
return pulumi.ToOutputWithContext(ctx, i).(ConfigurationProfileValidatorOutput)
}
// ConfigurationProfileValidatorArrayInput is an input type that accepts ConfigurationProfileValidatorArray and ConfigurationProfileValidatorArrayOutput values.
// You can construct a concrete instance of `ConfigurationProfileValidatorArrayInput` via:
//
// ConfigurationProfileValidatorArray{ ConfigurationProfileValidatorArgs{...} }
type ConfigurationProfileValidatorArrayInput interface {
pulumi.Input
ToConfigurationProfileValidatorArrayOutput() ConfigurationProfileValidatorArrayOutput
ToConfigurationProfileValidatorArrayOutputWithContext(context.Context) ConfigurationProfileValidatorArrayOutput
}
type ConfigurationProfileValidatorArray []ConfigurationProfileValidatorInput
func (ConfigurationProfileValidatorArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ConfigurationProfileValidator)(nil)).Elem()
}
func (i ConfigurationProfileValidatorArray) ToConfigurationProfileValidatorArrayOutput() ConfigurationProfileValidatorArrayOutput {
return i.ToConfigurationProfileValidatorArrayOutputWithContext(context.Background())
}
func (i ConfigurationProfileValidatorArray) ToConfigurationProfileValidatorArrayOutputWithContext(ctx context.Context) ConfigurationProfileValidatorArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ConfigurationProfileValidatorArrayOutput)
}
type ConfigurationProfileValidatorOutput struct{ *pulumi.OutputState }
func (ConfigurationProfileValidatorOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ConfigurationProfileValidator)(nil)).Elem()
}
func (o ConfigurationProfileValidatorOutput) ToConfigurationProfileValidatorOutput() ConfigurationProfileValidatorOutput {
return o
}
func (o ConfigurationProfileValidatorOutput) ToConfigurationProfileValidatorOutputWithContext(ctx context.Context) ConfigurationProfileValidatorOutput {
return o
}
// Either the JSON Schema content or the Amazon Resource Name (ARN) of an AWS Lambda function.
func (o ConfigurationProfileValidatorOutput) Content() pulumi.StringPtrOutput {
return o.ApplyT(func(v ConfigurationProfileValidator) *string { return v.Content }).(pulumi.StringPtrOutput)
}
// The type of validator. Valid values: `JSON_SCHEMA` and `LAMBDA`.
func (o ConfigurationProfileValidatorOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v ConfigurationProfileValidator) string { return v.Type }).(pulumi.StringOutput)
}
type ConfigurationProfileValidatorArrayOutput struct{ *pulumi.OutputState }
func (ConfigurationProfileValidatorArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ConfigurationProfileValidator)(nil)).Elem()
}
func (o ConfigurationProfileValidatorArrayOutput) ToConfigurationProfileValidatorArrayOutput() ConfigurationProfileValidatorArrayOutput {
return o
}
func (o ConfigurationProfileValidatorArrayOutput) ToConfigurationProfileValidatorArrayOutputWithContext(ctx context.Context) ConfigurationProfileValidatorArrayOutput {
return o
}
func (o ConfigurationProfileValidatorArrayOutput) Index(i pulumi.IntInput) ConfigurationProfileValidatorOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ConfigurationProfileValidator {
return vs[0].([]ConfigurationProfileValidator)[vs[1].(int)]
}).(ConfigurationProfileValidatorOutput)
}
type EnvironmentMonitor struct {
// ARN of the Amazon CloudWatch alarm.
AlarmArn string `pulumi:"alarmArn"`
// ARN of an IAM role for AWS AppConfig to monitor `alarmArn`.
AlarmRoleArn *string `pulumi:"alarmRoleArn"`
}
// EnvironmentMonitorInput is an input type that accepts EnvironmentMonitorArgs and EnvironmentMonitorOutput values.
// You can construct a concrete instance of `EnvironmentMonitorInput` via:
//
// EnvironmentMonitorArgs{...}
type EnvironmentMonitorInput interface {
pulumi.Input
ToEnvironmentMonitorOutput() EnvironmentMonitorOutput
ToEnvironmentMonitorOutputWithContext(context.Context) EnvironmentMonitorOutput
}
type EnvironmentMonitorArgs struct {
// ARN of the Amazon CloudWatch alarm.
AlarmArn pulumi.StringInput `pulumi:"alarmArn"`
// ARN of an IAM role for AWS AppConfig to monitor `alarmArn`.
AlarmRoleArn pulumi.StringPtrInput `pulumi:"alarmRoleArn"`
}
func (EnvironmentMonitorArgs) ElementType() reflect.Type {
return reflect.TypeOf((*EnvironmentMonitor)(nil)).Elem()
}
func (i EnvironmentMonitorArgs) ToEnvironmentMonitorOutput() EnvironmentMonitorOutput {
return i.ToEnvironmentMonitorOutputWithContext(context.Background())
}
func (i EnvironmentMonitorArgs) ToEnvironmentMonitorOutputWithContext(ctx context.Context) EnvironmentMonitorOutput {
return pulumi.ToOutputWithContext(ctx, i).(EnvironmentMonitorOutput)
}
// EnvironmentMonitorArrayInput is an input type that accepts EnvironmentMonitorArray and EnvironmentMonitorArrayOutput values.
// You can construct a concrete instance of `EnvironmentMonitorArrayInput` via:
//
// EnvironmentMonitorArray{ EnvironmentMonitorArgs{...} }
type EnvironmentMonitorArrayInput interface {
pulumi.Input
ToEnvironmentMonitorArrayOutput() EnvironmentMonitorArrayOutput
ToEnvironmentMonitorArrayOutputWithContext(context.Context) EnvironmentMonitorArrayOutput
}
type EnvironmentMonitorArray []EnvironmentMonitorInput
func (EnvironmentMonitorArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]EnvironmentMonitor)(nil)).Elem()
}
func (i EnvironmentMonitorArray) ToEnvironmentMonitorArrayOutput() EnvironmentMonitorArrayOutput {
return i.ToEnvironmentMonitorArrayOutputWithContext(context.Background())
}
func (i EnvironmentMonitorArray) ToEnvironmentMonitorArrayOutputWithContext(ctx context.Context) EnvironmentMonitorArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(EnvironmentMonitorArrayOutput)
}
type EnvironmentMonitorOutput struct{ *pulumi.OutputState }
func (EnvironmentMonitorOutput) ElementType() reflect.Type {
return reflect.TypeOf((*EnvironmentMonitor)(nil)).Elem()
}
func (o EnvironmentMonitorOutput) ToEnvironmentMonitorOutput() EnvironmentMonitorOutput {
return o
}
func (o EnvironmentMonitorOutput) ToEnvironmentMonitorOutputWithContext(ctx context.Context) EnvironmentMonitorOutput {
return o
}
// ARN of the Amazon CloudWatch alarm.
func (o EnvironmentMonitorOutput) AlarmArn() pulumi.StringOutput {
return o.ApplyT(func(v EnvironmentMonitor) string { return v.AlarmArn }).(pulumi.StringOutput)
}
// ARN of an IAM role for AWS AppConfig to monitor `alarmArn`.
func (o EnvironmentMonitorOutput) AlarmRoleArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v EnvironmentMonitor) *string { return v.AlarmRoleArn }).(pulumi.StringPtrOutput)
}
type EnvironmentMonitorArrayOutput struct{ *pulumi.OutputState }
func (EnvironmentMonitorArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]EnvironmentMonitor)(nil)).Elem()
}
func (o EnvironmentMonitorArrayOutput) ToEnvironmentMonitorArrayOutput() EnvironmentMonitorArrayOutput {
return o
}
func (o EnvironmentMonitorArrayOutput) ToEnvironmentMonitorArrayOutputWithContext(ctx context.Context) EnvironmentMonitorArrayOutput {
return o
}
func (o EnvironmentMonitorArrayOutput) Index(i pulumi.IntInput) EnvironmentMonitorOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) EnvironmentMonitor {
return vs[0].([]EnvironmentMonitor)[vs[1].(int)]
}).(EnvironmentMonitorOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ConfigurationProfileValidatorInput)(nil)).Elem(), ConfigurationProfileValidatorArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ConfigurationProfileValidatorArrayInput)(nil)).Elem(), ConfigurationProfileValidatorArray{})
pulumi.RegisterInputType(reflect.TypeOf((*EnvironmentMonitorInput)(nil)).Elem(), EnvironmentMonitorArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*EnvironmentMonitorArrayInput)(nil)).Elem(), EnvironmentMonitorArray{})
pulumi.RegisterOutputType(ConfigurationProfileValidatorOutput{})
pulumi.RegisterOutputType(ConfigurationProfileValidatorArrayOutput{})
pulumi.RegisterOutputType(EnvironmentMonitorOutput{})
pulumi.RegisterOutputType(EnvironmentMonitorArrayOutput{})
}