/
pulumiTypes.go
4345 lines (3486 loc) · 198 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
// 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 eks
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type ClusterCertificateAuthority struct {
// Base64 encoded certificate data required to communicate with your cluster. Add this to the `certificate-authority-data` section of the `kubeconfig` file for your cluster.
Data *string `pulumi:"data"`
}
// ClusterCertificateAuthorityInput is an input type that accepts ClusterCertificateAuthorityArgs and ClusterCertificateAuthorityOutput values.
// You can construct a concrete instance of `ClusterCertificateAuthorityInput` via:
//
// ClusterCertificateAuthorityArgs{...}
type ClusterCertificateAuthorityInput interface {
pulumi.Input
ToClusterCertificateAuthorityOutput() ClusterCertificateAuthorityOutput
ToClusterCertificateAuthorityOutputWithContext(context.Context) ClusterCertificateAuthorityOutput
}
type ClusterCertificateAuthorityArgs struct {
// Base64 encoded certificate data required to communicate with your cluster. Add this to the `certificate-authority-data` section of the `kubeconfig` file for your cluster.
Data pulumi.StringPtrInput `pulumi:"data"`
}
func (ClusterCertificateAuthorityArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterCertificateAuthority)(nil)).Elem()
}
func (i ClusterCertificateAuthorityArgs) ToClusterCertificateAuthorityOutput() ClusterCertificateAuthorityOutput {
return i.ToClusterCertificateAuthorityOutputWithContext(context.Background())
}
func (i ClusterCertificateAuthorityArgs) ToClusterCertificateAuthorityOutputWithContext(ctx context.Context) ClusterCertificateAuthorityOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterCertificateAuthorityOutput)
}
func (i ClusterCertificateAuthorityArgs) ToClusterCertificateAuthorityPtrOutput() ClusterCertificateAuthorityPtrOutput {
return i.ToClusterCertificateAuthorityPtrOutputWithContext(context.Background())
}
func (i ClusterCertificateAuthorityArgs) ToClusterCertificateAuthorityPtrOutputWithContext(ctx context.Context) ClusterCertificateAuthorityPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterCertificateAuthorityOutput).ToClusterCertificateAuthorityPtrOutputWithContext(ctx)
}
// ClusterCertificateAuthorityPtrInput is an input type that accepts ClusterCertificateAuthorityArgs, ClusterCertificateAuthorityPtr and ClusterCertificateAuthorityPtrOutput values.
// You can construct a concrete instance of `ClusterCertificateAuthorityPtrInput` via:
//
// ClusterCertificateAuthorityArgs{...}
//
// or:
//
// nil
type ClusterCertificateAuthorityPtrInput interface {
pulumi.Input
ToClusterCertificateAuthorityPtrOutput() ClusterCertificateAuthorityPtrOutput
ToClusterCertificateAuthorityPtrOutputWithContext(context.Context) ClusterCertificateAuthorityPtrOutput
}
type clusterCertificateAuthorityPtrType ClusterCertificateAuthorityArgs
func ClusterCertificateAuthorityPtr(v *ClusterCertificateAuthorityArgs) ClusterCertificateAuthorityPtrInput {
return (*clusterCertificateAuthorityPtrType)(v)
}
func (*clusterCertificateAuthorityPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ClusterCertificateAuthority)(nil)).Elem()
}
func (i *clusterCertificateAuthorityPtrType) ToClusterCertificateAuthorityPtrOutput() ClusterCertificateAuthorityPtrOutput {
return i.ToClusterCertificateAuthorityPtrOutputWithContext(context.Background())
}
func (i *clusterCertificateAuthorityPtrType) ToClusterCertificateAuthorityPtrOutputWithContext(ctx context.Context) ClusterCertificateAuthorityPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterCertificateAuthorityPtrOutput)
}
// ClusterCertificateAuthorityArrayInput is an input type that accepts ClusterCertificateAuthorityArray and ClusterCertificateAuthorityArrayOutput values.
// You can construct a concrete instance of `ClusterCertificateAuthorityArrayInput` via:
//
// ClusterCertificateAuthorityArray{ ClusterCertificateAuthorityArgs{...} }
type ClusterCertificateAuthorityArrayInput interface {
pulumi.Input
ToClusterCertificateAuthorityArrayOutput() ClusterCertificateAuthorityArrayOutput
ToClusterCertificateAuthorityArrayOutputWithContext(context.Context) ClusterCertificateAuthorityArrayOutput
}
type ClusterCertificateAuthorityArray []ClusterCertificateAuthorityInput
func (ClusterCertificateAuthorityArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ClusterCertificateAuthority)(nil)).Elem()
}
func (i ClusterCertificateAuthorityArray) ToClusterCertificateAuthorityArrayOutput() ClusterCertificateAuthorityArrayOutput {
return i.ToClusterCertificateAuthorityArrayOutputWithContext(context.Background())
}
func (i ClusterCertificateAuthorityArray) ToClusterCertificateAuthorityArrayOutputWithContext(ctx context.Context) ClusterCertificateAuthorityArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterCertificateAuthorityArrayOutput)
}
type ClusterCertificateAuthorityOutput struct{ *pulumi.OutputState }
func (ClusterCertificateAuthorityOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterCertificateAuthority)(nil)).Elem()
}
func (o ClusterCertificateAuthorityOutput) ToClusterCertificateAuthorityOutput() ClusterCertificateAuthorityOutput {
return o
}
func (o ClusterCertificateAuthorityOutput) ToClusterCertificateAuthorityOutputWithContext(ctx context.Context) ClusterCertificateAuthorityOutput {
return o
}
func (o ClusterCertificateAuthorityOutput) ToClusterCertificateAuthorityPtrOutput() ClusterCertificateAuthorityPtrOutput {
return o.ToClusterCertificateAuthorityPtrOutputWithContext(context.Background())
}
func (o ClusterCertificateAuthorityOutput) ToClusterCertificateAuthorityPtrOutputWithContext(ctx context.Context) ClusterCertificateAuthorityPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterCertificateAuthority) *ClusterCertificateAuthority {
return &v
}).(ClusterCertificateAuthorityPtrOutput)
}
// Base64 encoded certificate data required to communicate with your cluster. Add this to the `certificate-authority-data` section of the `kubeconfig` file for your cluster.
func (o ClusterCertificateAuthorityOutput) Data() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterCertificateAuthority) *string { return v.Data }).(pulumi.StringPtrOutput)
}
type ClusterCertificateAuthorityPtrOutput struct{ *pulumi.OutputState }
func (ClusterCertificateAuthorityPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ClusterCertificateAuthority)(nil)).Elem()
}
func (o ClusterCertificateAuthorityPtrOutput) ToClusterCertificateAuthorityPtrOutput() ClusterCertificateAuthorityPtrOutput {
return o
}
func (o ClusterCertificateAuthorityPtrOutput) ToClusterCertificateAuthorityPtrOutputWithContext(ctx context.Context) ClusterCertificateAuthorityPtrOutput {
return o
}
func (o ClusterCertificateAuthorityPtrOutput) Elem() ClusterCertificateAuthorityOutput {
return o.ApplyT(func(v *ClusterCertificateAuthority) ClusterCertificateAuthority {
if v != nil {
return *v
}
var ret ClusterCertificateAuthority
return ret
}).(ClusterCertificateAuthorityOutput)
}
// Base64 encoded certificate data required to communicate with your cluster. Add this to the `certificate-authority-data` section of the `kubeconfig` file for your cluster.
func (o ClusterCertificateAuthorityPtrOutput) Data() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ClusterCertificateAuthority) *string {
if v == nil {
return nil
}
return v.Data
}).(pulumi.StringPtrOutput)
}
type ClusterCertificateAuthorityArrayOutput struct{ *pulumi.OutputState }
func (ClusterCertificateAuthorityArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ClusterCertificateAuthority)(nil)).Elem()
}
func (o ClusterCertificateAuthorityArrayOutput) ToClusterCertificateAuthorityArrayOutput() ClusterCertificateAuthorityArrayOutput {
return o
}
func (o ClusterCertificateAuthorityArrayOutput) ToClusterCertificateAuthorityArrayOutputWithContext(ctx context.Context) ClusterCertificateAuthorityArrayOutput {
return o
}
func (o ClusterCertificateAuthorityArrayOutput) Index(i pulumi.IntInput) ClusterCertificateAuthorityOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterCertificateAuthority {
return vs[0].([]ClusterCertificateAuthority)[vs[1].(int)]
}).(ClusterCertificateAuthorityOutput)
}
type ClusterEncryptionConfig struct {
// Configuration block with provider for encryption. Detailed below.
Provider ClusterEncryptionConfigProvider `pulumi:"provider"`
// List of strings with resources to be encrypted. Valid values: `secrets`.
Resources []string `pulumi:"resources"`
}
// ClusterEncryptionConfigInput is an input type that accepts ClusterEncryptionConfigArgs and ClusterEncryptionConfigOutput values.
// You can construct a concrete instance of `ClusterEncryptionConfigInput` via:
//
// ClusterEncryptionConfigArgs{...}
type ClusterEncryptionConfigInput interface {
pulumi.Input
ToClusterEncryptionConfigOutput() ClusterEncryptionConfigOutput
ToClusterEncryptionConfigOutputWithContext(context.Context) ClusterEncryptionConfigOutput
}
type ClusterEncryptionConfigArgs struct {
// Configuration block with provider for encryption. Detailed below.
Provider ClusterEncryptionConfigProviderInput `pulumi:"provider"`
// List of strings with resources to be encrypted. Valid values: `secrets`.
Resources pulumi.StringArrayInput `pulumi:"resources"`
}
func (ClusterEncryptionConfigArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterEncryptionConfig)(nil)).Elem()
}
func (i ClusterEncryptionConfigArgs) ToClusterEncryptionConfigOutput() ClusterEncryptionConfigOutput {
return i.ToClusterEncryptionConfigOutputWithContext(context.Background())
}
func (i ClusterEncryptionConfigArgs) ToClusterEncryptionConfigOutputWithContext(ctx context.Context) ClusterEncryptionConfigOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterEncryptionConfigOutput)
}
func (i ClusterEncryptionConfigArgs) ToClusterEncryptionConfigPtrOutput() ClusterEncryptionConfigPtrOutput {
return i.ToClusterEncryptionConfigPtrOutputWithContext(context.Background())
}
func (i ClusterEncryptionConfigArgs) ToClusterEncryptionConfigPtrOutputWithContext(ctx context.Context) ClusterEncryptionConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterEncryptionConfigOutput).ToClusterEncryptionConfigPtrOutputWithContext(ctx)
}
// ClusterEncryptionConfigPtrInput is an input type that accepts ClusterEncryptionConfigArgs, ClusterEncryptionConfigPtr and ClusterEncryptionConfigPtrOutput values.
// You can construct a concrete instance of `ClusterEncryptionConfigPtrInput` via:
//
// ClusterEncryptionConfigArgs{...}
//
// or:
//
// nil
type ClusterEncryptionConfigPtrInput interface {
pulumi.Input
ToClusterEncryptionConfigPtrOutput() ClusterEncryptionConfigPtrOutput
ToClusterEncryptionConfigPtrOutputWithContext(context.Context) ClusterEncryptionConfigPtrOutput
}
type clusterEncryptionConfigPtrType ClusterEncryptionConfigArgs
func ClusterEncryptionConfigPtr(v *ClusterEncryptionConfigArgs) ClusterEncryptionConfigPtrInput {
return (*clusterEncryptionConfigPtrType)(v)
}
func (*clusterEncryptionConfigPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ClusterEncryptionConfig)(nil)).Elem()
}
func (i *clusterEncryptionConfigPtrType) ToClusterEncryptionConfigPtrOutput() ClusterEncryptionConfigPtrOutput {
return i.ToClusterEncryptionConfigPtrOutputWithContext(context.Background())
}
func (i *clusterEncryptionConfigPtrType) ToClusterEncryptionConfigPtrOutputWithContext(ctx context.Context) ClusterEncryptionConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterEncryptionConfigPtrOutput)
}
type ClusterEncryptionConfigOutput struct{ *pulumi.OutputState }
func (ClusterEncryptionConfigOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterEncryptionConfig)(nil)).Elem()
}
func (o ClusterEncryptionConfigOutput) ToClusterEncryptionConfigOutput() ClusterEncryptionConfigOutput {
return o
}
func (o ClusterEncryptionConfigOutput) ToClusterEncryptionConfigOutputWithContext(ctx context.Context) ClusterEncryptionConfigOutput {
return o
}
func (o ClusterEncryptionConfigOutput) ToClusterEncryptionConfigPtrOutput() ClusterEncryptionConfigPtrOutput {
return o.ToClusterEncryptionConfigPtrOutputWithContext(context.Background())
}
func (o ClusterEncryptionConfigOutput) ToClusterEncryptionConfigPtrOutputWithContext(ctx context.Context) ClusterEncryptionConfigPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterEncryptionConfig) *ClusterEncryptionConfig {
return &v
}).(ClusterEncryptionConfigPtrOutput)
}
// Configuration block with provider for encryption. Detailed below.
func (o ClusterEncryptionConfigOutput) Provider() ClusterEncryptionConfigProviderOutput {
return o.ApplyT(func(v ClusterEncryptionConfig) ClusterEncryptionConfigProvider { return v.Provider }).(ClusterEncryptionConfigProviderOutput)
}
// List of strings with resources to be encrypted. Valid values: `secrets`.
func (o ClusterEncryptionConfigOutput) Resources() pulumi.StringArrayOutput {
return o.ApplyT(func(v ClusterEncryptionConfig) []string { return v.Resources }).(pulumi.StringArrayOutput)
}
type ClusterEncryptionConfigPtrOutput struct{ *pulumi.OutputState }
func (ClusterEncryptionConfigPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ClusterEncryptionConfig)(nil)).Elem()
}
func (o ClusterEncryptionConfigPtrOutput) ToClusterEncryptionConfigPtrOutput() ClusterEncryptionConfigPtrOutput {
return o
}
func (o ClusterEncryptionConfigPtrOutput) ToClusterEncryptionConfigPtrOutputWithContext(ctx context.Context) ClusterEncryptionConfigPtrOutput {
return o
}
func (o ClusterEncryptionConfigPtrOutput) Elem() ClusterEncryptionConfigOutput {
return o.ApplyT(func(v *ClusterEncryptionConfig) ClusterEncryptionConfig {
if v != nil {
return *v
}
var ret ClusterEncryptionConfig
return ret
}).(ClusterEncryptionConfigOutput)
}
// Configuration block with provider for encryption. Detailed below.
func (o ClusterEncryptionConfigPtrOutput) Provider() ClusterEncryptionConfigProviderPtrOutput {
return o.ApplyT(func(v *ClusterEncryptionConfig) *ClusterEncryptionConfigProvider {
if v == nil {
return nil
}
return &v.Provider
}).(ClusterEncryptionConfigProviderPtrOutput)
}
// List of strings with resources to be encrypted. Valid values: `secrets`.
func (o ClusterEncryptionConfigPtrOutput) Resources() pulumi.StringArrayOutput {
return o.ApplyT(func(v *ClusterEncryptionConfig) []string {
if v == nil {
return nil
}
return v.Resources
}).(pulumi.StringArrayOutput)
}
type ClusterEncryptionConfigProvider struct {
// ARN of the Key Management Service (KMS) customer master key (CMK). The CMK must be symmetric, created in the same region as the cluster, and if the CMK was created in a different account, the user must have access to the CMK. For more information, see [Allowing Users in Other Accounts to Use a CMK in the AWS Key Management Service Developer Guide](https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-modifying-external-accounts.html).
KeyArn string `pulumi:"keyArn"`
}
// ClusterEncryptionConfigProviderInput is an input type that accepts ClusterEncryptionConfigProviderArgs and ClusterEncryptionConfigProviderOutput values.
// You can construct a concrete instance of `ClusterEncryptionConfigProviderInput` via:
//
// ClusterEncryptionConfigProviderArgs{...}
type ClusterEncryptionConfigProviderInput interface {
pulumi.Input
ToClusterEncryptionConfigProviderOutput() ClusterEncryptionConfigProviderOutput
ToClusterEncryptionConfigProviderOutputWithContext(context.Context) ClusterEncryptionConfigProviderOutput
}
type ClusterEncryptionConfigProviderArgs struct {
// ARN of the Key Management Service (KMS) customer master key (CMK). The CMK must be symmetric, created in the same region as the cluster, and if the CMK was created in a different account, the user must have access to the CMK. For more information, see [Allowing Users in Other Accounts to Use a CMK in the AWS Key Management Service Developer Guide](https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-modifying-external-accounts.html).
KeyArn pulumi.StringInput `pulumi:"keyArn"`
}
func (ClusterEncryptionConfigProviderArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterEncryptionConfigProvider)(nil)).Elem()
}
func (i ClusterEncryptionConfigProviderArgs) ToClusterEncryptionConfigProviderOutput() ClusterEncryptionConfigProviderOutput {
return i.ToClusterEncryptionConfigProviderOutputWithContext(context.Background())
}
func (i ClusterEncryptionConfigProviderArgs) ToClusterEncryptionConfigProviderOutputWithContext(ctx context.Context) ClusterEncryptionConfigProviderOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterEncryptionConfigProviderOutput)
}
func (i ClusterEncryptionConfigProviderArgs) ToClusterEncryptionConfigProviderPtrOutput() ClusterEncryptionConfigProviderPtrOutput {
return i.ToClusterEncryptionConfigProviderPtrOutputWithContext(context.Background())
}
func (i ClusterEncryptionConfigProviderArgs) ToClusterEncryptionConfigProviderPtrOutputWithContext(ctx context.Context) ClusterEncryptionConfigProviderPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterEncryptionConfigProviderOutput).ToClusterEncryptionConfigProviderPtrOutputWithContext(ctx)
}
// ClusterEncryptionConfigProviderPtrInput is an input type that accepts ClusterEncryptionConfigProviderArgs, ClusterEncryptionConfigProviderPtr and ClusterEncryptionConfigProviderPtrOutput values.
// You can construct a concrete instance of `ClusterEncryptionConfigProviderPtrInput` via:
//
// ClusterEncryptionConfigProviderArgs{...}
//
// or:
//
// nil
type ClusterEncryptionConfigProviderPtrInput interface {
pulumi.Input
ToClusterEncryptionConfigProviderPtrOutput() ClusterEncryptionConfigProviderPtrOutput
ToClusterEncryptionConfigProviderPtrOutputWithContext(context.Context) ClusterEncryptionConfigProviderPtrOutput
}
type clusterEncryptionConfigProviderPtrType ClusterEncryptionConfigProviderArgs
func ClusterEncryptionConfigProviderPtr(v *ClusterEncryptionConfigProviderArgs) ClusterEncryptionConfigProviderPtrInput {
return (*clusterEncryptionConfigProviderPtrType)(v)
}
func (*clusterEncryptionConfigProviderPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ClusterEncryptionConfigProvider)(nil)).Elem()
}
func (i *clusterEncryptionConfigProviderPtrType) ToClusterEncryptionConfigProviderPtrOutput() ClusterEncryptionConfigProviderPtrOutput {
return i.ToClusterEncryptionConfigProviderPtrOutputWithContext(context.Background())
}
func (i *clusterEncryptionConfigProviderPtrType) ToClusterEncryptionConfigProviderPtrOutputWithContext(ctx context.Context) ClusterEncryptionConfigProviderPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterEncryptionConfigProviderPtrOutput)
}
type ClusterEncryptionConfigProviderOutput struct{ *pulumi.OutputState }
func (ClusterEncryptionConfigProviderOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterEncryptionConfigProvider)(nil)).Elem()
}
func (o ClusterEncryptionConfigProviderOutput) ToClusterEncryptionConfigProviderOutput() ClusterEncryptionConfigProviderOutput {
return o
}
func (o ClusterEncryptionConfigProviderOutput) ToClusterEncryptionConfigProviderOutputWithContext(ctx context.Context) ClusterEncryptionConfigProviderOutput {
return o
}
func (o ClusterEncryptionConfigProviderOutput) ToClusterEncryptionConfigProviderPtrOutput() ClusterEncryptionConfigProviderPtrOutput {
return o.ToClusterEncryptionConfigProviderPtrOutputWithContext(context.Background())
}
func (o ClusterEncryptionConfigProviderOutput) ToClusterEncryptionConfigProviderPtrOutputWithContext(ctx context.Context) ClusterEncryptionConfigProviderPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterEncryptionConfigProvider) *ClusterEncryptionConfigProvider {
return &v
}).(ClusterEncryptionConfigProviderPtrOutput)
}
// ARN of the Key Management Service (KMS) customer master key (CMK). The CMK must be symmetric, created in the same region as the cluster, and if the CMK was created in a different account, the user must have access to the CMK. For more information, see [Allowing Users in Other Accounts to Use a CMK in the AWS Key Management Service Developer Guide](https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-modifying-external-accounts.html).
func (o ClusterEncryptionConfigProviderOutput) KeyArn() pulumi.StringOutput {
return o.ApplyT(func(v ClusterEncryptionConfigProvider) string { return v.KeyArn }).(pulumi.StringOutput)
}
type ClusterEncryptionConfigProviderPtrOutput struct{ *pulumi.OutputState }
func (ClusterEncryptionConfigProviderPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ClusterEncryptionConfigProvider)(nil)).Elem()
}
func (o ClusterEncryptionConfigProviderPtrOutput) ToClusterEncryptionConfigProviderPtrOutput() ClusterEncryptionConfigProviderPtrOutput {
return o
}
func (o ClusterEncryptionConfigProviderPtrOutput) ToClusterEncryptionConfigProviderPtrOutputWithContext(ctx context.Context) ClusterEncryptionConfigProviderPtrOutput {
return o
}
func (o ClusterEncryptionConfigProviderPtrOutput) Elem() ClusterEncryptionConfigProviderOutput {
return o.ApplyT(func(v *ClusterEncryptionConfigProvider) ClusterEncryptionConfigProvider {
if v != nil {
return *v
}
var ret ClusterEncryptionConfigProvider
return ret
}).(ClusterEncryptionConfigProviderOutput)
}
// ARN of the Key Management Service (KMS) customer master key (CMK). The CMK must be symmetric, created in the same region as the cluster, and if the CMK was created in a different account, the user must have access to the CMK. For more information, see [Allowing Users in Other Accounts to Use a CMK in the AWS Key Management Service Developer Guide](https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-modifying-external-accounts.html).
func (o ClusterEncryptionConfigProviderPtrOutput) KeyArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ClusterEncryptionConfigProvider) *string {
if v == nil {
return nil
}
return &v.KeyArn
}).(pulumi.StringPtrOutput)
}
type ClusterIdentity struct {
// Nested block containing [OpenID Connect](https://openid.net/connect/) identity provider information for the cluster. Detailed below.
Oidcs []ClusterIdentityOidc `pulumi:"oidcs"`
}
// ClusterIdentityInput is an input type that accepts ClusterIdentityArgs and ClusterIdentityOutput values.
// You can construct a concrete instance of `ClusterIdentityInput` via:
//
// ClusterIdentityArgs{...}
type ClusterIdentityInput interface {
pulumi.Input
ToClusterIdentityOutput() ClusterIdentityOutput
ToClusterIdentityOutputWithContext(context.Context) ClusterIdentityOutput
}
type ClusterIdentityArgs struct {
// Nested block containing [OpenID Connect](https://openid.net/connect/) identity provider information for the cluster. Detailed below.
Oidcs ClusterIdentityOidcArrayInput `pulumi:"oidcs"`
}
func (ClusterIdentityArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterIdentity)(nil)).Elem()
}
func (i ClusterIdentityArgs) ToClusterIdentityOutput() ClusterIdentityOutput {
return i.ToClusterIdentityOutputWithContext(context.Background())
}
func (i ClusterIdentityArgs) ToClusterIdentityOutputWithContext(ctx context.Context) ClusterIdentityOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterIdentityOutput)
}
// ClusterIdentityArrayInput is an input type that accepts ClusterIdentityArray and ClusterIdentityArrayOutput values.
// You can construct a concrete instance of `ClusterIdentityArrayInput` via:
//
// ClusterIdentityArray{ ClusterIdentityArgs{...} }
type ClusterIdentityArrayInput interface {
pulumi.Input
ToClusterIdentityArrayOutput() ClusterIdentityArrayOutput
ToClusterIdentityArrayOutputWithContext(context.Context) ClusterIdentityArrayOutput
}
type ClusterIdentityArray []ClusterIdentityInput
func (ClusterIdentityArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ClusterIdentity)(nil)).Elem()
}
func (i ClusterIdentityArray) ToClusterIdentityArrayOutput() ClusterIdentityArrayOutput {
return i.ToClusterIdentityArrayOutputWithContext(context.Background())
}
func (i ClusterIdentityArray) ToClusterIdentityArrayOutputWithContext(ctx context.Context) ClusterIdentityArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterIdentityArrayOutput)
}
type ClusterIdentityOutput struct{ *pulumi.OutputState }
func (ClusterIdentityOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterIdentity)(nil)).Elem()
}
func (o ClusterIdentityOutput) ToClusterIdentityOutput() ClusterIdentityOutput {
return o
}
func (o ClusterIdentityOutput) ToClusterIdentityOutputWithContext(ctx context.Context) ClusterIdentityOutput {
return o
}
// Nested block containing [OpenID Connect](https://openid.net/connect/) identity provider information for the cluster. Detailed below.
func (o ClusterIdentityOutput) Oidcs() ClusterIdentityOidcArrayOutput {
return o.ApplyT(func(v ClusterIdentity) []ClusterIdentityOidc { return v.Oidcs }).(ClusterIdentityOidcArrayOutput)
}
type ClusterIdentityArrayOutput struct{ *pulumi.OutputState }
func (ClusterIdentityArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ClusterIdentity)(nil)).Elem()
}
func (o ClusterIdentityArrayOutput) ToClusterIdentityArrayOutput() ClusterIdentityArrayOutput {
return o
}
func (o ClusterIdentityArrayOutput) ToClusterIdentityArrayOutputWithContext(ctx context.Context) ClusterIdentityArrayOutput {
return o
}
func (o ClusterIdentityArrayOutput) Index(i pulumi.IntInput) ClusterIdentityOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterIdentity {
return vs[0].([]ClusterIdentity)[vs[1].(int)]
}).(ClusterIdentityOutput)
}
type ClusterIdentityOidc struct {
// Issuer URL for the OpenID Connect identity provider.
Issuer *string `pulumi:"issuer"`
}
// ClusterIdentityOidcInput is an input type that accepts ClusterIdentityOidcArgs and ClusterIdentityOidcOutput values.
// You can construct a concrete instance of `ClusterIdentityOidcInput` via:
//
// ClusterIdentityOidcArgs{...}
type ClusterIdentityOidcInput interface {
pulumi.Input
ToClusterIdentityOidcOutput() ClusterIdentityOidcOutput
ToClusterIdentityOidcOutputWithContext(context.Context) ClusterIdentityOidcOutput
}
type ClusterIdentityOidcArgs struct {
// Issuer URL for the OpenID Connect identity provider.
Issuer pulumi.StringPtrInput `pulumi:"issuer"`
}
func (ClusterIdentityOidcArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterIdentityOidc)(nil)).Elem()
}
func (i ClusterIdentityOidcArgs) ToClusterIdentityOidcOutput() ClusterIdentityOidcOutput {
return i.ToClusterIdentityOidcOutputWithContext(context.Background())
}
func (i ClusterIdentityOidcArgs) ToClusterIdentityOidcOutputWithContext(ctx context.Context) ClusterIdentityOidcOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterIdentityOidcOutput)
}
// ClusterIdentityOidcArrayInput is an input type that accepts ClusterIdentityOidcArray and ClusterIdentityOidcArrayOutput values.
// You can construct a concrete instance of `ClusterIdentityOidcArrayInput` via:
//
// ClusterIdentityOidcArray{ ClusterIdentityOidcArgs{...} }
type ClusterIdentityOidcArrayInput interface {
pulumi.Input
ToClusterIdentityOidcArrayOutput() ClusterIdentityOidcArrayOutput
ToClusterIdentityOidcArrayOutputWithContext(context.Context) ClusterIdentityOidcArrayOutput
}
type ClusterIdentityOidcArray []ClusterIdentityOidcInput
func (ClusterIdentityOidcArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ClusterIdentityOidc)(nil)).Elem()
}
func (i ClusterIdentityOidcArray) ToClusterIdentityOidcArrayOutput() ClusterIdentityOidcArrayOutput {
return i.ToClusterIdentityOidcArrayOutputWithContext(context.Background())
}
func (i ClusterIdentityOidcArray) ToClusterIdentityOidcArrayOutputWithContext(ctx context.Context) ClusterIdentityOidcArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterIdentityOidcArrayOutput)
}
type ClusterIdentityOidcOutput struct{ *pulumi.OutputState }
func (ClusterIdentityOidcOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterIdentityOidc)(nil)).Elem()
}
func (o ClusterIdentityOidcOutput) ToClusterIdentityOidcOutput() ClusterIdentityOidcOutput {
return o
}
func (o ClusterIdentityOidcOutput) ToClusterIdentityOidcOutputWithContext(ctx context.Context) ClusterIdentityOidcOutput {
return o
}
// Issuer URL for the OpenID Connect identity provider.
func (o ClusterIdentityOidcOutput) Issuer() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterIdentityOidc) *string { return v.Issuer }).(pulumi.StringPtrOutput)
}
type ClusterIdentityOidcArrayOutput struct{ *pulumi.OutputState }
func (ClusterIdentityOidcArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ClusterIdentityOidc)(nil)).Elem()
}
func (o ClusterIdentityOidcArrayOutput) ToClusterIdentityOidcArrayOutput() ClusterIdentityOidcArrayOutput {
return o
}
func (o ClusterIdentityOidcArrayOutput) ToClusterIdentityOidcArrayOutputWithContext(ctx context.Context) ClusterIdentityOidcArrayOutput {
return o
}
func (o ClusterIdentityOidcArrayOutput) Index(i pulumi.IntInput) ClusterIdentityOidcOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterIdentityOidc {
return vs[0].([]ClusterIdentityOidc)[vs[1].(int)]
}).(ClusterIdentityOidcOutput)
}
type ClusterKubernetesNetworkConfig struct {
// The IP family used to assign Kubernetes pod and service addresses. Valid values are `ipv4` (default) and `ipv6`. You can only specify an IP family when you create a cluster, changing this value will force a new cluster to be created.
IpFamily *string `pulumi:"ipFamily"`
// The CIDR block to assign Kubernetes pod and service IP addresses from. If you don't specify a block, Kubernetes assigns addresses from either the 10.100.0.0/16 or 172.20.0.0/16 CIDR blocks. We recommend that you specify a block that does not overlap with resources in other networks that are peered or connected to your VPC. You can only specify a custom CIDR block when you create a cluster, changing this value will force a new cluster to be created. The block must meet the following requirements:
//
// * Within one of the following private IP address blocks: 10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16.
//
// * Doesn't overlap with any CIDR block assigned to the VPC that you selected for VPC.
//
// * Between /24 and /12.
ServiceIpv4Cidr *string `pulumi:"serviceIpv4Cidr"`
ServiceIpv6Cidr *string `pulumi:"serviceIpv6Cidr"`
}
// ClusterKubernetesNetworkConfigInput is an input type that accepts ClusterKubernetesNetworkConfigArgs and ClusterKubernetesNetworkConfigOutput values.
// You can construct a concrete instance of `ClusterKubernetesNetworkConfigInput` via:
//
// ClusterKubernetesNetworkConfigArgs{...}
type ClusterKubernetesNetworkConfigInput interface {
pulumi.Input
ToClusterKubernetesNetworkConfigOutput() ClusterKubernetesNetworkConfigOutput
ToClusterKubernetesNetworkConfigOutputWithContext(context.Context) ClusterKubernetesNetworkConfigOutput
}
type ClusterKubernetesNetworkConfigArgs struct {
// The IP family used to assign Kubernetes pod and service addresses. Valid values are `ipv4` (default) and `ipv6`. You can only specify an IP family when you create a cluster, changing this value will force a new cluster to be created.
IpFamily pulumi.StringPtrInput `pulumi:"ipFamily"`
// The CIDR block to assign Kubernetes pod and service IP addresses from. If you don't specify a block, Kubernetes assigns addresses from either the 10.100.0.0/16 or 172.20.0.0/16 CIDR blocks. We recommend that you specify a block that does not overlap with resources in other networks that are peered or connected to your VPC. You can only specify a custom CIDR block when you create a cluster, changing this value will force a new cluster to be created. The block must meet the following requirements:
//
// * Within one of the following private IP address blocks: 10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16.
//
// * Doesn't overlap with any CIDR block assigned to the VPC that you selected for VPC.
//
// * Between /24 and /12.
ServiceIpv4Cidr pulumi.StringPtrInput `pulumi:"serviceIpv4Cidr"`
ServiceIpv6Cidr pulumi.StringPtrInput `pulumi:"serviceIpv6Cidr"`
}
func (ClusterKubernetesNetworkConfigArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterKubernetesNetworkConfig)(nil)).Elem()
}
func (i ClusterKubernetesNetworkConfigArgs) ToClusterKubernetesNetworkConfigOutput() ClusterKubernetesNetworkConfigOutput {
return i.ToClusterKubernetesNetworkConfigOutputWithContext(context.Background())
}
func (i ClusterKubernetesNetworkConfigArgs) ToClusterKubernetesNetworkConfigOutputWithContext(ctx context.Context) ClusterKubernetesNetworkConfigOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterKubernetesNetworkConfigOutput)
}
func (i ClusterKubernetesNetworkConfigArgs) ToClusterKubernetesNetworkConfigPtrOutput() ClusterKubernetesNetworkConfigPtrOutput {
return i.ToClusterKubernetesNetworkConfigPtrOutputWithContext(context.Background())
}
func (i ClusterKubernetesNetworkConfigArgs) ToClusterKubernetesNetworkConfigPtrOutputWithContext(ctx context.Context) ClusterKubernetesNetworkConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterKubernetesNetworkConfigOutput).ToClusterKubernetesNetworkConfigPtrOutputWithContext(ctx)
}
// ClusterKubernetesNetworkConfigPtrInput is an input type that accepts ClusterKubernetesNetworkConfigArgs, ClusterKubernetesNetworkConfigPtr and ClusterKubernetesNetworkConfigPtrOutput values.
// You can construct a concrete instance of `ClusterKubernetesNetworkConfigPtrInput` via:
//
// ClusterKubernetesNetworkConfigArgs{...}
//
// or:
//
// nil
type ClusterKubernetesNetworkConfigPtrInput interface {
pulumi.Input
ToClusterKubernetesNetworkConfigPtrOutput() ClusterKubernetesNetworkConfigPtrOutput
ToClusterKubernetesNetworkConfigPtrOutputWithContext(context.Context) ClusterKubernetesNetworkConfigPtrOutput
}
type clusterKubernetesNetworkConfigPtrType ClusterKubernetesNetworkConfigArgs
func ClusterKubernetesNetworkConfigPtr(v *ClusterKubernetesNetworkConfigArgs) ClusterKubernetesNetworkConfigPtrInput {
return (*clusterKubernetesNetworkConfigPtrType)(v)
}
func (*clusterKubernetesNetworkConfigPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ClusterKubernetesNetworkConfig)(nil)).Elem()
}
func (i *clusterKubernetesNetworkConfigPtrType) ToClusterKubernetesNetworkConfigPtrOutput() ClusterKubernetesNetworkConfigPtrOutput {
return i.ToClusterKubernetesNetworkConfigPtrOutputWithContext(context.Background())
}
func (i *clusterKubernetesNetworkConfigPtrType) ToClusterKubernetesNetworkConfigPtrOutputWithContext(ctx context.Context) ClusterKubernetesNetworkConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterKubernetesNetworkConfigPtrOutput)
}
type ClusterKubernetesNetworkConfigOutput struct{ *pulumi.OutputState }
func (ClusterKubernetesNetworkConfigOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterKubernetesNetworkConfig)(nil)).Elem()
}
func (o ClusterKubernetesNetworkConfigOutput) ToClusterKubernetesNetworkConfigOutput() ClusterKubernetesNetworkConfigOutput {
return o
}
func (o ClusterKubernetesNetworkConfigOutput) ToClusterKubernetesNetworkConfigOutputWithContext(ctx context.Context) ClusterKubernetesNetworkConfigOutput {
return o
}
func (o ClusterKubernetesNetworkConfigOutput) ToClusterKubernetesNetworkConfigPtrOutput() ClusterKubernetesNetworkConfigPtrOutput {
return o.ToClusterKubernetesNetworkConfigPtrOutputWithContext(context.Background())
}
func (o ClusterKubernetesNetworkConfigOutput) ToClusterKubernetesNetworkConfigPtrOutputWithContext(ctx context.Context) ClusterKubernetesNetworkConfigPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterKubernetesNetworkConfig) *ClusterKubernetesNetworkConfig {
return &v
}).(ClusterKubernetesNetworkConfigPtrOutput)
}
// The IP family used to assign Kubernetes pod and service addresses. Valid values are `ipv4` (default) and `ipv6`. You can only specify an IP family when you create a cluster, changing this value will force a new cluster to be created.
func (o ClusterKubernetesNetworkConfigOutput) IpFamily() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterKubernetesNetworkConfig) *string { return v.IpFamily }).(pulumi.StringPtrOutput)
}
// The CIDR block to assign Kubernetes pod and service IP addresses from. If you don't specify a block, Kubernetes assigns addresses from either the 10.100.0.0/16 or 172.20.0.0/16 CIDR blocks. We recommend that you specify a block that does not overlap with resources in other networks that are peered or connected to your VPC. You can only specify a custom CIDR block when you create a cluster, changing this value will force a new cluster to be created. The block must meet the following requirements:
//
// * Within one of the following private IP address blocks: 10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16.
//
// * Doesn't overlap with any CIDR block assigned to the VPC that you selected for VPC.
//
// * Between /24 and /12.
func (o ClusterKubernetesNetworkConfigOutput) ServiceIpv4Cidr() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterKubernetesNetworkConfig) *string { return v.ServiceIpv4Cidr }).(pulumi.StringPtrOutput)
}
func (o ClusterKubernetesNetworkConfigOutput) ServiceIpv6Cidr() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterKubernetesNetworkConfig) *string { return v.ServiceIpv6Cidr }).(pulumi.StringPtrOutput)
}
type ClusterKubernetesNetworkConfigPtrOutput struct{ *pulumi.OutputState }
func (ClusterKubernetesNetworkConfigPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ClusterKubernetesNetworkConfig)(nil)).Elem()
}
func (o ClusterKubernetesNetworkConfigPtrOutput) ToClusterKubernetesNetworkConfigPtrOutput() ClusterKubernetesNetworkConfigPtrOutput {
return o
}
func (o ClusterKubernetesNetworkConfigPtrOutput) ToClusterKubernetesNetworkConfigPtrOutputWithContext(ctx context.Context) ClusterKubernetesNetworkConfigPtrOutput {
return o
}
func (o ClusterKubernetesNetworkConfigPtrOutput) Elem() ClusterKubernetesNetworkConfigOutput {
return o.ApplyT(func(v *ClusterKubernetesNetworkConfig) ClusterKubernetesNetworkConfig {
if v != nil {
return *v
}
var ret ClusterKubernetesNetworkConfig
return ret
}).(ClusterKubernetesNetworkConfigOutput)
}
// The IP family used to assign Kubernetes pod and service addresses. Valid values are `ipv4` (default) and `ipv6`. You can only specify an IP family when you create a cluster, changing this value will force a new cluster to be created.
func (o ClusterKubernetesNetworkConfigPtrOutput) IpFamily() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ClusterKubernetesNetworkConfig) *string {
if v == nil {
return nil
}
return v.IpFamily
}).(pulumi.StringPtrOutput)
}
// The CIDR block to assign Kubernetes pod and service IP addresses from. If you don't specify a block, Kubernetes assigns addresses from either the 10.100.0.0/16 or 172.20.0.0/16 CIDR blocks. We recommend that you specify a block that does not overlap with resources in other networks that are peered or connected to your VPC. You can only specify a custom CIDR block when you create a cluster, changing this value will force a new cluster to be created. The block must meet the following requirements:
//
// * Within one of the following private IP address blocks: 10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16.
//
// * Doesn't overlap with any CIDR block assigned to the VPC that you selected for VPC.
//
// * Between /24 and /12.
func (o ClusterKubernetesNetworkConfigPtrOutput) ServiceIpv4Cidr() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ClusterKubernetesNetworkConfig) *string {
if v == nil {
return nil
}
return v.ServiceIpv4Cidr
}).(pulumi.StringPtrOutput)
}
func (o ClusterKubernetesNetworkConfigPtrOutput) ServiceIpv6Cidr() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ClusterKubernetesNetworkConfig) *string {
if v == nil {
return nil
}
return v.ServiceIpv6Cidr
}).(pulumi.StringPtrOutput)
}
type ClusterOutpostConfig struct {
// The Amazon EC2 instance type that you want to use for your local Amazon EKS cluster on Outposts. The instance type that you specify is used for all Kubernetes control plane instances. The instance type can't be changed after cluster creation. Choose an instance type based on the number of nodes that your cluster will have. If your cluster will have:
//
// * 1–20 nodes, then we recommend specifying a large instance type.
//
// * 21–100 nodes, then we recommend specifying an xlarge instance type.
//
// * 101–250 nodes, then we recommend specifying a 2xlarge instance type.
//
// For a list of the available Amazon EC2 instance types, see Compute and storage in AWS Outposts rack features The control plane is not automatically scaled by Amazon EKS.
ControlPlaneInstanceType string `pulumi:"controlPlaneInstanceType"`
// An object representing the placement configuration for all the control plane instances of your local Amazon EKS cluster on AWS Outpost.
// The following arguments are supported in the `controlPlanePlacement` configuration block:
ControlPlanePlacement *ClusterOutpostConfigControlPlanePlacement `pulumi:"controlPlanePlacement"`
// The ARN of the Outpost that you want to use for your local Amazon EKS cluster on Outposts. This argument is a list of arns, but only a single Outpost ARN is supported currently.
OutpostArns []string `pulumi:"outpostArns"`
}
// ClusterOutpostConfigInput is an input type that accepts ClusterOutpostConfigArgs and ClusterOutpostConfigOutput values.
// You can construct a concrete instance of `ClusterOutpostConfigInput` via:
//
// ClusterOutpostConfigArgs{...}
type ClusterOutpostConfigInput interface {
pulumi.Input
ToClusterOutpostConfigOutput() ClusterOutpostConfigOutput
ToClusterOutpostConfigOutputWithContext(context.Context) ClusterOutpostConfigOutput
}
type ClusterOutpostConfigArgs struct {
// The Amazon EC2 instance type that you want to use for your local Amazon EKS cluster on Outposts. The instance type that you specify is used for all Kubernetes control plane instances. The instance type can't be changed after cluster creation. Choose an instance type based on the number of nodes that your cluster will have. If your cluster will have:
//
// * 1–20 nodes, then we recommend specifying a large instance type.
//
// * 21–100 nodes, then we recommend specifying an xlarge instance type.
//
// * 101–250 nodes, then we recommend specifying a 2xlarge instance type.
//
// For a list of the available Amazon EC2 instance types, see Compute and storage in AWS Outposts rack features The control plane is not automatically scaled by Amazon EKS.
ControlPlaneInstanceType pulumi.StringInput `pulumi:"controlPlaneInstanceType"`
// An object representing the placement configuration for all the control plane instances of your local Amazon EKS cluster on AWS Outpost.
// The following arguments are supported in the `controlPlanePlacement` configuration block:
ControlPlanePlacement ClusterOutpostConfigControlPlanePlacementPtrInput `pulumi:"controlPlanePlacement"`
// The ARN of the Outpost that you want to use for your local Amazon EKS cluster on Outposts. This argument is a list of arns, but only a single Outpost ARN is supported currently.
OutpostArns pulumi.StringArrayInput `pulumi:"outpostArns"`
}
func (ClusterOutpostConfigArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterOutpostConfig)(nil)).Elem()
}
func (i ClusterOutpostConfigArgs) ToClusterOutpostConfigOutput() ClusterOutpostConfigOutput {
return i.ToClusterOutpostConfigOutputWithContext(context.Background())
}
func (i ClusterOutpostConfigArgs) ToClusterOutpostConfigOutputWithContext(ctx context.Context) ClusterOutpostConfigOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterOutpostConfigOutput)
}
func (i ClusterOutpostConfigArgs) ToClusterOutpostConfigPtrOutput() ClusterOutpostConfigPtrOutput {
return i.ToClusterOutpostConfigPtrOutputWithContext(context.Background())
}
func (i ClusterOutpostConfigArgs) ToClusterOutpostConfigPtrOutputWithContext(ctx context.Context) ClusterOutpostConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterOutpostConfigOutput).ToClusterOutpostConfigPtrOutputWithContext(ctx)
}
// ClusterOutpostConfigPtrInput is an input type that accepts ClusterOutpostConfigArgs, ClusterOutpostConfigPtr and ClusterOutpostConfigPtrOutput values.
// You can construct a concrete instance of `ClusterOutpostConfigPtrInput` via:
//
// ClusterOutpostConfigArgs{...}
//
// or:
//
// nil
type ClusterOutpostConfigPtrInput interface {
pulumi.Input
ToClusterOutpostConfigPtrOutput() ClusterOutpostConfigPtrOutput
ToClusterOutpostConfigPtrOutputWithContext(context.Context) ClusterOutpostConfigPtrOutput
}
type clusterOutpostConfigPtrType ClusterOutpostConfigArgs
func ClusterOutpostConfigPtr(v *ClusterOutpostConfigArgs) ClusterOutpostConfigPtrInput {
return (*clusterOutpostConfigPtrType)(v)
}
func (*clusterOutpostConfigPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ClusterOutpostConfig)(nil)).Elem()
}
func (i *clusterOutpostConfigPtrType) ToClusterOutpostConfigPtrOutput() ClusterOutpostConfigPtrOutput {
return i.ToClusterOutpostConfigPtrOutputWithContext(context.Background())
}
func (i *clusterOutpostConfigPtrType) ToClusterOutpostConfigPtrOutputWithContext(ctx context.Context) ClusterOutpostConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterOutpostConfigPtrOutput)
}
type ClusterOutpostConfigOutput struct{ *pulumi.OutputState }
func (ClusterOutpostConfigOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterOutpostConfig)(nil)).Elem()
}
func (o ClusterOutpostConfigOutput) ToClusterOutpostConfigOutput() ClusterOutpostConfigOutput {
return o
}
func (o ClusterOutpostConfigOutput) ToClusterOutpostConfigOutputWithContext(ctx context.Context) ClusterOutpostConfigOutput {
return o
}
func (o ClusterOutpostConfigOutput) ToClusterOutpostConfigPtrOutput() ClusterOutpostConfigPtrOutput {
return o.ToClusterOutpostConfigPtrOutputWithContext(context.Background())
}
func (o ClusterOutpostConfigOutput) ToClusterOutpostConfigPtrOutputWithContext(ctx context.Context) ClusterOutpostConfigPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterOutpostConfig) *ClusterOutpostConfig {
return &v
}).(ClusterOutpostConfigPtrOutput)
}