generated from pulumi/pulumi-tf-provider-boilerplate
/
appAccelerationPolicy.go
451 lines (394 loc) · 23.6 KB
/
appAccelerationPolicy.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
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
// 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 waa
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-oci/sdk/go/oci/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// This resource provides the Web App Acceleration Policy resource in Oracle Cloud Infrastructure Waa service.
//
// Creates a new WebAppAccelerationPolicy.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-oci/sdk/go/oci/Waa"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := Waa.NewAppAccelerationPolicy(ctx, "test_web_app_acceleration_policy", &Waa.AppAccelerationPolicyArgs{
// CompartmentId: pulumi.Any(compartmentId),
// DefinedTags: pulumi.Map{
// "foo-namespace.bar-key": pulumi.Any("value"),
// },
// DisplayName: pulumi.Any(webAppAccelerationPolicyDisplayName),
// FreeformTags: pulumi.Map{
// "bar-key": pulumi.Any("value"),
// },
// ResponseCachingPolicy: &waa.AppAccelerationPolicyResponseCachingPolicyArgs{
// IsResponseHeaderBasedCachingEnabled: pulumi.Any(webAppAccelerationPolicyResponseCachingPolicyIsResponseHeaderBasedCachingEnabled),
// },
// ResponseCompressionPolicy: &waa.AppAccelerationPolicyResponseCompressionPolicyArgs{
// GzipCompression: &waa.AppAccelerationPolicyResponseCompressionPolicyGzipCompressionArgs{
// IsEnabled: pulumi.Any(webAppAccelerationPolicyResponseCompressionPolicyGzipCompressionIsEnabled),
// },
// },
// SystemTags: pulumi.Any(webAppAccelerationPolicySystemTags),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// WebAppAccelerationPolicies can be imported using the `id`, e.g.
//
// ```sh
// $ pulumi import oci:Waa/appAccelerationPolicy:AppAccelerationPolicy test_web_app_acceleration_policy "id"
// ```
type AppAccelerationPolicy struct {
pulumi.CustomResourceState
// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
CompartmentId pulumi.StringOutput `pulumi:"compartmentId"`
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
DefinedTags pulumi.MapOutput `pulumi:"definedTags"`
// (Updatable) WebAppAccelerationPolicy display name, can be renamed.
DisplayName pulumi.StringOutput `pulumi:"displayName"`
// (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
FreeformTags pulumi.MapOutput `pulumi:"freeformTags"`
// A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in FAILED state.
LifecycleDetails pulumi.StringOutput `pulumi:"lifecycleDetails"`
// (Updatable) An object that specifies an HTTP response caching policy.
ResponseCachingPolicy AppAccelerationPolicyResponseCachingPolicyOutput `pulumi:"responseCachingPolicy"`
// (Updatable) An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
//
// This compression policy can be used to enable support for HTTP response compression algorithms like gzip and configure the conditions of when a compression algorithm will be used.
//
// HTTP responses will only be compressed if the client indicates support for one of the enabled compression algorithms via the "Accept-Encoding" request header.
ResponseCompressionPolicy AppAccelerationPolicyResponseCompressionPolicyOutput `pulumi:"responseCompressionPolicy"`
// The current state of the WebAppAccelerationPolicy.
State pulumi.StringOutput `pulumi:"state"`
// (Updatable) Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
SystemTags pulumi.MapOutput `pulumi:"systemTags"`
// The time the WebAppAccelerationPolicy was created. An RFC3339 formatted datetime string.
TimeCreated pulumi.StringOutput `pulumi:"timeCreated"`
// The time the WebAppAccelerationPolicy was updated. An RFC3339 formatted datetime string.
TimeUpdated pulumi.StringOutput `pulumi:"timeUpdated"`
}
// NewAppAccelerationPolicy registers a new resource with the given unique name, arguments, and options.
func NewAppAccelerationPolicy(ctx *pulumi.Context,
name string, args *AppAccelerationPolicyArgs, opts ...pulumi.ResourceOption) (*AppAccelerationPolicy, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.CompartmentId == nil {
return nil, errors.New("invalid value for required argument 'CompartmentId'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource AppAccelerationPolicy
err := ctx.RegisterResource("oci:Waa/appAccelerationPolicy:AppAccelerationPolicy", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetAppAccelerationPolicy gets an existing AppAccelerationPolicy 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 GetAppAccelerationPolicy(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *AppAccelerationPolicyState, opts ...pulumi.ResourceOption) (*AppAccelerationPolicy, error) {
var resource AppAccelerationPolicy
err := ctx.ReadResource("oci:Waa/appAccelerationPolicy:AppAccelerationPolicy", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering AppAccelerationPolicy resources.
type appAccelerationPolicyState struct {
// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
CompartmentId *string `pulumi:"compartmentId"`
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
DefinedTags map[string]interface{} `pulumi:"definedTags"`
// (Updatable) WebAppAccelerationPolicy display name, can be renamed.
DisplayName *string `pulumi:"displayName"`
// (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
FreeformTags map[string]interface{} `pulumi:"freeformTags"`
// A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in FAILED state.
LifecycleDetails *string `pulumi:"lifecycleDetails"`
// (Updatable) An object that specifies an HTTP response caching policy.
ResponseCachingPolicy *AppAccelerationPolicyResponseCachingPolicy `pulumi:"responseCachingPolicy"`
// (Updatable) An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
//
// This compression policy can be used to enable support for HTTP response compression algorithms like gzip and configure the conditions of when a compression algorithm will be used.
//
// HTTP responses will only be compressed if the client indicates support for one of the enabled compression algorithms via the "Accept-Encoding" request header.
ResponseCompressionPolicy *AppAccelerationPolicyResponseCompressionPolicy `pulumi:"responseCompressionPolicy"`
// The current state of the WebAppAccelerationPolicy.
State *string `pulumi:"state"`
// (Updatable) Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
SystemTags map[string]interface{} `pulumi:"systemTags"`
// The time the WebAppAccelerationPolicy was created. An RFC3339 formatted datetime string.
TimeCreated *string `pulumi:"timeCreated"`
// The time the WebAppAccelerationPolicy was updated. An RFC3339 formatted datetime string.
TimeUpdated *string `pulumi:"timeUpdated"`
}
type AppAccelerationPolicyState struct {
// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
CompartmentId pulumi.StringPtrInput
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
DefinedTags pulumi.MapInput
// (Updatable) WebAppAccelerationPolicy display name, can be renamed.
DisplayName pulumi.StringPtrInput
// (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
FreeformTags pulumi.MapInput
// A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in FAILED state.
LifecycleDetails pulumi.StringPtrInput
// (Updatable) An object that specifies an HTTP response caching policy.
ResponseCachingPolicy AppAccelerationPolicyResponseCachingPolicyPtrInput
// (Updatable) An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
//
// This compression policy can be used to enable support for HTTP response compression algorithms like gzip and configure the conditions of when a compression algorithm will be used.
//
// HTTP responses will only be compressed if the client indicates support for one of the enabled compression algorithms via the "Accept-Encoding" request header.
ResponseCompressionPolicy AppAccelerationPolicyResponseCompressionPolicyPtrInput
// The current state of the WebAppAccelerationPolicy.
State pulumi.StringPtrInput
// (Updatable) Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
SystemTags pulumi.MapInput
// The time the WebAppAccelerationPolicy was created. An RFC3339 formatted datetime string.
TimeCreated pulumi.StringPtrInput
// The time the WebAppAccelerationPolicy was updated. An RFC3339 formatted datetime string.
TimeUpdated pulumi.StringPtrInput
}
func (AppAccelerationPolicyState) ElementType() reflect.Type {
return reflect.TypeOf((*appAccelerationPolicyState)(nil)).Elem()
}
type appAccelerationPolicyArgs struct {
// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
CompartmentId string `pulumi:"compartmentId"`
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
DefinedTags map[string]interface{} `pulumi:"definedTags"`
// (Updatable) WebAppAccelerationPolicy display name, can be renamed.
DisplayName *string `pulumi:"displayName"`
// (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
FreeformTags map[string]interface{} `pulumi:"freeformTags"`
// (Updatable) An object that specifies an HTTP response caching policy.
ResponseCachingPolicy *AppAccelerationPolicyResponseCachingPolicy `pulumi:"responseCachingPolicy"`
// (Updatable) An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
//
// This compression policy can be used to enable support for HTTP response compression algorithms like gzip and configure the conditions of when a compression algorithm will be used.
//
// HTTP responses will only be compressed if the client indicates support for one of the enabled compression algorithms via the "Accept-Encoding" request header.
ResponseCompressionPolicy *AppAccelerationPolicyResponseCompressionPolicy `pulumi:"responseCompressionPolicy"`
// (Updatable) Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
SystemTags map[string]interface{} `pulumi:"systemTags"`
}
// The set of arguments for constructing a AppAccelerationPolicy resource.
type AppAccelerationPolicyArgs struct {
// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
CompartmentId pulumi.StringInput
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
DefinedTags pulumi.MapInput
// (Updatable) WebAppAccelerationPolicy display name, can be renamed.
DisplayName pulumi.StringPtrInput
// (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
FreeformTags pulumi.MapInput
// (Updatable) An object that specifies an HTTP response caching policy.
ResponseCachingPolicy AppAccelerationPolicyResponseCachingPolicyPtrInput
// (Updatable) An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
//
// This compression policy can be used to enable support for HTTP response compression algorithms like gzip and configure the conditions of when a compression algorithm will be used.
//
// HTTP responses will only be compressed if the client indicates support for one of the enabled compression algorithms via the "Accept-Encoding" request header.
ResponseCompressionPolicy AppAccelerationPolicyResponseCompressionPolicyPtrInput
// (Updatable) Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
SystemTags pulumi.MapInput
}
func (AppAccelerationPolicyArgs) ElementType() reflect.Type {
return reflect.TypeOf((*appAccelerationPolicyArgs)(nil)).Elem()
}
type AppAccelerationPolicyInput interface {
pulumi.Input
ToAppAccelerationPolicyOutput() AppAccelerationPolicyOutput
ToAppAccelerationPolicyOutputWithContext(ctx context.Context) AppAccelerationPolicyOutput
}
func (*AppAccelerationPolicy) ElementType() reflect.Type {
return reflect.TypeOf((**AppAccelerationPolicy)(nil)).Elem()
}
func (i *AppAccelerationPolicy) ToAppAccelerationPolicyOutput() AppAccelerationPolicyOutput {
return i.ToAppAccelerationPolicyOutputWithContext(context.Background())
}
func (i *AppAccelerationPolicy) ToAppAccelerationPolicyOutputWithContext(ctx context.Context) AppAccelerationPolicyOutput {
return pulumi.ToOutputWithContext(ctx, i).(AppAccelerationPolicyOutput)
}
// AppAccelerationPolicyArrayInput is an input type that accepts AppAccelerationPolicyArray and AppAccelerationPolicyArrayOutput values.
// You can construct a concrete instance of `AppAccelerationPolicyArrayInput` via:
//
// AppAccelerationPolicyArray{ AppAccelerationPolicyArgs{...} }
type AppAccelerationPolicyArrayInput interface {
pulumi.Input
ToAppAccelerationPolicyArrayOutput() AppAccelerationPolicyArrayOutput
ToAppAccelerationPolicyArrayOutputWithContext(context.Context) AppAccelerationPolicyArrayOutput
}
type AppAccelerationPolicyArray []AppAccelerationPolicyInput
func (AppAccelerationPolicyArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*AppAccelerationPolicy)(nil)).Elem()
}
func (i AppAccelerationPolicyArray) ToAppAccelerationPolicyArrayOutput() AppAccelerationPolicyArrayOutput {
return i.ToAppAccelerationPolicyArrayOutputWithContext(context.Background())
}
func (i AppAccelerationPolicyArray) ToAppAccelerationPolicyArrayOutputWithContext(ctx context.Context) AppAccelerationPolicyArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(AppAccelerationPolicyArrayOutput)
}
// AppAccelerationPolicyMapInput is an input type that accepts AppAccelerationPolicyMap and AppAccelerationPolicyMapOutput values.
// You can construct a concrete instance of `AppAccelerationPolicyMapInput` via:
//
// AppAccelerationPolicyMap{ "key": AppAccelerationPolicyArgs{...} }
type AppAccelerationPolicyMapInput interface {
pulumi.Input
ToAppAccelerationPolicyMapOutput() AppAccelerationPolicyMapOutput
ToAppAccelerationPolicyMapOutputWithContext(context.Context) AppAccelerationPolicyMapOutput
}
type AppAccelerationPolicyMap map[string]AppAccelerationPolicyInput
func (AppAccelerationPolicyMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*AppAccelerationPolicy)(nil)).Elem()
}
func (i AppAccelerationPolicyMap) ToAppAccelerationPolicyMapOutput() AppAccelerationPolicyMapOutput {
return i.ToAppAccelerationPolicyMapOutputWithContext(context.Background())
}
func (i AppAccelerationPolicyMap) ToAppAccelerationPolicyMapOutputWithContext(ctx context.Context) AppAccelerationPolicyMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(AppAccelerationPolicyMapOutput)
}
type AppAccelerationPolicyOutput struct{ *pulumi.OutputState }
func (AppAccelerationPolicyOutput) ElementType() reflect.Type {
return reflect.TypeOf((**AppAccelerationPolicy)(nil)).Elem()
}
func (o AppAccelerationPolicyOutput) ToAppAccelerationPolicyOutput() AppAccelerationPolicyOutput {
return o
}
func (o AppAccelerationPolicyOutput) ToAppAccelerationPolicyOutputWithContext(ctx context.Context) AppAccelerationPolicyOutput {
return o
}
// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
func (o AppAccelerationPolicyOutput) CompartmentId() pulumi.StringOutput {
return o.ApplyT(func(v *AppAccelerationPolicy) pulumi.StringOutput { return v.CompartmentId }).(pulumi.StringOutput)
}
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
func (o AppAccelerationPolicyOutput) DefinedTags() pulumi.MapOutput {
return o.ApplyT(func(v *AppAccelerationPolicy) pulumi.MapOutput { return v.DefinedTags }).(pulumi.MapOutput)
}
// (Updatable) WebAppAccelerationPolicy display name, can be renamed.
func (o AppAccelerationPolicyOutput) DisplayName() pulumi.StringOutput {
return o.ApplyT(func(v *AppAccelerationPolicy) pulumi.StringOutput { return v.DisplayName }).(pulumi.StringOutput)
}
// (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
func (o AppAccelerationPolicyOutput) FreeformTags() pulumi.MapOutput {
return o.ApplyT(func(v *AppAccelerationPolicy) pulumi.MapOutput { return v.FreeformTags }).(pulumi.MapOutput)
}
// A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in FAILED state.
func (o AppAccelerationPolicyOutput) LifecycleDetails() pulumi.StringOutput {
return o.ApplyT(func(v *AppAccelerationPolicy) pulumi.StringOutput { return v.LifecycleDetails }).(pulumi.StringOutput)
}
// (Updatable) An object that specifies an HTTP response caching policy.
func (o AppAccelerationPolicyOutput) ResponseCachingPolicy() AppAccelerationPolicyResponseCachingPolicyOutput {
return o.ApplyT(func(v *AppAccelerationPolicy) AppAccelerationPolicyResponseCachingPolicyOutput {
return v.ResponseCachingPolicy
}).(AppAccelerationPolicyResponseCachingPolicyOutput)
}
// (Updatable) An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
//
// This compression policy can be used to enable support for HTTP response compression algorithms like gzip and configure the conditions of when a compression algorithm will be used.
//
// HTTP responses will only be compressed if the client indicates support for one of the enabled compression algorithms via the "Accept-Encoding" request header.
func (o AppAccelerationPolicyOutput) ResponseCompressionPolicy() AppAccelerationPolicyResponseCompressionPolicyOutput {
return o.ApplyT(func(v *AppAccelerationPolicy) AppAccelerationPolicyResponseCompressionPolicyOutput {
return v.ResponseCompressionPolicy
}).(AppAccelerationPolicyResponseCompressionPolicyOutput)
}
// The current state of the WebAppAccelerationPolicy.
func (o AppAccelerationPolicyOutput) State() pulumi.StringOutput {
return o.ApplyT(func(v *AppAccelerationPolicy) pulumi.StringOutput { return v.State }).(pulumi.StringOutput)
}
// (Updatable) Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
func (o AppAccelerationPolicyOutput) SystemTags() pulumi.MapOutput {
return o.ApplyT(func(v *AppAccelerationPolicy) pulumi.MapOutput { return v.SystemTags }).(pulumi.MapOutput)
}
// The time the WebAppAccelerationPolicy was created. An RFC3339 formatted datetime string.
func (o AppAccelerationPolicyOutput) TimeCreated() pulumi.StringOutput {
return o.ApplyT(func(v *AppAccelerationPolicy) pulumi.StringOutput { return v.TimeCreated }).(pulumi.StringOutput)
}
// The time the WebAppAccelerationPolicy was updated. An RFC3339 formatted datetime string.
func (o AppAccelerationPolicyOutput) TimeUpdated() pulumi.StringOutput {
return o.ApplyT(func(v *AppAccelerationPolicy) pulumi.StringOutput { return v.TimeUpdated }).(pulumi.StringOutput)
}
type AppAccelerationPolicyArrayOutput struct{ *pulumi.OutputState }
func (AppAccelerationPolicyArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*AppAccelerationPolicy)(nil)).Elem()
}
func (o AppAccelerationPolicyArrayOutput) ToAppAccelerationPolicyArrayOutput() AppAccelerationPolicyArrayOutput {
return o
}
func (o AppAccelerationPolicyArrayOutput) ToAppAccelerationPolicyArrayOutputWithContext(ctx context.Context) AppAccelerationPolicyArrayOutput {
return o
}
func (o AppAccelerationPolicyArrayOutput) Index(i pulumi.IntInput) AppAccelerationPolicyOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *AppAccelerationPolicy {
return vs[0].([]*AppAccelerationPolicy)[vs[1].(int)]
}).(AppAccelerationPolicyOutput)
}
type AppAccelerationPolicyMapOutput struct{ *pulumi.OutputState }
func (AppAccelerationPolicyMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*AppAccelerationPolicy)(nil)).Elem()
}
func (o AppAccelerationPolicyMapOutput) ToAppAccelerationPolicyMapOutput() AppAccelerationPolicyMapOutput {
return o
}
func (o AppAccelerationPolicyMapOutput) ToAppAccelerationPolicyMapOutputWithContext(ctx context.Context) AppAccelerationPolicyMapOutput {
return o
}
func (o AppAccelerationPolicyMapOutput) MapIndex(k pulumi.StringInput) AppAccelerationPolicyOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *AppAccelerationPolicy {
return vs[0].(map[string]*AppAccelerationPolicy)[vs[1].(string)]
}).(AppAccelerationPolicyOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*AppAccelerationPolicyInput)(nil)).Elem(), &AppAccelerationPolicy{})
pulumi.RegisterInputType(reflect.TypeOf((*AppAccelerationPolicyArrayInput)(nil)).Elem(), AppAccelerationPolicyArray{})
pulumi.RegisterInputType(reflect.TypeOf((*AppAccelerationPolicyMapInput)(nil)).Elem(), AppAccelerationPolicyMap{})
pulumi.RegisterOutputType(AppAccelerationPolicyOutput{})
pulumi.RegisterOutputType(AppAccelerationPolicyArrayOutput{})
pulumi.RegisterOutputType(AppAccelerationPolicyMapOutput{})
}