/
propertyActivation.go
360 lines (300 loc) · 15.7 KB
/
propertyActivation.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
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package akamai
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type PropertyActivation struct {
pulumi.CustomResourceState
ActivationId pulumi.StringOutput `pulumi:"activationId"`
// automatically acknowledge all rule warnings for activation to continue. default is true
AutoAcknowledgeRuleWarnings pulumi.BoolPtrOutput `pulumi:"autoAcknowledgeRuleWarnings"`
// Provides an audit record when activating on a production network
ComplianceRecord PropertyActivationComplianceRecordPtrOutput `pulumi:"complianceRecord"`
Contacts pulumi.StringArrayOutput `pulumi:"contacts"`
Errors pulumi.StringOutput `pulumi:"errors"`
Network pulumi.StringPtrOutput `pulumi:"network"`
// assigns a log message to the activation request
Note pulumi.StringPtrOutput `pulumi:"note"`
// Deprecated: The setting "property" has been deprecated.
Property pulumi.StringOutput `pulumi:"property"`
PropertyId pulumi.StringOutput `pulumi:"propertyId"`
RuleErrors PropertyActivationRuleErrorArrayOutput `pulumi:"ruleErrors"`
// Deprecated: Rule warnings will not be set in state anymore
RuleWarnings PropertyActivationRuleWarningArrayOutput `pulumi:"ruleWarnings"`
Status pulumi.StringOutput `pulumi:"status"`
Version pulumi.IntOutput `pulumi:"version"`
Warnings pulumi.StringOutput `pulumi:"warnings"`
}
// NewPropertyActivation registers a new resource with the given unique name, arguments, and options.
func NewPropertyActivation(ctx *pulumi.Context,
name string, args *PropertyActivationArgs, opts ...pulumi.ResourceOption) (*PropertyActivation, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Contacts == nil {
return nil, errors.New("invalid value for required argument 'Contacts'")
}
if args.Version == nil {
return nil, errors.New("invalid value for required argument 'Version'")
}
aliases := pulumi.Aliases([]pulumi.Alias{
{
Type: pulumi.String("akamai:properties/propertyActivation:PropertyActivation"),
},
})
opts = append(opts, aliases)
var resource PropertyActivation
err := ctx.RegisterResource("akamai:index/propertyActivation:PropertyActivation", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetPropertyActivation gets an existing PropertyActivation resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetPropertyActivation(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *PropertyActivationState, opts ...pulumi.ResourceOption) (*PropertyActivation, error) {
var resource PropertyActivation
err := ctx.ReadResource("akamai:index/propertyActivation:PropertyActivation", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering PropertyActivation resources.
type propertyActivationState struct {
ActivationId *string `pulumi:"activationId"`
// automatically acknowledge all rule warnings for activation to continue. default is true
AutoAcknowledgeRuleWarnings *bool `pulumi:"autoAcknowledgeRuleWarnings"`
// Provides an audit record when activating on a production network
ComplianceRecord *PropertyActivationComplianceRecord `pulumi:"complianceRecord"`
Contacts []string `pulumi:"contacts"`
Errors *string `pulumi:"errors"`
Network *string `pulumi:"network"`
// assigns a log message to the activation request
Note *string `pulumi:"note"`
// Deprecated: The setting "property" has been deprecated.
Property *string `pulumi:"property"`
PropertyId *string `pulumi:"propertyId"`
RuleErrors []PropertyActivationRuleError `pulumi:"ruleErrors"`
// Deprecated: Rule warnings will not be set in state anymore
RuleWarnings []PropertyActivationRuleWarning `pulumi:"ruleWarnings"`
Status *string `pulumi:"status"`
Version *int `pulumi:"version"`
Warnings *string `pulumi:"warnings"`
}
type PropertyActivationState struct {
ActivationId pulumi.StringPtrInput
// automatically acknowledge all rule warnings for activation to continue. default is true
AutoAcknowledgeRuleWarnings pulumi.BoolPtrInput
// Provides an audit record when activating on a production network
ComplianceRecord PropertyActivationComplianceRecordPtrInput
Contacts pulumi.StringArrayInput
Errors pulumi.StringPtrInput
Network pulumi.StringPtrInput
// assigns a log message to the activation request
Note pulumi.StringPtrInput
// Deprecated: The setting "property" has been deprecated.
Property pulumi.StringPtrInput
PropertyId pulumi.StringPtrInput
RuleErrors PropertyActivationRuleErrorArrayInput
// Deprecated: Rule warnings will not be set in state anymore
RuleWarnings PropertyActivationRuleWarningArrayInput
Status pulumi.StringPtrInput
Version pulumi.IntPtrInput
Warnings pulumi.StringPtrInput
}
func (PropertyActivationState) ElementType() reflect.Type {
return reflect.TypeOf((*propertyActivationState)(nil)).Elem()
}
type propertyActivationArgs struct {
ActivationId *string `pulumi:"activationId"`
// automatically acknowledge all rule warnings for activation to continue. default is true
AutoAcknowledgeRuleWarnings *bool `pulumi:"autoAcknowledgeRuleWarnings"`
// Provides an audit record when activating on a production network
ComplianceRecord *PropertyActivationComplianceRecord `pulumi:"complianceRecord"`
Contacts []string `pulumi:"contacts"`
Network *string `pulumi:"network"`
// assigns a log message to the activation request
Note *string `pulumi:"note"`
// Deprecated: The setting "property" has been deprecated.
Property *string `pulumi:"property"`
PropertyId *string `pulumi:"propertyId"`
RuleErrors []PropertyActivationRuleError `pulumi:"ruleErrors"`
// Deprecated: Rule warnings will not be set in state anymore
RuleWarnings []PropertyActivationRuleWarning `pulumi:"ruleWarnings"`
Version int `pulumi:"version"`
}
// The set of arguments for constructing a PropertyActivation resource.
type PropertyActivationArgs struct {
ActivationId pulumi.StringPtrInput
// automatically acknowledge all rule warnings for activation to continue. default is true
AutoAcknowledgeRuleWarnings pulumi.BoolPtrInput
// Provides an audit record when activating on a production network
ComplianceRecord PropertyActivationComplianceRecordPtrInput
Contacts pulumi.StringArrayInput
Network pulumi.StringPtrInput
// assigns a log message to the activation request
Note pulumi.StringPtrInput
// Deprecated: The setting "property" has been deprecated.
Property pulumi.StringPtrInput
PropertyId pulumi.StringPtrInput
RuleErrors PropertyActivationRuleErrorArrayInput
// Deprecated: Rule warnings will not be set in state anymore
RuleWarnings PropertyActivationRuleWarningArrayInput
Version pulumi.IntInput
}
func (PropertyActivationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*propertyActivationArgs)(nil)).Elem()
}
type PropertyActivationInput interface {
pulumi.Input
ToPropertyActivationOutput() PropertyActivationOutput
ToPropertyActivationOutputWithContext(ctx context.Context) PropertyActivationOutput
}
func (*PropertyActivation) ElementType() reflect.Type {
return reflect.TypeOf((**PropertyActivation)(nil)).Elem()
}
func (i *PropertyActivation) ToPropertyActivationOutput() PropertyActivationOutput {
return i.ToPropertyActivationOutputWithContext(context.Background())
}
func (i *PropertyActivation) ToPropertyActivationOutputWithContext(ctx context.Context) PropertyActivationOutput {
return pulumi.ToOutputWithContext(ctx, i).(PropertyActivationOutput)
}
// PropertyActivationArrayInput is an input type that accepts PropertyActivationArray and PropertyActivationArrayOutput values.
// You can construct a concrete instance of `PropertyActivationArrayInput` via:
//
// PropertyActivationArray{ PropertyActivationArgs{...} }
type PropertyActivationArrayInput interface {
pulumi.Input
ToPropertyActivationArrayOutput() PropertyActivationArrayOutput
ToPropertyActivationArrayOutputWithContext(context.Context) PropertyActivationArrayOutput
}
type PropertyActivationArray []PropertyActivationInput
func (PropertyActivationArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*PropertyActivation)(nil)).Elem()
}
func (i PropertyActivationArray) ToPropertyActivationArrayOutput() PropertyActivationArrayOutput {
return i.ToPropertyActivationArrayOutputWithContext(context.Background())
}
func (i PropertyActivationArray) ToPropertyActivationArrayOutputWithContext(ctx context.Context) PropertyActivationArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(PropertyActivationArrayOutput)
}
// PropertyActivationMapInput is an input type that accepts PropertyActivationMap and PropertyActivationMapOutput values.
// You can construct a concrete instance of `PropertyActivationMapInput` via:
//
// PropertyActivationMap{ "key": PropertyActivationArgs{...} }
type PropertyActivationMapInput interface {
pulumi.Input
ToPropertyActivationMapOutput() PropertyActivationMapOutput
ToPropertyActivationMapOutputWithContext(context.Context) PropertyActivationMapOutput
}
type PropertyActivationMap map[string]PropertyActivationInput
func (PropertyActivationMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*PropertyActivation)(nil)).Elem()
}
func (i PropertyActivationMap) ToPropertyActivationMapOutput() PropertyActivationMapOutput {
return i.ToPropertyActivationMapOutputWithContext(context.Background())
}
func (i PropertyActivationMap) ToPropertyActivationMapOutputWithContext(ctx context.Context) PropertyActivationMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(PropertyActivationMapOutput)
}
type PropertyActivationOutput struct{ *pulumi.OutputState }
func (PropertyActivationOutput) ElementType() reflect.Type {
return reflect.TypeOf((**PropertyActivation)(nil)).Elem()
}
func (o PropertyActivationOutput) ToPropertyActivationOutput() PropertyActivationOutput {
return o
}
func (o PropertyActivationOutput) ToPropertyActivationOutputWithContext(ctx context.Context) PropertyActivationOutput {
return o
}
func (o PropertyActivationOutput) ActivationId() pulumi.StringOutput {
return o.ApplyT(func(v *PropertyActivation) pulumi.StringOutput { return v.ActivationId }).(pulumi.StringOutput)
}
// automatically acknowledge all rule warnings for activation to continue. default is true
func (o PropertyActivationOutput) AutoAcknowledgeRuleWarnings() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *PropertyActivation) pulumi.BoolPtrOutput { return v.AutoAcknowledgeRuleWarnings }).(pulumi.BoolPtrOutput)
}
// Provides an audit record when activating on a production network
func (o PropertyActivationOutput) ComplianceRecord() PropertyActivationComplianceRecordPtrOutput {
return o.ApplyT(func(v *PropertyActivation) PropertyActivationComplianceRecordPtrOutput { return v.ComplianceRecord }).(PropertyActivationComplianceRecordPtrOutput)
}
func (o PropertyActivationOutput) Contacts() pulumi.StringArrayOutput {
return o.ApplyT(func(v *PropertyActivation) pulumi.StringArrayOutput { return v.Contacts }).(pulumi.StringArrayOutput)
}
func (o PropertyActivationOutput) Errors() pulumi.StringOutput {
return o.ApplyT(func(v *PropertyActivation) pulumi.StringOutput { return v.Errors }).(pulumi.StringOutput)
}
func (o PropertyActivationOutput) Network() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PropertyActivation) pulumi.StringPtrOutput { return v.Network }).(pulumi.StringPtrOutput)
}
// assigns a log message to the activation request
func (o PropertyActivationOutput) Note() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PropertyActivation) pulumi.StringPtrOutput { return v.Note }).(pulumi.StringPtrOutput)
}
// Deprecated: The setting "property" has been deprecated.
func (o PropertyActivationOutput) Property() pulumi.StringOutput {
return o.ApplyT(func(v *PropertyActivation) pulumi.StringOutput { return v.Property }).(pulumi.StringOutput)
}
func (o PropertyActivationOutput) PropertyId() pulumi.StringOutput {
return o.ApplyT(func(v *PropertyActivation) pulumi.StringOutput { return v.PropertyId }).(pulumi.StringOutput)
}
func (o PropertyActivationOutput) RuleErrors() PropertyActivationRuleErrorArrayOutput {
return o.ApplyT(func(v *PropertyActivation) PropertyActivationRuleErrorArrayOutput { return v.RuleErrors }).(PropertyActivationRuleErrorArrayOutput)
}
// Deprecated: Rule warnings will not be set in state anymore
func (o PropertyActivationOutput) RuleWarnings() PropertyActivationRuleWarningArrayOutput {
return o.ApplyT(func(v *PropertyActivation) PropertyActivationRuleWarningArrayOutput { return v.RuleWarnings }).(PropertyActivationRuleWarningArrayOutput)
}
func (o PropertyActivationOutput) Status() pulumi.StringOutput {
return o.ApplyT(func(v *PropertyActivation) pulumi.StringOutput { return v.Status }).(pulumi.StringOutput)
}
func (o PropertyActivationOutput) Version() pulumi.IntOutput {
return o.ApplyT(func(v *PropertyActivation) pulumi.IntOutput { return v.Version }).(pulumi.IntOutput)
}
func (o PropertyActivationOutput) Warnings() pulumi.StringOutput {
return o.ApplyT(func(v *PropertyActivation) pulumi.StringOutput { return v.Warnings }).(pulumi.StringOutput)
}
type PropertyActivationArrayOutput struct{ *pulumi.OutputState }
func (PropertyActivationArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*PropertyActivation)(nil)).Elem()
}
func (o PropertyActivationArrayOutput) ToPropertyActivationArrayOutput() PropertyActivationArrayOutput {
return o
}
func (o PropertyActivationArrayOutput) ToPropertyActivationArrayOutputWithContext(ctx context.Context) PropertyActivationArrayOutput {
return o
}
func (o PropertyActivationArrayOutput) Index(i pulumi.IntInput) PropertyActivationOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *PropertyActivation {
return vs[0].([]*PropertyActivation)[vs[1].(int)]
}).(PropertyActivationOutput)
}
type PropertyActivationMapOutput struct{ *pulumi.OutputState }
func (PropertyActivationMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*PropertyActivation)(nil)).Elem()
}
func (o PropertyActivationMapOutput) ToPropertyActivationMapOutput() PropertyActivationMapOutput {
return o
}
func (o PropertyActivationMapOutput) ToPropertyActivationMapOutputWithContext(ctx context.Context) PropertyActivationMapOutput {
return o
}
func (o PropertyActivationMapOutput) MapIndex(k pulumi.StringInput) PropertyActivationOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *PropertyActivation {
return vs[0].(map[string]*PropertyActivation)[vs[1].(string)]
}).(PropertyActivationOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*PropertyActivationInput)(nil)).Elem(), &PropertyActivation{})
pulumi.RegisterInputType(reflect.TypeOf((*PropertyActivationArrayInput)(nil)).Elem(), PropertyActivationArray{})
pulumi.RegisterInputType(reflect.TypeOf((*PropertyActivationMapInput)(nil)).Elem(), PropertyActivationMap{})
pulumi.RegisterOutputType(PropertyActivationOutput{})
pulumi.RegisterOutputType(PropertyActivationArrayOutput{})
pulumi.RegisterOutputType(PropertyActivationMapOutput{})
}