/
pulumiTypes.go
4529 lines (3658 loc) · 206 KB
/
pulumiTypes.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
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package elasticsearch
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type DomainAdvancedSecurityOptions struct {
// Whether to enable node-to-node encryption. If the `nodeToNodeEncryption` block is not provided then this defaults to `false`.
Enabled bool `pulumi:"enabled"`
// Whether the internal user database is enabled. If not set, defaults to `false` by the AWS API.
InternalUserDatabaseEnabled *bool `pulumi:"internalUserDatabaseEnabled"`
// Configuration block for the main user. Detailed below.
MasterUserOptions *DomainAdvancedSecurityOptionsMasterUserOptions `pulumi:"masterUserOptions"`
}
// DomainAdvancedSecurityOptionsInput is an input type that accepts DomainAdvancedSecurityOptionsArgs and DomainAdvancedSecurityOptionsOutput values.
// You can construct a concrete instance of `DomainAdvancedSecurityOptionsInput` via:
//
// DomainAdvancedSecurityOptionsArgs{...}
type DomainAdvancedSecurityOptionsInput interface {
pulumi.Input
ToDomainAdvancedSecurityOptionsOutput() DomainAdvancedSecurityOptionsOutput
ToDomainAdvancedSecurityOptionsOutputWithContext(context.Context) DomainAdvancedSecurityOptionsOutput
}
type DomainAdvancedSecurityOptionsArgs struct {
// Whether to enable node-to-node encryption. If the `nodeToNodeEncryption` block is not provided then this defaults to `false`.
Enabled pulumi.BoolInput `pulumi:"enabled"`
// Whether the internal user database is enabled. If not set, defaults to `false` by the AWS API.
InternalUserDatabaseEnabled pulumi.BoolPtrInput `pulumi:"internalUserDatabaseEnabled"`
// Configuration block for the main user. Detailed below.
MasterUserOptions DomainAdvancedSecurityOptionsMasterUserOptionsPtrInput `pulumi:"masterUserOptions"`
}
func (DomainAdvancedSecurityOptionsArgs) ElementType() reflect.Type {
return reflect.TypeOf((*DomainAdvancedSecurityOptions)(nil)).Elem()
}
func (i DomainAdvancedSecurityOptionsArgs) ToDomainAdvancedSecurityOptionsOutput() DomainAdvancedSecurityOptionsOutput {
return i.ToDomainAdvancedSecurityOptionsOutputWithContext(context.Background())
}
func (i DomainAdvancedSecurityOptionsArgs) ToDomainAdvancedSecurityOptionsOutputWithContext(ctx context.Context) DomainAdvancedSecurityOptionsOutput {
return pulumi.ToOutputWithContext(ctx, i).(DomainAdvancedSecurityOptionsOutput)
}
func (i DomainAdvancedSecurityOptionsArgs) ToDomainAdvancedSecurityOptionsPtrOutput() DomainAdvancedSecurityOptionsPtrOutput {
return i.ToDomainAdvancedSecurityOptionsPtrOutputWithContext(context.Background())
}
func (i DomainAdvancedSecurityOptionsArgs) ToDomainAdvancedSecurityOptionsPtrOutputWithContext(ctx context.Context) DomainAdvancedSecurityOptionsPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(DomainAdvancedSecurityOptionsOutput).ToDomainAdvancedSecurityOptionsPtrOutputWithContext(ctx)
}
// DomainAdvancedSecurityOptionsPtrInput is an input type that accepts DomainAdvancedSecurityOptionsArgs, DomainAdvancedSecurityOptionsPtr and DomainAdvancedSecurityOptionsPtrOutput values.
// You can construct a concrete instance of `DomainAdvancedSecurityOptionsPtrInput` via:
//
// DomainAdvancedSecurityOptionsArgs{...}
//
// or:
//
// nil
type DomainAdvancedSecurityOptionsPtrInput interface {
pulumi.Input
ToDomainAdvancedSecurityOptionsPtrOutput() DomainAdvancedSecurityOptionsPtrOutput
ToDomainAdvancedSecurityOptionsPtrOutputWithContext(context.Context) DomainAdvancedSecurityOptionsPtrOutput
}
type domainAdvancedSecurityOptionsPtrType DomainAdvancedSecurityOptionsArgs
func DomainAdvancedSecurityOptionsPtr(v *DomainAdvancedSecurityOptionsArgs) DomainAdvancedSecurityOptionsPtrInput {
return (*domainAdvancedSecurityOptionsPtrType)(v)
}
func (*domainAdvancedSecurityOptionsPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**DomainAdvancedSecurityOptions)(nil)).Elem()
}
func (i *domainAdvancedSecurityOptionsPtrType) ToDomainAdvancedSecurityOptionsPtrOutput() DomainAdvancedSecurityOptionsPtrOutput {
return i.ToDomainAdvancedSecurityOptionsPtrOutputWithContext(context.Background())
}
func (i *domainAdvancedSecurityOptionsPtrType) ToDomainAdvancedSecurityOptionsPtrOutputWithContext(ctx context.Context) DomainAdvancedSecurityOptionsPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(DomainAdvancedSecurityOptionsPtrOutput)
}
type DomainAdvancedSecurityOptionsOutput struct{ *pulumi.OutputState }
func (DomainAdvancedSecurityOptionsOutput) ElementType() reflect.Type {
return reflect.TypeOf((*DomainAdvancedSecurityOptions)(nil)).Elem()
}
func (o DomainAdvancedSecurityOptionsOutput) ToDomainAdvancedSecurityOptionsOutput() DomainAdvancedSecurityOptionsOutput {
return o
}
func (o DomainAdvancedSecurityOptionsOutput) ToDomainAdvancedSecurityOptionsOutputWithContext(ctx context.Context) DomainAdvancedSecurityOptionsOutput {
return o
}
func (o DomainAdvancedSecurityOptionsOutput) ToDomainAdvancedSecurityOptionsPtrOutput() DomainAdvancedSecurityOptionsPtrOutput {
return o.ToDomainAdvancedSecurityOptionsPtrOutputWithContext(context.Background())
}
func (o DomainAdvancedSecurityOptionsOutput) ToDomainAdvancedSecurityOptionsPtrOutputWithContext(ctx context.Context) DomainAdvancedSecurityOptionsPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v DomainAdvancedSecurityOptions) *DomainAdvancedSecurityOptions {
return &v
}).(DomainAdvancedSecurityOptionsPtrOutput)
}
// Whether to enable node-to-node encryption. If the `nodeToNodeEncryption` block is not provided then this defaults to `false`.
func (o DomainAdvancedSecurityOptionsOutput) Enabled() pulumi.BoolOutput {
return o.ApplyT(func(v DomainAdvancedSecurityOptions) bool { return v.Enabled }).(pulumi.BoolOutput)
}
// Whether the internal user database is enabled. If not set, defaults to `false` by the AWS API.
func (o DomainAdvancedSecurityOptionsOutput) InternalUserDatabaseEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v DomainAdvancedSecurityOptions) *bool { return v.InternalUserDatabaseEnabled }).(pulumi.BoolPtrOutput)
}
// Configuration block for the main user. Detailed below.
func (o DomainAdvancedSecurityOptionsOutput) MasterUserOptions() DomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput {
return o.ApplyT(func(v DomainAdvancedSecurityOptions) *DomainAdvancedSecurityOptionsMasterUserOptions {
return v.MasterUserOptions
}).(DomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput)
}
type DomainAdvancedSecurityOptionsPtrOutput struct{ *pulumi.OutputState }
func (DomainAdvancedSecurityOptionsPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**DomainAdvancedSecurityOptions)(nil)).Elem()
}
func (o DomainAdvancedSecurityOptionsPtrOutput) ToDomainAdvancedSecurityOptionsPtrOutput() DomainAdvancedSecurityOptionsPtrOutput {
return o
}
func (o DomainAdvancedSecurityOptionsPtrOutput) ToDomainAdvancedSecurityOptionsPtrOutputWithContext(ctx context.Context) DomainAdvancedSecurityOptionsPtrOutput {
return o
}
func (o DomainAdvancedSecurityOptionsPtrOutput) Elem() DomainAdvancedSecurityOptionsOutput {
return o.ApplyT(func(v *DomainAdvancedSecurityOptions) DomainAdvancedSecurityOptions {
if v != nil {
return *v
}
var ret DomainAdvancedSecurityOptions
return ret
}).(DomainAdvancedSecurityOptionsOutput)
}
// Whether to enable node-to-node encryption. If the `nodeToNodeEncryption` block is not provided then this defaults to `false`.
func (o DomainAdvancedSecurityOptionsPtrOutput) Enabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *DomainAdvancedSecurityOptions) *bool {
if v == nil {
return nil
}
return &v.Enabled
}).(pulumi.BoolPtrOutput)
}
// Whether the internal user database is enabled. If not set, defaults to `false` by the AWS API.
func (o DomainAdvancedSecurityOptionsPtrOutput) InternalUserDatabaseEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *DomainAdvancedSecurityOptions) *bool {
if v == nil {
return nil
}
return v.InternalUserDatabaseEnabled
}).(pulumi.BoolPtrOutput)
}
// Configuration block for the main user. Detailed below.
func (o DomainAdvancedSecurityOptionsPtrOutput) MasterUserOptions() DomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput {
return o.ApplyT(func(v *DomainAdvancedSecurityOptions) *DomainAdvancedSecurityOptionsMasterUserOptions {
if v == nil {
return nil
}
return v.MasterUserOptions
}).(DomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput)
}
type DomainAdvancedSecurityOptionsMasterUserOptions struct {
// ARN for the main user. Only specify if `internalUserDatabaseEnabled` is not set or set to `false`.
MasterUserArn *string `pulumi:"masterUserArn"`
// Main user's username, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if `internalUserDatabaseEnabled` is set to `true`.
MasterUserName *string `pulumi:"masterUserName"`
// Main user's password, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if `internalUserDatabaseEnabled` is set to `true`.
MasterUserPassword *string `pulumi:"masterUserPassword"`
}
// DomainAdvancedSecurityOptionsMasterUserOptionsInput is an input type that accepts DomainAdvancedSecurityOptionsMasterUserOptionsArgs and DomainAdvancedSecurityOptionsMasterUserOptionsOutput values.
// You can construct a concrete instance of `DomainAdvancedSecurityOptionsMasterUserOptionsInput` via:
//
// DomainAdvancedSecurityOptionsMasterUserOptionsArgs{...}
type DomainAdvancedSecurityOptionsMasterUserOptionsInput interface {
pulumi.Input
ToDomainAdvancedSecurityOptionsMasterUserOptionsOutput() DomainAdvancedSecurityOptionsMasterUserOptionsOutput
ToDomainAdvancedSecurityOptionsMasterUserOptionsOutputWithContext(context.Context) DomainAdvancedSecurityOptionsMasterUserOptionsOutput
}
type DomainAdvancedSecurityOptionsMasterUserOptionsArgs struct {
// ARN for the main user. Only specify if `internalUserDatabaseEnabled` is not set or set to `false`.
MasterUserArn pulumi.StringPtrInput `pulumi:"masterUserArn"`
// Main user's username, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if `internalUserDatabaseEnabled` is set to `true`.
MasterUserName pulumi.StringPtrInput `pulumi:"masterUserName"`
// Main user's password, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if `internalUserDatabaseEnabled` is set to `true`.
MasterUserPassword pulumi.StringPtrInput `pulumi:"masterUserPassword"`
}
func (DomainAdvancedSecurityOptionsMasterUserOptionsArgs) ElementType() reflect.Type {
return reflect.TypeOf((*DomainAdvancedSecurityOptionsMasterUserOptions)(nil)).Elem()
}
func (i DomainAdvancedSecurityOptionsMasterUserOptionsArgs) ToDomainAdvancedSecurityOptionsMasterUserOptionsOutput() DomainAdvancedSecurityOptionsMasterUserOptionsOutput {
return i.ToDomainAdvancedSecurityOptionsMasterUserOptionsOutputWithContext(context.Background())
}
func (i DomainAdvancedSecurityOptionsMasterUserOptionsArgs) ToDomainAdvancedSecurityOptionsMasterUserOptionsOutputWithContext(ctx context.Context) DomainAdvancedSecurityOptionsMasterUserOptionsOutput {
return pulumi.ToOutputWithContext(ctx, i).(DomainAdvancedSecurityOptionsMasterUserOptionsOutput)
}
func (i DomainAdvancedSecurityOptionsMasterUserOptionsArgs) ToDomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput() DomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput {
return i.ToDomainAdvancedSecurityOptionsMasterUserOptionsPtrOutputWithContext(context.Background())
}
func (i DomainAdvancedSecurityOptionsMasterUserOptionsArgs) ToDomainAdvancedSecurityOptionsMasterUserOptionsPtrOutputWithContext(ctx context.Context) DomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(DomainAdvancedSecurityOptionsMasterUserOptionsOutput).ToDomainAdvancedSecurityOptionsMasterUserOptionsPtrOutputWithContext(ctx)
}
// DomainAdvancedSecurityOptionsMasterUserOptionsPtrInput is an input type that accepts DomainAdvancedSecurityOptionsMasterUserOptionsArgs, DomainAdvancedSecurityOptionsMasterUserOptionsPtr and DomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput values.
// You can construct a concrete instance of `DomainAdvancedSecurityOptionsMasterUserOptionsPtrInput` via:
//
// DomainAdvancedSecurityOptionsMasterUserOptionsArgs{...}
//
// or:
//
// nil
type DomainAdvancedSecurityOptionsMasterUserOptionsPtrInput interface {
pulumi.Input
ToDomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput() DomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput
ToDomainAdvancedSecurityOptionsMasterUserOptionsPtrOutputWithContext(context.Context) DomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput
}
type domainAdvancedSecurityOptionsMasterUserOptionsPtrType DomainAdvancedSecurityOptionsMasterUserOptionsArgs
func DomainAdvancedSecurityOptionsMasterUserOptionsPtr(v *DomainAdvancedSecurityOptionsMasterUserOptionsArgs) DomainAdvancedSecurityOptionsMasterUserOptionsPtrInput {
return (*domainAdvancedSecurityOptionsMasterUserOptionsPtrType)(v)
}
func (*domainAdvancedSecurityOptionsMasterUserOptionsPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**DomainAdvancedSecurityOptionsMasterUserOptions)(nil)).Elem()
}
func (i *domainAdvancedSecurityOptionsMasterUserOptionsPtrType) ToDomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput() DomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput {
return i.ToDomainAdvancedSecurityOptionsMasterUserOptionsPtrOutputWithContext(context.Background())
}
func (i *domainAdvancedSecurityOptionsMasterUserOptionsPtrType) ToDomainAdvancedSecurityOptionsMasterUserOptionsPtrOutputWithContext(ctx context.Context) DomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(DomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput)
}
type DomainAdvancedSecurityOptionsMasterUserOptionsOutput struct{ *pulumi.OutputState }
func (DomainAdvancedSecurityOptionsMasterUserOptionsOutput) ElementType() reflect.Type {
return reflect.TypeOf((*DomainAdvancedSecurityOptionsMasterUserOptions)(nil)).Elem()
}
func (o DomainAdvancedSecurityOptionsMasterUserOptionsOutput) ToDomainAdvancedSecurityOptionsMasterUserOptionsOutput() DomainAdvancedSecurityOptionsMasterUserOptionsOutput {
return o
}
func (o DomainAdvancedSecurityOptionsMasterUserOptionsOutput) ToDomainAdvancedSecurityOptionsMasterUserOptionsOutputWithContext(ctx context.Context) DomainAdvancedSecurityOptionsMasterUserOptionsOutput {
return o
}
func (o DomainAdvancedSecurityOptionsMasterUserOptionsOutput) ToDomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput() DomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput {
return o.ToDomainAdvancedSecurityOptionsMasterUserOptionsPtrOutputWithContext(context.Background())
}
func (o DomainAdvancedSecurityOptionsMasterUserOptionsOutput) ToDomainAdvancedSecurityOptionsMasterUserOptionsPtrOutputWithContext(ctx context.Context) DomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v DomainAdvancedSecurityOptionsMasterUserOptions) *DomainAdvancedSecurityOptionsMasterUserOptions {
return &v
}).(DomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput)
}
// ARN for the main user. Only specify if `internalUserDatabaseEnabled` is not set or set to `false`.
func (o DomainAdvancedSecurityOptionsMasterUserOptionsOutput) MasterUserArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v DomainAdvancedSecurityOptionsMasterUserOptions) *string { return v.MasterUserArn }).(pulumi.StringPtrOutput)
}
// Main user's username, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if `internalUserDatabaseEnabled` is set to `true`.
func (o DomainAdvancedSecurityOptionsMasterUserOptionsOutput) MasterUserName() pulumi.StringPtrOutput {
return o.ApplyT(func(v DomainAdvancedSecurityOptionsMasterUserOptions) *string { return v.MasterUserName }).(pulumi.StringPtrOutput)
}
// Main user's password, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if `internalUserDatabaseEnabled` is set to `true`.
func (o DomainAdvancedSecurityOptionsMasterUserOptionsOutput) MasterUserPassword() pulumi.StringPtrOutput {
return o.ApplyT(func(v DomainAdvancedSecurityOptionsMasterUserOptions) *string { return v.MasterUserPassword }).(pulumi.StringPtrOutput)
}
type DomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput struct{ *pulumi.OutputState }
func (DomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**DomainAdvancedSecurityOptionsMasterUserOptions)(nil)).Elem()
}
func (o DomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput) ToDomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput() DomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput {
return o
}
func (o DomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput) ToDomainAdvancedSecurityOptionsMasterUserOptionsPtrOutputWithContext(ctx context.Context) DomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput {
return o
}
func (o DomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput) Elem() DomainAdvancedSecurityOptionsMasterUserOptionsOutput {
return o.ApplyT(func(v *DomainAdvancedSecurityOptionsMasterUserOptions) DomainAdvancedSecurityOptionsMasterUserOptions {
if v != nil {
return *v
}
var ret DomainAdvancedSecurityOptionsMasterUserOptions
return ret
}).(DomainAdvancedSecurityOptionsMasterUserOptionsOutput)
}
// ARN for the main user. Only specify if `internalUserDatabaseEnabled` is not set or set to `false`.
func (o DomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput) MasterUserArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DomainAdvancedSecurityOptionsMasterUserOptions) *string {
if v == nil {
return nil
}
return v.MasterUserArn
}).(pulumi.StringPtrOutput)
}
// Main user's username, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if `internalUserDatabaseEnabled` is set to `true`.
func (o DomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput) MasterUserName() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DomainAdvancedSecurityOptionsMasterUserOptions) *string {
if v == nil {
return nil
}
return v.MasterUserName
}).(pulumi.StringPtrOutput)
}
// Main user's password, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if `internalUserDatabaseEnabled` is set to `true`.
func (o DomainAdvancedSecurityOptionsMasterUserOptionsPtrOutput) MasterUserPassword() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DomainAdvancedSecurityOptionsMasterUserOptions) *string {
if v == nil {
return nil
}
return v.MasterUserPassword
}).(pulumi.StringPtrOutput)
}
type DomainAutoTuneOptions struct {
// The Auto-Tune desired state for the domain. Valid values: `ENABLED` or `DISABLED`.
DesiredState string `pulumi:"desiredState"`
// Configuration block for Auto-Tune maintenance windows. Can be specified multiple times for each maintenance window. Detailed below.
MaintenanceSchedules []DomainAutoTuneOptionsMaintenanceSchedule `pulumi:"maintenanceSchedules"`
// Whether to roll back to default Auto-Tune settings when disabling Auto-Tune. Valid values: `DEFAULT_ROLLBACK` or `NO_ROLLBACK`.
RollbackOnDisable *string `pulumi:"rollbackOnDisable"`
}
// DomainAutoTuneOptionsInput is an input type that accepts DomainAutoTuneOptionsArgs and DomainAutoTuneOptionsOutput values.
// You can construct a concrete instance of `DomainAutoTuneOptionsInput` via:
//
// DomainAutoTuneOptionsArgs{...}
type DomainAutoTuneOptionsInput interface {
pulumi.Input
ToDomainAutoTuneOptionsOutput() DomainAutoTuneOptionsOutput
ToDomainAutoTuneOptionsOutputWithContext(context.Context) DomainAutoTuneOptionsOutput
}
type DomainAutoTuneOptionsArgs struct {
// The Auto-Tune desired state for the domain. Valid values: `ENABLED` or `DISABLED`.
DesiredState pulumi.StringInput `pulumi:"desiredState"`
// Configuration block for Auto-Tune maintenance windows. Can be specified multiple times for each maintenance window. Detailed below.
MaintenanceSchedules DomainAutoTuneOptionsMaintenanceScheduleArrayInput `pulumi:"maintenanceSchedules"`
// Whether to roll back to default Auto-Tune settings when disabling Auto-Tune. Valid values: `DEFAULT_ROLLBACK` or `NO_ROLLBACK`.
RollbackOnDisable pulumi.StringPtrInput `pulumi:"rollbackOnDisable"`
}
func (DomainAutoTuneOptionsArgs) ElementType() reflect.Type {
return reflect.TypeOf((*DomainAutoTuneOptions)(nil)).Elem()
}
func (i DomainAutoTuneOptionsArgs) ToDomainAutoTuneOptionsOutput() DomainAutoTuneOptionsOutput {
return i.ToDomainAutoTuneOptionsOutputWithContext(context.Background())
}
func (i DomainAutoTuneOptionsArgs) ToDomainAutoTuneOptionsOutputWithContext(ctx context.Context) DomainAutoTuneOptionsOutput {
return pulumi.ToOutputWithContext(ctx, i).(DomainAutoTuneOptionsOutput)
}
func (i DomainAutoTuneOptionsArgs) ToDomainAutoTuneOptionsPtrOutput() DomainAutoTuneOptionsPtrOutput {
return i.ToDomainAutoTuneOptionsPtrOutputWithContext(context.Background())
}
func (i DomainAutoTuneOptionsArgs) ToDomainAutoTuneOptionsPtrOutputWithContext(ctx context.Context) DomainAutoTuneOptionsPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(DomainAutoTuneOptionsOutput).ToDomainAutoTuneOptionsPtrOutputWithContext(ctx)
}
// DomainAutoTuneOptionsPtrInput is an input type that accepts DomainAutoTuneOptionsArgs, DomainAutoTuneOptionsPtr and DomainAutoTuneOptionsPtrOutput values.
// You can construct a concrete instance of `DomainAutoTuneOptionsPtrInput` via:
//
// DomainAutoTuneOptionsArgs{...}
//
// or:
//
// nil
type DomainAutoTuneOptionsPtrInput interface {
pulumi.Input
ToDomainAutoTuneOptionsPtrOutput() DomainAutoTuneOptionsPtrOutput
ToDomainAutoTuneOptionsPtrOutputWithContext(context.Context) DomainAutoTuneOptionsPtrOutput
}
type domainAutoTuneOptionsPtrType DomainAutoTuneOptionsArgs
func DomainAutoTuneOptionsPtr(v *DomainAutoTuneOptionsArgs) DomainAutoTuneOptionsPtrInput {
return (*domainAutoTuneOptionsPtrType)(v)
}
func (*domainAutoTuneOptionsPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**DomainAutoTuneOptions)(nil)).Elem()
}
func (i *domainAutoTuneOptionsPtrType) ToDomainAutoTuneOptionsPtrOutput() DomainAutoTuneOptionsPtrOutput {
return i.ToDomainAutoTuneOptionsPtrOutputWithContext(context.Background())
}
func (i *domainAutoTuneOptionsPtrType) ToDomainAutoTuneOptionsPtrOutputWithContext(ctx context.Context) DomainAutoTuneOptionsPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(DomainAutoTuneOptionsPtrOutput)
}
type DomainAutoTuneOptionsOutput struct{ *pulumi.OutputState }
func (DomainAutoTuneOptionsOutput) ElementType() reflect.Type {
return reflect.TypeOf((*DomainAutoTuneOptions)(nil)).Elem()
}
func (o DomainAutoTuneOptionsOutput) ToDomainAutoTuneOptionsOutput() DomainAutoTuneOptionsOutput {
return o
}
func (o DomainAutoTuneOptionsOutput) ToDomainAutoTuneOptionsOutputWithContext(ctx context.Context) DomainAutoTuneOptionsOutput {
return o
}
func (o DomainAutoTuneOptionsOutput) ToDomainAutoTuneOptionsPtrOutput() DomainAutoTuneOptionsPtrOutput {
return o.ToDomainAutoTuneOptionsPtrOutputWithContext(context.Background())
}
func (o DomainAutoTuneOptionsOutput) ToDomainAutoTuneOptionsPtrOutputWithContext(ctx context.Context) DomainAutoTuneOptionsPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v DomainAutoTuneOptions) *DomainAutoTuneOptions {
return &v
}).(DomainAutoTuneOptionsPtrOutput)
}
// The Auto-Tune desired state for the domain. Valid values: `ENABLED` or `DISABLED`.
func (o DomainAutoTuneOptionsOutput) DesiredState() pulumi.StringOutput {
return o.ApplyT(func(v DomainAutoTuneOptions) string { return v.DesiredState }).(pulumi.StringOutput)
}
// Configuration block for Auto-Tune maintenance windows. Can be specified multiple times for each maintenance window. Detailed below.
func (o DomainAutoTuneOptionsOutput) MaintenanceSchedules() DomainAutoTuneOptionsMaintenanceScheduleArrayOutput {
return o.ApplyT(func(v DomainAutoTuneOptions) []DomainAutoTuneOptionsMaintenanceSchedule {
return v.MaintenanceSchedules
}).(DomainAutoTuneOptionsMaintenanceScheduleArrayOutput)
}
// Whether to roll back to default Auto-Tune settings when disabling Auto-Tune. Valid values: `DEFAULT_ROLLBACK` or `NO_ROLLBACK`.
func (o DomainAutoTuneOptionsOutput) RollbackOnDisable() pulumi.StringPtrOutput {
return o.ApplyT(func(v DomainAutoTuneOptions) *string { return v.RollbackOnDisable }).(pulumi.StringPtrOutput)
}
type DomainAutoTuneOptionsPtrOutput struct{ *pulumi.OutputState }
func (DomainAutoTuneOptionsPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**DomainAutoTuneOptions)(nil)).Elem()
}
func (o DomainAutoTuneOptionsPtrOutput) ToDomainAutoTuneOptionsPtrOutput() DomainAutoTuneOptionsPtrOutput {
return o
}
func (o DomainAutoTuneOptionsPtrOutput) ToDomainAutoTuneOptionsPtrOutputWithContext(ctx context.Context) DomainAutoTuneOptionsPtrOutput {
return o
}
func (o DomainAutoTuneOptionsPtrOutput) Elem() DomainAutoTuneOptionsOutput {
return o.ApplyT(func(v *DomainAutoTuneOptions) DomainAutoTuneOptions {
if v != nil {
return *v
}
var ret DomainAutoTuneOptions
return ret
}).(DomainAutoTuneOptionsOutput)
}
// The Auto-Tune desired state for the domain. Valid values: `ENABLED` or `DISABLED`.
func (o DomainAutoTuneOptionsPtrOutput) DesiredState() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DomainAutoTuneOptions) *string {
if v == nil {
return nil
}
return &v.DesiredState
}).(pulumi.StringPtrOutput)
}
// Configuration block for Auto-Tune maintenance windows. Can be specified multiple times for each maintenance window. Detailed below.
func (o DomainAutoTuneOptionsPtrOutput) MaintenanceSchedules() DomainAutoTuneOptionsMaintenanceScheduleArrayOutput {
return o.ApplyT(func(v *DomainAutoTuneOptions) []DomainAutoTuneOptionsMaintenanceSchedule {
if v == nil {
return nil
}
return v.MaintenanceSchedules
}).(DomainAutoTuneOptionsMaintenanceScheduleArrayOutput)
}
// Whether to roll back to default Auto-Tune settings when disabling Auto-Tune. Valid values: `DEFAULT_ROLLBACK` or `NO_ROLLBACK`.
func (o DomainAutoTuneOptionsPtrOutput) RollbackOnDisable() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DomainAutoTuneOptions) *string {
if v == nil {
return nil
}
return v.RollbackOnDisable
}).(pulumi.StringPtrOutput)
}
type DomainAutoTuneOptionsMaintenanceSchedule struct {
// A cron expression specifying the recurrence pattern for an Auto-Tune maintenance schedule.
CronExpressionForRecurrence string `pulumi:"cronExpressionForRecurrence"`
// Configuration block for the duration of the Auto-Tune maintenance window. Detailed below.
Duration DomainAutoTuneOptionsMaintenanceScheduleDuration `pulumi:"duration"`
// Date and time at which to start the Auto-Tune maintenance schedule in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8).
StartAt string `pulumi:"startAt"`
}
// DomainAutoTuneOptionsMaintenanceScheduleInput is an input type that accepts DomainAutoTuneOptionsMaintenanceScheduleArgs and DomainAutoTuneOptionsMaintenanceScheduleOutput values.
// You can construct a concrete instance of `DomainAutoTuneOptionsMaintenanceScheduleInput` via:
//
// DomainAutoTuneOptionsMaintenanceScheduleArgs{...}
type DomainAutoTuneOptionsMaintenanceScheduleInput interface {
pulumi.Input
ToDomainAutoTuneOptionsMaintenanceScheduleOutput() DomainAutoTuneOptionsMaintenanceScheduleOutput
ToDomainAutoTuneOptionsMaintenanceScheduleOutputWithContext(context.Context) DomainAutoTuneOptionsMaintenanceScheduleOutput
}
type DomainAutoTuneOptionsMaintenanceScheduleArgs struct {
// A cron expression specifying the recurrence pattern for an Auto-Tune maintenance schedule.
CronExpressionForRecurrence pulumi.StringInput `pulumi:"cronExpressionForRecurrence"`
// Configuration block for the duration of the Auto-Tune maintenance window. Detailed below.
Duration DomainAutoTuneOptionsMaintenanceScheduleDurationInput `pulumi:"duration"`
// Date and time at which to start the Auto-Tune maintenance schedule in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8).
StartAt pulumi.StringInput `pulumi:"startAt"`
}
func (DomainAutoTuneOptionsMaintenanceScheduleArgs) ElementType() reflect.Type {
return reflect.TypeOf((*DomainAutoTuneOptionsMaintenanceSchedule)(nil)).Elem()
}
func (i DomainAutoTuneOptionsMaintenanceScheduleArgs) ToDomainAutoTuneOptionsMaintenanceScheduleOutput() DomainAutoTuneOptionsMaintenanceScheduleOutput {
return i.ToDomainAutoTuneOptionsMaintenanceScheduleOutputWithContext(context.Background())
}
func (i DomainAutoTuneOptionsMaintenanceScheduleArgs) ToDomainAutoTuneOptionsMaintenanceScheduleOutputWithContext(ctx context.Context) DomainAutoTuneOptionsMaintenanceScheduleOutput {
return pulumi.ToOutputWithContext(ctx, i).(DomainAutoTuneOptionsMaintenanceScheduleOutput)
}
// DomainAutoTuneOptionsMaintenanceScheduleArrayInput is an input type that accepts DomainAutoTuneOptionsMaintenanceScheduleArray and DomainAutoTuneOptionsMaintenanceScheduleArrayOutput values.
// You can construct a concrete instance of `DomainAutoTuneOptionsMaintenanceScheduleArrayInput` via:
//
// DomainAutoTuneOptionsMaintenanceScheduleArray{ DomainAutoTuneOptionsMaintenanceScheduleArgs{...} }
type DomainAutoTuneOptionsMaintenanceScheduleArrayInput interface {
pulumi.Input
ToDomainAutoTuneOptionsMaintenanceScheduleArrayOutput() DomainAutoTuneOptionsMaintenanceScheduleArrayOutput
ToDomainAutoTuneOptionsMaintenanceScheduleArrayOutputWithContext(context.Context) DomainAutoTuneOptionsMaintenanceScheduleArrayOutput
}
type DomainAutoTuneOptionsMaintenanceScheduleArray []DomainAutoTuneOptionsMaintenanceScheduleInput
func (DomainAutoTuneOptionsMaintenanceScheduleArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]DomainAutoTuneOptionsMaintenanceSchedule)(nil)).Elem()
}
func (i DomainAutoTuneOptionsMaintenanceScheduleArray) ToDomainAutoTuneOptionsMaintenanceScheduleArrayOutput() DomainAutoTuneOptionsMaintenanceScheduleArrayOutput {
return i.ToDomainAutoTuneOptionsMaintenanceScheduleArrayOutputWithContext(context.Background())
}
func (i DomainAutoTuneOptionsMaintenanceScheduleArray) ToDomainAutoTuneOptionsMaintenanceScheduleArrayOutputWithContext(ctx context.Context) DomainAutoTuneOptionsMaintenanceScheduleArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(DomainAutoTuneOptionsMaintenanceScheduleArrayOutput)
}
type DomainAutoTuneOptionsMaintenanceScheduleOutput struct{ *pulumi.OutputState }
func (DomainAutoTuneOptionsMaintenanceScheduleOutput) ElementType() reflect.Type {
return reflect.TypeOf((*DomainAutoTuneOptionsMaintenanceSchedule)(nil)).Elem()
}
func (o DomainAutoTuneOptionsMaintenanceScheduleOutput) ToDomainAutoTuneOptionsMaintenanceScheduleOutput() DomainAutoTuneOptionsMaintenanceScheduleOutput {
return o
}
func (o DomainAutoTuneOptionsMaintenanceScheduleOutput) ToDomainAutoTuneOptionsMaintenanceScheduleOutputWithContext(ctx context.Context) DomainAutoTuneOptionsMaintenanceScheduleOutput {
return o
}
// A cron expression specifying the recurrence pattern for an Auto-Tune maintenance schedule.
func (o DomainAutoTuneOptionsMaintenanceScheduleOutput) CronExpressionForRecurrence() pulumi.StringOutput {
return o.ApplyT(func(v DomainAutoTuneOptionsMaintenanceSchedule) string { return v.CronExpressionForRecurrence }).(pulumi.StringOutput)
}
// Configuration block for the duration of the Auto-Tune maintenance window. Detailed below.
func (o DomainAutoTuneOptionsMaintenanceScheduleOutput) Duration() DomainAutoTuneOptionsMaintenanceScheduleDurationOutput {
return o.ApplyT(func(v DomainAutoTuneOptionsMaintenanceSchedule) DomainAutoTuneOptionsMaintenanceScheduleDuration {
return v.Duration
}).(DomainAutoTuneOptionsMaintenanceScheduleDurationOutput)
}
// Date and time at which to start the Auto-Tune maintenance schedule in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8).
func (o DomainAutoTuneOptionsMaintenanceScheduleOutput) StartAt() pulumi.StringOutput {
return o.ApplyT(func(v DomainAutoTuneOptionsMaintenanceSchedule) string { return v.StartAt }).(pulumi.StringOutput)
}
type DomainAutoTuneOptionsMaintenanceScheduleArrayOutput struct{ *pulumi.OutputState }
func (DomainAutoTuneOptionsMaintenanceScheduleArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]DomainAutoTuneOptionsMaintenanceSchedule)(nil)).Elem()
}
func (o DomainAutoTuneOptionsMaintenanceScheduleArrayOutput) ToDomainAutoTuneOptionsMaintenanceScheduleArrayOutput() DomainAutoTuneOptionsMaintenanceScheduleArrayOutput {
return o
}
func (o DomainAutoTuneOptionsMaintenanceScheduleArrayOutput) ToDomainAutoTuneOptionsMaintenanceScheduleArrayOutputWithContext(ctx context.Context) DomainAutoTuneOptionsMaintenanceScheduleArrayOutput {
return o
}
func (o DomainAutoTuneOptionsMaintenanceScheduleArrayOutput) Index(i pulumi.IntInput) DomainAutoTuneOptionsMaintenanceScheduleOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) DomainAutoTuneOptionsMaintenanceSchedule {
return vs[0].([]DomainAutoTuneOptionsMaintenanceSchedule)[vs[1].(int)]
}).(DomainAutoTuneOptionsMaintenanceScheduleOutput)
}
type DomainAutoTuneOptionsMaintenanceScheduleDuration struct {
// The unit of time specifying the duration of an Auto-Tune maintenance window. Valid values: `HOURS`.
Unit string `pulumi:"unit"`
// An integer specifying the value of the duration of an Auto-Tune maintenance window.
Value int `pulumi:"value"`
}
// DomainAutoTuneOptionsMaintenanceScheduleDurationInput is an input type that accepts DomainAutoTuneOptionsMaintenanceScheduleDurationArgs and DomainAutoTuneOptionsMaintenanceScheduleDurationOutput values.
// You can construct a concrete instance of `DomainAutoTuneOptionsMaintenanceScheduleDurationInput` via:
//
// DomainAutoTuneOptionsMaintenanceScheduleDurationArgs{...}
type DomainAutoTuneOptionsMaintenanceScheduleDurationInput interface {
pulumi.Input
ToDomainAutoTuneOptionsMaintenanceScheduleDurationOutput() DomainAutoTuneOptionsMaintenanceScheduleDurationOutput
ToDomainAutoTuneOptionsMaintenanceScheduleDurationOutputWithContext(context.Context) DomainAutoTuneOptionsMaintenanceScheduleDurationOutput
}
type DomainAutoTuneOptionsMaintenanceScheduleDurationArgs struct {
// The unit of time specifying the duration of an Auto-Tune maintenance window. Valid values: `HOURS`.
Unit pulumi.StringInput `pulumi:"unit"`
// An integer specifying the value of the duration of an Auto-Tune maintenance window.
Value pulumi.IntInput `pulumi:"value"`
}
func (DomainAutoTuneOptionsMaintenanceScheduleDurationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*DomainAutoTuneOptionsMaintenanceScheduleDuration)(nil)).Elem()
}
func (i DomainAutoTuneOptionsMaintenanceScheduleDurationArgs) ToDomainAutoTuneOptionsMaintenanceScheduleDurationOutput() DomainAutoTuneOptionsMaintenanceScheduleDurationOutput {
return i.ToDomainAutoTuneOptionsMaintenanceScheduleDurationOutputWithContext(context.Background())
}
func (i DomainAutoTuneOptionsMaintenanceScheduleDurationArgs) ToDomainAutoTuneOptionsMaintenanceScheduleDurationOutputWithContext(ctx context.Context) DomainAutoTuneOptionsMaintenanceScheduleDurationOutput {
return pulumi.ToOutputWithContext(ctx, i).(DomainAutoTuneOptionsMaintenanceScheduleDurationOutput)
}
type DomainAutoTuneOptionsMaintenanceScheduleDurationOutput struct{ *pulumi.OutputState }
func (DomainAutoTuneOptionsMaintenanceScheduleDurationOutput) ElementType() reflect.Type {
return reflect.TypeOf((*DomainAutoTuneOptionsMaintenanceScheduleDuration)(nil)).Elem()
}
func (o DomainAutoTuneOptionsMaintenanceScheduleDurationOutput) ToDomainAutoTuneOptionsMaintenanceScheduleDurationOutput() DomainAutoTuneOptionsMaintenanceScheduleDurationOutput {
return o
}
func (o DomainAutoTuneOptionsMaintenanceScheduleDurationOutput) ToDomainAutoTuneOptionsMaintenanceScheduleDurationOutputWithContext(ctx context.Context) DomainAutoTuneOptionsMaintenanceScheduleDurationOutput {
return o
}
// The unit of time specifying the duration of an Auto-Tune maintenance window. Valid values: `HOURS`.
func (o DomainAutoTuneOptionsMaintenanceScheduleDurationOutput) Unit() pulumi.StringOutput {
return o.ApplyT(func(v DomainAutoTuneOptionsMaintenanceScheduleDuration) string { return v.Unit }).(pulumi.StringOutput)
}
// An integer specifying the value of the duration of an Auto-Tune maintenance window.
func (o DomainAutoTuneOptionsMaintenanceScheduleDurationOutput) Value() pulumi.IntOutput {
return o.ApplyT(func(v DomainAutoTuneOptionsMaintenanceScheduleDuration) int { return v.Value }).(pulumi.IntOutput)
}
type DomainClusterConfig struct {
// Number of dedicated main nodes in the cluster.
DedicatedMasterCount *int `pulumi:"dedicatedMasterCount"`
// Whether dedicated main nodes are enabled for the cluster.
DedicatedMasterEnabled *bool `pulumi:"dedicatedMasterEnabled"`
// Instance type of the dedicated main nodes in the cluster.
DedicatedMasterType *string `pulumi:"dedicatedMasterType"`
// Number of instances in the cluster.
InstanceCount *int `pulumi:"instanceCount"`
// Instance type of data nodes in the cluster.
InstanceType *string `pulumi:"instanceType"`
// Number of warm nodes in the cluster. Valid values are between `2` and `150`. `warmCount` can be only and must be set when `warmEnabled` is set to `true`.
WarmCount *int `pulumi:"warmCount"`
// Whether to enable warm storage.
WarmEnabled *bool `pulumi:"warmEnabled"`
// Instance type for the Elasticsearch cluster's warm nodes. Valid values are `ultrawarm1.medium.elasticsearch`, `ultrawarm1.large.elasticsearch` and `ultrawarm1.xlarge.elasticsearch`. `warmType` can be only and must be set when `warmEnabled` is set to `true`.
WarmType *string `pulumi:"warmType"`
// Configuration block containing zone awareness settings. Detailed below.
ZoneAwarenessConfig *DomainClusterConfigZoneAwarenessConfig `pulumi:"zoneAwarenessConfig"`
// Whether zone awareness is enabled, set to `true` for multi-az deployment. To enable awareness with three Availability Zones, the `availabilityZoneCount` within the `zoneAwarenessConfig` must be set to `3`.
ZoneAwarenessEnabled *bool `pulumi:"zoneAwarenessEnabled"`
}
// DomainClusterConfigInput is an input type that accepts DomainClusterConfigArgs and DomainClusterConfigOutput values.
// You can construct a concrete instance of `DomainClusterConfigInput` via:
//
// DomainClusterConfigArgs{...}
type DomainClusterConfigInput interface {
pulumi.Input
ToDomainClusterConfigOutput() DomainClusterConfigOutput
ToDomainClusterConfigOutputWithContext(context.Context) DomainClusterConfigOutput
}
type DomainClusterConfigArgs struct {
// Number of dedicated main nodes in the cluster.
DedicatedMasterCount pulumi.IntPtrInput `pulumi:"dedicatedMasterCount"`
// Whether dedicated main nodes are enabled for the cluster.
DedicatedMasterEnabled pulumi.BoolPtrInput `pulumi:"dedicatedMasterEnabled"`
// Instance type of the dedicated main nodes in the cluster.
DedicatedMasterType pulumi.StringPtrInput `pulumi:"dedicatedMasterType"`
// Number of instances in the cluster.
InstanceCount pulumi.IntPtrInput `pulumi:"instanceCount"`
// Instance type of data nodes in the cluster.
InstanceType pulumi.StringPtrInput `pulumi:"instanceType"`
// Number of warm nodes in the cluster. Valid values are between `2` and `150`. `warmCount` can be only and must be set when `warmEnabled` is set to `true`.
WarmCount pulumi.IntPtrInput `pulumi:"warmCount"`
// Whether to enable warm storage.
WarmEnabled pulumi.BoolPtrInput `pulumi:"warmEnabled"`
// Instance type for the Elasticsearch cluster's warm nodes. Valid values are `ultrawarm1.medium.elasticsearch`, `ultrawarm1.large.elasticsearch` and `ultrawarm1.xlarge.elasticsearch`. `warmType` can be only and must be set when `warmEnabled` is set to `true`.
WarmType pulumi.StringPtrInput `pulumi:"warmType"`
// Configuration block containing zone awareness settings. Detailed below.
ZoneAwarenessConfig DomainClusterConfigZoneAwarenessConfigPtrInput `pulumi:"zoneAwarenessConfig"`
// Whether zone awareness is enabled, set to `true` for multi-az deployment. To enable awareness with three Availability Zones, the `availabilityZoneCount` within the `zoneAwarenessConfig` must be set to `3`.
ZoneAwarenessEnabled pulumi.BoolPtrInput `pulumi:"zoneAwarenessEnabled"`
}
func (DomainClusterConfigArgs) ElementType() reflect.Type {
return reflect.TypeOf((*DomainClusterConfig)(nil)).Elem()
}
func (i DomainClusterConfigArgs) ToDomainClusterConfigOutput() DomainClusterConfigOutput {
return i.ToDomainClusterConfigOutputWithContext(context.Background())
}
func (i DomainClusterConfigArgs) ToDomainClusterConfigOutputWithContext(ctx context.Context) DomainClusterConfigOutput {
return pulumi.ToOutputWithContext(ctx, i).(DomainClusterConfigOutput)
}
func (i DomainClusterConfigArgs) ToDomainClusterConfigPtrOutput() DomainClusterConfigPtrOutput {
return i.ToDomainClusterConfigPtrOutputWithContext(context.Background())
}
func (i DomainClusterConfigArgs) ToDomainClusterConfigPtrOutputWithContext(ctx context.Context) DomainClusterConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(DomainClusterConfigOutput).ToDomainClusterConfigPtrOutputWithContext(ctx)
}
// DomainClusterConfigPtrInput is an input type that accepts DomainClusterConfigArgs, DomainClusterConfigPtr and DomainClusterConfigPtrOutput values.
// You can construct a concrete instance of `DomainClusterConfigPtrInput` via:
//
// DomainClusterConfigArgs{...}
//
// or:
//
// nil
type DomainClusterConfigPtrInput interface {
pulumi.Input
ToDomainClusterConfigPtrOutput() DomainClusterConfigPtrOutput
ToDomainClusterConfigPtrOutputWithContext(context.Context) DomainClusterConfigPtrOutput
}
type domainClusterConfigPtrType DomainClusterConfigArgs
func DomainClusterConfigPtr(v *DomainClusterConfigArgs) DomainClusterConfigPtrInput {
return (*domainClusterConfigPtrType)(v)
}
func (*domainClusterConfigPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**DomainClusterConfig)(nil)).Elem()
}
func (i *domainClusterConfigPtrType) ToDomainClusterConfigPtrOutput() DomainClusterConfigPtrOutput {
return i.ToDomainClusterConfigPtrOutputWithContext(context.Background())
}
func (i *domainClusterConfigPtrType) ToDomainClusterConfigPtrOutputWithContext(ctx context.Context) DomainClusterConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(DomainClusterConfigPtrOutput)
}
type DomainClusterConfigOutput struct{ *pulumi.OutputState }
func (DomainClusterConfigOutput) ElementType() reflect.Type {
return reflect.TypeOf((*DomainClusterConfig)(nil)).Elem()
}
func (o DomainClusterConfigOutput) ToDomainClusterConfigOutput() DomainClusterConfigOutput {
return o
}
func (o DomainClusterConfigOutput) ToDomainClusterConfigOutputWithContext(ctx context.Context) DomainClusterConfigOutput {
return o
}
func (o DomainClusterConfigOutput) ToDomainClusterConfigPtrOutput() DomainClusterConfigPtrOutput {
return o.ToDomainClusterConfigPtrOutputWithContext(context.Background())
}
func (o DomainClusterConfigOutput) ToDomainClusterConfigPtrOutputWithContext(ctx context.Context) DomainClusterConfigPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v DomainClusterConfig) *DomainClusterConfig {
return &v
}).(DomainClusterConfigPtrOutput)
}
// Number of dedicated main nodes in the cluster.
func (o DomainClusterConfigOutput) DedicatedMasterCount() pulumi.IntPtrOutput {
return o.ApplyT(func(v DomainClusterConfig) *int { return v.DedicatedMasterCount }).(pulumi.IntPtrOutput)
}
// Whether dedicated main nodes are enabled for the cluster.
func (o DomainClusterConfigOutput) DedicatedMasterEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v DomainClusterConfig) *bool { return v.DedicatedMasterEnabled }).(pulumi.BoolPtrOutput)
}
// Instance type of the dedicated main nodes in the cluster.
func (o DomainClusterConfigOutput) DedicatedMasterType() pulumi.StringPtrOutput {
return o.ApplyT(func(v DomainClusterConfig) *string { return v.DedicatedMasterType }).(pulumi.StringPtrOutput)
}
// Number of instances in the cluster.
func (o DomainClusterConfigOutput) InstanceCount() pulumi.IntPtrOutput {
return o.ApplyT(func(v DomainClusterConfig) *int { return v.InstanceCount }).(pulumi.IntPtrOutput)
}
// Instance type of data nodes in the cluster.
func (o DomainClusterConfigOutput) InstanceType() pulumi.StringPtrOutput {
return o.ApplyT(func(v DomainClusterConfig) *string { return v.InstanceType }).(pulumi.StringPtrOutput)
}
// Number of warm nodes in the cluster. Valid values are between `2` and `150`. `warmCount` can be only and must be set when `warmEnabled` is set to `true`.
func (o DomainClusterConfigOutput) WarmCount() pulumi.IntPtrOutput {
return o.ApplyT(func(v DomainClusterConfig) *int { return v.WarmCount }).(pulumi.IntPtrOutput)
}
// Whether to enable warm storage.
func (o DomainClusterConfigOutput) WarmEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v DomainClusterConfig) *bool { return v.WarmEnabled }).(pulumi.BoolPtrOutput)
}
// Instance type for the Elasticsearch cluster's warm nodes. Valid values are `ultrawarm1.medium.elasticsearch`, `ultrawarm1.large.elasticsearch` and `ultrawarm1.xlarge.elasticsearch`. `warmType` can be only and must be set when `warmEnabled` is set to `true`.
func (o DomainClusterConfigOutput) WarmType() pulumi.StringPtrOutput {
return o.ApplyT(func(v DomainClusterConfig) *string { return v.WarmType }).(pulumi.StringPtrOutput)
}
// Configuration block containing zone awareness settings. Detailed below.
func (o DomainClusterConfigOutput) ZoneAwarenessConfig() DomainClusterConfigZoneAwarenessConfigPtrOutput {
return o.ApplyT(func(v DomainClusterConfig) *DomainClusterConfigZoneAwarenessConfig { return v.ZoneAwarenessConfig }).(DomainClusterConfigZoneAwarenessConfigPtrOutput)
}
// Whether zone awareness is enabled, set to `true` for multi-az deployment. To enable awareness with three Availability Zones, the `availabilityZoneCount` within the `zoneAwarenessConfig` must be set to `3`.
func (o DomainClusterConfigOutput) ZoneAwarenessEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v DomainClusterConfig) *bool { return v.ZoneAwarenessEnabled }).(pulumi.BoolPtrOutput)
}
type DomainClusterConfigPtrOutput struct{ *pulumi.OutputState }
func (DomainClusterConfigPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**DomainClusterConfig)(nil)).Elem()
}
func (o DomainClusterConfigPtrOutput) ToDomainClusterConfigPtrOutput() DomainClusterConfigPtrOutput {
return o
}
func (o DomainClusterConfigPtrOutput) ToDomainClusterConfigPtrOutputWithContext(ctx context.Context) DomainClusterConfigPtrOutput {
return o
}
func (o DomainClusterConfigPtrOutput) Elem() DomainClusterConfigOutput {
return o.ApplyT(func(v *DomainClusterConfig) DomainClusterConfig {
if v != nil {
return *v
}
var ret DomainClusterConfig
return ret
}).(DomainClusterConfigOutput)
}
// Number of dedicated main nodes in the cluster.
func (o DomainClusterConfigPtrOutput) DedicatedMasterCount() pulumi.IntPtrOutput {
return o.ApplyT(func(v *DomainClusterConfig) *int {
if v == nil {
return nil
}
return v.DedicatedMasterCount
}).(pulumi.IntPtrOutput)
}
// Whether dedicated main nodes are enabled for the cluster.
func (o DomainClusterConfigPtrOutput) DedicatedMasterEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *DomainClusterConfig) *bool {
if v == nil {
return nil
}
return v.DedicatedMasterEnabled
}).(pulumi.BoolPtrOutput)
}
// Instance type of the dedicated main nodes in the cluster.
func (o DomainClusterConfigPtrOutput) DedicatedMasterType() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DomainClusterConfig) *string {
if v == nil {
return nil
}
return v.DedicatedMasterType
}).(pulumi.StringPtrOutput)
}
// Number of instances in the cluster.
func (o DomainClusterConfigPtrOutput) InstanceCount() pulumi.IntPtrOutput {
return o.ApplyT(func(v *DomainClusterConfig) *int {
if v == nil {
return nil
}
return v.InstanceCount
}).(pulumi.IntPtrOutput)
}
// Instance type of data nodes in the cluster.
func (o DomainClusterConfigPtrOutput) InstanceType() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DomainClusterConfig) *string {
if v == nil {
return nil
}
return v.InstanceType
}).(pulumi.StringPtrOutput)
}
// Number of warm nodes in the cluster. Valid values are between `2` and `150`. `warmCount` can be only and must be set when `warmEnabled` is set to `true`.
func (o DomainClusterConfigPtrOutput) WarmCount() pulumi.IntPtrOutput {
return o.ApplyT(func(v *DomainClusterConfig) *int {
if v == nil {
return nil
}
return v.WarmCount
}).(pulumi.IntPtrOutput)
}
// Whether to enable warm storage.
func (o DomainClusterConfigPtrOutput) WarmEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *DomainClusterConfig) *bool {
if v == nil {
return nil
}
return v.WarmEnabled
}).(pulumi.BoolPtrOutput)
}
// Instance type for the Elasticsearch cluster's warm nodes. Valid values are `ultrawarm1.medium.elasticsearch`, `ultrawarm1.large.elasticsearch` and `ultrawarm1.xlarge.elasticsearch`. `warmType` can be only and must be set when `warmEnabled` is set to `true`.
func (o DomainClusterConfigPtrOutput) WarmType() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DomainClusterConfig) *string {