forked from cloud-toolkit/cloud-toolkit-aws
/
pulumiTypes.go
2571 lines (2063 loc) · 101 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 Pulumi SDK Generator DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package landingzone
import (
"context"
"reflect"
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/iam"
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/organizations"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type AccountIamType struct {
// The alias to be used for IAM.
Alias *string `pulumi:"alias"`
// The IAM password policy configuration.
PasswordPolicy *AccountPasswordPolicy `pulumi:"passwordPolicy"`
}
// AccountIamTypeInput is an input type that accepts AccountIamTypeArgs and AccountIamTypeOutput values.
// You can construct a concrete instance of `AccountIamTypeInput` via:
//
// AccountIamTypeArgs{...}
type AccountIamTypeInput interface {
pulumi.Input
ToAccountIamTypeOutput() AccountIamTypeOutput
ToAccountIamTypeOutputWithContext(context.Context) AccountIamTypeOutput
}
type AccountIamTypeArgs struct {
// The alias to be used for IAM.
Alias pulumi.StringPtrInput `pulumi:"alias"`
// The IAM password policy configuration.
PasswordPolicy AccountPasswordPolicyPtrInput `pulumi:"passwordPolicy"`
}
func (AccountIamTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*AccountIamType)(nil)).Elem()
}
func (i AccountIamTypeArgs) ToAccountIamTypeOutput() AccountIamTypeOutput {
return i.ToAccountIamTypeOutputWithContext(context.Background())
}
func (i AccountIamTypeArgs) ToAccountIamTypeOutputWithContext(ctx context.Context) AccountIamTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(AccountIamTypeOutput)
}
type AccountIamTypeOutput struct{ *pulumi.OutputState }
func (AccountIamTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*AccountIamType)(nil)).Elem()
}
func (o AccountIamTypeOutput) ToAccountIamTypeOutput() AccountIamTypeOutput {
return o
}
func (o AccountIamTypeOutput) ToAccountIamTypeOutputWithContext(ctx context.Context) AccountIamTypeOutput {
return o
}
// The alias to be used for IAM.
func (o AccountIamTypeOutput) Alias() pulumi.StringPtrOutput {
return o.ApplyT(func(v AccountIamType) *string { return v.Alias }).(pulumi.StringPtrOutput)
}
// The IAM password policy configuration.
func (o AccountIamTypeOutput) PasswordPolicy() AccountPasswordPolicyPtrOutput {
return o.ApplyT(func(v AccountIamType) *AccountPasswordPolicy { return v.PasswordPolicy }).(AccountPasswordPolicyPtrOutput)
}
type AccountMapping struct {
Account *organizations.Account `pulumi:"account"`
AccountName string `pulumi:"accountName"`
}
type AccountMappingOutput struct{ *pulumi.OutputState }
func (AccountMappingOutput) ElementType() reflect.Type {
return reflect.TypeOf((*AccountMapping)(nil)).Elem()
}
func (o AccountMappingOutput) ToAccountMappingOutput() AccountMappingOutput {
return o
}
func (o AccountMappingOutput) ToAccountMappingOutputWithContext(ctx context.Context) AccountMappingOutput {
return o
}
func (o AccountMappingOutput) Account() organizations.AccountOutput {
return o.ApplyT(func(v AccountMapping) *organizations.Account { return v.Account }).(organizations.AccountOutput)
}
func (o AccountMappingOutput) AccountName() pulumi.StringOutput {
return o.ApplyT(func(v AccountMapping) string { return v.AccountName }).(pulumi.StringOutput)
}
type AccountMappingArrayOutput struct{ *pulumi.OutputState }
func (AccountMappingArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]AccountMapping)(nil)).Elem()
}
func (o AccountMappingArrayOutput) ToAccountMappingArrayOutput() AccountMappingArrayOutput {
return o
}
func (o AccountMappingArrayOutput) ToAccountMappingArrayOutputWithContext(ctx context.Context) AccountMappingArrayOutput {
return o
}
func (o AccountMappingArrayOutput) Index(i pulumi.IntInput) AccountMappingOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) AccountMapping {
return vs[0].([]AccountMapping)[vs[1].(int)]
}).(AccountMappingOutput)
}
type AccountPasswordPolicy struct {
// Enable the creation of IAM Password Policy. Defaults to 'true'.
Enabled *bool `pulumi:"enabled"`
// The rules to be applied to the IAM Password Policy
Rules *AccountPasswordPolicyRules `pulumi:"rules"`
}
// AccountPasswordPolicyInput is an input type that accepts AccountPasswordPolicyArgs and AccountPasswordPolicyOutput values.
// You can construct a concrete instance of `AccountPasswordPolicyInput` via:
//
// AccountPasswordPolicyArgs{...}
type AccountPasswordPolicyInput interface {
pulumi.Input
ToAccountPasswordPolicyOutput() AccountPasswordPolicyOutput
ToAccountPasswordPolicyOutputWithContext(context.Context) AccountPasswordPolicyOutput
}
type AccountPasswordPolicyArgs struct {
// Enable the creation of IAM Password Policy. Defaults to 'true'.
Enabled pulumi.BoolPtrInput `pulumi:"enabled"`
// The rules to be applied to the IAM Password Policy
Rules AccountPasswordPolicyRulesPtrInput `pulumi:"rules"`
}
func (AccountPasswordPolicyArgs) ElementType() reflect.Type {
return reflect.TypeOf((*AccountPasswordPolicy)(nil)).Elem()
}
func (i AccountPasswordPolicyArgs) ToAccountPasswordPolicyOutput() AccountPasswordPolicyOutput {
return i.ToAccountPasswordPolicyOutputWithContext(context.Background())
}
func (i AccountPasswordPolicyArgs) ToAccountPasswordPolicyOutputWithContext(ctx context.Context) AccountPasswordPolicyOutput {
return pulumi.ToOutputWithContext(ctx, i).(AccountPasswordPolicyOutput)
}
func (i AccountPasswordPolicyArgs) ToAccountPasswordPolicyPtrOutput() AccountPasswordPolicyPtrOutput {
return i.ToAccountPasswordPolicyPtrOutputWithContext(context.Background())
}
func (i AccountPasswordPolicyArgs) ToAccountPasswordPolicyPtrOutputWithContext(ctx context.Context) AccountPasswordPolicyPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(AccountPasswordPolicyOutput).ToAccountPasswordPolicyPtrOutputWithContext(ctx)
}
// AccountPasswordPolicyPtrInput is an input type that accepts AccountPasswordPolicyArgs, AccountPasswordPolicyPtr and AccountPasswordPolicyPtrOutput values.
// You can construct a concrete instance of `AccountPasswordPolicyPtrInput` via:
//
// AccountPasswordPolicyArgs{...}
//
// or:
//
// nil
type AccountPasswordPolicyPtrInput interface {
pulumi.Input
ToAccountPasswordPolicyPtrOutput() AccountPasswordPolicyPtrOutput
ToAccountPasswordPolicyPtrOutputWithContext(context.Context) AccountPasswordPolicyPtrOutput
}
type accountPasswordPolicyPtrType AccountPasswordPolicyArgs
func AccountPasswordPolicyPtr(v *AccountPasswordPolicyArgs) AccountPasswordPolicyPtrInput {
return (*accountPasswordPolicyPtrType)(v)
}
func (*accountPasswordPolicyPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**AccountPasswordPolicy)(nil)).Elem()
}
func (i *accountPasswordPolicyPtrType) ToAccountPasswordPolicyPtrOutput() AccountPasswordPolicyPtrOutput {
return i.ToAccountPasswordPolicyPtrOutputWithContext(context.Background())
}
func (i *accountPasswordPolicyPtrType) ToAccountPasswordPolicyPtrOutputWithContext(ctx context.Context) AccountPasswordPolicyPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(AccountPasswordPolicyPtrOutput)
}
type AccountPasswordPolicyOutput struct{ *pulumi.OutputState }
func (AccountPasswordPolicyOutput) ElementType() reflect.Type {
return reflect.TypeOf((*AccountPasswordPolicy)(nil)).Elem()
}
func (o AccountPasswordPolicyOutput) ToAccountPasswordPolicyOutput() AccountPasswordPolicyOutput {
return o
}
func (o AccountPasswordPolicyOutput) ToAccountPasswordPolicyOutputWithContext(ctx context.Context) AccountPasswordPolicyOutput {
return o
}
func (o AccountPasswordPolicyOutput) ToAccountPasswordPolicyPtrOutput() AccountPasswordPolicyPtrOutput {
return o.ToAccountPasswordPolicyPtrOutputWithContext(context.Background())
}
func (o AccountPasswordPolicyOutput) ToAccountPasswordPolicyPtrOutputWithContext(ctx context.Context) AccountPasswordPolicyPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v AccountPasswordPolicy) *AccountPasswordPolicy {
return &v
}).(AccountPasswordPolicyPtrOutput)
}
// Enable the creation of IAM Password Policy. Defaults to 'true'.
func (o AccountPasswordPolicyOutput) Enabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v AccountPasswordPolicy) *bool { return v.Enabled }).(pulumi.BoolPtrOutput)
}
// The rules to be applied to the IAM Password Policy
func (o AccountPasswordPolicyOutput) Rules() AccountPasswordPolicyRulesPtrOutput {
return o.ApplyT(func(v AccountPasswordPolicy) *AccountPasswordPolicyRules { return v.Rules }).(AccountPasswordPolicyRulesPtrOutput)
}
type AccountPasswordPolicyPtrOutput struct{ *pulumi.OutputState }
func (AccountPasswordPolicyPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**AccountPasswordPolicy)(nil)).Elem()
}
func (o AccountPasswordPolicyPtrOutput) ToAccountPasswordPolicyPtrOutput() AccountPasswordPolicyPtrOutput {
return o
}
func (o AccountPasswordPolicyPtrOutput) ToAccountPasswordPolicyPtrOutputWithContext(ctx context.Context) AccountPasswordPolicyPtrOutput {
return o
}
func (o AccountPasswordPolicyPtrOutput) Elem() AccountPasswordPolicyOutput {
return o.ApplyT(func(v *AccountPasswordPolicy) AccountPasswordPolicy {
if v != nil {
return *v
}
var ret AccountPasswordPolicy
return ret
}).(AccountPasswordPolicyOutput)
}
// Enable the creation of IAM Password Policy. Defaults to 'true'.
func (o AccountPasswordPolicyPtrOutput) Enabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *AccountPasswordPolicy) *bool {
if v == nil {
return nil
}
return v.Enabled
}).(pulumi.BoolPtrOutput)
}
// The rules to be applied to the IAM Password Policy
func (o AccountPasswordPolicyPtrOutput) Rules() AccountPasswordPolicyRulesPtrOutput {
return o.ApplyT(func(v *AccountPasswordPolicy) *AccountPasswordPolicyRules {
if v == nil {
return nil
}
return v.Rules
}).(AccountPasswordPolicyRulesPtrOutput)
}
type AccountPasswordPolicyRules struct {
// Whether to allow users to change their own password. Defaults to 'true'.
AllowUsersToChangePassword *bool `pulumi:"allowUsersToChangePassword"`
// Whether users are prevented from setting a new password after their password has expired (i.e., require administrator reset). Defaults to 'true'.
HardExpiry *bool `pulumi:"hardExpiry"`
// The number of days that an user password is valid. Defaults to '90'.
MaxPasswordAge *float64 `pulumi:"maxPasswordAge"`
// Minimum length to require for user passwords. Defaults to '14'.
MinimumPasswordLength *float64 `pulumi:"minimumPasswordLength"`
// The number of previous passwords that users are prevented from reusing. Defaults to '0'.
PasswordReusePrevention *float64 `pulumi:"passwordReusePrevention"`
// Whether to require lowercase characters for user passwords. Defaults to 'true'.
RequireLowercaseCharacters *bool `pulumi:"requireLowercaseCharacters"`
// Whether to require numbers for user passwords. Defaults to 'true'.
RequireNumbers *bool `pulumi:"requireNumbers"`
// Whether to require symbols for user passwords. Defaults to 'true'.
RequireSymbols *bool `pulumi:"requireSymbols"`
// Whether to require uppercase characters for user passwords. Defaults to 'true'.
RequireUppercaseCharacters *bool `pulumi:"requireUppercaseCharacters"`
}
// AccountPasswordPolicyRulesInput is an input type that accepts AccountPasswordPolicyRulesArgs and AccountPasswordPolicyRulesOutput values.
// You can construct a concrete instance of `AccountPasswordPolicyRulesInput` via:
//
// AccountPasswordPolicyRulesArgs{...}
type AccountPasswordPolicyRulesInput interface {
pulumi.Input
ToAccountPasswordPolicyRulesOutput() AccountPasswordPolicyRulesOutput
ToAccountPasswordPolicyRulesOutputWithContext(context.Context) AccountPasswordPolicyRulesOutput
}
type AccountPasswordPolicyRulesArgs struct {
// Whether to allow users to change their own password. Defaults to 'true'.
AllowUsersToChangePassword pulumi.BoolPtrInput `pulumi:"allowUsersToChangePassword"`
// Whether users are prevented from setting a new password after their password has expired (i.e., require administrator reset). Defaults to 'true'.
HardExpiry pulumi.BoolPtrInput `pulumi:"hardExpiry"`
// The number of days that an user password is valid. Defaults to '90'.
MaxPasswordAge pulumi.Float64PtrInput `pulumi:"maxPasswordAge"`
// Minimum length to require for user passwords. Defaults to '14'.
MinimumPasswordLength pulumi.Float64PtrInput `pulumi:"minimumPasswordLength"`
// The number of previous passwords that users are prevented from reusing. Defaults to '0'.
PasswordReusePrevention pulumi.Float64PtrInput `pulumi:"passwordReusePrevention"`
// Whether to require lowercase characters for user passwords. Defaults to 'true'.
RequireLowercaseCharacters pulumi.BoolPtrInput `pulumi:"requireLowercaseCharacters"`
// Whether to require numbers for user passwords. Defaults to 'true'.
RequireNumbers pulumi.BoolPtrInput `pulumi:"requireNumbers"`
// Whether to require symbols for user passwords. Defaults to 'true'.
RequireSymbols pulumi.BoolPtrInput `pulumi:"requireSymbols"`
// Whether to require uppercase characters for user passwords. Defaults to 'true'.
RequireUppercaseCharacters pulumi.BoolPtrInput `pulumi:"requireUppercaseCharacters"`
}
func (AccountPasswordPolicyRulesArgs) ElementType() reflect.Type {
return reflect.TypeOf((*AccountPasswordPolicyRules)(nil)).Elem()
}
func (i AccountPasswordPolicyRulesArgs) ToAccountPasswordPolicyRulesOutput() AccountPasswordPolicyRulesOutput {
return i.ToAccountPasswordPolicyRulesOutputWithContext(context.Background())
}
func (i AccountPasswordPolicyRulesArgs) ToAccountPasswordPolicyRulesOutputWithContext(ctx context.Context) AccountPasswordPolicyRulesOutput {
return pulumi.ToOutputWithContext(ctx, i).(AccountPasswordPolicyRulesOutput)
}
func (i AccountPasswordPolicyRulesArgs) ToAccountPasswordPolicyRulesPtrOutput() AccountPasswordPolicyRulesPtrOutput {
return i.ToAccountPasswordPolicyRulesPtrOutputWithContext(context.Background())
}
func (i AccountPasswordPolicyRulesArgs) ToAccountPasswordPolicyRulesPtrOutputWithContext(ctx context.Context) AccountPasswordPolicyRulesPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(AccountPasswordPolicyRulesOutput).ToAccountPasswordPolicyRulesPtrOutputWithContext(ctx)
}
// AccountPasswordPolicyRulesPtrInput is an input type that accepts AccountPasswordPolicyRulesArgs, AccountPasswordPolicyRulesPtr and AccountPasswordPolicyRulesPtrOutput values.
// You can construct a concrete instance of `AccountPasswordPolicyRulesPtrInput` via:
//
// AccountPasswordPolicyRulesArgs{...}
//
// or:
//
// nil
type AccountPasswordPolicyRulesPtrInput interface {
pulumi.Input
ToAccountPasswordPolicyRulesPtrOutput() AccountPasswordPolicyRulesPtrOutput
ToAccountPasswordPolicyRulesPtrOutputWithContext(context.Context) AccountPasswordPolicyRulesPtrOutput
}
type accountPasswordPolicyRulesPtrType AccountPasswordPolicyRulesArgs
func AccountPasswordPolicyRulesPtr(v *AccountPasswordPolicyRulesArgs) AccountPasswordPolicyRulesPtrInput {
return (*accountPasswordPolicyRulesPtrType)(v)
}
func (*accountPasswordPolicyRulesPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**AccountPasswordPolicyRules)(nil)).Elem()
}
func (i *accountPasswordPolicyRulesPtrType) ToAccountPasswordPolicyRulesPtrOutput() AccountPasswordPolicyRulesPtrOutput {
return i.ToAccountPasswordPolicyRulesPtrOutputWithContext(context.Background())
}
func (i *accountPasswordPolicyRulesPtrType) ToAccountPasswordPolicyRulesPtrOutputWithContext(ctx context.Context) AccountPasswordPolicyRulesPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(AccountPasswordPolicyRulesPtrOutput)
}
type AccountPasswordPolicyRulesOutput struct{ *pulumi.OutputState }
func (AccountPasswordPolicyRulesOutput) ElementType() reflect.Type {
return reflect.TypeOf((*AccountPasswordPolicyRules)(nil)).Elem()
}
func (o AccountPasswordPolicyRulesOutput) ToAccountPasswordPolicyRulesOutput() AccountPasswordPolicyRulesOutput {
return o
}
func (o AccountPasswordPolicyRulesOutput) ToAccountPasswordPolicyRulesOutputWithContext(ctx context.Context) AccountPasswordPolicyRulesOutput {
return o
}
func (o AccountPasswordPolicyRulesOutput) ToAccountPasswordPolicyRulesPtrOutput() AccountPasswordPolicyRulesPtrOutput {
return o.ToAccountPasswordPolicyRulesPtrOutputWithContext(context.Background())
}
func (o AccountPasswordPolicyRulesOutput) ToAccountPasswordPolicyRulesPtrOutputWithContext(ctx context.Context) AccountPasswordPolicyRulesPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v AccountPasswordPolicyRules) *AccountPasswordPolicyRules {
return &v
}).(AccountPasswordPolicyRulesPtrOutput)
}
// Whether to allow users to change their own password. Defaults to 'true'.
func (o AccountPasswordPolicyRulesOutput) AllowUsersToChangePassword() pulumi.BoolPtrOutput {
return o.ApplyT(func(v AccountPasswordPolicyRules) *bool { return v.AllowUsersToChangePassword }).(pulumi.BoolPtrOutput)
}
// Whether users are prevented from setting a new password after their password has expired (i.e., require administrator reset). Defaults to 'true'.
func (o AccountPasswordPolicyRulesOutput) HardExpiry() pulumi.BoolPtrOutput {
return o.ApplyT(func(v AccountPasswordPolicyRules) *bool { return v.HardExpiry }).(pulumi.BoolPtrOutput)
}
// The number of days that an user password is valid. Defaults to '90'.
func (o AccountPasswordPolicyRulesOutput) MaxPasswordAge() pulumi.Float64PtrOutput {
return o.ApplyT(func(v AccountPasswordPolicyRules) *float64 { return v.MaxPasswordAge }).(pulumi.Float64PtrOutput)
}
// Minimum length to require for user passwords. Defaults to '14'.
func (o AccountPasswordPolicyRulesOutput) MinimumPasswordLength() pulumi.Float64PtrOutput {
return o.ApplyT(func(v AccountPasswordPolicyRules) *float64 { return v.MinimumPasswordLength }).(pulumi.Float64PtrOutput)
}
// The number of previous passwords that users are prevented from reusing. Defaults to '0'.
func (o AccountPasswordPolicyRulesOutput) PasswordReusePrevention() pulumi.Float64PtrOutput {
return o.ApplyT(func(v AccountPasswordPolicyRules) *float64 { return v.PasswordReusePrevention }).(pulumi.Float64PtrOutput)
}
// Whether to require lowercase characters for user passwords. Defaults to 'true'.
func (o AccountPasswordPolicyRulesOutput) RequireLowercaseCharacters() pulumi.BoolPtrOutput {
return o.ApplyT(func(v AccountPasswordPolicyRules) *bool { return v.RequireLowercaseCharacters }).(pulumi.BoolPtrOutput)
}
// Whether to require numbers for user passwords. Defaults to 'true'.
func (o AccountPasswordPolicyRulesOutput) RequireNumbers() pulumi.BoolPtrOutput {
return o.ApplyT(func(v AccountPasswordPolicyRules) *bool { return v.RequireNumbers }).(pulumi.BoolPtrOutput)
}
// Whether to require symbols for user passwords. Defaults to 'true'.
func (o AccountPasswordPolicyRulesOutput) RequireSymbols() pulumi.BoolPtrOutput {
return o.ApplyT(func(v AccountPasswordPolicyRules) *bool { return v.RequireSymbols }).(pulumi.BoolPtrOutput)
}
// Whether to require uppercase characters for user passwords. Defaults to 'true'.
func (o AccountPasswordPolicyRulesOutput) RequireUppercaseCharacters() pulumi.BoolPtrOutput {
return o.ApplyT(func(v AccountPasswordPolicyRules) *bool { return v.RequireUppercaseCharacters }).(pulumi.BoolPtrOutput)
}
type AccountPasswordPolicyRulesPtrOutput struct{ *pulumi.OutputState }
func (AccountPasswordPolicyRulesPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**AccountPasswordPolicyRules)(nil)).Elem()
}
func (o AccountPasswordPolicyRulesPtrOutput) ToAccountPasswordPolicyRulesPtrOutput() AccountPasswordPolicyRulesPtrOutput {
return o
}
func (o AccountPasswordPolicyRulesPtrOutput) ToAccountPasswordPolicyRulesPtrOutputWithContext(ctx context.Context) AccountPasswordPolicyRulesPtrOutput {
return o
}
func (o AccountPasswordPolicyRulesPtrOutput) Elem() AccountPasswordPolicyRulesOutput {
return o.ApplyT(func(v *AccountPasswordPolicyRules) AccountPasswordPolicyRules {
if v != nil {
return *v
}
var ret AccountPasswordPolicyRules
return ret
}).(AccountPasswordPolicyRulesOutput)
}
// Whether to allow users to change their own password. Defaults to 'true'.
func (o AccountPasswordPolicyRulesPtrOutput) AllowUsersToChangePassword() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *AccountPasswordPolicyRules) *bool {
if v == nil {
return nil
}
return v.AllowUsersToChangePassword
}).(pulumi.BoolPtrOutput)
}
// Whether users are prevented from setting a new password after their password has expired (i.e., require administrator reset). Defaults to 'true'.
func (o AccountPasswordPolicyRulesPtrOutput) HardExpiry() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *AccountPasswordPolicyRules) *bool {
if v == nil {
return nil
}
return v.HardExpiry
}).(pulumi.BoolPtrOutput)
}
// The number of days that an user password is valid. Defaults to '90'.
func (o AccountPasswordPolicyRulesPtrOutput) MaxPasswordAge() pulumi.Float64PtrOutput {
return o.ApplyT(func(v *AccountPasswordPolicyRules) *float64 {
if v == nil {
return nil
}
return v.MaxPasswordAge
}).(pulumi.Float64PtrOutput)
}
// Minimum length to require for user passwords. Defaults to '14'.
func (o AccountPasswordPolicyRulesPtrOutput) MinimumPasswordLength() pulumi.Float64PtrOutput {
return o.ApplyT(func(v *AccountPasswordPolicyRules) *float64 {
if v == nil {
return nil
}
return v.MinimumPasswordLength
}).(pulumi.Float64PtrOutput)
}
// The number of previous passwords that users are prevented from reusing. Defaults to '0'.
func (o AccountPasswordPolicyRulesPtrOutput) PasswordReusePrevention() pulumi.Float64PtrOutput {
return o.ApplyT(func(v *AccountPasswordPolicyRules) *float64 {
if v == nil {
return nil
}
return v.PasswordReusePrevention
}).(pulumi.Float64PtrOutput)
}
// Whether to require lowercase characters for user passwords. Defaults to 'true'.
func (o AccountPasswordPolicyRulesPtrOutput) RequireLowercaseCharacters() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *AccountPasswordPolicyRules) *bool {
if v == nil {
return nil
}
return v.RequireLowercaseCharacters
}).(pulumi.BoolPtrOutput)
}
// Whether to require numbers for user passwords. Defaults to 'true'.
func (o AccountPasswordPolicyRulesPtrOutput) RequireNumbers() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *AccountPasswordPolicyRules) *bool {
if v == nil {
return nil
}
return v.RequireNumbers
}).(pulumi.BoolPtrOutput)
}
// Whether to require symbols for user passwords. Defaults to 'true'.
func (o AccountPasswordPolicyRulesPtrOutput) RequireSymbols() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *AccountPasswordPolicyRules) *bool {
if v == nil {
return nil
}
return v.RequireSymbols
}).(pulumi.BoolPtrOutput)
}
// Whether to require uppercase characters for user passwords. Defaults to 'true'.
func (o AccountPasswordPolicyRulesPtrOutput) RequireUppercaseCharacters() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *AccountPasswordPolicyRules) *bool {
if v == nil {
return nil
}
return v.RequireUppercaseCharacters
}).(pulumi.BoolPtrOutput)
}
type AuditLoggingType struct {
// The AWS provider to used to create the Bucket.
BucketProvider *aws.Provider `pulumi:"bucketProvider"`
// Store the audit logs in CloudWatch to enable easy searching.
Cloudwatch *AuditLoggingCloudWatch `pulumi:"cloudwatch"`
// The region to be used to store the data.
Region *string `pulumi:"region"`
// The data retention in days. Defaults to '7'.
RetentionDays *float64 `pulumi:"retentionDays"`
}
type AuditLoggingCloudWatch struct {
// Enable storing audit logs in CloudWatch. Defaults to 'false'.
Enabled bool `pulumi:"enabled"`
// The data retention in days. Defaults to '1'.
RetentionDays *float64 `pulumi:"retentionDays"`
}
// AuditLoggingCloudWatchInput is an input type that accepts AuditLoggingCloudWatchArgs and AuditLoggingCloudWatchOutput values.
// You can construct a concrete instance of `AuditLoggingCloudWatchInput` via:
//
// AuditLoggingCloudWatchArgs{...}
type AuditLoggingCloudWatchInput interface {
pulumi.Input
ToAuditLoggingCloudWatchOutput() AuditLoggingCloudWatchOutput
ToAuditLoggingCloudWatchOutputWithContext(context.Context) AuditLoggingCloudWatchOutput
}
type AuditLoggingCloudWatchArgs struct {
// Enable storing audit logs in CloudWatch. Defaults to 'false'.
Enabled pulumi.BoolInput `pulumi:"enabled"`
// The data retention in days. Defaults to '1'.
RetentionDays pulumi.Float64PtrInput `pulumi:"retentionDays"`
}
func (AuditLoggingCloudWatchArgs) ElementType() reflect.Type {
return reflect.TypeOf((*AuditLoggingCloudWatch)(nil)).Elem()
}
func (i AuditLoggingCloudWatchArgs) ToAuditLoggingCloudWatchOutput() AuditLoggingCloudWatchOutput {
return i.ToAuditLoggingCloudWatchOutputWithContext(context.Background())
}
func (i AuditLoggingCloudWatchArgs) ToAuditLoggingCloudWatchOutputWithContext(ctx context.Context) AuditLoggingCloudWatchOutput {
return pulumi.ToOutputWithContext(ctx, i).(AuditLoggingCloudWatchOutput)
}
func (i AuditLoggingCloudWatchArgs) ToAuditLoggingCloudWatchPtrOutput() AuditLoggingCloudWatchPtrOutput {
return i.ToAuditLoggingCloudWatchPtrOutputWithContext(context.Background())
}
func (i AuditLoggingCloudWatchArgs) ToAuditLoggingCloudWatchPtrOutputWithContext(ctx context.Context) AuditLoggingCloudWatchPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(AuditLoggingCloudWatchOutput).ToAuditLoggingCloudWatchPtrOutputWithContext(ctx)
}
// AuditLoggingCloudWatchPtrInput is an input type that accepts AuditLoggingCloudWatchArgs, AuditLoggingCloudWatchPtr and AuditLoggingCloudWatchPtrOutput values.
// You can construct a concrete instance of `AuditLoggingCloudWatchPtrInput` via:
//
// AuditLoggingCloudWatchArgs{...}
//
// or:
//
// nil
type AuditLoggingCloudWatchPtrInput interface {
pulumi.Input
ToAuditLoggingCloudWatchPtrOutput() AuditLoggingCloudWatchPtrOutput
ToAuditLoggingCloudWatchPtrOutputWithContext(context.Context) AuditLoggingCloudWatchPtrOutput
}
type auditLoggingCloudWatchPtrType AuditLoggingCloudWatchArgs
func AuditLoggingCloudWatchPtr(v *AuditLoggingCloudWatchArgs) AuditLoggingCloudWatchPtrInput {
return (*auditLoggingCloudWatchPtrType)(v)
}
func (*auditLoggingCloudWatchPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**AuditLoggingCloudWatch)(nil)).Elem()
}
func (i *auditLoggingCloudWatchPtrType) ToAuditLoggingCloudWatchPtrOutput() AuditLoggingCloudWatchPtrOutput {
return i.ToAuditLoggingCloudWatchPtrOutputWithContext(context.Background())
}
func (i *auditLoggingCloudWatchPtrType) ToAuditLoggingCloudWatchPtrOutputWithContext(ctx context.Context) AuditLoggingCloudWatchPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(AuditLoggingCloudWatchPtrOutput)
}
type AuditLoggingCloudWatchOutput struct{ *pulumi.OutputState }
func (AuditLoggingCloudWatchOutput) ElementType() reflect.Type {
return reflect.TypeOf((*AuditLoggingCloudWatch)(nil)).Elem()
}
func (o AuditLoggingCloudWatchOutput) ToAuditLoggingCloudWatchOutput() AuditLoggingCloudWatchOutput {
return o
}
func (o AuditLoggingCloudWatchOutput) ToAuditLoggingCloudWatchOutputWithContext(ctx context.Context) AuditLoggingCloudWatchOutput {
return o
}
func (o AuditLoggingCloudWatchOutput) ToAuditLoggingCloudWatchPtrOutput() AuditLoggingCloudWatchPtrOutput {
return o.ToAuditLoggingCloudWatchPtrOutputWithContext(context.Background())
}
func (o AuditLoggingCloudWatchOutput) ToAuditLoggingCloudWatchPtrOutputWithContext(ctx context.Context) AuditLoggingCloudWatchPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v AuditLoggingCloudWatch) *AuditLoggingCloudWatch {
return &v
}).(AuditLoggingCloudWatchPtrOutput)
}
// Enable storing audit logs in CloudWatch. Defaults to 'false'.
func (o AuditLoggingCloudWatchOutput) Enabled() pulumi.BoolOutput {
return o.ApplyT(func(v AuditLoggingCloudWatch) bool { return v.Enabled }).(pulumi.BoolOutput)
}
// The data retention in days. Defaults to '1'.
func (o AuditLoggingCloudWatchOutput) RetentionDays() pulumi.Float64PtrOutput {
return o.ApplyT(func(v AuditLoggingCloudWatch) *float64 { return v.RetentionDays }).(pulumi.Float64PtrOutput)
}
type AuditLoggingCloudWatchPtrOutput struct{ *pulumi.OutputState }
func (AuditLoggingCloudWatchPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**AuditLoggingCloudWatch)(nil)).Elem()
}
func (o AuditLoggingCloudWatchPtrOutput) ToAuditLoggingCloudWatchPtrOutput() AuditLoggingCloudWatchPtrOutput {
return o
}
func (o AuditLoggingCloudWatchPtrOutput) ToAuditLoggingCloudWatchPtrOutputWithContext(ctx context.Context) AuditLoggingCloudWatchPtrOutput {
return o
}
func (o AuditLoggingCloudWatchPtrOutput) Elem() AuditLoggingCloudWatchOutput {
return o.ApplyT(func(v *AuditLoggingCloudWatch) AuditLoggingCloudWatch {
if v != nil {
return *v
}
var ret AuditLoggingCloudWatch
return ret
}).(AuditLoggingCloudWatchOutput)
}
// Enable storing audit logs in CloudWatch. Defaults to 'false'.
func (o AuditLoggingCloudWatchPtrOutput) Enabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *AuditLoggingCloudWatch) *bool {
if v == nil {
return nil
}
return &v.Enabled
}).(pulumi.BoolPtrOutput)
}
// The data retention in days. Defaults to '1'.
func (o AuditLoggingCloudWatchPtrOutput) RetentionDays() pulumi.Float64PtrOutput {
return o.ApplyT(func(v *AuditLoggingCloudWatch) *float64 {
if v == nil {
return nil
}
return v.RetentionDays
}).(pulumi.Float64PtrOutput)
}
type IamTrustedAccountType struct {
Roles []IamTrustedAccountRole `pulumi:"roles"`
TrustingAccountId string `pulumi:"trustingAccountId"`
TrustingAccountName string `pulumi:"trustingAccountName"`
}
type IamTrustedAccountRole struct {
Name string `pulumi:"name"`
}
// IamTrustedAccountRoleInput is an input type that accepts IamTrustedAccountRoleArgs and IamTrustedAccountRoleOutput values.
// You can construct a concrete instance of `IamTrustedAccountRoleInput` via:
//
// IamTrustedAccountRoleArgs{...}
type IamTrustedAccountRoleInput interface {
pulumi.Input
ToIamTrustedAccountRoleOutput() IamTrustedAccountRoleOutput
ToIamTrustedAccountRoleOutputWithContext(context.Context) IamTrustedAccountRoleOutput
}
type IamTrustedAccountRoleArgs struct {
Name pulumi.StringInput `pulumi:"name"`
}
func (IamTrustedAccountRoleArgs) ElementType() reflect.Type {
return reflect.TypeOf((*IamTrustedAccountRole)(nil)).Elem()
}
func (i IamTrustedAccountRoleArgs) ToIamTrustedAccountRoleOutput() IamTrustedAccountRoleOutput {
return i.ToIamTrustedAccountRoleOutputWithContext(context.Background())
}
func (i IamTrustedAccountRoleArgs) ToIamTrustedAccountRoleOutputWithContext(ctx context.Context) IamTrustedAccountRoleOutput {
return pulumi.ToOutputWithContext(ctx, i).(IamTrustedAccountRoleOutput)
}
// IamTrustedAccountRoleArrayInput is an input type that accepts IamTrustedAccountRoleArray and IamTrustedAccountRoleArrayOutput values.
// You can construct a concrete instance of `IamTrustedAccountRoleArrayInput` via:
//
// IamTrustedAccountRoleArray{ IamTrustedAccountRoleArgs{...} }
type IamTrustedAccountRoleArrayInput interface {
pulumi.Input
ToIamTrustedAccountRoleArrayOutput() IamTrustedAccountRoleArrayOutput
ToIamTrustedAccountRoleArrayOutputWithContext(context.Context) IamTrustedAccountRoleArrayOutput
}
type IamTrustedAccountRoleArray []IamTrustedAccountRoleInput
func (IamTrustedAccountRoleArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]IamTrustedAccountRole)(nil)).Elem()
}
func (i IamTrustedAccountRoleArray) ToIamTrustedAccountRoleArrayOutput() IamTrustedAccountRoleArrayOutput {
return i.ToIamTrustedAccountRoleArrayOutputWithContext(context.Background())
}
func (i IamTrustedAccountRoleArray) ToIamTrustedAccountRoleArrayOutputWithContext(ctx context.Context) IamTrustedAccountRoleArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(IamTrustedAccountRoleArrayOutput)
}
type IamTrustedAccountRoleOutput struct{ *pulumi.OutputState }
func (IamTrustedAccountRoleOutput) ElementType() reflect.Type {
return reflect.TypeOf((*IamTrustedAccountRole)(nil)).Elem()
}
func (o IamTrustedAccountRoleOutput) ToIamTrustedAccountRoleOutput() IamTrustedAccountRoleOutput {
return o
}
func (o IamTrustedAccountRoleOutput) ToIamTrustedAccountRoleOutputWithContext(ctx context.Context) IamTrustedAccountRoleOutput {
return o
}
func (o IamTrustedAccountRoleOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v IamTrustedAccountRole) string { return v.Name }).(pulumi.StringOutput)
}
type IamTrustedAccountRoleArrayOutput struct{ *pulumi.OutputState }
func (IamTrustedAccountRoleArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]IamTrustedAccountRole)(nil)).Elem()
}
func (o IamTrustedAccountRoleArrayOutput) ToIamTrustedAccountRoleArrayOutput() IamTrustedAccountRoleArrayOutput {
return o
}
func (o IamTrustedAccountRoleArrayOutput) ToIamTrustedAccountRoleArrayOutputWithContext(ctx context.Context) IamTrustedAccountRoleArrayOutput {
return o
}
func (o IamTrustedAccountRoleArrayOutput) Index(i pulumi.IntInput) IamTrustedAccountRoleOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) IamTrustedAccountRole {
return vs[0].([]IamTrustedAccountRole)[vs[1].(int)]
}).(IamTrustedAccountRoleOutput)
}
type IamTrustedAccountRoleGroupMapping struct {
Group *iam.Group `pulumi:"group"`
RoleName string `pulumi:"roleName"`
}
type IamTrustedAccountRoleGroupMappingOutput struct{ *pulumi.OutputState }
func (IamTrustedAccountRoleGroupMappingOutput) ElementType() reflect.Type {
return reflect.TypeOf((*IamTrustedAccountRoleGroupMapping)(nil)).Elem()
}
func (o IamTrustedAccountRoleGroupMappingOutput) ToIamTrustedAccountRoleGroupMappingOutput() IamTrustedAccountRoleGroupMappingOutput {
return o
}
func (o IamTrustedAccountRoleGroupMappingOutput) ToIamTrustedAccountRoleGroupMappingOutputWithContext(ctx context.Context) IamTrustedAccountRoleGroupMappingOutput {
return o
}
func (o IamTrustedAccountRoleGroupMappingOutput) Group() iam.GroupOutput {
return o.ApplyT(func(v IamTrustedAccountRoleGroupMapping) *iam.Group { return v.Group }).(iam.GroupOutput)
}
func (o IamTrustedAccountRoleGroupMappingOutput) RoleName() pulumi.StringOutput {
return o.ApplyT(func(v IamTrustedAccountRoleGroupMapping) string { return v.RoleName }).(pulumi.StringOutput)
}
type IamTrustedAccountRoleGroupMappingArrayOutput struct{ *pulumi.OutputState }
func (IamTrustedAccountRoleGroupMappingArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]IamTrustedAccountRoleGroupMapping)(nil)).Elem()
}
func (o IamTrustedAccountRoleGroupMappingArrayOutput) ToIamTrustedAccountRoleGroupMappingArrayOutput() IamTrustedAccountRoleGroupMappingArrayOutput {
return o
}
func (o IamTrustedAccountRoleGroupMappingArrayOutput) ToIamTrustedAccountRoleGroupMappingArrayOutputWithContext(ctx context.Context) IamTrustedAccountRoleGroupMappingArrayOutput {
return o
}
func (o IamTrustedAccountRoleGroupMappingArrayOutput) Index(i pulumi.IntInput) IamTrustedAccountRoleGroupMappingOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) IamTrustedAccountRoleGroupMapping {
return vs[0].([]IamTrustedAccountRoleGroupMapping)[vs[1].(int)]
}).(IamTrustedAccountRoleGroupMappingOutput)
}
type IamTrustedAccountRoleGroupPolicyMapping struct {
GroupPolicy *iam.GroupPolicy `pulumi:"groupPolicy"`
RoleName string `pulumi:"roleName"`
}
type IamTrustedAccountRoleGroupPolicyMappingOutput struct{ *pulumi.OutputState }
func (IamTrustedAccountRoleGroupPolicyMappingOutput) ElementType() reflect.Type {
return reflect.TypeOf((*IamTrustedAccountRoleGroupPolicyMapping)(nil)).Elem()
}
func (o IamTrustedAccountRoleGroupPolicyMappingOutput) ToIamTrustedAccountRoleGroupPolicyMappingOutput() IamTrustedAccountRoleGroupPolicyMappingOutput {
return o
}
func (o IamTrustedAccountRoleGroupPolicyMappingOutput) ToIamTrustedAccountRoleGroupPolicyMappingOutputWithContext(ctx context.Context) IamTrustedAccountRoleGroupPolicyMappingOutput {
return o
}
func (o IamTrustedAccountRoleGroupPolicyMappingOutput) GroupPolicy() iam.GroupPolicyOutput {
return o.ApplyT(func(v IamTrustedAccountRoleGroupPolicyMapping) *iam.GroupPolicy { return v.GroupPolicy }).(iam.GroupPolicyOutput)
}
func (o IamTrustedAccountRoleGroupPolicyMappingOutput) RoleName() pulumi.StringOutput {
return o.ApplyT(func(v IamTrustedAccountRoleGroupPolicyMapping) string { return v.RoleName }).(pulumi.StringOutput)
}
type IamTrustedAccountRoleGroupPolicyMappingArrayOutput struct{ *pulumi.OutputState }
func (IamTrustedAccountRoleGroupPolicyMappingArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]IamTrustedAccountRoleGroupPolicyMapping)(nil)).Elem()
}
func (o IamTrustedAccountRoleGroupPolicyMappingArrayOutput) ToIamTrustedAccountRoleGroupPolicyMappingArrayOutput() IamTrustedAccountRoleGroupPolicyMappingArrayOutput {
return o
}
func (o IamTrustedAccountRoleGroupPolicyMappingArrayOutput) ToIamTrustedAccountRoleGroupPolicyMappingArrayOutputWithContext(ctx context.Context) IamTrustedAccountRoleGroupPolicyMappingArrayOutput {
return o
}
func (o IamTrustedAccountRoleGroupPolicyMappingArrayOutput) Index(i pulumi.IntInput) IamTrustedAccountRoleGroupPolicyMappingOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) IamTrustedAccountRoleGroupPolicyMapping {
return vs[0].([]IamTrustedAccountRoleGroupPolicyMapping)[vs[1].(int)]
}).(IamTrustedAccountRoleGroupPolicyMappingOutput)
}
type IamTrustingAccountType struct {
DelegatedAccountIds []string `pulumi:"delegatedAccountIds"`
DelegatedRoles []IamTrustingAccountRole `pulumi:"delegatedRoles"`
}
type IamTrustingAccountRole struct {
Name string `pulumi:"name"`
PolicyNames []string `pulumi:"policyNames"`
}
// IamTrustingAccountRoleInput is an input type that accepts IamTrustingAccountRoleArgs and IamTrustingAccountRoleOutput values.
// You can construct a concrete instance of `IamTrustingAccountRoleInput` via:
//
// IamTrustingAccountRoleArgs{...}
type IamTrustingAccountRoleInput interface {
pulumi.Input
ToIamTrustingAccountRoleOutput() IamTrustingAccountRoleOutput
ToIamTrustingAccountRoleOutputWithContext(context.Context) IamTrustingAccountRoleOutput
}
type IamTrustingAccountRoleArgs struct {
Name pulumi.StringInput `pulumi:"name"`
PolicyNames pulumi.StringArrayInput `pulumi:"policyNames"`
}
func (IamTrustingAccountRoleArgs) ElementType() reflect.Type {
return reflect.TypeOf((*IamTrustingAccountRole)(nil)).Elem()
}
func (i IamTrustingAccountRoleArgs) ToIamTrustingAccountRoleOutput() IamTrustingAccountRoleOutput {
return i.ToIamTrustingAccountRoleOutputWithContext(context.Background())
}
func (i IamTrustingAccountRoleArgs) ToIamTrustingAccountRoleOutputWithContext(ctx context.Context) IamTrustingAccountRoleOutput {
return pulumi.ToOutputWithContext(ctx, i).(IamTrustingAccountRoleOutput)
}
// IamTrustingAccountRoleArrayInput is an input type that accepts IamTrustingAccountRoleArray and IamTrustingAccountRoleArrayOutput values.
// You can construct a concrete instance of `IamTrustingAccountRoleArrayInput` via:
//
// IamTrustingAccountRoleArray{ IamTrustingAccountRoleArgs{...} }
type IamTrustingAccountRoleArrayInput interface {
pulumi.Input
ToIamTrustingAccountRoleArrayOutput() IamTrustingAccountRoleArrayOutput
ToIamTrustingAccountRoleArrayOutputWithContext(context.Context) IamTrustingAccountRoleArrayOutput
}
type IamTrustingAccountRoleArray []IamTrustingAccountRoleInput
func (IamTrustingAccountRoleArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]IamTrustingAccountRole)(nil)).Elem()
}
func (i IamTrustingAccountRoleArray) ToIamTrustingAccountRoleArrayOutput() IamTrustingAccountRoleArrayOutput {
return i.ToIamTrustingAccountRoleArrayOutputWithContext(context.Background())
}
func (i IamTrustingAccountRoleArray) ToIamTrustingAccountRoleArrayOutputWithContext(ctx context.Context) IamTrustingAccountRoleArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(IamTrustingAccountRoleArrayOutput)
}
type IamTrustingAccountRoleOutput struct{ *pulumi.OutputState }
func (IamTrustingAccountRoleOutput) ElementType() reflect.Type {
return reflect.TypeOf((*IamTrustingAccountRole)(nil)).Elem()
}
func (o IamTrustingAccountRoleOutput) ToIamTrustingAccountRoleOutput() IamTrustingAccountRoleOutput {
return o