generated from pulumi/pulumi-tf-provider-boilerplate
/
configuration.go
506 lines (445 loc) · 23.5 KB
/
configuration.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
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
// 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 psql
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 Configuration resource in Oracle Cloud Infrastructure Psql service.
//
// Creates a new configuration.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-oci/sdk/go/oci/Psql"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := Psql.NewConfiguration(ctx, "test_configuration", &Psql.ConfigurationArgs{
// CompartmentId: pulumi.Any(compartmentId),
// DbConfigurationOverrides: &psql.ConfigurationDbConfigurationOverridesArgs{
// Items: psql.ConfigurationDbConfigurationOverridesItemArray{
// &psql.ConfigurationDbConfigurationOverridesItemArgs{
// ConfigKey: pulumi.Any(configurationDbConfigurationOverridesItemsConfigKey),
// OverridenConfigValue: pulumi.Any(configurationDbConfigurationOverridesItemsOverridenConfigValue),
// },
// },
// },
// DbVersion: pulumi.Any(configurationDbVersion),
// DisplayName: pulumi.Any(configurationDisplayName),
// InstanceMemorySizeInGbs: pulumi.Any(configurationInstanceMemorySizeInGbs),
// InstanceOcpuCount: pulumi.Any(configurationInstanceOcpuCount),
// Shape: pulumi.Any(configurationShape),
// DefinedTags: pulumi.Map{
// "foo-namespace.bar-key": pulumi.Any("value"),
// },
// Description: pulumi.Any(configurationDescription),
// FreeformTags: pulumi.Map{
// "bar-key": pulumi.Any("value"),
// },
// SystemTags: pulumi.Any(configurationSystemTags),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// Configurations can be imported using the `id`, e.g.
//
// ```sh
// $ pulumi import oci:Psql/configuration:Configuration test_configuration "id"
// ```
type Configuration struct {
pulumi.CustomResourceState
// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the configuration.
CompartmentId pulumi.StringOutput `pulumi:"compartmentId"`
// List of configuration details.
ConfigurationDetails ConfigurationConfigurationDetailArrayOutput `pulumi:"configurationDetails"`
// Configuration overrides for a PostgreSQL instance.
DbConfigurationOverrides ConfigurationDbConfigurationOverridesOutput `pulumi:"dbConfigurationOverrides"`
// Version of the PostgreSQL database.
DbVersion pulumi.StringOutput `pulumi:"dbVersion"`
// (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) Details about the configuration set.
Description pulumi.StringOutput `pulumi:"description"`
// (Updatable) A user-friendly display name for the configuration. Avoid entering confidential information.
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"`
// Memory size in gigabytes with 1GB increment.
InstanceMemorySizeInGbs pulumi.IntOutput `pulumi:"instanceMemorySizeInGbs"`
// CPU core count.
InstanceOcpuCount pulumi.IntOutput `pulumi:"instanceOcpuCount"`
// 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"`
// The name of the shape for the configuration. Example: `VM.Standard.E4.Flex`
Shape pulumi.StringOutput `pulumi:"shape"`
// The current state of the configuration.
State pulumi.StringOutput `pulumi:"state"`
// System tags for this resource. Each key is predefined and scoped to a namespace. 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 date and time that the configuration was created, expressed in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. Example: `2016-08-25T21:10:29.600Z`
TimeCreated pulumi.StringOutput `pulumi:"timeCreated"`
}
// NewConfiguration registers a new resource with the given unique name, arguments, and options.
func NewConfiguration(ctx *pulumi.Context,
name string, args *ConfigurationArgs, opts ...pulumi.ResourceOption) (*Configuration, 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'")
}
if args.DbConfigurationOverrides == nil {
return nil, errors.New("invalid value for required argument 'DbConfigurationOverrides'")
}
if args.DbVersion == nil {
return nil, errors.New("invalid value for required argument 'DbVersion'")
}
if args.DisplayName == nil {
return nil, errors.New("invalid value for required argument 'DisplayName'")
}
if args.InstanceMemorySizeInGbs == nil {
return nil, errors.New("invalid value for required argument 'InstanceMemorySizeInGbs'")
}
if args.InstanceOcpuCount == nil {
return nil, errors.New("invalid value for required argument 'InstanceOcpuCount'")
}
if args.Shape == nil {
return nil, errors.New("invalid value for required argument 'Shape'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource Configuration
err := ctx.RegisterResource("oci:Psql/configuration:Configuration", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetConfiguration gets an existing Configuration 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 GetConfiguration(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *ConfigurationState, opts ...pulumi.ResourceOption) (*Configuration, error) {
var resource Configuration
err := ctx.ReadResource("oci:Psql/configuration:Configuration", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Configuration resources.
type configurationState struct {
// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the configuration.
CompartmentId *string `pulumi:"compartmentId"`
// List of configuration details.
ConfigurationDetails []ConfigurationConfigurationDetail `pulumi:"configurationDetails"`
// Configuration overrides for a PostgreSQL instance.
DbConfigurationOverrides *ConfigurationDbConfigurationOverrides `pulumi:"dbConfigurationOverrides"`
// Version of the PostgreSQL database.
DbVersion *string `pulumi:"dbVersion"`
// (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) Details about the configuration set.
Description *string `pulumi:"description"`
// (Updatable) A user-friendly display name for the configuration. Avoid entering confidential information.
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"`
// Memory size in gigabytes with 1GB increment.
InstanceMemorySizeInGbs *int `pulumi:"instanceMemorySizeInGbs"`
// CPU core count.
InstanceOcpuCount *int `pulumi:"instanceOcpuCount"`
// 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"`
// The name of the shape for the configuration. Example: `VM.Standard.E4.Flex`
Shape *string `pulumi:"shape"`
// The current state of the configuration.
State *string `pulumi:"state"`
// System tags for this resource. Each key is predefined and scoped to a namespace. 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 date and time that the configuration was created, expressed in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. Example: `2016-08-25T21:10:29.600Z`
TimeCreated *string `pulumi:"timeCreated"`
}
type ConfigurationState struct {
// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the configuration.
CompartmentId pulumi.StringPtrInput
// List of configuration details.
ConfigurationDetails ConfigurationConfigurationDetailArrayInput
// Configuration overrides for a PostgreSQL instance.
DbConfigurationOverrides ConfigurationDbConfigurationOverridesPtrInput
// Version of the PostgreSQL database.
DbVersion 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) Details about the configuration set.
Description pulumi.StringPtrInput
// (Updatable) A user-friendly display name for the configuration. Avoid entering confidential information.
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
// Memory size in gigabytes with 1GB increment.
InstanceMemorySizeInGbs pulumi.IntPtrInput
// CPU core count.
InstanceOcpuCount pulumi.IntPtrInput
// 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
// The name of the shape for the configuration. Example: `VM.Standard.E4.Flex`
Shape pulumi.StringPtrInput
// The current state of the configuration.
State pulumi.StringPtrInput
// System tags for this resource. Each key is predefined and scoped to a namespace. 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 date and time that the configuration was created, expressed in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. Example: `2016-08-25T21:10:29.600Z`
TimeCreated pulumi.StringPtrInput
}
func (ConfigurationState) ElementType() reflect.Type {
return reflect.TypeOf((*configurationState)(nil)).Elem()
}
type configurationArgs struct {
// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the configuration.
CompartmentId string `pulumi:"compartmentId"`
// Configuration overrides for a PostgreSQL instance.
DbConfigurationOverrides ConfigurationDbConfigurationOverrides `pulumi:"dbConfigurationOverrides"`
// Version of the PostgreSQL database.
DbVersion string `pulumi:"dbVersion"`
// (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) Details about the configuration set.
Description *string `pulumi:"description"`
// (Updatable) A user-friendly display name for the configuration. Avoid entering confidential information.
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"`
// Memory size in gigabytes with 1GB increment.
InstanceMemorySizeInGbs int `pulumi:"instanceMemorySizeInGbs"`
// CPU core count.
InstanceOcpuCount int `pulumi:"instanceOcpuCount"`
// The name of the shape for the configuration. Example: `VM.Standard.E4.Flex`
Shape string `pulumi:"shape"`
// System tags for this resource. Each key is predefined and scoped to a namespace. 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 Configuration resource.
type ConfigurationArgs struct {
// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the configuration.
CompartmentId pulumi.StringInput
// Configuration overrides for a PostgreSQL instance.
DbConfigurationOverrides ConfigurationDbConfigurationOverridesInput
// Version of the PostgreSQL database.
DbVersion 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) Details about the configuration set.
Description pulumi.StringPtrInput
// (Updatable) A user-friendly display name for the configuration. Avoid entering confidential information.
DisplayName pulumi.StringInput
// (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
// Memory size in gigabytes with 1GB increment.
InstanceMemorySizeInGbs pulumi.IntInput
// CPU core count.
InstanceOcpuCount pulumi.IntInput
// The name of the shape for the configuration. Example: `VM.Standard.E4.Flex`
Shape pulumi.StringInput
// System tags for this resource. Each key is predefined and scoped to a namespace. 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 (ConfigurationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*configurationArgs)(nil)).Elem()
}
type ConfigurationInput interface {
pulumi.Input
ToConfigurationOutput() ConfigurationOutput
ToConfigurationOutputWithContext(ctx context.Context) ConfigurationOutput
}
func (*Configuration) ElementType() reflect.Type {
return reflect.TypeOf((**Configuration)(nil)).Elem()
}
func (i *Configuration) ToConfigurationOutput() ConfigurationOutput {
return i.ToConfigurationOutputWithContext(context.Background())
}
func (i *Configuration) ToConfigurationOutputWithContext(ctx context.Context) ConfigurationOutput {
return pulumi.ToOutputWithContext(ctx, i).(ConfigurationOutput)
}
// ConfigurationArrayInput is an input type that accepts ConfigurationArray and ConfigurationArrayOutput values.
// You can construct a concrete instance of `ConfigurationArrayInput` via:
//
// ConfigurationArray{ ConfigurationArgs{...} }
type ConfigurationArrayInput interface {
pulumi.Input
ToConfigurationArrayOutput() ConfigurationArrayOutput
ToConfigurationArrayOutputWithContext(context.Context) ConfigurationArrayOutput
}
type ConfigurationArray []ConfigurationInput
func (ConfigurationArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Configuration)(nil)).Elem()
}
func (i ConfigurationArray) ToConfigurationArrayOutput() ConfigurationArrayOutput {
return i.ToConfigurationArrayOutputWithContext(context.Background())
}
func (i ConfigurationArray) ToConfigurationArrayOutputWithContext(ctx context.Context) ConfigurationArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ConfigurationArrayOutput)
}
// ConfigurationMapInput is an input type that accepts ConfigurationMap and ConfigurationMapOutput values.
// You can construct a concrete instance of `ConfigurationMapInput` via:
//
// ConfigurationMap{ "key": ConfigurationArgs{...} }
type ConfigurationMapInput interface {
pulumi.Input
ToConfigurationMapOutput() ConfigurationMapOutput
ToConfigurationMapOutputWithContext(context.Context) ConfigurationMapOutput
}
type ConfigurationMap map[string]ConfigurationInput
func (ConfigurationMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Configuration)(nil)).Elem()
}
func (i ConfigurationMap) ToConfigurationMapOutput() ConfigurationMapOutput {
return i.ToConfigurationMapOutputWithContext(context.Background())
}
func (i ConfigurationMap) ToConfigurationMapOutputWithContext(ctx context.Context) ConfigurationMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(ConfigurationMapOutput)
}
type ConfigurationOutput struct{ *pulumi.OutputState }
func (ConfigurationOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Configuration)(nil)).Elem()
}
func (o ConfigurationOutput) ToConfigurationOutput() ConfigurationOutput {
return o
}
func (o ConfigurationOutput) ToConfigurationOutputWithContext(ctx context.Context) ConfigurationOutput {
return o
}
// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the configuration.
func (o ConfigurationOutput) CompartmentId() pulumi.StringOutput {
return o.ApplyT(func(v *Configuration) pulumi.StringOutput { return v.CompartmentId }).(pulumi.StringOutput)
}
// List of configuration details.
func (o ConfigurationOutput) ConfigurationDetails() ConfigurationConfigurationDetailArrayOutput {
return o.ApplyT(func(v *Configuration) ConfigurationConfigurationDetailArrayOutput { return v.ConfigurationDetails }).(ConfigurationConfigurationDetailArrayOutput)
}
// Configuration overrides for a PostgreSQL instance.
func (o ConfigurationOutput) DbConfigurationOverrides() ConfigurationDbConfigurationOverridesOutput {
return o.ApplyT(func(v *Configuration) ConfigurationDbConfigurationOverridesOutput { return v.DbConfigurationOverrides }).(ConfigurationDbConfigurationOverridesOutput)
}
// Version of the PostgreSQL database.
func (o ConfigurationOutput) DbVersion() pulumi.StringOutput {
return o.ApplyT(func(v *Configuration) pulumi.StringOutput { return v.DbVersion }).(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 ConfigurationOutput) DefinedTags() pulumi.MapOutput {
return o.ApplyT(func(v *Configuration) pulumi.MapOutput { return v.DefinedTags }).(pulumi.MapOutput)
}
// (Updatable) Details about the configuration set.
func (o ConfigurationOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v *Configuration) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput)
}
// (Updatable) A user-friendly display name for the configuration. Avoid entering confidential information.
func (o ConfigurationOutput) DisplayName() pulumi.StringOutput {
return o.ApplyT(func(v *Configuration) 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 ConfigurationOutput) FreeformTags() pulumi.MapOutput {
return o.ApplyT(func(v *Configuration) pulumi.MapOutput { return v.FreeformTags }).(pulumi.MapOutput)
}
// Memory size in gigabytes with 1GB increment.
func (o ConfigurationOutput) InstanceMemorySizeInGbs() pulumi.IntOutput {
return o.ApplyT(func(v *Configuration) pulumi.IntOutput { return v.InstanceMemorySizeInGbs }).(pulumi.IntOutput)
}
// CPU core count.
func (o ConfigurationOutput) InstanceOcpuCount() pulumi.IntOutput {
return o.ApplyT(func(v *Configuration) pulumi.IntOutput { return v.InstanceOcpuCount }).(pulumi.IntOutput)
}
// 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 ConfigurationOutput) LifecycleDetails() pulumi.StringOutput {
return o.ApplyT(func(v *Configuration) pulumi.StringOutput { return v.LifecycleDetails }).(pulumi.StringOutput)
}
// The name of the shape for the configuration. Example: `VM.Standard.E4.Flex`
func (o ConfigurationOutput) Shape() pulumi.StringOutput {
return o.ApplyT(func(v *Configuration) pulumi.StringOutput { return v.Shape }).(pulumi.StringOutput)
}
// The current state of the configuration.
func (o ConfigurationOutput) State() pulumi.StringOutput {
return o.ApplyT(func(v *Configuration) pulumi.StringOutput { return v.State }).(pulumi.StringOutput)
}
// System tags for this resource. Each key is predefined and scoped to a namespace. 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 ConfigurationOutput) SystemTags() pulumi.MapOutput {
return o.ApplyT(func(v *Configuration) pulumi.MapOutput { return v.SystemTags }).(pulumi.MapOutput)
}
// The date and time that the configuration was created, expressed in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. Example: `2016-08-25T21:10:29.600Z`
func (o ConfigurationOutput) TimeCreated() pulumi.StringOutput {
return o.ApplyT(func(v *Configuration) pulumi.StringOutput { return v.TimeCreated }).(pulumi.StringOutput)
}
type ConfigurationArrayOutput struct{ *pulumi.OutputState }
func (ConfigurationArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Configuration)(nil)).Elem()
}
func (o ConfigurationArrayOutput) ToConfigurationArrayOutput() ConfigurationArrayOutput {
return o
}
func (o ConfigurationArrayOutput) ToConfigurationArrayOutputWithContext(ctx context.Context) ConfigurationArrayOutput {
return o
}
func (o ConfigurationArrayOutput) Index(i pulumi.IntInput) ConfigurationOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Configuration {
return vs[0].([]*Configuration)[vs[1].(int)]
}).(ConfigurationOutput)
}
type ConfigurationMapOutput struct{ *pulumi.OutputState }
func (ConfigurationMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Configuration)(nil)).Elem()
}
func (o ConfigurationMapOutput) ToConfigurationMapOutput() ConfigurationMapOutput {
return o
}
func (o ConfigurationMapOutput) ToConfigurationMapOutputWithContext(ctx context.Context) ConfigurationMapOutput {
return o
}
func (o ConfigurationMapOutput) MapIndex(k pulumi.StringInput) ConfigurationOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Configuration {
return vs[0].(map[string]*Configuration)[vs[1].(string)]
}).(ConfigurationOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ConfigurationInput)(nil)).Elem(), &Configuration{})
pulumi.RegisterInputType(reflect.TypeOf((*ConfigurationArrayInput)(nil)).Elem(), ConfigurationArray{})
pulumi.RegisterInputType(reflect.TypeOf((*ConfigurationMapInput)(nil)).Elem(), ConfigurationMap{})
pulumi.RegisterOutputType(ConfigurationOutput{})
pulumi.RegisterOutputType(ConfigurationArrayOutput{})
pulumi.RegisterOutputType(ConfigurationMapOutput{})
}