-
Notifications
You must be signed in to change notification settings - Fork 113
/
zz_userpool_types.go
executable file
·1155 lines (814 loc) · 65.8 KB
/
zz_userpool_types.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
/*
Copyright 2022 Upbound Inc.
*/
// Code generated by upjet. DO NOT EDIT.
package v1beta1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type AccountRecoverySettingInitParameters struct {
// List of Account Recovery Options of the following structure:
RecoveryMechanism []RecoveryMechanismInitParameters `json:"recoveryMechanism,omitempty" tf:"recovery_mechanism,omitempty"`
}
type AccountRecoverySettingObservation struct {
// List of Account Recovery Options of the following structure:
RecoveryMechanism []RecoveryMechanismObservation `json:"recoveryMechanism,omitempty" tf:"recovery_mechanism,omitempty"`
}
type AccountRecoverySettingParameters struct {
// List of Account Recovery Options of the following structure:
// +kubebuilder:validation:Optional
RecoveryMechanism []RecoveryMechanismParameters `json:"recoveryMechanism,omitempty" tf:"recovery_mechanism,omitempty"`
}
type AdminCreateUserConfigInitParameters 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 `json:"allowAdminCreateUserOnly,omitempty" tf:"allow_admin_create_user_only,omitempty"`
// Invite message template structure. Detailed below.
InviteMessageTemplate []InviteMessageTemplateInitParameters `json:"inviteMessageTemplate,omitempty" tf:"invite_message_template,omitempty"`
}
type AdminCreateUserConfigObservation 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 `json:"allowAdminCreateUserOnly,omitempty" tf:"allow_admin_create_user_only,omitempty"`
// Invite message template structure. Detailed below.
InviteMessageTemplate []InviteMessageTemplateObservation `json:"inviteMessageTemplate,omitempty" tf:"invite_message_template,omitempty"`
}
type AdminCreateUserConfigParameters 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.
// +kubebuilder:validation:Optional
AllowAdminCreateUserOnly *bool `json:"allowAdminCreateUserOnly,omitempty" tf:"allow_admin_create_user_only,omitempty"`
// Invite message template structure. Detailed below.
// +kubebuilder:validation:Optional
InviteMessageTemplate []InviteMessageTemplateParameters `json:"inviteMessageTemplate,omitempty" tf:"invite_message_template,omitempty"`
}
type CustomEmailSenderInitParameters struct {
// The Lambda Amazon Resource Name of the Lambda function that Amazon Cognito triggers to send email notifications to users.
LambdaArn *string `json:"lambdaArn,omitempty" tf:"lambda_arn,omitempty"`
// The Lambda version represents the signature of the "request" attribute in the "event" information Amazon Cognito passes to your custom email Lambda function. The only supported value is V1_0.
LambdaVersion *string `json:"lambdaVersion,omitempty" tf:"lambda_version,omitempty"`
}
type CustomEmailSenderObservation struct {
// The Lambda Amazon Resource Name of the Lambda function that Amazon Cognito triggers to send email notifications to users.
LambdaArn *string `json:"lambdaArn,omitempty" tf:"lambda_arn,omitempty"`
// The Lambda version represents the signature of the "request" attribute in the "event" information Amazon Cognito passes to your custom email Lambda function. The only supported value is V1_0.
LambdaVersion *string `json:"lambdaVersion,omitempty" tf:"lambda_version,omitempty"`
}
type CustomEmailSenderParameters struct {
// The Lambda Amazon Resource Name of the Lambda function that Amazon Cognito triggers to send email notifications to users.
// +kubebuilder:validation:Optional
LambdaArn *string `json:"lambdaArn" tf:"lambda_arn,omitempty"`
// The Lambda version represents the signature of the "request" attribute in the "event" information Amazon Cognito passes to your custom email Lambda function. The only supported value is V1_0.
// +kubebuilder:validation:Optional
LambdaVersion *string `json:"lambdaVersion" tf:"lambda_version,omitempty"`
}
type CustomSMSSenderInitParameters struct {
// The Lambda Amazon Resource Name of the Lambda function that Amazon Cognito triggers to send SMS notifications to users.
LambdaArn *string `json:"lambdaArn,omitempty" tf:"lambda_arn,omitempty"`
// The Lambda version represents the signature of the "request" attribute in the "event" information Amazon Cognito passes to your custom SMS Lambda function. The only supported value is V1_0.
LambdaVersion *string `json:"lambdaVersion,omitempty" tf:"lambda_version,omitempty"`
}
type CustomSMSSenderObservation struct {
// The Lambda Amazon Resource Name of the Lambda function that Amazon Cognito triggers to send SMS notifications to users.
LambdaArn *string `json:"lambdaArn,omitempty" tf:"lambda_arn,omitempty"`
// The Lambda version represents the signature of the "request" attribute in the "event" information Amazon Cognito passes to your custom SMS Lambda function. The only supported value is V1_0.
LambdaVersion *string `json:"lambdaVersion,omitempty" tf:"lambda_version,omitempty"`
}
type CustomSMSSenderParameters struct {
// The Lambda Amazon Resource Name of the Lambda function that Amazon Cognito triggers to send SMS notifications to users.
// +kubebuilder:validation:Optional
LambdaArn *string `json:"lambdaArn" tf:"lambda_arn,omitempty"`
// The Lambda version represents the signature of the "request" attribute in the "event" information Amazon Cognito passes to your custom SMS Lambda function. The only supported value is V1_0.
// +kubebuilder:validation:Optional
LambdaVersion *string `json:"lambdaVersion" tf:"lambda_version,omitempty"`
}
type DeviceConfigurationInitParameters struct {
// Whether a challenge is required on a new device. Only applicable to a new device.
ChallengeRequiredOnNewDevice *bool `json:"challengeRequiredOnNewDevice,omitempty" tf:"challenge_required_on_new_device,omitempty"`
// Whether a device is only remembered on user prompt. false equates to "Always" remember, true is "User Opt In," and not using a device_configuration block is "No."
DeviceOnlyRememberedOnUserPrompt *bool `json:"deviceOnlyRememberedOnUserPrompt,omitempty" tf:"device_only_remembered_on_user_prompt,omitempty"`
}
type DeviceConfigurationObservation struct {
// Whether a challenge is required on a new device. Only applicable to a new device.
ChallengeRequiredOnNewDevice *bool `json:"challengeRequiredOnNewDevice,omitempty" tf:"challenge_required_on_new_device,omitempty"`
// Whether a device is only remembered on user prompt. false equates to "Always" remember, true is "User Opt In," and not using a device_configuration block is "No."
DeviceOnlyRememberedOnUserPrompt *bool `json:"deviceOnlyRememberedOnUserPrompt,omitempty" tf:"device_only_remembered_on_user_prompt,omitempty"`
}
type DeviceConfigurationParameters struct {
// Whether a challenge is required on a new device. Only applicable to a new device.
// +kubebuilder:validation:Optional
ChallengeRequiredOnNewDevice *bool `json:"challengeRequiredOnNewDevice,omitempty" tf:"challenge_required_on_new_device,omitempty"`
// Whether a device is only remembered on user prompt. false equates to "Always" remember, true is "User Opt In," and not using a device_configuration block is "No."
// +kubebuilder:validation:Optional
DeviceOnlyRememberedOnUserPrompt *bool `json:"deviceOnlyRememberedOnUserPrompt,omitempty" tf:"device_only_remembered_on_user_prompt,omitempty"`
}
type EmailConfigurationInitParameters struct {
// Email configuration set name from SES.
ConfigurationSet *string `json:"configurationSet,omitempty" tf:"configuration_set,omitempty"`
// Email delivery method to use. COGNITO_DEFAULT for the default email functionality built into Cognito or DEVELOPER to use your Amazon SES configuration. Required to be DEVELOPER if from_email_address is set.
EmailSendingAccount *string `json:"emailSendingAccount,omitempty" tf:"email_sending_account,omitempty"`
// Sender’s email address or sender’s display name with their email address (e.g., john@example.com, John Smith <john@example.com> or \"John Smith Ph.D.\" <john@example.com>). Escaped double quotes are required around display names that contain certain characters as specified in RFC 5322.
FromEmailAddress *string `json:"fromEmailAddress,omitempty" tf:"from_email_address,omitempty"`
// REPLY-TO email address.
ReplyToEmailAddress *string `json:"replyToEmailAddress,omitempty" tf:"reply_to_email_address,omitempty"`
// ARN of the SES verified email identity to use. Required if email_sending_account is set to DEVELOPER.
SourceArn *string `json:"sourceArn,omitempty" tf:"source_arn,omitempty"`
}
type EmailConfigurationObservation struct {
// Email configuration set name from SES.
ConfigurationSet *string `json:"configurationSet,omitempty" tf:"configuration_set,omitempty"`
// Email delivery method to use. COGNITO_DEFAULT for the default email functionality built into Cognito or DEVELOPER to use your Amazon SES configuration. Required to be DEVELOPER if from_email_address is set.
EmailSendingAccount *string `json:"emailSendingAccount,omitempty" tf:"email_sending_account,omitempty"`
// Sender’s email address or sender’s display name with their email address (e.g., john@example.com, John Smith <john@example.com> or \"John Smith Ph.D.\" <john@example.com>). Escaped double quotes are required around display names that contain certain characters as specified in RFC 5322.
FromEmailAddress *string `json:"fromEmailAddress,omitempty" tf:"from_email_address,omitempty"`
// REPLY-TO email address.
ReplyToEmailAddress *string `json:"replyToEmailAddress,omitempty" tf:"reply_to_email_address,omitempty"`
// ARN of the SES verified email identity to use. Required if email_sending_account is set to DEVELOPER.
SourceArn *string `json:"sourceArn,omitempty" tf:"source_arn,omitempty"`
}
type EmailConfigurationParameters struct {
// Email configuration set name from SES.
// +kubebuilder:validation:Optional
ConfigurationSet *string `json:"configurationSet,omitempty" tf:"configuration_set,omitempty"`
// Email delivery method to use. COGNITO_DEFAULT for the default email functionality built into Cognito or DEVELOPER to use your Amazon SES configuration. Required to be DEVELOPER if from_email_address is set.
// +kubebuilder:validation:Optional
EmailSendingAccount *string `json:"emailSendingAccount,omitempty" tf:"email_sending_account,omitempty"`
// Sender’s email address or sender’s display name with their email address (e.g., john@example.com, John Smith <john@example.com> or \"John Smith Ph.D.\" <john@example.com>). Escaped double quotes are required around display names that contain certain characters as specified in RFC 5322.
// +kubebuilder:validation:Optional
FromEmailAddress *string `json:"fromEmailAddress,omitempty" tf:"from_email_address,omitempty"`
// REPLY-TO email address.
// +kubebuilder:validation:Optional
ReplyToEmailAddress *string `json:"replyToEmailAddress,omitempty" tf:"reply_to_email_address,omitempty"`
// ARN of the SES verified email identity to use. Required if email_sending_account is set to DEVELOPER.
// +kubebuilder:validation:Optional
SourceArn *string `json:"sourceArn,omitempty" tf:"source_arn,omitempty"`
}
type InviteMessageTemplateInitParameters struct {
// Message template for email messages. Must contain {username} and {####} placeholders, for username and temporary password, respectively.
EmailMessage *string `json:"emailMessage,omitempty" tf:"email_message,omitempty"`
// Subject line for email messages.
EmailSubject *string `json:"emailSubject,omitempty" tf:"email_subject,omitempty"`
// Message template for SMS messages. Must contain {username} and {####} placeholders, for username and temporary password, respectively.
SMSMessage *string `json:"smsMessage,omitempty" tf:"sms_message,omitempty"`
}
type InviteMessageTemplateObservation struct {
// Message template for email messages. Must contain {username} and {####} placeholders, for username and temporary password, respectively.
EmailMessage *string `json:"emailMessage,omitempty" tf:"email_message,omitempty"`
// Subject line for email messages.
EmailSubject *string `json:"emailSubject,omitempty" tf:"email_subject,omitempty"`
// Message template for SMS messages. Must contain {username} and {####} placeholders, for username and temporary password, respectively.
SMSMessage *string `json:"smsMessage,omitempty" tf:"sms_message,omitempty"`
}
type InviteMessageTemplateParameters struct {
// Message template for email messages. Must contain {username} and {####} placeholders, for username and temporary password, respectively.
// +kubebuilder:validation:Optional
EmailMessage *string `json:"emailMessage,omitempty" tf:"email_message,omitempty"`
// Subject line for email messages.
// +kubebuilder:validation:Optional
EmailSubject *string `json:"emailSubject,omitempty" tf:"email_subject,omitempty"`
// Message template for SMS messages. Must contain {username} and {####} placeholders, for username and temporary password, respectively.
// +kubebuilder:validation:Optional
SMSMessage *string `json:"smsMessage,omitempty" tf:"sms_message,omitempty"`
}
type LambdaConfigInitParameters struct {
// ARN of the lambda creating an authentication challenge.
CreateAuthChallenge *string `json:"createAuthChallenge,omitempty" tf:"create_auth_challenge,omitempty"`
// A custom email sender AWS Lambda trigger. See custom_email_sender Below.
CustomEmailSender []CustomEmailSenderInitParameters `json:"customEmailSender,omitempty" tf:"custom_email_sender,omitempty"`
// Custom Message AWS Lambda trigger.
CustomMessage *string `json:"customMessage,omitempty" tf:"custom_message,omitempty"`
// A custom SMS sender AWS Lambda trigger. See custom_sms_sender Below.
CustomSMSSender []CustomSMSSenderInitParameters `json:"customSmsSender,omitempty" tf:"custom_sms_sender,omitempty"`
// Defines the authentication challenge.
DefineAuthChallenge *string `json:"defineAuthChallenge,omitempty" tf:"define_auth_challenge,omitempty"`
// The Amazon Resource Name of Key Management Service Customer master keys. Amazon Cognito uses the key to encrypt codes and temporary passwords sent to CustomEmailSender and CustomSMSSender.
KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`
// Post-authentication AWS Lambda trigger.
PostAuthentication *string `json:"postAuthentication,omitempty" tf:"post_authentication,omitempty"`
// Post-confirmation AWS Lambda trigger.
PostConfirmation *string `json:"postConfirmation,omitempty" tf:"post_confirmation,omitempty"`
// Pre-authentication AWS Lambda trigger.
PreAuthentication *string `json:"preAuthentication,omitempty" tf:"pre_authentication,omitempty"`
// Pre-registration AWS Lambda trigger.
PreSignUp *string `json:"preSignUp,omitempty" tf:"pre_sign_up,omitempty"`
// Allow to customize identity token claims before token generation.
PreTokenGeneration *string `json:"preTokenGeneration,omitempty" tf:"pre_token_generation,omitempty"`
// User migration Lambda config type.
UserMigration *string `json:"userMigration,omitempty" tf:"user_migration,omitempty"`
// Verifies the authentication challenge response.
VerifyAuthChallengeResponse *string `json:"verifyAuthChallengeResponse,omitempty" tf:"verify_auth_challenge_response,omitempty"`
}
type LambdaConfigObservation struct {
// ARN of the lambda creating an authentication challenge.
CreateAuthChallenge *string `json:"createAuthChallenge,omitempty" tf:"create_auth_challenge,omitempty"`
// A custom email sender AWS Lambda trigger. See custom_email_sender Below.
CustomEmailSender []CustomEmailSenderObservation `json:"customEmailSender,omitempty" tf:"custom_email_sender,omitempty"`
// Custom Message AWS Lambda trigger.
CustomMessage *string `json:"customMessage,omitempty" tf:"custom_message,omitempty"`
// A custom SMS sender AWS Lambda trigger. See custom_sms_sender Below.
CustomSMSSender []CustomSMSSenderObservation `json:"customSmsSender,omitempty" tf:"custom_sms_sender,omitempty"`
// Defines the authentication challenge.
DefineAuthChallenge *string `json:"defineAuthChallenge,omitempty" tf:"define_auth_challenge,omitempty"`
// The Amazon Resource Name of Key Management Service Customer master keys. Amazon Cognito uses the key to encrypt codes and temporary passwords sent to CustomEmailSender and CustomSMSSender.
KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`
// Post-authentication AWS Lambda trigger.
PostAuthentication *string `json:"postAuthentication,omitempty" tf:"post_authentication,omitempty"`
// Post-confirmation AWS Lambda trigger.
PostConfirmation *string `json:"postConfirmation,omitempty" tf:"post_confirmation,omitempty"`
// Pre-authentication AWS Lambda trigger.
PreAuthentication *string `json:"preAuthentication,omitempty" tf:"pre_authentication,omitempty"`
// Pre-registration AWS Lambda trigger.
PreSignUp *string `json:"preSignUp,omitempty" tf:"pre_sign_up,omitempty"`
// Allow to customize identity token claims before token generation.
PreTokenGeneration *string `json:"preTokenGeneration,omitempty" tf:"pre_token_generation,omitempty"`
// User migration Lambda config type.
UserMigration *string `json:"userMigration,omitempty" tf:"user_migration,omitempty"`
// Verifies the authentication challenge response.
VerifyAuthChallengeResponse *string `json:"verifyAuthChallengeResponse,omitempty" tf:"verify_auth_challenge_response,omitempty"`
}
type LambdaConfigParameters struct {
// ARN of the lambda creating an authentication challenge.
// +kubebuilder:validation:Optional
CreateAuthChallenge *string `json:"createAuthChallenge,omitempty" tf:"create_auth_challenge,omitempty"`
// A custom email sender AWS Lambda trigger. See custom_email_sender Below.
// +kubebuilder:validation:Optional
CustomEmailSender []CustomEmailSenderParameters `json:"customEmailSender,omitempty" tf:"custom_email_sender,omitempty"`
// Custom Message AWS Lambda trigger.
// +kubebuilder:validation:Optional
CustomMessage *string `json:"customMessage,omitempty" tf:"custom_message,omitempty"`
// A custom SMS sender AWS Lambda trigger. See custom_sms_sender Below.
// +kubebuilder:validation:Optional
CustomSMSSender []CustomSMSSenderParameters `json:"customSmsSender,omitempty" tf:"custom_sms_sender,omitempty"`
// Defines the authentication challenge.
// +kubebuilder:validation:Optional
DefineAuthChallenge *string `json:"defineAuthChallenge,omitempty" tf:"define_auth_challenge,omitempty"`
// The Amazon Resource Name of Key Management Service Customer master keys. Amazon Cognito uses the key to encrypt codes and temporary passwords sent to CustomEmailSender and CustomSMSSender.
// +kubebuilder:validation:Optional
KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`
// Post-authentication AWS Lambda trigger.
// +kubebuilder:validation:Optional
PostAuthentication *string `json:"postAuthentication,omitempty" tf:"post_authentication,omitempty"`
// Post-confirmation AWS Lambda trigger.
// +kubebuilder:validation:Optional
PostConfirmation *string `json:"postConfirmation,omitempty" tf:"post_confirmation,omitempty"`
// Pre-authentication AWS Lambda trigger.
// +kubebuilder:validation:Optional
PreAuthentication *string `json:"preAuthentication,omitempty" tf:"pre_authentication,omitempty"`
// Pre-registration AWS Lambda trigger.
// +kubebuilder:validation:Optional
PreSignUp *string `json:"preSignUp,omitempty" tf:"pre_sign_up,omitempty"`
// Allow to customize identity token claims before token generation.
// +kubebuilder:validation:Optional
PreTokenGeneration *string `json:"preTokenGeneration,omitempty" tf:"pre_token_generation,omitempty"`
// User migration Lambda config type.
// +kubebuilder:validation:Optional
UserMigration *string `json:"userMigration,omitempty" tf:"user_migration,omitempty"`
// Verifies the authentication challenge response.
// +kubebuilder:validation:Optional
VerifyAuthChallengeResponse *string `json:"verifyAuthChallengeResponse,omitempty" tf:"verify_auth_challenge_response,omitempty"`
}
type NumberAttributeConstraintsInitParameters struct {
// Maximum value of an attribute that is of the number data type.
MaxValue *string `json:"maxValue,omitempty" tf:"max_value,omitempty"`
// Minimum value of an attribute that is of the number data type.
MinValue *string `json:"minValue,omitempty" tf:"min_value,omitempty"`
}
type NumberAttributeConstraintsObservation struct {
// Maximum value of an attribute that is of the number data type.
MaxValue *string `json:"maxValue,omitempty" tf:"max_value,omitempty"`
// Minimum value of an attribute that is of the number data type.
MinValue *string `json:"minValue,omitempty" tf:"min_value,omitempty"`
}
type NumberAttributeConstraintsParameters struct {
// Maximum value of an attribute that is of the number data type.
// +kubebuilder:validation:Optional
MaxValue *string `json:"maxValue,omitempty" tf:"max_value,omitempty"`
// Minimum value of an attribute that is of the number data type.
// +kubebuilder:validation:Optional
MinValue *string `json:"minValue,omitempty" tf:"min_value,omitempty"`
}
type PasswordPolicyInitParameters struct {
// Minimum length of the password policy that you have set.
MinimumLength *int64 `json:"minimumLength,omitempty" tf:"minimum_length,omitempty"`
// Whether you have required users to use at least one lowercase letter in their password.
RequireLowercase *bool `json:"requireLowercase,omitempty" tf:"require_lowercase,omitempty"`
// Whether you have required users to use at least one number in their password.
RequireNumbers *bool `json:"requireNumbers,omitempty" tf:"require_numbers,omitempty"`
// Whether you have required users to use at least one symbol in their password.
RequireSymbols *bool `json:"requireSymbols,omitempty" tf:"require_symbols,omitempty"`
// Whether you have required users to use at least one uppercase letter in their password.
RequireUppercase *bool `json:"requireUppercase,omitempty" tf:"require_uppercase,omitempty"`
// In the password policy you have set, refers to the number of days a temporary password is valid. If the user does not sign-in during this time, their password will need to be reset by an administrator.
TemporaryPasswordValidityDays *int64 `json:"temporaryPasswordValidityDays,omitempty" tf:"temporary_password_validity_days,omitempty"`
}
type PasswordPolicyObservation struct {
// Minimum length of the password policy that you have set.
MinimumLength *int64 `json:"minimumLength,omitempty" tf:"minimum_length,omitempty"`
// Whether you have required users to use at least one lowercase letter in their password.
RequireLowercase *bool `json:"requireLowercase,omitempty" tf:"require_lowercase,omitempty"`
// Whether you have required users to use at least one number in their password.
RequireNumbers *bool `json:"requireNumbers,omitempty" tf:"require_numbers,omitempty"`
// Whether you have required users to use at least one symbol in their password.
RequireSymbols *bool `json:"requireSymbols,omitempty" tf:"require_symbols,omitempty"`
// Whether you have required users to use at least one uppercase letter in their password.
RequireUppercase *bool `json:"requireUppercase,omitempty" tf:"require_uppercase,omitempty"`
// In the password policy you have set, refers to the number of days a temporary password is valid. If the user does not sign-in during this time, their password will need to be reset by an administrator.
TemporaryPasswordValidityDays *int64 `json:"temporaryPasswordValidityDays,omitempty" tf:"temporary_password_validity_days,omitempty"`
}
type PasswordPolicyParameters struct {
// Minimum length of the password policy that you have set.
// +kubebuilder:validation:Optional
MinimumLength *int64 `json:"minimumLength,omitempty" tf:"minimum_length,omitempty"`
// Whether you have required users to use at least one lowercase letter in their password.
// +kubebuilder:validation:Optional
RequireLowercase *bool `json:"requireLowercase,omitempty" tf:"require_lowercase,omitempty"`
// Whether you have required users to use at least one number in their password.
// +kubebuilder:validation:Optional
RequireNumbers *bool `json:"requireNumbers,omitempty" tf:"require_numbers,omitempty"`
// Whether you have required users to use at least one symbol in their password.
// +kubebuilder:validation:Optional
RequireSymbols *bool `json:"requireSymbols,omitempty" tf:"require_symbols,omitempty"`
// Whether you have required users to use at least one uppercase letter in their password.
// +kubebuilder:validation:Optional
RequireUppercase *bool `json:"requireUppercase,omitempty" tf:"require_uppercase,omitempty"`
// In the password policy you have set, refers to the number of days a temporary password is valid. If the user does not sign-in during this time, their password will need to be reset by an administrator.
// +kubebuilder:validation:Optional
TemporaryPasswordValidityDays *int64 `json:"temporaryPasswordValidityDays,omitempty" tf:"temporary_password_validity_days,omitempty"`
}
type RecoveryMechanismInitParameters struct {
// Name of the user pool.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Positive integer specifying priority of a method with 1 being the highest priority.
Priority *int64 `json:"priority,omitempty" tf:"priority,omitempty"`
}
type RecoveryMechanismObservation struct {
// Name of the user pool.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Positive integer specifying priority of a method with 1 being the highest priority.
Priority *int64 `json:"priority,omitempty" tf:"priority,omitempty"`
}
type RecoveryMechanismParameters struct {
// Name of the user pool.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
// Positive integer specifying priority of a method with 1 being the highest priority.
// +kubebuilder:validation:Optional
Priority *int64 `json:"priority" tf:"priority,omitempty"`
}
type SMSConfigurationInitParameters struct {
// External ID used in IAM role trust relationships. For more information about using external IDs, see How to Use an External ID When Granting Access to Your AWS Resources to a Third Party.
ExternalID *string `json:"externalId,omitempty" tf:"external_id,omitempty"`
// The AWS Region to use with Amazon SNS integration. You can choose the same Region as your user pool, or a supported Legacy Amazon SNS alternate Region. Amazon Cognito resources in the Asia Pacific (Seoul) AWS Region must use your Amazon SNS configuration in the Asia Pacific (Tokyo) Region. For more information, see SMS message settings for Amazon Cognito user pools.
SnsRegion *string `json:"snsRegion,omitempty" tf:"sns_region,omitempty"`
}
type SMSConfigurationObservation struct {
// External ID used in IAM role trust relationships. For more information about using external IDs, see How to Use an External ID When Granting Access to Your AWS Resources to a Third Party.
ExternalID *string `json:"externalId,omitempty" tf:"external_id,omitempty"`
// ARN of the Amazon SNS caller. This is usually the IAM role that you've given Cognito permission to assume.
SnsCallerArn *string `json:"snsCallerArn,omitempty" tf:"sns_caller_arn,omitempty"`
// The AWS Region to use with Amazon SNS integration. You can choose the same Region as your user pool, or a supported Legacy Amazon SNS alternate Region. Amazon Cognito resources in the Asia Pacific (Seoul) AWS Region must use your Amazon SNS configuration in the Asia Pacific (Tokyo) Region. For more information, see SMS message settings for Amazon Cognito user pools.
SnsRegion *string `json:"snsRegion,omitempty" tf:"sns_region,omitempty"`
}
type SMSConfigurationParameters struct {
// External ID used in IAM role trust relationships. For more information about using external IDs, see How to Use an External ID When Granting Access to Your AWS Resources to a Third Party.
// +kubebuilder:validation:Optional
ExternalID *string `json:"externalId" tf:"external_id,omitempty"`
// ARN of the Amazon SNS caller. This is usually the IAM role that you've given Cognito permission to assume.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role
// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractParamPath("arn",true)
// +kubebuilder:validation:Optional
SnsCallerArn *string `json:"snsCallerArn,omitempty" tf:"sns_caller_arn,omitempty"`
// Reference to a Role in iam to populate snsCallerArn.
// +kubebuilder:validation:Optional
SnsCallerArnRef *v1.Reference `json:"snsCallerArnRef,omitempty" tf:"-"`
// Selector for a Role in iam to populate snsCallerArn.
// +kubebuilder:validation:Optional
SnsCallerArnSelector *v1.Selector `json:"snsCallerArnSelector,omitempty" tf:"-"`
// The AWS Region to use with Amazon SNS integration. You can choose the same Region as your user pool, or a supported Legacy Amazon SNS alternate Region. Amazon Cognito resources in the Asia Pacific (Seoul) AWS Region must use your Amazon SNS configuration in the Asia Pacific (Tokyo) Region. For more information, see SMS message settings for Amazon Cognito user pools.
// +kubebuilder:validation:Optional
SnsRegion *string `json:"snsRegion,omitempty" tf:"sns_region,omitempty"`
}
type SchemaInitParameters struct {
// Attribute data type. Must be one of Boolean, Number, String, DateTime.
AttributeDataType *string `json:"attributeDataType,omitempty" tf:"attribute_data_type,omitempty"`
// Whether the attribute type is developer only.
DeveloperOnlyAttribute *bool `json:"developerOnlyAttribute,omitempty" tf:"developer_only_attribute,omitempty"`
// Whether the attribute can be changed once it has been created.
Mutable *bool `json:"mutable,omitempty" tf:"mutable,omitempty"`
// Name of the user pool.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Configuration block for the constraints for an attribute of the number type. Detailed below.
NumberAttributeConstraints []NumberAttributeConstraintsInitParameters `json:"numberAttributeConstraints,omitempty" tf:"number_attribute_constraints,omitempty"`
// Whether a user pool attribute is required. If the attribute is required and the user does not provide a value, registration or sign-in will fail.
Required *bool `json:"required,omitempty" tf:"required,omitempty"`
// Constraints for an attribute of the string type. Detailed below.
StringAttributeConstraints []StringAttributeConstraintsInitParameters `json:"stringAttributeConstraints,omitempty" tf:"string_attribute_constraints,omitempty"`
}
type SchemaObservation struct {
// Attribute data type. Must be one of Boolean, Number, String, DateTime.
AttributeDataType *string `json:"attributeDataType,omitempty" tf:"attribute_data_type,omitempty"`
// Whether the attribute type is developer only.
DeveloperOnlyAttribute *bool `json:"developerOnlyAttribute,omitempty" tf:"developer_only_attribute,omitempty"`
// Whether the attribute can be changed once it has been created.
Mutable *bool `json:"mutable,omitempty" tf:"mutable,omitempty"`
// Name of the user pool.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Configuration block for the constraints for an attribute of the number type. Detailed below.
NumberAttributeConstraints []NumberAttributeConstraintsObservation `json:"numberAttributeConstraints,omitempty" tf:"number_attribute_constraints,omitempty"`
// Whether a user pool attribute is required. If the attribute is required and the user does not provide a value, registration or sign-in will fail.
Required *bool `json:"required,omitempty" tf:"required,omitempty"`
// Constraints for an attribute of the string type. Detailed below.
StringAttributeConstraints []StringAttributeConstraintsObservation `json:"stringAttributeConstraints,omitempty" tf:"string_attribute_constraints,omitempty"`
}
type SchemaParameters struct {
// Attribute data type. Must be one of Boolean, Number, String, DateTime.
// +kubebuilder:validation:Optional
AttributeDataType *string `json:"attributeDataType" tf:"attribute_data_type,omitempty"`
// Whether the attribute type is developer only.
// +kubebuilder:validation:Optional
DeveloperOnlyAttribute *bool `json:"developerOnlyAttribute,omitempty" tf:"developer_only_attribute,omitempty"`
// Whether the attribute can be changed once it has been created.
// +kubebuilder:validation:Optional
Mutable *bool `json:"mutable,omitempty" tf:"mutable,omitempty"`
// Name of the user pool.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
// Configuration block for the constraints for an attribute of the number type. Detailed below.
// +kubebuilder:validation:Optional
NumberAttributeConstraints []NumberAttributeConstraintsParameters `json:"numberAttributeConstraints,omitempty" tf:"number_attribute_constraints,omitempty"`
// Whether a user pool attribute is required. If the attribute is required and the user does not provide a value, registration or sign-in will fail.
// +kubebuilder:validation:Optional
Required *bool `json:"required,omitempty" tf:"required,omitempty"`
// Constraints for an attribute of the string type. Detailed below.
// +kubebuilder:validation:Optional
StringAttributeConstraints []StringAttributeConstraintsParameters `json:"stringAttributeConstraints,omitempty" tf:"string_attribute_constraints,omitempty"`
}
type SoftwareTokenMfaConfigurationInitParameters struct {
// Boolean whether to enable software token Multi-Factor (MFA) tokens, such as Time-based One-Time Password (TOTP). To disable software token MFA When sms_configuration is not present, the mfa_configuration argument must be set to OFF and the software_token_mfa_configuration configuration block must be fully removed.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
}
type SoftwareTokenMfaConfigurationObservation struct {
// Boolean whether to enable software token Multi-Factor (MFA) tokens, such as Time-based One-Time Password (TOTP). To disable software token MFA When sms_configuration is not present, the mfa_configuration argument must be set to OFF and the software_token_mfa_configuration configuration block must be fully removed.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
}
type SoftwareTokenMfaConfigurationParameters struct {
// Boolean whether to enable software token Multi-Factor (MFA) tokens, such as Time-based One-Time Password (TOTP). To disable software token MFA When sms_configuration is not present, the mfa_configuration argument must be set to OFF and the software_token_mfa_configuration configuration block must be fully removed.
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled" tf:"enabled,omitempty"`
}
type StringAttributeConstraintsInitParameters struct {
// Maximum length of an attribute value of the string type.
MaxLength *string `json:"maxLength,omitempty" tf:"max_length,omitempty"`
// Minimum length of an attribute value of the string type.
MinLength *string `json:"minLength,omitempty" tf:"min_length,omitempty"`
}
type StringAttributeConstraintsObservation struct {
// Maximum length of an attribute value of the string type.
MaxLength *string `json:"maxLength,omitempty" tf:"max_length,omitempty"`
// Minimum length of an attribute value of the string type.
MinLength *string `json:"minLength,omitempty" tf:"min_length,omitempty"`
}
type StringAttributeConstraintsParameters struct {
// Maximum length of an attribute value of the string type.
// +kubebuilder:validation:Optional
MaxLength *string `json:"maxLength,omitempty" tf:"max_length,omitempty"`
// Minimum length of an attribute value of the string type.
// +kubebuilder:validation:Optional
MinLength *string `json:"minLength,omitempty" tf:"min_length,omitempty"`
}
type UserAttributeUpdateSettingsInitParameters struct {
// A list of attributes requiring verification before update. If set, the provided value(s) must also be set in auto_verified_attributes. Valid values: email, phone_number.
AttributesRequireVerificationBeforeUpdate []*string `json:"attributesRequireVerificationBeforeUpdate,omitempty" tf:"attributes_require_verification_before_update,omitempty"`
}
type UserAttributeUpdateSettingsObservation struct {
// A list of attributes requiring verification before update. If set, the provided value(s) must also be set in auto_verified_attributes. Valid values: email, phone_number.
AttributesRequireVerificationBeforeUpdate []*string `json:"attributesRequireVerificationBeforeUpdate,omitempty" tf:"attributes_require_verification_before_update,omitempty"`
}
type UserAttributeUpdateSettingsParameters struct {
// A list of attributes requiring verification before update. If set, the provided value(s) must also be set in auto_verified_attributes. Valid values: email, phone_number.
// +kubebuilder:validation:Optional
AttributesRequireVerificationBeforeUpdate []*string `json:"attributesRequireVerificationBeforeUpdate" tf:"attributes_require_verification_before_update,omitempty"`
}
type UserPoolAddOnsInitParameters struct {
// Mode for advanced security, must be one of OFF, AUDIT or ENFORCED.
AdvancedSecurityMode *string `json:"advancedSecurityMode,omitempty" tf:"advanced_security_mode,omitempty"`
}
type UserPoolAddOnsObservation struct {
// Mode for advanced security, must be one of OFF, AUDIT or ENFORCED.
AdvancedSecurityMode *string `json:"advancedSecurityMode,omitempty" tf:"advanced_security_mode,omitempty"`
}
type UserPoolAddOnsParameters struct {
// Mode for advanced security, must be one of OFF, AUDIT or ENFORCED.
// +kubebuilder:validation:Optional
AdvancedSecurityMode *string `json:"advancedSecurityMode" tf:"advanced_security_mode,omitempty"`
}
type UserPoolInitParameters struct {
// Configuration block to define which verified available method a user can use to recover their forgotten password. Detailed below.
AccountRecoverySetting []AccountRecoverySettingInitParameters `json:"accountRecoverySetting,omitempty" tf:"account_recovery_setting,omitempty"`
// Configuration block for creating a new user profile. Detailed below.
AdminCreateUserConfig []AdminCreateUserConfigInitParameters `json:"adminCreateUserConfig,omitempty" tf:"admin_create_user_config,omitempty"`
// Attributes supported as an alias for this user pool. Valid values: phone_number, email, or preferred_username. Conflicts with username_attributes.
AliasAttributes []*string `json:"aliasAttributes,omitempty" tf:"alias_attributes,omitempty"`
// Attributes to be auto-verified. Valid values: email, phone_number.
AutoVerifiedAttributes []*string `json:"autoVerifiedAttributes,omitempty" tf:"auto_verified_attributes,omitempty"`
// When active, DeletionProtection prevents accidental deletion of your user pool. Before you can delete a user pool that you have protected against deletion, you must deactivate this feature. Valid values are ACTIVE and INACTIVE, Default value is INACTIVE.
DeletionProtection *string `json:"deletionProtection,omitempty" tf:"deletion_protection,omitempty"`
// Configuration block for the user pool's device tracking. Detailed below.
DeviceConfiguration []DeviceConfigurationInitParameters `json:"deviceConfiguration,omitempty" tf:"device_configuration,omitempty"`
// Configuration block for configuring email. Detailed below.
EmailConfiguration []EmailConfigurationInitParameters `json:"emailConfiguration,omitempty" tf:"email_configuration,omitempty"`
// String representing the email verification message. Conflicts with verification_message_template configuration block email_message argument.
EmailVerificationMessage *string `json:"emailVerificationMessage,omitempty" tf:"email_verification_message,omitempty"`
// String representing the email verification subject. Conflicts with verification_message_template configuration block email_subject argument.
EmailVerificationSubject *string `json:"emailVerificationSubject,omitempty" tf:"email_verification_subject,omitempty"`
// Configuration block for the AWS Lambda triggers associated with the user pool. Detailed below.
LambdaConfig []LambdaConfigInitParameters `json:"lambdaConfig,omitempty" tf:"lambda_config,omitempty"`
// Multi-Factor Authentication (MFA) configuration for the User Pool. Defaults of OFF. Valid values are OFF (MFA Tokens are not required), ON (MFA is required for all users to sign in; requires at least one of sms_configuration or software_token_mfa_configuration to be configured), or OPTIONAL (MFA Will be required only for individual users who have MFA Enabled; requires at least one of sms_configuration or software_token_mfa_configuration to be configured).
MfaConfiguration *string `json:"mfaConfiguration,omitempty" tf:"mfa_configuration,omitempty"`
// Name of the user pool.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Configuration block for information about the user pool password policy. Detailed below.
PasswordPolicy []PasswordPolicyInitParameters `json:"passwordPolicy,omitempty" tf:"password_policy,omitempty"`
// String representing the SMS authentication message. The Message must contain the {####} placeholder, which will be replaced with the code.
SMSAuthenticationMessage *string `json:"smsAuthenticationMessage,omitempty" tf:"sms_authentication_message,omitempty"`
// Configuration block for Short Message Service (SMS) settings. Detailed below. These settings apply to SMS user verification and SMS Multi-Factor Authentication (MFA). Due to Cognito API restrictions, the SMS configuration cannot be removed without recreating the Cognito User Pool. For user data safety, this resource will ignore the removal of this configuration by disabling drift detection. To force resource recreation after this configuration has been applied, see the taint command.
SMSConfiguration []SMSConfigurationInitParameters `json:"smsConfiguration,omitempty" tf:"sms_configuration,omitempty"`
// String representing the SMS verification message. Conflicts with verification_message_template configuration block sms_message argument.
SMSVerificationMessage *string `json:"smsVerificationMessage,omitempty" tf:"sms_verification_message,omitempty"`
// Configuration block for the schema attributes of a user pool. Detailed below. Schema attributes from the standard attribute set only need to be specified if they are different from the default configuration. Attributes can be added, but not modified or removed. Maximum of 50 attributes.
Schema []SchemaInitParameters `json:"schema,omitempty" tf:"schema,omitempty"`
// Configuration block for software token Mult-Factor Authentication (MFA) settings. Detailed below.
SoftwareTokenMfaConfiguration []SoftwareTokenMfaConfigurationInitParameters `json:"softwareTokenMfaConfiguration,omitempty" tf:"software_token_mfa_configuration,omitempty"`
// Key-value map of resource tags.
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// Configuration block for user attribute update settings. Detailed below.
UserAttributeUpdateSettings []UserAttributeUpdateSettingsInitParameters `json:"userAttributeUpdateSettings,omitempty" tf:"user_attribute_update_settings,omitempty"`
// Configuration block for user pool add-ons to enable user pool advanced security mode features. Detailed below.
UserPoolAddOns []UserPoolAddOnsInitParameters `json:"userPoolAddOns,omitempty" tf:"user_pool_add_ons,omitempty"`
// Whether email addresses or phone numbers can be specified as usernames when a user signs up. Conflicts with alias_attributes.
UsernameAttributes []*string `json:"usernameAttributes,omitempty" tf:"username_attributes,omitempty"`
// Configuration block for username configuration. Detailed below.
UsernameConfiguration []UsernameConfigurationInitParameters `json:"usernameConfiguration,omitempty" tf:"username_configuration,omitempty"`
// Configuration block for verification message templates. Detailed below.
VerificationMessageTemplate []VerificationMessageTemplateInitParameters `json:"verificationMessageTemplate,omitempty" tf:"verification_message_template,omitempty"`
}
type UserPoolObservation struct {
// Configuration block to define which verified available method a user can use to recover their forgotten password. Detailed below.
AccountRecoverySetting []AccountRecoverySettingObservation `json:"accountRecoverySetting,omitempty" tf:"account_recovery_setting,omitempty"`
// Configuration block for creating a new user profile. Detailed below.
AdminCreateUserConfig []AdminCreateUserConfigObservation `json:"adminCreateUserConfig,omitempty" tf:"admin_create_user_config,omitempty"`
// Attributes supported as an alias for this user pool. Valid values: phone_number, email, or preferred_username. Conflicts with username_attributes.
AliasAttributes []*string `json:"aliasAttributes,omitempty" tf:"alias_attributes,omitempty"`
// ARN of the user pool.
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// Attributes to be auto-verified. Valid values: email, phone_number.
AutoVerifiedAttributes []*string `json:"autoVerifiedAttributes,omitempty" tf:"auto_verified_attributes,omitempty"`
// Date the user pool was created.
CreationDate *string `json:"creationDate,omitempty" tf:"creation_date,omitempty"`
// A custom domain name that you provide to Amazon Cognito. This parameter applies only if you use a custom domain to host the sign-up and sign-in pages for your application. For example: auth.example.com.
CustomDomain *string `json:"customDomain,omitempty" tf:"custom_domain,omitempty"`
// When active, DeletionProtection prevents accidental deletion of your user pool. Before you can delete a user pool that you have protected against deletion, you must deactivate this feature. Valid values are ACTIVE and INACTIVE, Default value is INACTIVE.
DeletionProtection *string `json:"deletionProtection,omitempty" tf:"deletion_protection,omitempty"`
// Configuration block for the user pool's device tracking. Detailed below.
DeviceConfiguration []DeviceConfigurationObservation `json:"deviceConfiguration,omitempty" tf:"device_configuration,omitempty"`
// Holds the domain prefix if the user pool has a domain associated with it.
Domain *string `json:"domain,omitempty" tf:"domain,omitempty"`
// Configuration block for configuring email. Detailed below.
EmailConfiguration []EmailConfigurationObservation `json:"emailConfiguration,omitempty" tf:"email_configuration,omitempty"`
// String representing the email verification message. Conflicts with verification_message_template configuration block email_message argument.
EmailVerificationMessage *string `json:"emailVerificationMessage,omitempty" tf:"email_verification_message,omitempty"`
// String representing the email verification subject. Conflicts with verification_message_template configuration block email_subject argument.
EmailVerificationSubject *string `json:"emailVerificationSubject,omitempty" tf:"email_verification_subject,omitempty"`
// Endpoint name of the user pool. Example format: cognito-idp.REGION.amazonaws.com/xxxx_yyyyy
Endpoint *string `json:"endpoint,omitempty" tf:"endpoint,omitempty"`
// A number estimating the size of the user pool.
EstimatedNumberOfUsers *int64 `json:"estimatedNumberOfUsers,omitempty" tf:"estimated_number_of_users,omitempty"`
// ID of the user pool.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// Configuration block for the AWS Lambda triggers associated with the user pool. Detailed below.
LambdaConfig []LambdaConfigObservation `json:"lambdaConfig,omitempty" tf:"lambda_config,omitempty"`
// Date the user pool was last modified.
LastModifiedDate *string `json:"lastModifiedDate,omitempty" tf:"last_modified_date,omitempty"`
// Multi-Factor Authentication (MFA) configuration for the User Pool. Defaults of OFF. Valid values are OFF (MFA Tokens are not required), ON (MFA is required for all users to sign in; requires at least one of sms_configuration or software_token_mfa_configuration to be configured), or OPTIONAL (MFA Will be required only for individual users who have MFA Enabled; requires at least one of sms_configuration or software_token_mfa_configuration to be configured).
MfaConfiguration *string `json:"mfaConfiguration,omitempty" tf:"mfa_configuration,omitempty"`
// Name of the user pool.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Configuration block for information about the user pool password policy. Detailed below.
PasswordPolicy []PasswordPolicyObservation `json:"passwordPolicy,omitempty" tf:"password_policy,omitempty"`
// String representing the SMS authentication message. The Message must contain the {####} placeholder, which will be replaced with the code.
SMSAuthenticationMessage *string `json:"smsAuthenticationMessage,omitempty" tf:"sms_authentication_message,omitempty"`
// Configuration block for Short Message Service (SMS) settings. Detailed below. These settings apply to SMS user verification and SMS Multi-Factor Authentication (MFA). Due to Cognito API restrictions, the SMS configuration cannot be removed without recreating the Cognito User Pool. For user data safety, this resource will ignore the removal of this configuration by disabling drift detection. To force resource recreation after this configuration has been applied, see the taint command.
SMSConfiguration []SMSConfigurationObservation `json:"smsConfiguration,omitempty" tf:"sms_configuration,omitempty"`
// String representing the SMS verification message. Conflicts with verification_message_template configuration block sms_message argument.
SMSVerificationMessage *string `json:"smsVerificationMessage,omitempty" tf:"sms_verification_message,omitempty"`
// Configuration block for the schema attributes of a user pool. Detailed below. Schema attributes from the standard attribute set only need to be specified if they are different from the default configuration. Attributes can be added, but not modified or removed. Maximum of 50 attributes.
Schema []SchemaObservation `json:"schema,omitempty" tf:"schema,omitempty"`
// Configuration block for software token Mult-Factor Authentication (MFA) settings. Detailed below.
SoftwareTokenMfaConfiguration []SoftwareTokenMfaConfigurationObservation `json:"softwareTokenMfaConfiguration,omitempty" tf:"software_token_mfa_configuration,omitempty"`
// Key-value map of resource tags.
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"`
// Configuration block for user attribute update settings. Detailed below.
UserAttributeUpdateSettings []UserAttributeUpdateSettingsObservation `json:"userAttributeUpdateSettings,omitempty" tf:"user_attribute_update_settings,omitempty"`
// Configuration block for user pool add-ons to enable user pool advanced security mode features. Detailed below.
UserPoolAddOns []UserPoolAddOnsObservation `json:"userPoolAddOns,omitempty" tf:"user_pool_add_ons,omitempty"`
// Whether email addresses or phone numbers can be specified as usernames when a user signs up. Conflicts with alias_attributes.
UsernameAttributes []*string `json:"usernameAttributes,omitempty" tf:"username_attributes,omitempty"`
// Configuration block for username configuration. Detailed below.
UsernameConfiguration []UsernameConfigurationObservation `json:"usernameConfiguration,omitempty" tf:"username_configuration,omitempty"`
// Configuration block for verification message templates. Detailed below.
VerificationMessageTemplate []VerificationMessageTemplateObservation `json:"verificationMessageTemplate,omitempty" tf:"verification_message_template,omitempty"`
}
type UserPoolParameters struct {
// Configuration block to define which verified available method a user can use to recover their forgotten password. Detailed below.
// +kubebuilder:validation:Optional
AccountRecoverySetting []AccountRecoverySettingParameters `json:"accountRecoverySetting,omitempty" tf:"account_recovery_setting,omitempty"`
// Configuration block for creating a new user profile. Detailed below.
// +kubebuilder:validation:Optional
AdminCreateUserConfig []AdminCreateUserConfigParameters `json:"adminCreateUserConfig,omitempty" tf:"admin_create_user_config,omitempty"`
// Attributes supported as an alias for this user pool. Valid values: phone_number, email, or preferred_username. Conflicts with username_attributes.
// +kubebuilder:validation:Optional
AliasAttributes []*string `json:"aliasAttributes,omitempty" tf:"alias_attributes,omitempty"`
// Attributes to be auto-verified. Valid values: email, phone_number.
// +kubebuilder:validation:Optional
AutoVerifiedAttributes []*string `json:"autoVerifiedAttributes,omitempty" tf:"auto_verified_attributes,omitempty"`
// When active, DeletionProtection prevents accidental deletion of your user pool. Before you can delete a user pool that you have protected against deletion, you must deactivate this feature. Valid values are ACTIVE and INACTIVE, Default value is INACTIVE.
// +kubebuilder:validation:Optional
DeletionProtection *string `json:"deletionProtection,omitempty" tf:"deletion_protection,omitempty"`
// Configuration block for the user pool's device tracking. Detailed below.
// +kubebuilder:validation:Optional
DeviceConfiguration []DeviceConfigurationParameters `json:"deviceConfiguration,omitempty" tf:"device_configuration,omitempty"`
// Configuration block for configuring email. Detailed below.
// +kubebuilder:validation:Optional
EmailConfiguration []EmailConfigurationParameters `json:"emailConfiguration,omitempty" tf:"email_configuration,omitempty"`
// String representing the email verification message. Conflicts with verification_message_template configuration block email_message argument.
// +kubebuilder:validation:Optional
EmailVerificationMessage *string `json:"emailVerificationMessage,omitempty" tf:"email_verification_message,omitempty"`
// String representing the email verification subject. Conflicts with verification_message_template configuration block email_subject argument.
// +kubebuilder:validation:Optional
EmailVerificationSubject *string `json:"emailVerificationSubject,omitempty" tf:"email_verification_subject,omitempty"`
// Configuration block for the AWS Lambda triggers associated with the user pool. Detailed below.
// +kubebuilder:validation:Optional
LambdaConfig []LambdaConfigParameters `json:"lambdaConfig,omitempty" tf:"lambda_config,omitempty"`
// Multi-Factor Authentication (MFA) configuration for the User Pool. Defaults of OFF. Valid values are OFF (MFA Tokens are not required), ON (MFA is required for all users to sign in; requires at least one of sms_configuration or software_token_mfa_configuration to be configured), or OPTIONAL (MFA Will be required only for individual users who have MFA Enabled; requires at least one of sms_configuration or software_token_mfa_configuration to be configured).
// +kubebuilder:validation:Optional
MfaConfiguration *string `json:"mfaConfiguration,omitempty" tf:"mfa_configuration,omitempty"`
// Name of the user pool.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Configuration block for information about the user pool password policy. Detailed below.
// +kubebuilder:validation:Optional
PasswordPolicy []PasswordPolicyParameters `json:"passwordPolicy,omitempty" tf:"password_policy,omitempty"`
// Region is the region you'd like your resource to be created in.
// +upjet:crd:field:TFTag=-
// +kubebuilder:validation:Required
Region *string `json:"region" tf:"-"`
// String representing the SMS authentication message. The Message must contain the {####} placeholder, which will be replaced with the code.
// +kubebuilder:validation:Optional
SMSAuthenticationMessage *string `json:"smsAuthenticationMessage,omitempty" tf:"sms_authentication_message,omitempty"`
// Configuration block for Short Message Service (SMS) settings. Detailed below. These settings apply to SMS user verification and SMS Multi-Factor Authentication (MFA). Due to Cognito API restrictions, the SMS configuration cannot be removed without recreating the Cognito User Pool. For user data safety, this resource will ignore the removal of this configuration by disabling drift detection. To force resource recreation after this configuration has been applied, see the taint command.
// +kubebuilder:validation:Optional
SMSConfiguration []SMSConfigurationParameters `json:"smsConfiguration,omitempty" tf:"sms_configuration,omitempty"`
// String representing the SMS verification message. Conflicts with verification_message_template configuration block sms_message argument.
// +kubebuilder:validation:Optional
SMSVerificationMessage *string `json:"smsVerificationMessage,omitempty" tf:"sms_verification_message,omitempty"`
// Configuration block for the schema attributes of a user pool. Detailed below. Schema attributes from the standard attribute set only need to be specified if they are different from the default configuration. Attributes can be added, but not modified or removed. Maximum of 50 attributes.
// +kubebuilder:validation:Optional
Schema []SchemaParameters `json:"schema,omitempty" tf:"schema,omitempty"`
// Configuration block for software token Mult-Factor Authentication (MFA) settings. Detailed below.
// +kubebuilder:validation:Optional
SoftwareTokenMfaConfiguration []SoftwareTokenMfaConfigurationParameters `json:"softwareTokenMfaConfiguration,omitempty" tf:"software_token_mfa_configuration,omitempty"`
// Key-value map of resource tags.
// +kubebuilder:validation:Optional
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// Configuration block for user attribute update settings. Detailed below.
// +kubebuilder:validation:Optional
UserAttributeUpdateSettings []UserAttributeUpdateSettingsParameters `json:"userAttributeUpdateSettings,omitempty" tf:"user_attribute_update_settings,omitempty"`
// Configuration block for user pool add-ons to enable user pool advanced security mode features. Detailed below.
// +kubebuilder:validation:Optional
UserPoolAddOns []UserPoolAddOnsParameters `json:"userPoolAddOns,omitempty" tf:"user_pool_add_ons,omitempty"`
// Whether email addresses or phone numbers can be specified as usernames when a user signs up. Conflicts with alias_attributes.
// +kubebuilder:validation:Optional
UsernameAttributes []*string `json:"usernameAttributes,omitempty" tf:"username_attributes,omitempty"`
// Configuration block for username configuration. Detailed below.
// +kubebuilder:validation:Optional
UsernameConfiguration []UsernameConfigurationParameters `json:"usernameConfiguration,omitempty" tf:"username_configuration,omitempty"`