generated from pulumi/pulumi-tf-provider-boilerplate
/
zone.go
538 lines (475 loc) · 25.2 KB
/
zone.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
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
// 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 dns
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 Zone resource in Oracle Cloud Infrastructure DNS service.
//
// Creates a new zone in the specified compartment. For global zones, if the `Content-Type` header for the request
// is `text/dns`, the `compartmentId` query parameter is required. `text/dns` for the `Content-Type` header is
// not supported for private zones. Query parameter scope with a value of `PRIVATE` is required when creating a
// private zone. Private zones must have a zone type of `PRIMARY`. Creating a private zone at or under
// `oraclevcn.com` within the default protected view of a VCN-dedicated resolver is not permitted.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-oci/sdk/go/oci/Dns"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := Dns.NewZone(ctx, "test_zone", &Dns.ZoneArgs{
// CompartmentId: pulumi.Any(compartmentId),
// Name: pulumi.Any(zoneName),
// ZoneType: pulumi.Any(zoneZoneType),
// DefinedTags: pulumi.Any(zoneDefinedTags),
// ExternalDownstreams: dns.ZoneExternalDownstreamArray{
// &dns.ZoneExternalDownstreamArgs{
// Address: pulumi.Any(zoneExternalDownstreamsAddress),
// Port: pulumi.Any(zoneExternalDownstreamsPort),
// TsigKeyId: pulumi.Any(testTsigKey.Id),
// },
// },
// ExternalMasters: dns.ZoneExternalMasterArray{
// &dns.ZoneExternalMasterArgs{
// Address: pulumi.Any(zoneExternalMastersAddress),
// Port: pulumi.Any(zoneExternalMastersPort),
// TsigKeyId: pulumi.Any(testTsigKey.Id),
// },
// },
// FreeformTags: pulumi.Any(zoneFreeformTags),
// Scope: pulumi.Any(zoneScope),
// ViewId: pulumi.Any(testView.Id),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// Zones can be imported using the `id`, e.g.
//
// ```sh
// $ pulumi import oci:Dns/zone:Zone test_zone "id"
// ```
type Zone struct {
pulumi.CustomResourceState
// (Updatable) The OCID of the compartment the resource belongs to.
CompartmentId pulumi.StringOutput `pulumi:"compartmentId"`
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
//
// **Example:** `{"Operations": {"CostCenter": "42"}}`
DefinedTags pulumi.MapOutput `pulumi:"definedTags"`
// (Updatable) External secondary servers for the zone. This field is currently not supported when `zoneType` is `SECONDARY` or `scope` is `PRIVATE`.
ExternalDownstreams ZoneExternalDownstreamArrayOutput `pulumi:"externalDownstreams"`
// (Updatable) External master servers for the zone. `externalMasters` becomes a required parameter when the `zoneType` value is `SECONDARY`.
ExternalMasters ZoneExternalMasterArrayOutput `pulumi:"externalMasters"`
// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
//
// **Example:** `{"Department": "Finance"}`
FreeformTags pulumi.MapOutput `pulumi:"freeformTags"`
// A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.
IsProtected pulumi.BoolOutput `pulumi:"isProtected"`
// The name of the zone.
Name pulumi.StringOutput `pulumi:"name"`
// The authoritative nameservers for the zone.
Nameservers ZoneNameserverArrayOutput `pulumi:"nameservers"`
// Specifies to operate only on resources that have a matching DNS scope.
// This value will be null for zones in the global DNS and `PRIVATE` when creating a private zone.
Scope pulumi.StringOutput `pulumi:"scope"`
// The canonical absolute URL of the resource.
Self pulumi.StringOutput `pulumi:"self"`
// The current serial of the zone. As seen in the zone's SOA record.
Serial pulumi.IntOutput `pulumi:"serial"`
// The current state of the zone resource.
State pulumi.StringOutput `pulumi:"state"`
// The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
TimeCreated pulumi.StringOutput `pulumi:"timeCreated"`
// Version is the never-repeating, totally-orderable, version of the zone, from which the serial field of the zone's SOA record is derived.
Version pulumi.StringOutput `pulumi:"version"`
// The OCID of the private view containing the zone. This value will be null for zones in the global DNS, which are publicly resolvable and not part of a private view.
ViewId pulumi.StringPtrOutput `pulumi:"viewId"`
// The Oracle Cloud Infrastructure nameservers that transfer the zone data with external nameservers.
ZoneTransferServers ZoneZoneTransferServerArrayOutput `pulumi:"zoneTransferServers"`
// The type of the zone. Must be either `PRIMARY` or `SECONDARY`. `SECONDARY` is only supported for GLOBAL zones.
//
// ** 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
ZoneType pulumi.StringOutput `pulumi:"zoneType"`
}
// NewZone registers a new resource with the given unique name, arguments, and options.
func NewZone(ctx *pulumi.Context,
name string, args *ZoneArgs, opts ...pulumi.ResourceOption) (*Zone, 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.ZoneType == nil {
return nil, errors.New("invalid value for required argument 'ZoneType'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource Zone
err := ctx.RegisterResource("oci:Dns/zone:Zone", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetZone gets an existing Zone 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 GetZone(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *ZoneState, opts ...pulumi.ResourceOption) (*Zone, error) {
var resource Zone
err := ctx.ReadResource("oci:Dns/zone:Zone", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Zone resources.
type zoneState struct {
// (Updatable) The OCID of the compartment the resource belongs to.
CompartmentId *string `pulumi:"compartmentId"`
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
//
// **Example:** `{"Operations": {"CostCenter": "42"}}`
DefinedTags map[string]interface{} `pulumi:"definedTags"`
// (Updatable) External secondary servers for the zone. This field is currently not supported when `zoneType` is `SECONDARY` or `scope` is `PRIVATE`.
ExternalDownstreams []ZoneExternalDownstream `pulumi:"externalDownstreams"`
// (Updatable) External master servers for the zone. `externalMasters` becomes a required parameter when the `zoneType` value is `SECONDARY`.
ExternalMasters []ZoneExternalMaster `pulumi:"externalMasters"`
// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
//
// **Example:** `{"Department": "Finance"}`
FreeformTags map[string]interface{} `pulumi:"freeformTags"`
// A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.
IsProtected *bool `pulumi:"isProtected"`
// The name of the zone.
Name *string `pulumi:"name"`
// The authoritative nameservers for the zone.
Nameservers []ZoneNameserver `pulumi:"nameservers"`
// Specifies to operate only on resources that have a matching DNS scope.
// This value will be null for zones in the global DNS and `PRIVATE` when creating a private zone.
Scope *string `pulumi:"scope"`
// The canonical absolute URL of the resource.
Self *string `pulumi:"self"`
// The current serial of the zone. As seen in the zone's SOA record.
Serial *int `pulumi:"serial"`
// The current state of the zone resource.
State *string `pulumi:"state"`
// The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
TimeCreated *string `pulumi:"timeCreated"`
// Version is the never-repeating, totally-orderable, version of the zone, from which the serial field of the zone's SOA record is derived.
Version *string `pulumi:"version"`
// The OCID of the private view containing the zone. This value will be null for zones in the global DNS, which are publicly resolvable and not part of a private view.
ViewId *string `pulumi:"viewId"`
// The Oracle Cloud Infrastructure nameservers that transfer the zone data with external nameservers.
ZoneTransferServers []ZoneZoneTransferServer `pulumi:"zoneTransferServers"`
// The type of the zone. Must be either `PRIMARY` or `SECONDARY`. `SECONDARY` is only supported for GLOBAL zones.
//
// ** 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
ZoneType *string `pulumi:"zoneType"`
}
type ZoneState struct {
// (Updatable) The OCID of the compartment the resource belongs to.
CompartmentId pulumi.StringPtrInput
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
//
// **Example:** `{"Operations": {"CostCenter": "42"}}`
DefinedTags pulumi.MapInput
// (Updatable) External secondary servers for the zone. This field is currently not supported when `zoneType` is `SECONDARY` or `scope` is `PRIVATE`.
ExternalDownstreams ZoneExternalDownstreamArrayInput
// (Updatable) External master servers for the zone. `externalMasters` becomes a required parameter when the `zoneType` value is `SECONDARY`.
ExternalMasters ZoneExternalMasterArrayInput
// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
//
// **Example:** `{"Department": "Finance"}`
FreeformTags pulumi.MapInput
// A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.
IsProtected pulumi.BoolPtrInput
// The name of the zone.
Name pulumi.StringPtrInput
// The authoritative nameservers for the zone.
Nameservers ZoneNameserverArrayInput
// Specifies to operate only on resources that have a matching DNS scope.
// This value will be null for zones in the global DNS and `PRIVATE` when creating a private zone.
Scope pulumi.StringPtrInput
// The canonical absolute URL of the resource.
Self pulumi.StringPtrInput
// The current serial of the zone. As seen in the zone's SOA record.
Serial pulumi.IntPtrInput
// The current state of the zone resource.
State pulumi.StringPtrInput
// The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
TimeCreated pulumi.StringPtrInput
// Version is the never-repeating, totally-orderable, version of the zone, from which the serial field of the zone's SOA record is derived.
Version pulumi.StringPtrInput
// The OCID of the private view containing the zone. This value will be null for zones in the global DNS, which are publicly resolvable and not part of a private view.
ViewId pulumi.StringPtrInput
// The Oracle Cloud Infrastructure nameservers that transfer the zone data with external nameservers.
ZoneTransferServers ZoneZoneTransferServerArrayInput
// The type of the zone. Must be either `PRIMARY` or `SECONDARY`. `SECONDARY` is only supported for GLOBAL zones.
//
// ** 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
ZoneType pulumi.StringPtrInput
}
func (ZoneState) ElementType() reflect.Type {
return reflect.TypeOf((*zoneState)(nil)).Elem()
}
type zoneArgs struct {
// (Updatable) The OCID of the compartment the resource belongs to.
CompartmentId string `pulumi:"compartmentId"`
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
//
// **Example:** `{"Operations": {"CostCenter": "42"}}`
DefinedTags map[string]interface{} `pulumi:"definedTags"`
// (Updatable) External secondary servers for the zone. This field is currently not supported when `zoneType` is `SECONDARY` or `scope` is `PRIVATE`.
ExternalDownstreams []ZoneExternalDownstream `pulumi:"externalDownstreams"`
// (Updatable) External master servers for the zone. `externalMasters` becomes a required parameter when the `zoneType` value is `SECONDARY`.
ExternalMasters []ZoneExternalMaster `pulumi:"externalMasters"`
// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
//
// **Example:** `{"Department": "Finance"}`
FreeformTags map[string]interface{} `pulumi:"freeformTags"`
// The name of the zone.
Name *string `pulumi:"name"`
// Specifies to operate only on resources that have a matching DNS scope.
// This value will be null for zones in the global DNS and `PRIVATE` when creating a private zone.
Scope *string `pulumi:"scope"`
// The OCID of the private view containing the zone. This value will be null for zones in the global DNS, which are publicly resolvable and not part of a private view.
ViewId *string `pulumi:"viewId"`
// The type of the zone. Must be either `PRIMARY` or `SECONDARY`. `SECONDARY` is only supported for GLOBAL zones.
//
// ** 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
ZoneType string `pulumi:"zoneType"`
}
// The set of arguments for constructing a Zone resource.
type ZoneArgs struct {
// (Updatable) The OCID of the compartment the resource belongs to.
CompartmentId pulumi.StringInput
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
//
// **Example:** `{"Operations": {"CostCenter": "42"}}`
DefinedTags pulumi.MapInput
// (Updatable) External secondary servers for the zone. This field is currently not supported when `zoneType` is `SECONDARY` or `scope` is `PRIVATE`.
ExternalDownstreams ZoneExternalDownstreamArrayInput
// (Updatable) External master servers for the zone. `externalMasters` becomes a required parameter when the `zoneType` value is `SECONDARY`.
ExternalMasters ZoneExternalMasterArrayInput
// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
//
// **Example:** `{"Department": "Finance"}`
FreeformTags pulumi.MapInput
// The name of the zone.
Name pulumi.StringPtrInput
// Specifies to operate only on resources that have a matching DNS scope.
// This value will be null for zones in the global DNS and `PRIVATE` when creating a private zone.
Scope pulumi.StringPtrInput
// The OCID of the private view containing the zone. This value will be null for zones in the global DNS, which are publicly resolvable and not part of a private view.
ViewId pulumi.StringPtrInput
// The type of the zone. Must be either `PRIMARY` or `SECONDARY`. `SECONDARY` is only supported for GLOBAL zones.
//
// ** 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
ZoneType pulumi.StringInput
}
func (ZoneArgs) ElementType() reflect.Type {
return reflect.TypeOf((*zoneArgs)(nil)).Elem()
}
type ZoneInput interface {
pulumi.Input
ToZoneOutput() ZoneOutput
ToZoneOutputWithContext(ctx context.Context) ZoneOutput
}
func (*Zone) ElementType() reflect.Type {
return reflect.TypeOf((**Zone)(nil)).Elem()
}
func (i *Zone) ToZoneOutput() ZoneOutput {
return i.ToZoneOutputWithContext(context.Background())
}
func (i *Zone) ToZoneOutputWithContext(ctx context.Context) ZoneOutput {
return pulumi.ToOutputWithContext(ctx, i).(ZoneOutput)
}
// ZoneArrayInput is an input type that accepts ZoneArray and ZoneArrayOutput values.
// You can construct a concrete instance of `ZoneArrayInput` via:
//
// ZoneArray{ ZoneArgs{...} }
type ZoneArrayInput interface {
pulumi.Input
ToZoneArrayOutput() ZoneArrayOutput
ToZoneArrayOutputWithContext(context.Context) ZoneArrayOutput
}
type ZoneArray []ZoneInput
func (ZoneArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Zone)(nil)).Elem()
}
func (i ZoneArray) ToZoneArrayOutput() ZoneArrayOutput {
return i.ToZoneArrayOutputWithContext(context.Background())
}
func (i ZoneArray) ToZoneArrayOutputWithContext(ctx context.Context) ZoneArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ZoneArrayOutput)
}
// ZoneMapInput is an input type that accepts ZoneMap and ZoneMapOutput values.
// You can construct a concrete instance of `ZoneMapInput` via:
//
// ZoneMap{ "key": ZoneArgs{...} }
type ZoneMapInput interface {
pulumi.Input
ToZoneMapOutput() ZoneMapOutput
ToZoneMapOutputWithContext(context.Context) ZoneMapOutput
}
type ZoneMap map[string]ZoneInput
func (ZoneMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Zone)(nil)).Elem()
}
func (i ZoneMap) ToZoneMapOutput() ZoneMapOutput {
return i.ToZoneMapOutputWithContext(context.Background())
}
func (i ZoneMap) ToZoneMapOutputWithContext(ctx context.Context) ZoneMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(ZoneMapOutput)
}
type ZoneOutput struct{ *pulumi.OutputState }
func (ZoneOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Zone)(nil)).Elem()
}
func (o ZoneOutput) ToZoneOutput() ZoneOutput {
return o
}
func (o ZoneOutput) ToZoneOutputWithContext(ctx context.Context) ZoneOutput {
return o
}
// (Updatable) The OCID of the compartment the resource belongs to.
func (o ZoneOutput) CompartmentId() pulumi.StringOutput {
return o.ApplyT(func(v *Zone) pulumi.StringOutput { return v.CompartmentId }).(pulumi.StringOutput)
}
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
//
// **Example:** `{"Operations": {"CostCenter": "42"}}`
func (o ZoneOutput) DefinedTags() pulumi.MapOutput {
return o.ApplyT(func(v *Zone) pulumi.MapOutput { return v.DefinedTags }).(pulumi.MapOutput)
}
// (Updatable) External secondary servers for the zone. This field is currently not supported when `zoneType` is `SECONDARY` or `scope` is `PRIVATE`.
func (o ZoneOutput) ExternalDownstreams() ZoneExternalDownstreamArrayOutput {
return o.ApplyT(func(v *Zone) ZoneExternalDownstreamArrayOutput { return v.ExternalDownstreams }).(ZoneExternalDownstreamArrayOutput)
}
// (Updatable) External master servers for the zone. `externalMasters` becomes a required parameter when the `zoneType` value is `SECONDARY`.
func (o ZoneOutput) ExternalMasters() ZoneExternalMasterArrayOutput {
return o.ApplyT(func(v *Zone) ZoneExternalMasterArrayOutput { return v.ExternalMasters }).(ZoneExternalMasterArrayOutput)
}
// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
//
// **Example:** `{"Department": "Finance"}`
func (o ZoneOutput) FreeformTags() pulumi.MapOutput {
return o.ApplyT(func(v *Zone) pulumi.MapOutput { return v.FreeformTags }).(pulumi.MapOutput)
}
// A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.
func (o ZoneOutput) IsProtected() pulumi.BoolOutput {
return o.ApplyT(func(v *Zone) pulumi.BoolOutput { return v.IsProtected }).(pulumi.BoolOutput)
}
// The name of the zone.
func (o ZoneOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *Zone) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// The authoritative nameservers for the zone.
func (o ZoneOutput) Nameservers() ZoneNameserverArrayOutput {
return o.ApplyT(func(v *Zone) ZoneNameserverArrayOutput { return v.Nameservers }).(ZoneNameserverArrayOutput)
}
// Specifies to operate only on resources that have a matching DNS scope.
// This value will be null for zones in the global DNS and `PRIVATE` when creating a private zone.
func (o ZoneOutput) Scope() pulumi.StringOutput {
return o.ApplyT(func(v *Zone) pulumi.StringOutput { return v.Scope }).(pulumi.StringOutput)
}
// The canonical absolute URL of the resource.
func (o ZoneOutput) Self() pulumi.StringOutput {
return o.ApplyT(func(v *Zone) pulumi.StringOutput { return v.Self }).(pulumi.StringOutput)
}
// The current serial of the zone. As seen in the zone's SOA record.
func (o ZoneOutput) Serial() pulumi.IntOutput {
return o.ApplyT(func(v *Zone) pulumi.IntOutput { return v.Serial }).(pulumi.IntOutput)
}
// The current state of the zone resource.
func (o ZoneOutput) State() pulumi.StringOutput {
return o.ApplyT(func(v *Zone) pulumi.StringOutput { return v.State }).(pulumi.StringOutput)
}
// The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
func (o ZoneOutput) TimeCreated() pulumi.StringOutput {
return o.ApplyT(func(v *Zone) pulumi.StringOutput { return v.TimeCreated }).(pulumi.StringOutput)
}
// Version is the never-repeating, totally-orderable, version of the zone, from which the serial field of the zone's SOA record is derived.
func (o ZoneOutput) Version() pulumi.StringOutput {
return o.ApplyT(func(v *Zone) pulumi.StringOutput { return v.Version }).(pulumi.StringOutput)
}
// The OCID of the private view containing the zone. This value will be null for zones in the global DNS, which are publicly resolvable and not part of a private view.
func (o ZoneOutput) ViewId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Zone) pulumi.StringPtrOutput { return v.ViewId }).(pulumi.StringPtrOutput)
}
// The Oracle Cloud Infrastructure nameservers that transfer the zone data with external nameservers.
func (o ZoneOutput) ZoneTransferServers() ZoneZoneTransferServerArrayOutput {
return o.ApplyT(func(v *Zone) ZoneZoneTransferServerArrayOutput { return v.ZoneTransferServers }).(ZoneZoneTransferServerArrayOutput)
}
// The type of the zone. Must be either `PRIMARY` or `SECONDARY`. `SECONDARY` is only supported for GLOBAL zones.
//
// ** 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 ZoneOutput) ZoneType() pulumi.StringOutput {
return o.ApplyT(func(v *Zone) pulumi.StringOutput { return v.ZoneType }).(pulumi.StringOutput)
}
type ZoneArrayOutput struct{ *pulumi.OutputState }
func (ZoneArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Zone)(nil)).Elem()
}
func (o ZoneArrayOutput) ToZoneArrayOutput() ZoneArrayOutput {
return o
}
func (o ZoneArrayOutput) ToZoneArrayOutputWithContext(ctx context.Context) ZoneArrayOutput {
return o
}
func (o ZoneArrayOutput) Index(i pulumi.IntInput) ZoneOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Zone {
return vs[0].([]*Zone)[vs[1].(int)]
}).(ZoneOutput)
}
type ZoneMapOutput struct{ *pulumi.OutputState }
func (ZoneMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Zone)(nil)).Elem()
}
func (o ZoneMapOutput) ToZoneMapOutput() ZoneMapOutput {
return o
}
func (o ZoneMapOutput) ToZoneMapOutputWithContext(ctx context.Context) ZoneMapOutput {
return o
}
func (o ZoneMapOutput) MapIndex(k pulumi.StringInput) ZoneOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Zone {
return vs[0].(map[string]*Zone)[vs[1].(string)]
}).(ZoneOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ZoneInput)(nil)).Elem(), &Zone{})
pulumi.RegisterInputType(reflect.TypeOf((*ZoneArrayInput)(nil)).Elem(), ZoneArray{})
pulumi.RegisterInputType(reflect.TypeOf((*ZoneMapInput)(nil)).Elem(), ZoneMap{})
pulumi.RegisterOutputType(ZoneOutput{})
pulumi.RegisterOutputType(ZoneArrayOutput{})
pulumi.RegisterOutputType(ZoneMapOutput{})
}