/
gtmDomain.go
595 lines (515 loc) · 28.9 KB
/
gtmDomain.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
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
// 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 trafficmanagement
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Use the `GtmDomain` resource to create, configure, and import a GTM Domain, which is a basic building block of a traffic management configuration.
//
// > **Note** Import requires an ID with this format: `existingDomainName`.
//
// ## Example Usage
//
// Basic usage:
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-akamai/sdk/v3/go/akamai"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := akamai.NewGtmDomain(ctx, "demodomain", &akamai.GtmDomainArgs{
// Comment: pulumi.String("some comment"),
// Contract: pulumi.String("XXX"),
// Group: pulumi.String("100"),
// Type: pulumi.String("basic"),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// Deprecated: akamai.trafficmanagement.GtmDomain has been deprecated in favor of akamai.GtmDomain
type GtmDomain struct {
pulumi.CustomResourceState
// A boolean that if set to `true`, GTM collapses CNAME redirections in DNS answers when it knows the target of the CNAME.
CnameCoalescingEnabled pulumi.BoolPtrOutput `pulumi:"cnameCoalescingEnabled"`
// A descriptive note about changes to the domain. The maximum is 4000 characters.
Comment pulumi.StringPtrOutput `pulumi:"comment"`
// If creating a domain, the contract ID.
Contract pulumi.StringPtrOutput `pulumi:"contract"`
// Specifies the download penalty score. The default is `75`. If the download encounters an error, the web agent computes a score that is either the download time in seconds or a penalty score.
DefaultErrorPenalty pulumi.IntPtrOutput `pulumi:"defaultErrorPenalty"`
DefaultHealthMax pulumi.Float64Output `pulumi:"defaultHealthMax"`
DefaultHealthMultiplier pulumi.Float64Output `pulumi:"defaultHealthMultiplier"`
DefaultHealthThreshold pulumi.Float64Output `pulumi:"defaultHealthThreshold"`
DefaultMaxUnreachablePenalty pulumi.IntOutput `pulumi:"defaultMaxUnreachablePenalty"`
// Specifies an optional Base64-encoded certificate that corresponds with the private key for TLS-based liveness tests (HTTPS, SMTPS, POPS, and TCPS).
DefaultSslClientCertificate pulumi.StringPtrOutput `pulumi:"defaultSslClientCertificate"`
// Specifies a Base64-encoded private key that corresponds with the TLS certificate for HTTPS, SMTPS, POPS, and TCPS liveness tests.
DefaultSslClientPrivateKey pulumi.StringPtrOutput `pulumi:"defaultSslClientPrivateKey"`
// Specifies the timeout penalty score. Default is `25`.
DefaultTimeoutPenalty pulumi.IntPtrOutput `pulumi:"defaultTimeoutPenalty"`
DefaultUnreachableThreshold pulumi.Float64Output `pulumi:"defaultUnreachableThreshold"`
// A list of email addresses to notify when a change is made to the domain.
EmailNotificationLists pulumi.StringArrayOutput `pulumi:"emailNotificationLists"`
// A boolean indicating whether whether the GTM Domain is using end user client subnet mapping.
EndUserMappingEnabled pulumi.BoolPtrOutput `pulumi:"endUserMappingEnabled"`
// If creating a domain, the currently selected group ID.
Group pulumi.StringPtrOutput `pulumi:"group"`
// A boolean indicating whether one or more measurements of load (resources) are defined by you and supplied by each data center in real time to balance load.
LoadFeedback pulumi.BoolPtrOutput `pulumi:"loadFeedback"`
// Indicates the percentage of load imbalance factor (LIF) for the domain.
LoadImbalancePercentage pulumi.Float64PtrOutput `pulumi:"loadImbalancePercentage"`
MapUpdateInterval pulumi.IntOutput `pulumi:"mapUpdateInterval"`
MaxProperties pulumi.IntOutput `pulumi:"maxProperties"`
MaxResources pulumi.IntOutput `pulumi:"maxResources"`
MaxTestTimeout pulumi.Float64Output `pulumi:"maxTestTimeout"`
MaxTtl pulumi.IntOutput `pulumi:"maxTtl"`
MinPingableRegionFraction pulumi.Float64Output `pulumi:"minPingableRegionFraction"`
MinTestInterval pulumi.IntOutput `pulumi:"minTestInterval"`
MinTtl pulumi.IntOutput `pulumi:"minTtl"`
// The DNS name for a collection of GTM Properties.
Name pulumi.StringOutput `pulumi:"name"`
PingInterval pulumi.IntOutput `pulumi:"pingInterval"`
PingPacketSize pulumi.IntOutput `pulumi:"pingPacketSize"`
RoundRobinPrefix pulumi.StringOutput `pulumi:"roundRobinPrefix"`
ServermonitorLivenessCount pulumi.IntOutput `pulumi:"servermonitorLivenessCount"`
ServermonitorLoadCount pulumi.IntOutput `pulumi:"servermonitorLoadCount"`
ServermonitorPool pulumi.StringOutput `pulumi:"servermonitorPool"`
// Th type of GTM domain. Options include `failover-only`, `static`, `weighted`, `basic`, or `full`.
Type pulumi.StringOutput `pulumi:"type"`
// A boolean that, if set to `true`, waits for transaction to complete.
WaitOnComplete pulumi.BoolPtrOutput `pulumi:"waitOnComplete"`
}
// NewGtmDomain registers a new resource with the given unique name, arguments, and options.
func NewGtmDomain(ctx *pulumi.Context,
name string, args *GtmDomainArgs, opts ...pulumi.ResourceOption) (*GtmDomain, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Type == nil {
return nil, errors.New("invalid value for required argument 'Type'")
}
var resource GtmDomain
err := ctx.RegisterResource("akamai:trafficmanagement/gtmDomain:GtmDomain", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetGtmDomain gets an existing GtmDomain 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 GetGtmDomain(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *GtmDomainState, opts ...pulumi.ResourceOption) (*GtmDomain, error) {
var resource GtmDomain
err := ctx.ReadResource("akamai:trafficmanagement/gtmDomain:GtmDomain", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering GtmDomain resources.
type gtmDomainState struct {
// A boolean that if set to `true`, GTM collapses CNAME redirections in DNS answers when it knows the target of the CNAME.
CnameCoalescingEnabled *bool `pulumi:"cnameCoalescingEnabled"`
// A descriptive note about changes to the domain. The maximum is 4000 characters.
Comment *string `pulumi:"comment"`
// If creating a domain, the contract ID.
Contract *string `pulumi:"contract"`
// Specifies the download penalty score. The default is `75`. If the download encounters an error, the web agent computes a score that is either the download time in seconds or a penalty score.
DefaultErrorPenalty *int `pulumi:"defaultErrorPenalty"`
DefaultHealthMax *float64 `pulumi:"defaultHealthMax"`
DefaultHealthMultiplier *float64 `pulumi:"defaultHealthMultiplier"`
DefaultHealthThreshold *float64 `pulumi:"defaultHealthThreshold"`
DefaultMaxUnreachablePenalty *int `pulumi:"defaultMaxUnreachablePenalty"`
// Specifies an optional Base64-encoded certificate that corresponds with the private key for TLS-based liveness tests (HTTPS, SMTPS, POPS, and TCPS).
DefaultSslClientCertificate *string `pulumi:"defaultSslClientCertificate"`
// Specifies a Base64-encoded private key that corresponds with the TLS certificate for HTTPS, SMTPS, POPS, and TCPS liveness tests.
DefaultSslClientPrivateKey *string `pulumi:"defaultSslClientPrivateKey"`
// Specifies the timeout penalty score. Default is `25`.
DefaultTimeoutPenalty *int `pulumi:"defaultTimeoutPenalty"`
DefaultUnreachableThreshold *float64 `pulumi:"defaultUnreachableThreshold"`
// A list of email addresses to notify when a change is made to the domain.
EmailNotificationLists []string `pulumi:"emailNotificationLists"`
// A boolean indicating whether whether the GTM Domain is using end user client subnet mapping.
EndUserMappingEnabled *bool `pulumi:"endUserMappingEnabled"`
// If creating a domain, the currently selected group ID.
Group *string `pulumi:"group"`
// A boolean indicating whether one or more measurements of load (resources) are defined by you and supplied by each data center in real time to balance load.
LoadFeedback *bool `pulumi:"loadFeedback"`
// Indicates the percentage of load imbalance factor (LIF) for the domain.
LoadImbalancePercentage *float64 `pulumi:"loadImbalancePercentage"`
MapUpdateInterval *int `pulumi:"mapUpdateInterval"`
MaxProperties *int `pulumi:"maxProperties"`
MaxResources *int `pulumi:"maxResources"`
MaxTestTimeout *float64 `pulumi:"maxTestTimeout"`
MaxTtl *int `pulumi:"maxTtl"`
MinPingableRegionFraction *float64 `pulumi:"minPingableRegionFraction"`
MinTestInterval *int `pulumi:"minTestInterval"`
MinTtl *int `pulumi:"minTtl"`
// The DNS name for a collection of GTM Properties.
Name *string `pulumi:"name"`
PingInterval *int `pulumi:"pingInterval"`
PingPacketSize *int `pulumi:"pingPacketSize"`
RoundRobinPrefix *string `pulumi:"roundRobinPrefix"`
ServermonitorLivenessCount *int `pulumi:"servermonitorLivenessCount"`
ServermonitorLoadCount *int `pulumi:"servermonitorLoadCount"`
ServermonitorPool *string `pulumi:"servermonitorPool"`
// Th type of GTM domain. Options include `failover-only`, `static`, `weighted`, `basic`, or `full`.
Type *string `pulumi:"type"`
// A boolean that, if set to `true`, waits for transaction to complete.
WaitOnComplete *bool `pulumi:"waitOnComplete"`
}
type GtmDomainState struct {
// A boolean that if set to `true`, GTM collapses CNAME redirections in DNS answers when it knows the target of the CNAME.
CnameCoalescingEnabled pulumi.BoolPtrInput
// A descriptive note about changes to the domain. The maximum is 4000 characters.
Comment pulumi.StringPtrInput
// If creating a domain, the contract ID.
Contract pulumi.StringPtrInput
// Specifies the download penalty score. The default is `75`. If the download encounters an error, the web agent computes a score that is either the download time in seconds or a penalty score.
DefaultErrorPenalty pulumi.IntPtrInput
DefaultHealthMax pulumi.Float64PtrInput
DefaultHealthMultiplier pulumi.Float64PtrInput
DefaultHealthThreshold pulumi.Float64PtrInput
DefaultMaxUnreachablePenalty pulumi.IntPtrInput
// Specifies an optional Base64-encoded certificate that corresponds with the private key for TLS-based liveness tests (HTTPS, SMTPS, POPS, and TCPS).
DefaultSslClientCertificate pulumi.StringPtrInput
// Specifies a Base64-encoded private key that corresponds with the TLS certificate for HTTPS, SMTPS, POPS, and TCPS liveness tests.
DefaultSslClientPrivateKey pulumi.StringPtrInput
// Specifies the timeout penalty score. Default is `25`.
DefaultTimeoutPenalty pulumi.IntPtrInput
DefaultUnreachableThreshold pulumi.Float64PtrInput
// A list of email addresses to notify when a change is made to the domain.
EmailNotificationLists pulumi.StringArrayInput
// A boolean indicating whether whether the GTM Domain is using end user client subnet mapping.
EndUserMappingEnabled pulumi.BoolPtrInput
// If creating a domain, the currently selected group ID.
Group pulumi.StringPtrInput
// A boolean indicating whether one or more measurements of load (resources) are defined by you and supplied by each data center in real time to balance load.
LoadFeedback pulumi.BoolPtrInput
// Indicates the percentage of load imbalance factor (LIF) for the domain.
LoadImbalancePercentage pulumi.Float64PtrInput
MapUpdateInterval pulumi.IntPtrInput
MaxProperties pulumi.IntPtrInput
MaxResources pulumi.IntPtrInput
MaxTestTimeout pulumi.Float64PtrInput
MaxTtl pulumi.IntPtrInput
MinPingableRegionFraction pulumi.Float64PtrInput
MinTestInterval pulumi.IntPtrInput
MinTtl pulumi.IntPtrInput
// The DNS name for a collection of GTM Properties.
Name pulumi.StringPtrInput
PingInterval pulumi.IntPtrInput
PingPacketSize pulumi.IntPtrInput
RoundRobinPrefix pulumi.StringPtrInput
ServermonitorLivenessCount pulumi.IntPtrInput
ServermonitorLoadCount pulumi.IntPtrInput
ServermonitorPool pulumi.StringPtrInput
// Th type of GTM domain. Options include `failover-only`, `static`, `weighted`, `basic`, or `full`.
Type pulumi.StringPtrInput
// A boolean that, if set to `true`, waits for transaction to complete.
WaitOnComplete pulumi.BoolPtrInput
}
func (GtmDomainState) ElementType() reflect.Type {
return reflect.TypeOf((*gtmDomainState)(nil)).Elem()
}
type gtmDomainArgs struct {
// A boolean that if set to `true`, GTM collapses CNAME redirections in DNS answers when it knows the target of the CNAME.
CnameCoalescingEnabled *bool `pulumi:"cnameCoalescingEnabled"`
// A descriptive note about changes to the domain. The maximum is 4000 characters.
Comment *string `pulumi:"comment"`
// If creating a domain, the contract ID.
Contract *string `pulumi:"contract"`
// Specifies the download penalty score. The default is `75`. If the download encounters an error, the web agent computes a score that is either the download time in seconds or a penalty score.
DefaultErrorPenalty *int `pulumi:"defaultErrorPenalty"`
// Specifies an optional Base64-encoded certificate that corresponds with the private key for TLS-based liveness tests (HTTPS, SMTPS, POPS, and TCPS).
DefaultSslClientCertificate *string `pulumi:"defaultSslClientCertificate"`
// Specifies a Base64-encoded private key that corresponds with the TLS certificate for HTTPS, SMTPS, POPS, and TCPS liveness tests.
DefaultSslClientPrivateKey *string `pulumi:"defaultSslClientPrivateKey"`
// Specifies the timeout penalty score. Default is `25`.
DefaultTimeoutPenalty *int `pulumi:"defaultTimeoutPenalty"`
// A list of email addresses to notify when a change is made to the domain.
EmailNotificationLists []string `pulumi:"emailNotificationLists"`
// A boolean indicating whether whether the GTM Domain is using end user client subnet mapping.
EndUserMappingEnabled *bool `pulumi:"endUserMappingEnabled"`
// If creating a domain, the currently selected group ID.
Group *string `pulumi:"group"`
// A boolean indicating whether one or more measurements of load (resources) are defined by you and supplied by each data center in real time to balance load.
LoadFeedback *bool `pulumi:"loadFeedback"`
// Indicates the percentage of load imbalance factor (LIF) for the domain.
LoadImbalancePercentage *float64 `pulumi:"loadImbalancePercentage"`
// The DNS name for a collection of GTM Properties.
Name *string `pulumi:"name"`
// Th type of GTM domain. Options include `failover-only`, `static`, `weighted`, `basic`, or `full`.
Type string `pulumi:"type"`
// A boolean that, if set to `true`, waits for transaction to complete.
WaitOnComplete *bool `pulumi:"waitOnComplete"`
}
// The set of arguments for constructing a GtmDomain resource.
type GtmDomainArgs struct {
// A boolean that if set to `true`, GTM collapses CNAME redirections in DNS answers when it knows the target of the CNAME.
CnameCoalescingEnabled pulumi.BoolPtrInput
// A descriptive note about changes to the domain. The maximum is 4000 characters.
Comment pulumi.StringPtrInput
// If creating a domain, the contract ID.
Contract pulumi.StringPtrInput
// Specifies the download penalty score. The default is `75`. If the download encounters an error, the web agent computes a score that is either the download time in seconds or a penalty score.
DefaultErrorPenalty pulumi.IntPtrInput
// Specifies an optional Base64-encoded certificate that corresponds with the private key for TLS-based liveness tests (HTTPS, SMTPS, POPS, and TCPS).
DefaultSslClientCertificate pulumi.StringPtrInput
// Specifies a Base64-encoded private key that corresponds with the TLS certificate for HTTPS, SMTPS, POPS, and TCPS liveness tests.
DefaultSslClientPrivateKey pulumi.StringPtrInput
// Specifies the timeout penalty score. Default is `25`.
DefaultTimeoutPenalty pulumi.IntPtrInput
// A list of email addresses to notify when a change is made to the domain.
EmailNotificationLists pulumi.StringArrayInput
// A boolean indicating whether whether the GTM Domain is using end user client subnet mapping.
EndUserMappingEnabled pulumi.BoolPtrInput
// If creating a domain, the currently selected group ID.
Group pulumi.StringPtrInput
// A boolean indicating whether one or more measurements of load (resources) are defined by you and supplied by each data center in real time to balance load.
LoadFeedback pulumi.BoolPtrInput
// Indicates the percentage of load imbalance factor (LIF) for the domain.
LoadImbalancePercentage pulumi.Float64PtrInput
// The DNS name for a collection of GTM Properties.
Name pulumi.StringPtrInput
// Th type of GTM domain. Options include `failover-only`, `static`, `weighted`, `basic`, or `full`.
Type pulumi.StringInput
// A boolean that, if set to `true`, waits for transaction to complete.
WaitOnComplete pulumi.BoolPtrInput
}
func (GtmDomainArgs) ElementType() reflect.Type {
return reflect.TypeOf((*gtmDomainArgs)(nil)).Elem()
}
type GtmDomainInput interface {
pulumi.Input
ToGtmDomainOutput() GtmDomainOutput
ToGtmDomainOutputWithContext(ctx context.Context) GtmDomainOutput
}
func (*GtmDomain) ElementType() reflect.Type {
return reflect.TypeOf((**GtmDomain)(nil)).Elem()
}
func (i *GtmDomain) ToGtmDomainOutput() GtmDomainOutput {
return i.ToGtmDomainOutputWithContext(context.Background())
}
func (i *GtmDomain) ToGtmDomainOutputWithContext(ctx context.Context) GtmDomainOutput {
return pulumi.ToOutputWithContext(ctx, i).(GtmDomainOutput)
}
// GtmDomainArrayInput is an input type that accepts GtmDomainArray and GtmDomainArrayOutput values.
// You can construct a concrete instance of `GtmDomainArrayInput` via:
//
// GtmDomainArray{ GtmDomainArgs{...} }
type GtmDomainArrayInput interface {
pulumi.Input
ToGtmDomainArrayOutput() GtmDomainArrayOutput
ToGtmDomainArrayOutputWithContext(context.Context) GtmDomainArrayOutput
}
type GtmDomainArray []GtmDomainInput
func (GtmDomainArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*GtmDomain)(nil)).Elem()
}
func (i GtmDomainArray) ToGtmDomainArrayOutput() GtmDomainArrayOutput {
return i.ToGtmDomainArrayOutputWithContext(context.Background())
}
func (i GtmDomainArray) ToGtmDomainArrayOutputWithContext(ctx context.Context) GtmDomainArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(GtmDomainArrayOutput)
}
// GtmDomainMapInput is an input type that accepts GtmDomainMap and GtmDomainMapOutput values.
// You can construct a concrete instance of `GtmDomainMapInput` via:
//
// GtmDomainMap{ "key": GtmDomainArgs{...} }
type GtmDomainMapInput interface {
pulumi.Input
ToGtmDomainMapOutput() GtmDomainMapOutput
ToGtmDomainMapOutputWithContext(context.Context) GtmDomainMapOutput
}
type GtmDomainMap map[string]GtmDomainInput
func (GtmDomainMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*GtmDomain)(nil)).Elem()
}
func (i GtmDomainMap) ToGtmDomainMapOutput() GtmDomainMapOutput {
return i.ToGtmDomainMapOutputWithContext(context.Background())
}
func (i GtmDomainMap) ToGtmDomainMapOutputWithContext(ctx context.Context) GtmDomainMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(GtmDomainMapOutput)
}
type GtmDomainOutput struct{ *pulumi.OutputState }
func (GtmDomainOutput) ElementType() reflect.Type {
return reflect.TypeOf((**GtmDomain)(nil)).Elem()
}
func (o GtmDomainOutput) ToGtmDomainOutput() GtmDomainOutput {
return o
}
func (o GtmDomainOutput) ToGtmDomainOutputWithContext(ctx context.Context) GtmDomainOutput {
return o
}
// A boolean that if set to `true`, GTM collapses CNAME redirections in DNS answers when it knows the target of the CNAME.
func (o GtmDomainOutput) CnameCoalescingEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.BoolPtrOutput { return v.CnameCoalescingEnabled }).(pulumi.BoolPtrOutput)
}
// A descriptive note about changes to the domain. The maximum is 4000 characters.
func (o GtmDomainOutput) Comment() pulumi.StringPtrOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.StringPtrOutput { return v.Comment }).(pulumi.StringPtrOutput)
}
// If creating a domain, the contract ID.
func (o GtmDomainOutput) Contract() pulumi.StringPtrOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.StringPtrOutput { return v.Contract }).(pulumi.StringPtrOutput)
}
// Specifies the download penalty score. The default is `75`. If the download encounters an error, the web agent computes a score that is either the download time in seconds or a penalty score.
func (o GtmDomainOutput) DefaultErrorPenalty() pulumi.IntPtrOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.IntPtrOutput { return v.DefaultErrorPenalty }).(pulumi.IntPtrOutput)
}
func (o GtmDomainOutput) DefaultHealthMax() pulumi.Float64Output {
return o.ApplyT(func(v *GtmDomain) pulumi.Float64Output { return v.DefaultHealthMax }).(pulumi.Float64Output)
}
func (o GtmDomainOutput) DefaultHealthMultiplier() pulumi.Float64Output {
return o.ApplyT(func(v *GtmDomain) pulumi.Float64Output { return v.DefaultHealthMultiplier }).(pulumi.Float64Output)
}
func (o GtmDomainOutput) DefaultHealthThreshold() pulumi.Float64Output {
return o.ApplyT(func(v *GtmDomain) pulumi.Float64Output { return v.DefaultHealthThreshold }).(pulumi.Float64Output)
}
func (o GtmDomainOutput) DefaultMaxUnreachablePenalty() pulumi.IntOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.IntOutput { return v.DefaultMaxUnreachablePenalty }).(pulumi.IntOutput)
}
// Specifies an optional Base64-encoded certificate that corresponds with the private key for TLS-based liveness tests (HTTPS, SMTPS, POPS, and TCPS).
func (o GtmDomainOutput) DefaultSslClientCertificate() pulumi.StringPtrOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.StringPtrOutput { return v.DefaultSslClientCertificate }).(pulumi.StringPtrOutput)
}
// Specifies a Base64-encoded private key that corresponds with the TLS certificate for HTTPS, SMTPS, POPS, and TCPS liveness tests.
func (o GtmDomainOutput) DefaultSslClientPrivateKey() pulumi.StringPtrOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.StringPtrOutput { return v.DefaultSslClientPrivateKey }).(pulumi.StringPtrOutput)
}
// Specifies the timeout penalty score. Default is `25`.
func (o GtmDomainOutput) DefaultTimeoutPenalty() pulumi.IntPtrOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.IntPtrOutput { return v.DefaultTimeoutPenalty }).(pulumi.IntPtrOutput)
}
func (o GtmDomainOutput) DefaultUnreachableThreshold() pulumi.Float64Output {
return o.ApplyT(func(v *GtmDomain) pulumi.Float64Output { return v.DefaultUnreachableThreshold }).(pulumi.Float64Output)
}
// A list of email addresses to notify when a change is made to the domain.
func (o GtmDomainOutput) EmailNotificationLists() pulumi.StringArrayOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.StringArrayOutput { return v.EmailNotificationLists }).(pulumi.StringArrayOutput)
}
// A boolean indicating whether whether the GTM Domain is using end user client subnet mapping.
func (o GtmDomainOutput) EndUserMappingEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.BoolPtrOutput { return v.EndUserMappingEnabled }).(pulumi.BoolPtrOutput)
}
// If creating a domain, the currently selected group ID.
func (o GtmDomainOutput) Group() pulumi.StringPtrOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.StringPtrOutput { return v.Group }).(pulumi.StringPtrOutput)
}
// A boolean indicating whether one or more measurements of load (resources) are defined by you and supplied by each data center in real time to balance load.
func (o GtmDomainOutput) LoadFeedback() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.BoolPtrOutput { return v.LoadFeedback }).(pulumi.BoolPtrOutput)
}
// Indicates the percentage of load imbalance factor (LIF) for the domain.
func (o GtmDomainOutput) LoadImbalancePercentage() pulumi.Float64PtrOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.Float64PtrOutput { return v.LoadImbalancePercentage }).(pulumi.Float64PtrOutput)
}
func (o GtmDomainOutput) MapUpdateInterval() pulumi.IntOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.IntOutput { return v.MapUpdateInterval }).(pulumi.IntOutput)
}
func (o GtmDomainOutput) MaxProperties() pulumi.IntOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.IntOutput { return v.MaxProperties }).(pulumi.IntOutput)
}
func (o GtmDomainOutput) MaxResources() pulumi.IntOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.IntOutput { return v.MaxResources }).(pulumi.IntOutput)
}
func (o GtmDomainOutput) MaxTestTimeout() pulumi.Float64Output {
return o.ApplyT(func(v *GtmDomain) pulumi.Float64Output { return v.MaxTestTimeout }).(pulumi.Float64Output)
}
func (o GtmDomainOutput) MaxTtl() pulumi.IntOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.IntOutput { return v.MaxTtl }).(pulumi.IntOutput)
}
func (o GtmDomainOutput) MinPingableRegionFraction() pulumi.Float64Output {
return o.ApplyT(func(v *GtmDomain) pulumi.Float64Output { return v.MinPingableRegionFraction }).(pulumi.Float64Output)
}
func (o GtmDomainOutput) MinTestInterval() pulumi.IntOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.IntOutput { return v.MinTestInterval }).(pulumi.IntOutput)
}
func (o GtmDomainOutput) MinTtl() pulumi.IntOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.IntOutput { return v.MinTtl }).(pulumi.IntOutput)
}
// The DNS name for a collection of GTM Properties.
func (o GtmDomainOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
func (o GtmDomainOutput) PingInterval() pulumi.IntOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.IntOutput { return v.PingInterval }).(pulumi.IntOutput)
}
func (o GtmDomainOutput) PingPacketSize() pulumi.IntOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.IntOutput { return v.PingPacketSize }).(pulumi.IntOutput)
}
func (o GtmDomainOutput) RoundRobinPrefix() pulumi.StringOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.StringOutput { return v.RoundRobinPrefix }).(pulumi.StringOutput)
}
func (o GtmDomainOutput) ServermonitorLivenessCount() pulumi.IntOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.IntOutput { return v.ServermonitorLivenessCount }).(pulumi.IntOutput)
}
func (o GtmDomainOutput) ServermonitorLoadCount() pulumi.IntOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.IntOutput { return v.ServermonitorLoadCount }).(pulumi.IntOutput)
}
func (o GtmDomainOutput) ServermonitorPool() pulumi.StringOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.StringOutput { return v.ServermonitorPool }).(pulumi.StringOutput)
}
// Th type of GTM domain. Options include `failover-only`, `static`, `weighted`, `basic`, or `full`.
func (o GtmDomainOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.StringOutput { return v.Type }).(pulumi.StringOutput)
}
// A boolean that, if set to `true`, waits for transaction to complete.
func (o GtmDomainOutput) WaitOnComplete() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *GtmDomain) pulumi.BoolPtrOutput { return v.WaitOnComplete }).(pulumi.BoolPtrOutput)
}
type GtmDomainArrayOutput struct{ *pulumi.OutputState }
func (GtmDomainArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*GtmDomain)(nil)).Elem()
}
func (o GtmDomainArrayOutput) ToGtmDomainArrayOutput() GtmDomainArrayOutput {
return o
}
func (o GtmDomainArrayOutput) ToGtmDomainArrayOutputWithContext(ctx context.Context) GtmDomainArrayOutput {
return o
}
func (o GtmDomainArrayOutput) Index(i pulumi.IntInput) GtmDomainOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *GtmDomain {
return vs[0].([]*GtmDomain)[vs[1].(int)]
}).(GtmDomainOutput)
}
type GtmDomainMapOutput struct{ *pulumi.OutputState }
func (GtmDomainMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*GtmDomain)(nil)).Elem()
}
func (o GtmDomainMapOutput) ToGtmDomainMapOutput() GtmDomainMapOutput {
return o
}
func (o GtmDomainMapOutput) ToGtmDomainMapOutputWithContext(ctx context.Context) GtmDomainMapOutput {
return o
}
func (o GtmDomainMapOutput) MapIndex(k pulumi.StringInput) GtmDomainOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *GtmDomain {
return vs[0].(map[string]*GtmDomain)[vs[1].(string)]
}).(GtmDomainOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*GtmDomainInput)(nil)).Elem(), &GtmDomain{})
pulumi.RegisterInputType(reflect.TypeOf((*GtmDomainArrayInput)(nil)).Elem(), GtmDomainArray{})
pulumi.RegisterInputType(reflect.TypeOf((*GtmDomainMapInput)(nil)).Elem(), GtmDomainMap{})
pulumi.RegisterOutputType(GtmDomainOutput{})
pulumi.RegisterOutputType(GtmDomainArrayOutput{})
pulumi.RegisterOutputType(GtmDomainMapOutput{})
}