-
Notifications
You must be signed in to change notification settings - Fork 150
/
pulumiTypes.go
4343 lines (3529 loc) · 215 KB
/
pulumiTypes.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package cognito
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type IdentityPoolCognitoIdentityProvider struct {
// The client ID for the Amazon Cognito Identity User Pool.
ClientId *string `pulumi:"clientId"`
// The provider name for an Amazon Cognito Identity User Pool.
ProviderName *string `pulumi:"providerName"`
// Whether server-side token validation is enabled for the identity provider’s token or not.
ServerSideTokenCheck *bool `pulumi:"serverSideTokenCheck"`
}
// IdentityPoolCognitoIdentityProviderInput is an input type that accepts IdentityPoolCognitoIdentityProviderArgs and IdentityPoolCognitoIdentityProviderOutput values.
// You can construct a concrete instance of `IdentityPoolCognitoIdentityProviderInput` via:
//
// IdentityPoolCognitoIdentityProviderArgs{...}
type IdentityPoolCognitoIdentityProviderInput interface {
pulumi.Input
ToIdentityPoolCognitoIdentityProviderOutput() IdentityPoolCognitoIdentityProviderOutput
ToIdentityPoolCognitoIdentityProviderOutputWithContext(context.Context) IdentityPoolCognitoIdentityProviderOutput
}
type IdentityPoolCognitoIdentityProviderArgs struct {
// The client ID for the Amazon Cognito Identity User Pool.
ClientId pulumi.StringPtrInput `pulumi:"clientId"`
// The provider name for an Amazon Cognito Identity User Pool.
ProviderName pulumi.StringPtrInput `pulumi:"providerName"`
// Whether server-side token validation is enabled for the identity provider’s token or not.
ServerSideTokenCheck pulumi.BoolPtrInput `pulumi:"serverSideTokenCheck"`
}
func (IdentityPoolCognitoIdentityProviderArgs) ElementType() reflect.Type {
return reflect.TypeOf((*IdentityPoolCognitoIdentityProvider)(nil)).Elem()
}
func (i IdentityPoolCognitoIdentityProviderArgs) ToIdentityPoolCognitoIdentityProviderOutput() IdentityPoolCognitoIdentityProviderOutput {
return i.ToIdentityPoolCognitoIdentityProviderOutputWithContext(context.Background())
}
func (i IdentityPoolCognitoIdentityProviderArgs) ToIdentityPoolCognitoIdentityProviderOutputWithContext(ctx context.Context) IdentityPoolCognitoIdentityProviderOutput {
return pulumi.ToOutputWithContext(ctx, i).(IdentityPoolCognitoIdentityProviderOutput)
}
// IdentityPoolCognitoIdentityProviderArrayInput is an input type that accepts IdentityPoolCognitoIdentityProviderArray and IdentityPoolCognitoIdentityProviderArrayOutput values.
// You can construct a concrete instance of `IdentityPoolCognitoIdentityProviderArrayInput` via:
//
// IdentityPoolCognitoIdentityProviderArray{ IdentityPoolCognitoIdentityProviderArgs{...} }
type IdentityPoolCognitoIdentityProviderArrayInput interface {
pulumi.Input
ToIdentityPoolCognitoIdentityProviderArrayOutput() IdentityPoolCognitoIdentityProviderArrayOutput
ToIdentityPoolCognitoIdentityProviderArrayOutputWithContext(context.Context) IdentityPoolCognitoIdentityProviderArrayOutput
}
type IdentityPoolCognitoIdentityProviderArray []IdentityPoolCognitoIdentityProviderInput
func (IdentityPoolCognitoIdentityProviderArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]IdentityPoolCognitoIdentityProvider)(nil)).Elem()
}
func (i IdentityPoolCognitoIdentityProviderArray) ToIdentityPoolCognitoIdentityProviderArrayOutput() IdentityPoolCognitoIdentityProviderArrayOutput {
return i.ToIdentityPoolCognitoIdentityProviderArrayOutputWithContext(context.Background())
}
func (i IdentityPoolCognitoIdentityProviderArray) ToIdentityPoolCognitoIdentityProviderArrayOutputWithContext(ctx context.Context) IdentityPoolCognitoIdentityProviderArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(IdentityPoolCognitoIdentityProviderArrayOutput)
}
type IdentityPoolCognitoIdentityProviderOutput struct{ *pulumi.OutputState }
func (IdentityPoolCognitoIdentityProviderOutput) ElementType() reflect.Type {
return reflect.TypeOf((*IdentityPoolCognitoIdentityProvider)(nil)).Elem()
}
func (o IdentityPoolCognitoIdentityProviderOutput) ToIdentityPoolCognitoIdentityProviderOutput() IdentityPoolCognitoIdentityProviderOutput {
return o
}
func (o IdentityPoolCognitoIdentityProviderOutput) ToIdentityPoolCognitoIdentityProviderOutputWithContext(ctx context.Context) IdentityPoolCognitoIdentityProviderOutput {
return o
}
// The client ID for the Amazon Cognito Identity User Pool.
func (o IdentityPoolCognitoIdentityProviderOutput) ClientId() pulumi.StringPtrOutput {
return o.ApplyT(func(v IdentityPoolCognitoIdentityProvider) *string { return v.ClientId }).(pulumi.StringPtrOutput)
}
// The provider name for an Amazon Cognito Identity User Pool.
func (o IdentityPoolCognitoIdentityProviderOutput) ProviderName() pulumi.StringPtrOutput {
return o.ApplyT(func(v IdentityPoolCognitoIdentityProvider) *string { return v.ProviderName }).(pulumi.StringPtrOutput)
}
// Whether server-side token validation is enabled for the identity provider’s token or not.
func (o IdentityPoolCognitoIdentityProviderOutput) ServerSideTokenCheck() pulumi.BoolPtrOutput {
return o.ApplyT(func(v IdentityPoolCognitoIdentityProvider) *bool { return v.ServerSideTokenCheck }).(pulumi.BoolPtrOutput)
}
type IdentityPoolCognitoIdentityProviderArrayOutput struct{ *pulumi.OutputState }
func (IdentityPoolCognitoIdentityProviderArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]IdentityPoolCognitoIdentityProvider)(nil)).Elem()
}
func (o IdentityPoolCognitoIdentityProviderArrayOutput) ToIdentityPoolCognitoIdentityProviderArrayOutput() IdentityPoolCognitoIdentityProviderArrayOutput {
return o
}
func (o IdentityPoolCognitoIdentityProviderArrayOutput) ToIdentityPoolCognitoIdentityProviderArrayOutputWithContext(ctx context.Context) IdentityPoolCognitoIdentityProviderArrayOutput {
return o
}
func (o IdentityPoolCognitoIdentityProviderArrayOutput) Index(i pulumi.IntInput) IdentityPoolCognitoIdentityProviderOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) IdentityPoolCognitoIdentityProvider {
return vs[0].([]IdentityPoolCognitoIdentityProvider)[vs[1].(int)]
}).(IdentityPoolCognitoIdentityProviderOutput)
}
type IdentityPoolRoleAttachmentRoleMapping struct {
// Specifies the action to be taken if either no rules match the claim value for the Rules type, or there is no cognito:preferred_role claim and there are multiple cognito:roles matches for the Token type. `Required` if you specify Token or Rules as the Type.
AmbiguousRoleResolution *string `pulumi:"ambiguousRoleResolution"`
// A string identifying the identity provider, for example, "graph.facebook.com" or "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id". Depends on `cognitoIdentityProviders` set on `cognito.IdentityPool` resource or a `cognito.IdentityProvider` resource.
IdentityProvider string `pulumi:"identityProvider"`
// The Rules Configuration to be used for mapping users to roles. You can specify up to 25 rules per identity provider. Rules are evaluated in order. The first one to match specifies the role.
MappingRules []IdentityPoolRoleAttachmentRoleMappingMappingRule `pulumi:"mappingRules"`
// The role mapping type.
Type string `pulumi:"type"`
}
// IdentityPoolRoleAttachmentRoleMappingInput is an input type that accepts IdentityPoolRoleAttachmentRoleMappingArgs and IdentityPoolRoleAttachmentRoleMappingOutput values.
// You can construct a concrete instance of `IdentityPoolRoleAttachmentRoleMappingInput` via:
//
// IdentityPoolRoleAttachmentRoleMappingArgs{...}
type IdentityPoolRoleAttachmentRoleMappingInput interface {
pulumi.Input
ToIdentityPoolRoleAttachmentRoleMappingOutput() IdentityPoolRoleAttachmentRoleMappingOutput
ToIdentityPoolRoleAttachmentRoleMappingOutputWithContext(context.Context) IdentityPoolRoleAttachmentRoleMappingOutput
}
type IdentityPoolRoleAttachmentRoleMappingArgs struct {
// Specifies the action to be taken if either no rules match the claim value for the Rules type, or there is no cognito:preferred_role claim and there are multiple cognito:roles matches for the Token type. `Required` if you specify Token or Rules as the Type.
AmbiguousRoleResolution pulumi.StringPtrInput `pulumi:"ambiguousRoleResolution"`
// A string identifying the identity provider, for example, "graph.facebook.com" or "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id". Depends on `cognitoIdentityProviders` set on `cognito.IdentityPool` resource or a `cognito.IdentityProvider` resource.
IdentityProvider pulumi.StringInput `pulumi:"identityProvider"`
// The Rules Configuration to be used for mapping users to roles. You can specify up to 25 rules per identity provider. Rules are evaluated in order. The first one to match specifies the role.
MappingRules IdentityPoolRoleAttachmentRoleMappingMappingRuleArrayInput `pulumi:"mappingRules"`
// The role mapping type.
Type pulumi.StringInput `pulumi:"type"`
}
func (IdentityPoolRoleAttachmentRoleMappingArgs) ElementType() reflect.Type {
return reflect.TypeOf((*IdentityPoolRoleAttachmentRoleMapping)(nil)).Elem()
}
func (i IdentityPoolRoleAttachmentRoleMappingArgs) ToIdentityPoolRoleAttachmentRoleMappingOutput() IdentityPoolRoleAttachmentRoleMappingOutput {
return i.ToIdentityPoolRoleAttachmentRoleMappingOutputWithContext(context.Background())
}
func (i IdentityPoolRoleAttachmentRoleMappingArgs) ToIdentityPoolRoleAttachmentRoleMappingOutputWithContext(ctx context.Context) IdentityPoolRoleAttachmentRoleMappingOutput {
return pulumi.ToOutputWithContext(ctx, i).(IdentityPoolRoleAttachmentRoleMappingOutput)
}
// IdentityPoolRoleAttachmentRoleMappingArrayInput is an input type that accepts IdentityPoolRoleAttachmentRoleMappingArray and IdentityPoolRoleAttachmentRoleMappingArrayOutput values.
// You can construct a concrete instance of `IdentityPoolRoleAttachmentRoleMappingArrayInput` via:
//
// IdentityPoolRoleAttachmentRoleMappingArray{ IdentityPoolRoleAttachmentRoleMappingArgs{...} }
type IdentityPoolRoleAttachmentRoleMappingArrayInput interface {
pulumi.Input
ToIdentityPoolRoleAttachmentRoleMappingArrayOutput() IdentityPoolRoleAttachmentRoleMappingArrayOutput
ToIdentityPoolRoleAttachmentRoleMappingArrayOutputWithContext(context.Context) IdentityPoolRoleAttachmentRoleMappingArrayOutput
}
type IdentityPoolRoleAttachmentRoleMappingArray []IdentityPoolRoleAttachmentRoleMappingInput
func (IdentityPoolRoleAttachmentRoleMappingArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]IdentityPoolRoleAttachmentRoleMapping)(nil)).Elem()
}
func (i IdentityPoolRoleAttachmentRoleMappingArray) ToIdentityPoolRoleAttachmentRoleMappingArrayOutput() IdentityPoolRoleAttachmentRoleMappingArrayOutput {
return i.ToIdentityPoolRoleAttachmentRoleMappingArrayOutputWithContext(context.Background())
}
func (i IdentityPoolRoleAttachmentRoleMappingArray) ToIdentityPoolRoleAttachmentRoleMappingArrayOutputWithContext(ctx context.Context) IdentityPoolRoleAttachmentRoleMappingArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(IdentityPoolRoleAttachmentRoleMappingArrayOutput)
}
type IdentityPoolRoleAttachmentRoleMappingOutput struct{ *pulumi.OutputState }
func (IdentityPoolRoleAttachmentRoleMappingOutput) ElementType() reflect.Type {
return reflect.TypeOf((*IdentityPoolRoleAttachmentRoleMapping)(nil)).Elem()
}
func (o IdentityPoolRoleAttachmentRoleMappingOutput) ToIdentityPoolRoleAttachmentRoleMappingOutput() IdentityPoolRoleAttachmentRoleMappingOutput {
return o
}
func (o IdentityPoolRoleAttachmentRoleMappingOutput) ToIdentityPoolRoleAttachmentRoleMappingOutputWithContext(ctx context.Context) IdentityPoolRoleAttachmentRoleMappingOutput {
return o
}
// Specifies the action to be taken if either no rules match the claim value for the Rules type, or there is no cognito:preferred_role claim and there are multiple cognito:roles matches for the Token type. `Required` if you specify Token or Rules as the Type.
func (o IdentityPoolRoleAttachmentRoleMappingOutput) AmbiguousRoleResolution() pulumi.StringPtrOutput {
return o.ApplyT(func(v IdentityPoolRoleAttachmentRoleMapping) *string { return v.AmbiguousRoleResolution }).(pulumi.StringPtrOutput)
}
// A string identifying the identity provider, for example, "graph.facebook.com" or "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id". Depends on `cognitoIdentityProviders` set on `cognito.IdentityPool` resource or a `cognito.IdentityProvider` resource.
func (o IdentityPoolRoleAttachmentRoleMappingOutput) IdentityProvider() pulumi.StringOutput {
return o.ApplyT(func(v IdentityPoolRoleAttachmentRoleMapping) string { return v.IdentityProvider }).(pulumi.StringOutput)
}
// The Rules Configuration to be used for mapping users to roles. You can specify up to 25 rules per identity provider. Rules are evaluated in order. The first one to match specifies the role.
func (o IdentityPoolRoleAttachmentRoleMappingOutput) MappingRules() IdentityPoolRoleAttachmentRoleMappingMappingRuleArrayOutput {
return o.ApplyT(func(v IdentityPoolRoleAttachmentRoleMapping) []IdentityPoolRoleAttachmentRoleMappingMappingRule {
return v.MappingRules
}).(IdentityPoolRoleAttachmentRoleMappingMappingRuleArrayOutput)
}
// The role mapping type.
func (o IdentityPoolRoleAttachmentRoleMappingOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v IdentityPoolRoleAttachmentRoleMapping) string { return v.Type }).(pulumi.StringOutput)
}
type IdentityPoolRoleAttachmentRoleMappingArrayOutput struct{ *pulumi.OutputState }
func (IdentityPoolRoleAttachmentRoleMappingArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]IdentityPoolRoleAttachmentRoleMapping)(nil)).Elem()
}
func (o IdentityPoolRoleAttachmentRoleMappingArrayOutput) ToIdentityPoolRoleAttachmentRoleMappingArrayOutput() IdentityPoolRoleAttachmentRoleMappingArrayOutput {
return o
}
func (o IdentityPoolRoleAttachmentRoleMappingArrayOutput) ToIdentityPoolRoleAttachmentRoleMappingArrayOutputWithContext(ctx context.Context) IdentityPoolRoleAttachmentRoleMappingArrayOutput {
return o
}
func (o IdentityPoolRoleAttachmentRoleMappingArrayOutput) Index(i pulumi.IntInput) IdentityPoolRoleAttachmentRoleMappingOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) IdentityPoolRoleAttachmentRoleMapping {
return vs[0].([]IdentityPoolRoleAttachmentRoleMapping)[vs[1].(int)]
}).(IdentityPoolRoleAttachmentRoleMappingOutput)
}
type IdentityPoolRoleAttachmentRoleMappingMappingRule struct {
// The claim name that must be present in the token, for example, "isAdmin" or "paid".
Claim string `pulumi:"claim"`
// The match condition that specifies how closely the claim value in the IdP token must match Value.
MatchType string `pulumi:"matchType"`
// The role ARN.
RoleArn string `pulumi:"roleArn"`
// A brief string that the claim must match, for example, "paid" or "yes".
Value string `pulumi:"value"`
}
// IdentityPoolRoleAttachmentRoleMappingMappingRuleInput is an input type that accepts IdentityPoolRoleAttachmentRoleMappingMappingRuleArgs and IdentityPoolRoleAttachmentRoleMappingMappingRuleOutput values.
// You can construct a concrete instance of `IdentityPoolRoleAttachmentRoleMappingMappingRuleInput` via:
//
// IdentityPoolRoleAttachmentRoleMappingMappingRuleArgs{...}
type IdentityPoolRoleAttachmentRoleMappingMappingRuleInput interface {
pulumi.Input
ToIdentityPoolRoleAttachmentRoleMappingMappingRuleOutput() IdentityPoolRoleAttachmentRoleMappingMappingRuleOutput
ToIdentityPoolRoleAttachmentRoleMappingMappingRuleOutputWithContext(context.Context) IdentityPoolRoleAttachmentRoleMappingMappingRuleOutput
}
type IdentityPoolRoleAttachmentRoleMappingMappingRuleArgs struct {
// The claim name that must be present in the token, for example, "isAdmin" or "paid".
Claim pulumi.StringInput `pulumi:"claim"`
// The match condition that specifies how closely the claim value in the IdP token must match Value.
MatchType pulumi.StringInput `pulumi:"matchType"`
// The role ARN.
RoleArn pulumi.StringInput `pulumi:"roleArn"`
// A brief string that the claim must match, for example, "paid" or "yes".
Value pulumi.StringInput `pulumi:"value"`
}
func (IdentityPoolRoleAttachmentRoleMappingMappingRuleArgs) ElementType() reflect.Type {
return reflect.TypeOf((*IdentityPoolRoleAttachmentRoleMappingMappingRule)(nil)).Elem()
}
func (i IdentityPoolRoleAttachmentRoleMappingMappingRuleArgs) ToIdentityPoolRoleAttachmentRoleMappingMappingRuleOutput() IdentityPoolRoleAttachmentRoleMappingMappingRuleOutput {
return i.ToIdentityPoolRoleAttachmentRoleMappingMappingRuleOutputWithContext(context.Background())
}
func (i IdentityPoolRoleAttachmentRoleMappingMappingRuleArgs) ToIdentityPoolRoleAttachmentRoleMappingMappingRuleOutputWithContext(ctx context.Context) IdentityPoolRoleAttachmentRoleMappingMappingRuleOutput {
return pulumi.ToOutputWithContext(ctx, i).(IdentityPoolRoleAttachmentRoleMappingMappingRuleOutput)
}
// IdentityPoolRoleAttachmentRoleMappingMappingRuleArrayInput is an input type that accepts IdentityPoolRoleAttachmentRoleMappingMappingRuleArray and IdentityPoolRoleAttachmentRoleMappingMappingRuleArrayOutput values.
// You can construct a concrete instance of `IdentityPoolRoleAttachmentRoleMappingMappingRuleArrayInput` via:
//
// IdentityPoolRoleAttachmentRoleMappingMappingRuleArray{ IdentityPoolRoleAttachmentRoleMappingMappingRuleArgs{...} }
type IdentityPoolRoleAttachmentRoleMappingMappingRuleArrayInput interface {
pulumi.Input
ToIdentityPoolRoleAttachmentRoleMappingMappingRuleArrayOutput() IdentityPoolRoleAttachmentRoleMappingMappingRuleArrayOutput
ToIdentityPoolRoleAttachmentRoleMappingMappingRuleArrayOutputWithContext(context.Context) IdentityPoolRoleAttachmentRoleMappingMappingRuleArrayOutput
}
type IdentityPoolRoleAttachmentRoleMappingMappingRuleArray []IdentityPoolRoleAttachmentRoleMappingMappingRuleInput
func (IdentityPoolRoleAttachmentRoleMappingMappingRuleArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]IdentityPoolRoleAttachmentRoleMappingMappingRule)(nil)).Elem()
}
func (i IdentityPoolRoleAttachmentRoleMappingMappingRuleArray) ToIdentityPoolRoleAttachmentRoleMappingMappingRuleArrayOutput() IdentityPoolRoleAttachmentRoleMappingMappingRuleArrayOutput {
return i.ToIdentityPoolRoleAttachmentRoleMappingMappingRuleArrayOutputWithContext(context.Background())
}
func (i IdentityPoolRoleAttachmentRoleMappingMappingRuleArray) ToIdentityPoolRoleAttachmentRoleMappingMappingRuleArrayOutputWithContext(ctx context.Context) IdentityPoolRoleAttachmentRoleMappingMappingRuleArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(IdentityPoolRoleAttachmentRoleMappingMappingRuleArrayOutput)
}
type IdentityPoolRoleAttachmentRoleMappingMappingRuleOutput struct{ *pulumi.OutputState }
func (IdentityPoolRoleAttachmentRoleMappingMappingRuleOutput) ElementType() reflect.Type {
return reflect.TypeOf((*IdentityPoolRoleAttachmentRoleMappingMappingRule)(nil)).Elem()
}
func (o IdentityPoolRoleAttachmentRoleMappingMappingRuleOutput) ToIdentityPoolRoleAttachmentRoleMappingMappingRuleOutput() IdentityPoolRoleAttachmentRoleMappingMappingRuleOutput {
return o
}
func (o IdentityPoolRoleAttachmentRoleMappingMappingRuleOutput) ToIdentityPoolRoleAttachmentRoleMappingMappingRuleOutputWithContext(ctx context.Context) IdentityPoolRoleAttachmentRoleMappingMappingRuleOutput {
return o
}
// The claim name that must be present in the token, for example, "isAdmin" or "paid".
func (o IdentityPoolRoleAttachmentRoleMappingMappingRuleOutput) Claim() pulumi.StringOutput {
return o.ApplyT(func(v IdentityPoolRoleAttachmentRoleMappingMappingRule) string { return v.Claim }).(pulumi.StringOutput)
}
// The match condition that specifies how closely the claim value in the IdP token must match Value.
func (o IdentityPoolRoleAttachmentRoleMappingMappingRuleOutput) MatchType() pulumi.StringOutput {
return o.ApplyT(func(v IdentityPoolRoleAttachmentRoleMappingMappingRule) string { return v.MatchType }).(pulumi.StringOutput)
}
// The role ARN.
func (o IdentityPoolRoleAttachmentRoleMappingMappingRuleOutput) RoleArn() pulumi.StringOutput {
return o.ApplyT(func(v IdentityPoolRoleAttachmentRoleMappingMappingRule) string { return v.RoleArn }).(pulumi.StringOutput)
}
// A brief string that the claim must match, for example, "paid" or "yes".
func (o IdentityPoolRoleAttachmentRoleMappingMappingRuleOutput) Value() pulumi.StringOutput {
return o.ApplyT(func(v IdentityPoolRoleAttachmentRoleMappingMappingRule) string { return v.Value }).(pulumi.StringOutput)
}
type IdentityPoolRoleAttachmentRoleMappingMappingRuleArrayOutput struct{ *pulumi.OutputState }
func (IdentityPoolRoleAttachmentRoleMappingMappingRuleArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]IdentityPoolRoleAttachmentRoleMappingMappingRule)(nil)).Elem()
}
func (o IdentityPoolRoleAttachmentRoleMappingMappingRuleArrayOutput) ToIdentityPoolRoleAttachmentRoleMappingMappingRuleArrayOutput() IdentityPoolRoleAttachmentRoleMappingMappingRuleArrayOutput {
return o
}
func (o IdentityPoolRoleAttachmentRoleMappingMappingRuleArrayOutput) ToIdentityPoolRoleAttachmentRoleMappingMappingRuleArrayOutputWithContext(ctx context.Context) IdentityPoolRoleAttachmentRoleMappingMappingRuleArrayOutput {
return o
}
func (o IdentityPoolRoleAttachmentRoleMappingMappingRuleArrayOutput) Index(i pulumi.IntInput) IdentityPoolRoleAttachmentRoleMappingMappingRuleOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) IdentityPoolRoleAttachmentRoleMappingMappingRule {
return vs[0].([]IdentityPoolRoleAttachmentRoleMappingMappingRule)[vs[1].(int)]
}).(IdentityPoolRoleAttachmentRoleMappingMappingRuleOutput)
}
type ResourceServerScope struct {
// The scope description.
ScopeDescription string `pulumi:"scopeDescription"`
// The scope name.
ScopeName string `pulumi:"scopeName"`
}
// ResourceServerScopeInput is an input type that accepts ResourceServerScopeArgs and ResourceServerScopeOutput values.
// You can construct a concrete instance of `ResourceServerScopeInput` via:
//
// ResourceServerScopeArgs{...}
type ResourceServerScopeInput interface {
pulumi.Input
ToResourceServerScopeOutput() ResourceServerScopeOutput
ToResourceServerScopeOutputWithContext(context.Context) ResourceServerScopeOutput
}
type ResourceServerScopeArgs struct {
// The scope description.
ScopeDescription pulumi.StringInput `pulumi:"scopeDescription"`
// The scope name.
ScopeName pulumi.StringInput `pulumi:"scopeName"`
}
func (ResourceServerScopeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ResourceServerScope)(nil)).Elem()
}
func (i ResourceServerScopeArgs) ToResourceServerScopeOutput() ResourceServerScopeOutput {
return i.ToResourceServerScopeOutputWithContext(context.Background())
}
func (i ResourceServerScopeArgs) ToResourceServerScopeOutputWithContext(ctx context.Context) ResourceServerScopeOutput {
return pulumi.ToOutputWithContext(ctx, i).(ResourceServerScopeOutput)
}
// ResourceServerScopeArrayInput is an input type that accepts ResourceServerScopeArray and ResourceServerScopeArrayOutput values.
// You can construct a concrete instance of `ResourceServerScopeArrayInput` via:
//
// ResourceServerScopeArray{ ResourceServerScopeArgs{...} }
type ResourceServerScopeArrayInput interface {
pulumi.Input
ToResourceServerScopeArrayOutput() ResourceServerScopeArrayOutput
ToResourceServerScopeArrayOutputWithContext(context.Context) ResourceServerScopeArrayOutput
}
type ResourceServerScopeArray []ResourceServerScopeInput
func (ResourceServerScopeArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ResourceServerScope)(nil)).Elem()
}
func (i ResourceServerScopeArray) ToResourceServerScopeArrayOutput() ResourceServerScopeArrayOutput {
return i.ToResourceServerScopeArrayOutputWithContext(context.Background())
}
func (i ResourceServerScopeArray) ToResourceServerScopeArrayOutputWithContext(ctx context.Context) ResourceServerScopeArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ResourceServerScopeArrayOutput)
}
type ResourceServerScopeOutput struct{ *pulumi.OutputState }
func (ResourceServerScopeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ResourceServerScope)(nil)).Elem()
}
func (o ResourceServerScopeOutput) ToResourceServerScopeOutput() ResourceServerScopeOutput {
return o
}
func (o ResourceServerScopeOutput) ToResourceServerScopeOutputWithContext(ctx context.Context) ResourceServerScopeOutput {
return o
}
// The scope description.
func (o ResourceServerScopeOutput) ScopeDescription() pulumi.StringOutput {
return o.ApplyT(func(v ResourceServerScope) string { return v.ScopeDescription }).(pulumi.StringOutput)
}
// The scope name.
func (o ResourceServerScopeOutput) ScopeName() pulumi.StringOutput {
return o.ApplyT(func(v ResourceServerScope) string { return v.ScopeName }).(pulumi.StringOutput)
}
type ResourceServerScopeArrayOutput struct{ *pulumi.OutputState }
func (ResourceServerScopeArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ResourceServerScope)(nil)).Elem()
}
func (o ResourceServerScopeArrayOutput) ToResourceServerScopeArrayOutput() ResourceServerScopeArrayOutput {
return o
}
func (o ResourceServerScopeArrayOutput) ToResourceServerScopeArrayOutputWithContext(ctx context.Context) ResourceServerScopeArrayOutput {
return o
}
func (o ResourceServerScopeArrayOutput) Index(i pulumi.IntInput) ResourceServerScopeOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ResourceServerScope {
return vs[0].([]ResourceServerScope)[vs[1].(int)]
}).(ResourceServerScopeOutput)
}
type UserPoolAccountRecoverySetting struct {
// List of Account Recovery Options of the following structure:
RecoveryMechanisms []UserPoolAccountRecoverySettingRecoveryMechanism `pulumi:"recoveryMechanisms"`
}
// UserPoolAccountRecoverySettingInput is an input type that accepts UserPoolAccountRecoverySettingArgs and UserPoolAccountRecoverySettingOutput values.
// You can construct a concrete instance of `UserPoolAccountRecoverySettingInput` via:
//
// UserPoolAccountRecoverySettingArgs{...}
type UserPoolAccountRecoverySettingInput interface {
pulumi.Input
ToUserPoolAccountRecoverySettingOutput() UserPoolAccountRecoverySettingOutput
ToUserPoolAccountRecoverySettingOutputWithContext(context.Context) UserPoolAccountRecoverySettingOutput
}
type UserPoolAccountRecoverySettingArgs struct {
// List of Account Recovery Options of the following structure:
RecoveryMechanisms UserPoolAccountRecoverySettingRecoveryMechanismArrayInput `pulumi:"recoveryMechanisms"`
}
func (UserPoolAccountRecoverySettingArgs) ElementType() reflect.Type {
return reflect.TypeOf((*UserPoolAccountRecoverySetting)(nil)).Elem()
}
func (i UserPoolAccountRecoverySettingArgs) ToUserPoolAccountRecoverySettingOutput() UserPoolAccountRecoverySettingOutput {
return i.ToUserPoolAccountRecoverySettingOutputWithContext(context.Background())
}
func (i UserPoolAccountRecoverySettingArgs) ToUserPoolAccountRecoverySettingOutputWithContext(ctx context.Context) UserPoolAccountRecoverySettingOutput {
return pulumi.ToOutputWithContext(ctx, i).(UserPoolAccountRecoverySettingOutput)
}
func (i UserPoolAccountRecoverySettingArgs) ToUserPoolAccountRecoverySettingPtrOutput() UserPoolAccountRecoverySettingPtrOutput {
return i.ToUserPoolAccountRecoverySettingPtrOutputWithContext(context.Background())
}
func (i UserPoolAccountRecoverySettingArgs) ToUserPoolAccountRecoverySettingPtrOutputWithContext(ctx context.Context) UserPoolAccountRecoverySettingPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(UserPoolAccountRecoverySettingOutput).ToUserPoolAccountRecoverySettingPtrOutputWithContext(ctx)
}
// UserPoolAccountRecoverySettingPtrInput is an input type that accepts UserPoolAccountRecoverySettingArgs, UserPoolAccountRecoverySettingPtr and UserPoolAccountRecoverySettingPtrOutput values.
// You can construct a concrete instance of `UserPoolAccountRecoverySettingPtrInput` via:
//
// UserPoolAccountRecoverySettingArgs{...}
//
// or:
//
// nil
type UserPoolAccountRecoverySettingPtrInput interface {
pulumi.Input
ToUserPoolAccountRecoverySettingPtrOutput() UserPoolAccountRecoverySettingPtrOutput
ToUserPoolAccountRecoverySettingPtrOutputWithContext(context.Context) UserPoolAccountRecoverySettingPtrOutput
}
type userPoolAccountRecoverySettingPtrType UserPoolAccountRecoverySettingArgs
func UserPoolAccountRecoverySettingPtr(v *UserPoolAccountRecoverySettingArgs) UserPoolAccountRecoverySettingPtrInput {
return (*userPoolAccountRecoverySettingPtrType)(v)
}
func (*userPoolAccountRecoverySettingPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**UserPoolAccountRecoverySetting)(nil)).Elem()
}
func (i *userPoolAccountRecoverySettingPtrType) ToUserPoolAccountRecoverySettingPtrOutput() UserPoolAccountRecoverySettingPtrOutput {
return i.ToUserPoolAccountRecoverySettingPtrOutputWithContext(context.Background())
}
func (i *userPoolAccountRecoverySettingPtrType) ToUserPoolAccountRecoverySettingPtrOutputWithContext(ctx context.Context) UserPoolAccountRecoverySettingPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(UserPoolAccountRecoverySettingPtrOutput)
}
type UserPoolAccountRecoverySettingOutput struct{ *pulumi.OutputState }
func (UserPoolAccountRecoverySettingOutput) ElementType() reflect.Type {
return reflect.TypeOf((*UserPoolAccountRecoverySetting)(nil)).Elem()
}
func (o UserPoolAccountRecoverySettingOutput) ToUserPoolAccountRecoverySettingOutput() UserPoolAccountRecoverySettingOutput {
return o
}
func (o UserPoolAccountRecoverySettingOutput) ToUserPoolAccountRecoverySettingOutputWithContext(ctx context.Context) UserPoolAccountRecoverySettingOutput {
return o
}
func (o UserPoolAccountRecoverySettingOutput) ToUserPoolAccountRecoverySettingPtrOutput() UserPoolAccountRecoverySettingPtrOutput {
return o.ToUserPoolAccountRecoverySettingPtrOutputWithContext(context.Background())
}
func (o UserPoolAccountRecoverySettingOutput) ToUserPoolAccountRecoverySettingPtrOutputWithContext(ctx context.Context) UserPoolAccountRecoverySettingPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v UserPoolAccountRecoverySetting) *UserPoolAccountRecoverySetting {
return &v
}).(UserPoolAccountRecoverySettingPtrOutput)
}
// List of Account Recovery Options of the following structure:
func (o UserPoolAccountRecoverySettingOutput) RecoveryMechanisms() UserPoolAccountRecoverySettingRecoveryMechanismArrayOutput {
return o.ApplyT(func(v UserPoolAccountRecoverySetting) []UserPoolAccountRecoverySettingRecoveryMechanism {
return v.RecoveryMechanisms
}).(UserPoolAccountRecoverySettingRecoveryMechanismArrayOutput)
}
type UserPoolAccountRecoverySettingPtrOutput struct{ *pulumi.OutputState }
func (UserPoolAccountRecoverySettingPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**UserPoolAccountRecoverySetting)(nil)).Elem()
}
func (o UserPoolAccountRecoverySettingPtrOutput) ToUserPoolAccountRecoverySettingPtrOutput() UserPoolAccountRecoverySettingPtrOutput {
return o
}
func (o UserPoolAccountRecoverySettingPtrOutput) ToUserPoolAccountRecoverySettingPtrOutputWithContext(ctx context.Context) UserPoolAccountRecoverySettingPtrOutput {
return o
}
func (o UserPoolAccountRecoverySettingPtrOutput) Elem() UserPoolAccountRecoverySettingOutput {
return o.ApplyT(func(v *UserPoolAccountRecoverySetting) UserPoolAccountRecoverySetting {
if v != nil {
return *v
}
var ret UserPoolAccountRecoverySetting
return ret
}).(UserPoolAccountRecoverySettingOutput)
}
// List of Account Recovery Options of the following structure:
func (o UserPoolAccountRecoverySettingPtrOutput) RecoveryMechanisms() UserPoolAccountRecoverySettingRecoveryMechanismArrayOutput {
return o.ApplyT(func(v *UserPoolAccountRecoverySetting) []UserPoolAccountRecoverySettingRecoveryMechanism {
if v == nil {
return nil
}
return v.RecoveryMechanisms
}).(UserPoolAccountRecoverySettingRecoveryMechanismArrayOutput)
}
type UserPoolAccountRecoverySettingRecoveryMechanism struct {
// Name of the attribute.
Name string `pulumi:"name"`
// Positive integer specifying priority of a method with 1 being the highest priority.
Priority int `pulumi:"priority"`
}
// UserPoolAccountRecoverySettingRecoveryMechanismInput is an input type that accepts UserPoolAccountRecoverySettingRecoveryMechanismArgs and UserPoolAccountRecoverySettingRecoveryMechanismOutput values.
// You can construct a concrete instance of `UserPoolAccountRecoverySettingRecoveryMechanismInput` via:
//
// UserPoolAccountRecoverySettingRecoveryMechanismArgs{...}
type UserPoolAccountRecoverySettingRecoveryMechanismInput interface {
pulumi.Input
ToUserPoolAccountRecoverySettingRecoveryMechanismOutput() UserPoolAccountRecoverySettingRecoveryMechanismOutput
ToUserPoolAccountRecoverySettingRecoveryMechanismOutputWithContext(context.Context) UserPoolAccountRecoverySettingRecoveryMechanismOutput
}
type UserPoolAccountRecoverySettingRecoveryMechanismArgs struct {
// Name of the attribute.
Name pulumi.StringInput `pulumi:"name"`
// Positive integer specifying priority of a method with 1 being the highest priority.
Priority pulumi.IntInput `pulumi:"priority"`
}
func (UserPoolAccountRecoverySettingRecoveryMechanismArgs) ElementType() reflect.Type {
return reflect.TypeOf((*UserPoolAccountRecoverySettingRecoveryMechanism)(nil)).Elem()
}
func (i UserPoolAccountRecoverySettingRecoveryMechanismArgs) ToUserPoolAccountRecoverySettingRecoveryMechanismOutput() UserPoolAccountRecoverySettingRecoveryMechanismOutput {
return i.ToUserPoolAccountRecoverySettingRecoveryMechanismOutputWithContext(context.Background())
}
func (i UserPoolAccountRecoverySettingRecoveryMechanismArgs) ToUserPoolAccountRecoverySettingRecoveryMechanismOutputWithContext(ctx context.Context) UserPoolAccountRecoverySettingRecoveryMechanismOutput {
return pulumi.ToOutputWithContext(ctx, i).(UserPoolAccountRecoverySettingRecoveryMechanismOutput)
}
// UserPoolAccountRecoverySettingRecoveryMechanismArrayInput is an input type that accepts UserPoolAccountRecoverySettingRecoveryMechanismArray and UserPoolAccountRecoverySettingRecoveryMechanismArrayOutput values.
// You can construct a concrete instance of `UserPoolAccountRecoverySettingRecoveryMechanismArrayInput` via:
//
// UserPoolAccountRecoverySettingRecoveryMechanismArray{ UserPoolAccountRecoverySettingRecoveryMechanismArgs{...} }
type UserPoolAccountRecoverySettingRecoveryMechanismArrayInput interface {
pulumi.Input
ToUserPoolAccountRecoverySettingRecoveryMechanismArrayOutput() UserPoolAccountRecoverySettingRecoveryMechanismArrayOutput
ToUserPoolAccountRecoverySettingRecoveryMechanismArrayOutputWithContext(context.Context) UserPoolAccountRecoverySettingRecoveryMechanismArrayOutput
}
type UserPoolAccountRecoverySettingRecoveryMechanismArray []UserPoolAccountRecoverySettingRecoveryMechanismInput
func (UserPoolAccountRecoverySettingRecoveryMechanismArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]UserPoolAccountRecoverySettingRecoveryMechanism)(nil)).Elem()
}
func (i UserPoolAccountRecoverySettingRecoveryMechanismArray) ToUserPoolAccountRecoverySettingRecoveryMechanismArrayOutput() UserPoolAccountRecoverySettingRecoveryMechanismArrayOutput {
return i.ToUserPoolAccountRecoverySettingRecoveryMechanismArrayOutputWithContext(context.Background())
}
func (i UserPoolAccountRecoverySettingRecoveryMechanismArray) ToUserPoolAccountRecoverySettingRecoveryMechanismArrayOutputWithContext(ctx context.Context) UserPoolAccountRecoverySettingRecoveryMechanismArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(UserPoolAccountRecoverySettingRecoveryMechanismArrayOutput)
}
type UserPoolAccountRecoverySettingRecoveryMechanismOutput struct{ *pulumi.OutputState }
func (UserPoolAccountRecoverySettingRecoveryMechanismOutput) ElementType() reflect.Type {
return reflect.TypeOf((*UserPoolAccountRecoverySettingRecoveryMechanism)(nil)).Elem()
}
func (o UserPoolAccountRecoverySettingRecoveryMechanismOutput) ToUserPoolAccountRecoverySettingRecoveryMechanismOutput() UserPoolAccountRecoverySettingRecoveryMechanismOutput {
return o
}
func (o UserPoolAccountRecoverySettingRecoveryMechanismOutput) ToUserPoolAccountRecoverySettingRecoveryMechanismOutputWithContext(ctx context.Context) UserPoolAccountRecoverySettingRecoveryMechanismOutput {
return o
}
// Name of the attribute.
func (o UserPoolAccountRecoverySettingRecoveryMechanismOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v UserPoolAccountRecoverySettingRecoveryMechanism) string { return v.Name }).(pulumi.StringOutput)
}
// Positive integer specifying priority of a method with 1 being the highest priority.
func (o UserPoolAccountRecoverySettingRecoveryMechanismOutput) Priority() pulumi.IntOutput {
return o.ApplyT(func(v UserPoolAccountRecoverySettingRecoveryMechanism) int { return v.Priority }).(pulumi.IntOutput)
}
type UserPoolAccountRecoverySettingRecoveryMechanismArrayOutput struct{ *pulumi.OutputState }
func (UserPoolAccountRecoverySettingRecoveryMechanismArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]UserPoolAccountRecoverySettingRecoveryMechanism)(nil)).Elem()
}
func (o UserPoolAccountRecoverySettingRecoveryMechanismArrayOutput) ToUserPoolAccountRecoverySettingRecoveryMechanismArrayOutput() UserPoolAccountRecoverySettingRecoveryMechanismArrayOutput {
return o
}
func (o UserPoolAccountRecoverySettingRecoveryMechanismArrayOutput) ToUserPoolAccountRecoverySettingRecoveryMechanismArrayOutputWithContext(ctx context.Context) UserPoolAccountRecoverySettingRecoveryMechanismArrayOutput {
return o
}
func (o UserPoolAccountRecoverySettingRecoveryMechanismArrayOutput) Index(i pulumi.IntInput) UserPoolAccountRecoverySettingRecoveryMechanismOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) UserPoolAccountRecoverySettingRecoveryMechanism {
return vs[0].([]UserPoolAccountRecoverySettingRecoveryMechanism)[vs[1].(int)]
}).(UserPoolAccountRecoverySettingRecoveryMechanismOutput)
}
type UserPoolAdminCreateUserConfig struct {
// Set to True if only the administrator is allowed to create user profiles. Set to False if users can sign themselves up via an app.
AllowAdminCreateUserOnly *bool `pulumi:"allowAdminCreateUserOnly"`
// Invite message template structure. Detailed below.
InviteMessageTemplate *UserPoolAdminCreateUserConfigInviteMessageTemplate `pulumi:"inviteMessageTemplate"`
}
// UserPoolAdminCreateUserConfigInput is an input type that accepts UserPoolAdminCreateUserConfigArgs and UserPoolAdminCreateUserConfigOutput values.
// You can construct a concrete instance of `UserPoolAdminCreateUserConfigInput` via:
//
// UserPoolAdminCreateUserConfigArgs{...}
type UserPoolAdminCreateUserConfigInput interface {
pulumi.Input
ToUserPoolAdminCreateUserConfigOutput() UserPoolAdminCreateUserConfigOutput
ToUserPoolAdminCreateUserConfigOutputWithContext(context.Context) UserPoolAdminCreateUserConfigOutput
}
type UserPoolAdminCreateUserConfigArgs struct {
// Set to True if only the administrator is allowed to create user profiles. Set to False if users can sign themselves up via an app.
AllowAdminCreateUserOnly pulumi.BoolPtrInput `pulumi:"allowAdminCreateUserOnly"`
// Invite message template structure. Detailed below.
InviteMessageTemplate UserPoolAdminCreateUserConfigInviteMessageTemplatePtrInput `pulumi:"inviteMessageTemplate"`
}
func (UserPoolAdminCreateUserConfigArgs) ElementType() reflect.Type {
return reflect.TypeOf((*UserPoolAdminCreateUserConfig)(nil)).Elem()
}
func (i UserPoolAdminCreateUserConfigArgs) ToUserPoolAdminCreateUserConfigOutput() UserPoolAdminCreateUserConfigOutput {
return i.ToUserPoolAdminCreateUserConfigOutputWithContext(context.Background())
}
func (i UserPoolAdminCreateUserConfigArgs) ToUserPoolAdminCreateUserConfigOutputWithContext(ctx context.Context) UserPoolAdminCreateUserConfigOutput {
return pulumi.ToOutputWithContext(ctx, i).(UserPoolAdminCreateUserConfigOutput)
}
func (i UserPoolAdminCreateUserConfigArgs) ToUserPoolAdminCreateUserConfigPtrOutput() UserPoolAdminCreateUserConfigPtrOutput {
return i.ToUserPoolAdminCreateUserConfigPtrOutputWithContext(context.Background())
}
func (i UserPoolAdminCreateUserConfigArgs) ToUserPoolAdminCreateUserConfigPtrOutputWithContext(ctx context.Context) UserPoolAdminCreateUserConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(UserPoolAdminCreateUserConfigOutput).ToUserPoolAdminCreateUserConfigPtrOutputWithContext(ctx)
}
// UserPoolAdminCreateUserConfigPtrInput is an input type that accepts UserPoolAdminCreateUserConfigArgs, UserPoolAdminCreateUserConfigPtr and UserPoolAdminCreateUserConfigPtrOutput values.
// You can construct a concrete instance of `UserPoolAdminCreateUserConfigPtrInput` via:
//
// UserPoolAdminCreateUserConfigArgs{...}
//
// or:
//
// nil
type UserPoolAdminCreateUserConfigPtrInput interface {
pulumi.Input
ToUserPoolAdminCreateUserConfigPtrOutput() UserPoolAdminCreateUserConfigPtrOutput
ToUserPoolAdminCreateUserConfigPtrOutputWithContext(context.Context) UserPoolAdminCreateUserConfigPtrOutput
}
type userPoolAdminCreateUserConfigPtrType UserPoolAdminCreateUserConfigArgs
func UserPoolAdminCreateUserConfigPtr(v *UserPoolAdminCreateUserConfigArgs) UserPoolAdminCreateUserConfigPtrInput {
return (*userPoolAdminCreateUserConfigPtrType)(v)
}
func (*userPoolAdminCreateUserConfigPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**UserPoolAdminCreateUserConfig)(nil)).Elem()
}
func (i *userPoolAdminCreateUserConfigPtrType) ToUserPoolAdminCreateUserConfigPtrOutput() UserPoolAdminCreateUserConfigPtrOutput {
return i.ToUserPoolAdminCreateUserConfigPtrOutputWithContext(context.Background())
}
func (i *userPoolAdminCreateUserConfigPtrType) ToUserPoolAdminCreateUserConfigPtrOutputWithContext(ctx context.Context) UserPoolAdminCreateUserConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(UserPoolAdminCreateUserConfigPtrOutput)
}
type UserPoolAdminCreateUserConfigOutput struct{ *pulumi.OutputState }
func (UserPoolAdminCreateUserConfigOutput) ElementType() reflect.Type {
return reflect.TypeOf((*UserPoolAdminCreateUserConfig)(nil)).Elem()
}
func (o UserPoolAdminCreateUserConfigOutput) ToUserPoolAdminCreateUserConfigOutput() UserPoolAdminCreateUserConfigOutput {
return o
}
func (o UserPoolAdminCreateUserConfigOutput) ToUserPoolAdminCreateUserConfigOutputWithContext(ctx context.Context) UserPoolAdminCreateUserConfigOutput {
return o
}
func (o UserPoolAdminCreateUserConfigOutput) ToUserPoolAdminCreateUserConfigPtrOutput() UserPoolAdminCreateUserConfigPtrOutput {
return o.ToUserPoolAdminCreateUserConfigPtrOutputWithContext(context.Background())
}
func (o UserPoolAdminCreateUserConfigOutput) ToUserPoolAdminCreateUserConfigPtrOutputWithContext(ctx context.Context) UserPoolAdminCreateUserConfigPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v UserPoolAdminCreateUserConfig) *UserPoolAdminCreateUserConfig {
return &v
}).(UserPoolAdminCreateUserConfigPtrOutput)
}
// Set to True if only the administrator is allowed to create user profiles. Set to False if users can sign themselves up via an app.
func (o UserPoolAdminCreateUserConfigOutput) AllowAdminCreateUserOnly() pulumi.BoolPtrOutput {
return o.ApplyT(func(v UserPoolAdminCreateUserConfig) *bool { return v.AllowAdminCreateUserOnly }).(pulumi.BoolPtrOutput)
}
// Invite message template structure. Detailed below.
func (o UserPoolAdminCreateUserConfigOutput) InviteMessageTemplate() UserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutput {
return o.ApplyT(func(v UserPoolAdminCreateUserConfig) *UserPoolAdminCreateUserConfigInviteMessageTemplate {
return v.InviteMessageTemplate
}).(UserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutput)
}
type UserPoolAdminCreateUserConfigPtrOutput struct{ *pulumi.OutputState }
func (UserPoolAdminCreateUserConfigPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**UserPoolAdminCreateUserConfig)(nil)).Elem()
}
func (o UserPoolAdminCreateUserConfigPtrOutput) ToUserPoolAdminCreateUserConfigPtrOutput() UserPoolAdminCreateUserConfigPtrOutput {
return o
}
func (o UserPoolAdminCreateUserConfigPtrOutput) ToUserPoolAdminCreateUserConfigPtrOutputWithContext(ctx context.Context) UserPoolAdminCreateUserConfigPtrOutput {
return o
}
func (o UserPoolAdminCreateUserConfigPtrOutput) Elem() UserPoolAdminCreateUserConfigOutput {
return o.ApplyT(func(v *UserPoolAdminCreateUserConfig) UserPoolAdminCreateUserConfig {
if v != nil {
return *v
}
var ret UserPoolAdminCreateUserConfig
return ret
}).(UserPoolAdminCreateUserConfigOutput)
}
// Set to True if only the administrator is allowed to create user profiles. Set to False if users can sign themselves up via an app.
func (o UserPoolAdminCreateUserConfigPtrOutput) AllowAdminCreateUserOnly() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *UserPoolAdminCreateUserConfig) *bool {
if v == nil {
return nil
}
return v.AllowAdminCreateUserOnly
}).(pulumi.BoolPtrOutput)
}
// Invite message template structure. Detailed below.
func (o UserPoolAdminCreateUserConfigPtrOutput) InviteMessageTemplate() UserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutput {
return o.ApplyT(func(v *UserPoolAdminCreateUserConfig) *UserPoolAdminCreateUserConfigInviteMessageTemplate {
if v == nil {
return nil
}
return v.InviteMessageTemplate
}).(UserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutput)
}
type UserPoolAdminCreateUserConfigInviteMessageTemplate struct {
// Email message template. Must contain the `{####}` placeholder. Conflicts with `emailVerificationMessage` argument.
EmailMessage *string `pulumi:"emailMessage"`
// Subject line for the email message template. Conflicts with `emailVerificationSubject` argument.
EmailSubject *string `pulumi:"emailSubject"`
// SMS message template. Must contain the `{####}` placeholder. Conflicts with `smsVerificationMessage` argument.
SmsMessage *string `pulumi:"smsMessage"`
}
// UserPoolAdminCreateUserConfigInviteMessageTemplateInput is an input type that accepts UserPoolAdminCreateUserConfigInviteMessageTemplateArgs and UserPoolAdminCreateUserConfigInviteMessageTemplateOutput values.
// You can construct a concrete instance of `UserPoolAdminCreateUserConfigInviteMessageTemplateInput` via:
//
// UserPoolAdminCreateUserConfigInviteMessageTemplateArgs{...}
type UserPoolAdminCreateUserConfigInviteMessageTemplateInput interface {
pulumi.Input
ToUserPoolAdminCreateUserConfigInviteMessageTemplateOutput() UserPoolAdminCreateUserConfigInviteMessageTemplateOutput
ToUserPoolAdminCreateUserConfigInviteMessageTemplateOutputWithContext(context.Context) UserPoolAdminCreateUserConfigInviteMessageTemplateOutput
}
type UserPoolAdminCreateUserConfigInviteMessageTemplateArgs struct {
// Email message template. Must contain the `{####}` placeholder. Conflicts with `emailVerificationMessage` argument.
EmailMessage pulumi.StringPtrInput `pulumi:"emailMessage"`
// Subject line for the email message template. Conflicts with `emailVerificationSubject` argument.
EmailSubject pulumi.StringPtrInput `pulumi:"emailSubject"`
// SMS message template. Must contain the `{####}` placeholder. Conflicts with `smsVerificationMessage` argument.
SmsMessage pulumi.StringPtrInput `pulumi:"smsMessage"`
}
func (UserPoolAdminCreateUserConfigInviteMessageTemplateArgs) ElementType() reflect.Type {
return reflect.TypeOf((*UserPoolAdminCreateUserConfigInviteMessageTemplate)(nil)).Elem()
}
func (i UserPoolAdminCreateUserConfigInviteMessageTemplateArgs) ToUserPoolAdminCreateUserConfigInviteMessageTemplateOutput() UserPoolAdminCreateUserConfigInviteMessageTemplateOutput {
return i.ToUserPoolAdminCreateUserConfigInviteMessageTemplateOutputWithContext(context.Background())
}
func (i UserPoolAdminCreateUserConfigInviteMessageTemplateArgs) ToUserPoolAdminCreateUserConfigInviteMessageTemplateOutputWithContext(ctx context.Context) UserPoolAdminCreateUserConfigInviteMessageTemplateOutput {
return pulumi.ToOutputWithContext(ctx, i).(UserPoolAdminCreateUserConfigInviteMessageTemplateOutput)
}
func (i UserPoolAdminCreateUserConfigInviteMessageTemplateArgs) ToUserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutput() UserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutput {
return i.ToUserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutputWithContext(context.Background())
}
func (i UserPoolAdminCreateUserConfigInviteMessageTemplateArgs) ToUserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutputWithContext(ctx context.Context) UserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(UserPoolAdminCreateUserConfigInviteMessageTemplateOutput).ToUserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutputWithContext(ctx)
}
// UserPoolAdminCreateUserConfigInviteMessageTemplatePtrInput is an input type that accepts UserPoolAdminCreateUserConfigInviteMessageTemplateArgs, UserPoolAdminCreateUserConfigInviteMessageTemplatePtr and UserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutput values.
// You can construct a concrete instance of `UserPoolAdminCreateUserConfigInviteMessageTemplatePtrInput` via:
//
// UserPoolAdminCreateUserConfigInviteMessageTemplateArgs{...}
//
// or:
//
// nil
type UserPoolAdminCreateUserConfigInviteMessageTemplatePtrInput interface {
pulumi.Input
ToUserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutput() UserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutput
ToUserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutputWithContext(context.Context) UserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutput
}
type userPoolAdminCreateUserConfigInviteMessageTemplatePtrType UserPoolAdminCreateUserConfigInviteMessageTemplateArgs
func UserPoolAdminCreateUserConfigInviteMessageTemplatePtr(v *UserPoolAdminCreateUserConfigInviteMessageTemplateArgs) UserPoolAdminCreateUserConfigInviteMessageTemplatePtrInput {
return (*userPoolAdminCreateUserConfigInviteMessageTemplatePtrType)(v)
}
func (*userPoolAdminCreateUserConfigInviteMessageTemplatePtrType) ElementType() reflect.Type {
return reflect.TypeOf((**UserPoolAdminCreateUserConfigInviteMessageTemplate)(nil)).Elem()
}
func (i *userPoolAdminCreateUserConfigInviteMessageTemplatePtrType) ToUserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutput() UserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutput {
return i.ToUserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutputWithContext(context.Background())
}
func (i *userPoolAdminCreateUserConfigInviteMessageTemplatePtrType) ToUserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutputWithContext(ctx context.Context) UserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(UserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutput)
}
type UserPoolAdminCreateUserConfigInviteMessageTemplateOutput struct{ *pulumi.OutputState }
func (UserPoolAdminCreateUserConfigInviteMessageTemplateOutput) ElementType() reflect.Type {
return reflect.TypeOf((*UserPoolAdminCreateUserConfigInviteMessageTemplate)(nil)).Elem()
}
func (o UserPoolAdminCreateUserConfigInviteMessageTemplateOutput) ToUserPoolAdminCreateUserConfigInviteMessageTemplateOutput() UserPoolAdminCreateUserConfigInviteMessageTemplateOutput {
return o
}
func (o UserPoolAdminCreateUserConfigInviteMessageTemplateOutput) ToUserPoolAdminCreateUserConfigInviteMessageTemplateOutputWithContext(ctx context.Context) UserPoolAdminCreateUserConfigInviteMessageTemplateOutput {
return o
}
func (o UserPoolAdminCreateUserConfigInviteMessageTemplateOutput) ToUserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutput() UserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutput {
return o.ToUserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutputWithContext(context.Background())
}
func (o UserPoolAdminCreateUserConfigInviteMessageTemplateOutput) ToUserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutputWithContext(ctx context.Context) UserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v UserPoolAdminCreateUserConfigInviteMessageTemplate) *UserPoolAdminCreateUserConfigInviteMessageTemplate {
return &v
}).(UserPoolAdminCreateUserConfigInviteMessageTemplatePtrOutput)
}
// Email message template. Must contain the `{####}` placeholder. Conflicts with `emailVerificationMessage` argument.
func (o UserPoolAdminCreateUserConfigInviteMessageTemplateOutput) EmailMessage() pulumi.StringPtrOutput {
return o.ApplyT(func(v UserPoolAdminCreateUserConfigInviteMessageTemplate) *string { return v.EmailMessage }).(pulumi.StringPtrOutput)
}
// Subject line for the email message template. Conflicts with `emailVerificationSubject` argument.
func (o UserPoolAdminCreateUserConfigInviteMessageTemplateOutput) EmailSubject() pulumi.StringPtrOutput {
return o.ApplyT(func(v UserPoolAdminCreateUserConfigInviteMessageTemplate) *string { return v.EmailSubject }).(pulumi.StringPtrOutput)