forked from aws-amplify/aws-sdk-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AWSCognitoIdentityProviderResources.m
8375 lines (8363 loc) · 445 KB
/
AWSCognitoIdentityProviderResources.m
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 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License").
// You may not use this file except in compliance with the License.
// A copy of the License is located at
//
// http://aws.amazon.com/apache2.0
//
// or in the "license" file accompanying this file. This file is distributed
// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
// express or implied. See the License for the specific language governing
// permissions and limitations under the License.
//
#import "AWSCognitoIdentityProviderResources.h"
#import <AWSCore/AWSCocoaLumberjack.h>
@interface AWSCognitoIdentityProviderResources ()
@property (nonatomic, strong) NSDictionary *definitionDictionary;
@end
@implementation AWSCognitoIdentityProviderResources
+ (instancetype)sharedInstance {
static AWSCognitoIdentityProviderResources *_sharedResources = nil;
static dispatch_once_t once_token;
dispatch_once(&once_token, ^{
_sharedResources = [AWSCognitoIdentityProviderResources new];
});
return _sharedResources;
}
- (NSDictionary *)JSONObject {
return self.definitionDictionary;
}
- (instancetype)init {
if (self = [super init]) {
//init method
NSError *error = nil;
_definitionDictionary = [NSJSONSerialization JSONObjectWithData:[[self definitionString] dataUsingEncoding:NSUTF8StringEncoding]
options:kNilOptions
error:&error];
if (_definitionDictionary == nil) {
if (error) {
AWSDDLogError(@"Failed to parse JSON service definition: %@",error);
}
}
}
return self;
}
- (NSString *)definitionString {
return @"{\
\"version\":\"2.0\",\
\"metadata\":{\
\"apiVersion\":\"2016-04-18\",\
\"endpointPrefix\":\"cognito-idp\",\
\"jsonVersion\":\"1.1\",\
\"protocol\":\"json\",\
\"serviceFullName\":\"Amazon Cognito Identity Provider\",\
\"serviceId\":\"Cognito Identity Provider\",\
\"signatureVersion\":\"v4\",\
\"targetPrefix\":\"AWSCognitoIdentityProviderService\",\
\"uid\":\"cognito-idp-2016-04-18\"\
},\
\"operations\":{\
\"AddCustomAttributes\":{\
\"name\":\"AddCustomAttributes\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AddCustomAttributesRequest\"},\
\"output\":{\"shape\":\"AddCustomAttributesResponse\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"UserImportInProgressException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Adds additional user attributes to the user pool schema.</p>\"\
},\
\"AdminAddUserToGroup\":{\
\"name\":\"AdminAddUserToGroup\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminAddUserToGroupRequest\"},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Adds the specified user to the specified group.</p> <p>Calling this action requires developer credentials.</p>\"\
},\
\"AdminConfirmSignUp\":{\
\"name\":\"AdminConfirmSignUp\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminConfirmSignUpRequest\"},\
\"output\":{\"shape\":\"AdminConfirmSignUpResponse\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"UnexpectedLambdaException\"},\
{\"shape\":\"UserLambdaValidationException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"TooManyFailedAttemptsException\"},\
{\"shape\":\"InvalidLambdaResponseException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"LimitExceededException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Confirms user registration as an admin without using a confirmation code. Works on any user.</p> <p>Calling this action requires developer credentials.</p>\"\
},\
\"AdminCreateUser\":{\
\"name\":\"AdminCreateUser\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminCreateUserRequest\"},\
\"output\":{\"shape\":\"AdminCreateUserResponse\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"UsernameExistsException\"},\
{\"shape\":\"InvalidPasswordException\"},\
{\"shape\":\"CodeDeliveryFailureException\"},\
{\"shape\":\"UnexpectedLambdaException\"},\
{\"shape\":\"UserLambdaValidationException\"},\
{\"shape\":\"InvalidLambdaResponseException\"},\
{\"shape\":\"PreconditionNotMetException\"},\
{\"shape\":\"InvalidSmsRoleAccessPolicyException\"},\
{\"shape\":\"InvalidSmsRoleTrustRelationshipException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"UnsupportedUserStateException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Creates a new user in the specified user pool.</p> <p>If <code>MessageAction</code> isn't set, the default is to send a welcome message via email or phone (SMS).</p> <note> <p>This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with <a href=\\\"https://console.aws.amazon.com/pinpoint/home/\\\">Amazon Pinpoint</a>. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.</p> <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In <i> <a href=\\\"https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html\\\">sandbox mode</a> </i>, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see <a href=\\\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html\\\"> SMS message settings for Amazon Cognito user pools</a> in the <i>Amazon Cognito Developer Guide</i>.</p> </note> <p>This message is based on a template that you configured in your call to create or update a user pool. This template includes your custom sign-up instructions and placeholders for user name and temporary password.</p> <p>Alternatively, you can call <code>AdminCreateUser</code> with <code>SUPPRESS</code> for the <code>MessageAction</code> parameter, and Amazon Cognito won't send any email. </p> <p>In either case, the user will be in the <code>FORCE_CHANGE_PASSWORD</code> state until they sign in and change their password.</p> <p> <code>AdminCreateUser</code> requires developer credentials.</p>\"\
},\
\"AdminDeleteUser\":{\
\"name\":\"AdminDeleteUser\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminDeleteUserRequest\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Deletes a user as an administrator. Works on any user.</p> <p>Calling this action requires developer credentials.</p>\"\
},\
\"AdminDeleteUserAttributes\":{\
\"name\":\"AdminDeleteUserAttributes\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminDeleteUserAttributesRequest\"},\
\"output\":{\"shape\":\"AdminDeleteUserAttributesResponse\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Deletes the user attributes in a user pool as an administrator. Works on any user.</p> <p>Calling this action requires developer credentials.</p>\"\
},\
\"AdminDisableProviderForUser\":{\
\"name\":\"AdminDisableProviderForUser\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminDisableProviderForUserRequest\"},\
\"output\":{\"shape\":\"AdminDisableProviderForUserResponse\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"AliasExistsException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Prevents the user from signing in with the specified external (SAML or social) identity provider. If the user that you want to deactivate is a Amazon Cognito user pools native username + password user, they can't use their password to sign in. If the user to deactivate is a linked external identity provider (IdP) user, any link between that user and an existing user is removed. When the external user signs in again, and the user is no longer attached to the previously linked <code>DestinationUser</code>, the user must create a new user account. See <a href=\\\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminLinkProviderForUser.html\\\">AdminLinkProviderForUser</a>.</p> <p>This action is enabled only for admin access and requires developer credentials.</p> <p>The <code>ProviderName</code> must match the value specified when creating an IdP for the pool. </p> <p>To deactivate a native username + password user, the <code>ProviderName</code> value must be <code>Cognito</code> and the <code>ProviderAttributeName</code> must be <code>Cognito_Subject</code>. The <code>ProviderAttributeValue</code> must be the name that is used in the user pool for the user.</p> <p>The <code>ProviderAttributeName</code> must always be <code>Cognito_Subject</code> for social identity providers. The <code>ProviderAttributeValue</code> must always be the exact subject that was used when the user was originally linked as a source user.</p> <p>For de-linking a SAML identity, there are two scenarios. If the linked identity has not yet been used to sign in, the <code>ProviderAttributeName</code> and <code>ProviderAttributeValue</code> must be the same values that were used for the <code>SourceUser</code> when the identities were originally linked using <code> AdminLinkProviderForUser</code> call. (If the linking was done with <code>ProviderAttributeName</code> set to <code>Cognito_Subject</code>, the same applies here). However, if the user has already signed in, the <code>ProviderAttributeName</code> must be <code>Cognito_Subject</code> and <code>ProviderAttributeValue</code> must be the subject of the SAML assertion.</p>\"\
},\
\"AdminDisableUser\":{\
\"name\":\"AdminDisableUser\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminDisableUserRequest\"},\
\"output\":{\"shape\":\"AdminDisableUserResponse\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Disables the specified user.</p> <p>Calling this action requires developer credentials.</p>\"\
},\
\"AdminEnableUser\":{\
\"name\":\"AdminEnableUser\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminEnableUserRequest\"},\
\"output\":{\"shape\":\"AdminEnableUserResponse\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Enables the specified user as an administrator. Works on any user.</p> <p>Calling this action requires developer credentials.</p>\"\
},\
\"AdminForgetDevice\":{\
\"name\":\"AdminForgetDevice\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminForgetDeviceRequest\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InvalidUserPoolConfigurationException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Forgets the device, as an administrator.</p> <p>Calling this action requires developer credentials.</p>\"\
},\
\"AdminGetDevice\":{\
\"name\":\"AdminGetDevice\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminGetDeviceRequest\"},\
\"output\":{\"shape\":\"AdminGetDeviceResponse\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InvalidUserPoolConfigurationException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"NotAuthorizedException\"}\
],\
\"documentation\":\"<p>Gets the device, as an administrator.</p> <p>Calling this action requires developer credentials.</p>\"\
},\
\"AdminGetUser\":{\
\"name\":\"AdminGetUser\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminGetUserRequest\"},\
\"output\":{\"shape\":\"AdminGetUserResponse\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Gets the specified user by user name in a user pool as an administrator. Works on any user.</p> <p>Calling this action requires developer credentials.</p>\"\
},\
\"AdminInitiateAuth\":{\
\"name\":\"AdminInitiateAuth\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminInitiateAuthRequest\"},\
\"output\":{\"shape\":\"AdminInitiateAuthResponse\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"UnexpectedLambdaException\"},\
{\"shape\":\"InvalidUserPoolConfigurationException\"},\
{\"shape\":\"UserLambdaValidationException\"},\
{\"shape\":\"InvalidLambdaResponseException\"},\
{\"shape\":\"MFAMethodNotFoundException\"},\
{\"shape\":\"InvalidSmsRoleAccessPolicyException\"},\
{\"shape\":\"InvalidSmsRoleTrustRelationshipException\"},\
{\"shape\":\"PasswordResetRequiredException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"UserNotConfirmedException\"}\
],\
\"documentation\":\"<p>Initiates the authentication flow, as an administrator.</p> <note> <p>This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with <a href=\\\"https://console.aws.amazon.com/pinpoint/home/\\\">Amazon Pinpoint</a>. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.</p> <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In <i> <a href=\\\"https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html\\\">sandbox mode</a> </i>, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see <a href=\\\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html\\\"> SMS message settings for Amazon Cognito user pools</a> in the <i>Amazon Cognito Developer Guide</i>.</p> </note> <p>Calling this action requires developer credentials.</p>\"\
},\
\"AdminLinkProviderForUser\":{\
\"name\":\"AdminLinkProviderForUser\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminLinkProviderForUserRequest\"},\
\"output\":{\"shape\":\"AdminLinkProviderForUserResponse\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"AliasExistsException\"},\
{\"shape\":\"LimitExceededException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Links an existing user account in a user pool (<code>DestinationUser</code>) to an identity from an external identity provider (<code>SourceUser</code>) based on a specified attribute name and value from the external identity provider. This allows you to create a link from the existing user account to an external federated user identity that has not yet been used to sign in. You can then use the federated user identity to sign in as the existing user account. </p> <p> For example, if there is an existing user with a username and password, this API links that user to a federated user identity. When the user signs in with a federated user identity, they sign in as the existing user account.</p> <note> <p>The maximum number of federated identities linked to a user is 5.</p> </note> <important> <p>Because this API allows a user with an external federated identity to sign in as an existing user in the user pool, it is critical that it only be used with external identity providers and provider attributes that have been trusted by the application owner.</p> </important> <p>This action is administrative and requires developer credentials.</p>\"\
},\
\"AdminListDevices\":{\
\"name\":\"AdminListDevices\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminListDevicesRequest\"},\
\"output\":{\"shape\":\"AdminListDevicesResponse\"},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidUserPoolConfigurationException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"NotAuthorizedException\"}\
],\
\"documentation\":\"<p>Lists devices, as an administrator.</p> <p>Calling this action requires developer credentials.</p>\"\
},\
\"AdminListGroupsForUser\":{\
\"name\":\"AdminListGroupsForUser\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminListGroupsForUserRequest\"},\
\"output\":{\"shape\":\"AdminListGroupsForUserResponse\"},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Lists the groups that the user belongs to.</p> <p>Calling this action requires developer credentials.</p>\"\
},\
\"AdminListUserAuthEvents\":{\
\"name\":\"AdminListUserAuthEvents\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminListUserAuthEventsRequest\"},\
\"output\":{\"shape\":\"AdminListUserAuthEventsResponse\"},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"UserPoolAddOnNotEnabledException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>A history of user activity and any risks detected as part of Amazon Cognito advanced security.</p>\"\
},\
\"AdminRemoveUserFromGroup\":{\
\"name\":\"AdminRemoveUserFromGroup\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminRemoveUserFromGroupRequest\"},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Removes the specified user from the specified group.</p> <p>Calling this action requires developer credentials.</p>\"\
},\
\"AdminResetUserPassword\":{\
\"name\":\"AdminResetUserPassword\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminResetUserPasswordRequest\"},\
\"output\":{\"shape\":\"AdminResetUserPasswordResponse\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"UnexpectedLambdaException\"},\
{\"shape\":\"UserLambdaValidationException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"InvalidLambdaResponseException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"LimitExceededException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"InvalidSmsRoleAccessPolicyException\"},\
{\"shape\":\"InvalidEmailRoleAccessPolicyException\"},\
{\"shape\":\"InvalidSmsRoleTrustRelationshipException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Resets the specified user's password in a user pool as an administrator. Works on any user.</p> <p>When a developer calls this API, the current password is invalidated, so it must be changed. If a user tries to sign in after the API is called, the app will get a PasswordResetRequiredException exception back and should direct the user down the flow to reset the password, which is the same as the forgot password flow. In addition, if the user pool has phone verification selected and a verified phone number exists for the user, or if email verification is selected and a verified email exists for the user, calling this API will also result in sending a message to the end user with the code to change their password.</p> <note> <p>This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with <a href=\\\"https://console.aws.amazon.com/pinpoint/home/\\\">Amazon Pinpoint</a>. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.</p> <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In <i> <a href=\\\"https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html\\\">sandbox mode</a> </i>, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see <a href=\\\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html\\\"> SMS message settings for Amazon Cognito user pools</a> in the <i>Amazon Cognito Developer Guide</i>.</p> </note> <p>Calling this action requires developer credentials.</p>\"\
},\
\"AdminRespondToAuthChallenge\":{\
\"name\":\"AdminRespondToAuthChallenge\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminRespondToAuthChallengeRequest\"},\
\"output\":{\"shape\":\"AdminRespondToAuthChallengeResponse\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"CodeMismatchException\"},\
{\"shape\":\"ExpiredCodeException\"},\
{\"shape\":\"UnexpectedLambdaException\"},\
{\"shape\":\"InvalidPasswordException\"},\
{\"shape\":\"UserLambdaValidationException\"},\
{\"shape\":\"InvalidLambdaResponseException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"InvalidUserPoolConfigurationException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"MFAMethodNotFoundException\"},\
{\"shape\":\"InvalidSmsRoleAccessPolicyException\"},\
{\"shape\":\"InvalidSmsRoleTrustRelationshipException\"},\
{\"shape\":\"AliasExistsException\"},\
{\"shape\":\"PasswordResetRequiredException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"UserNotConfirmedException\"},\
{\"shape\":\"SoftwareTokenMFANotFoundException\"}\
],\
\"documentation\":\"<p>Responds to an authentication challenge, as an administrator.</p> <note> <p>This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with <a href=\\\"https://console.aws.amazon.com/pinpoint/home/\\\">Amazon Pinpoint</a>. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.</p> <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In <i> <a href=\\\"https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html\\\">sandbox mode</a> </i>, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see <a href=\\\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html\\\"> SMS message settings for Amazon Cognito user pools</a> in the <i>Amazon Cognito Developer Guide</i>.</p> </note> <p>Calling this action requires developer credentials.</p>\"\
},\
\"AdminSetUserMFAPreference\":{\
\"name\":\"AdminSetUserMFAPreference\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminSetUserMFAPreferenceRequest\"},\
\"output\":{\"shape\":\"AdminSetUserMFAPreferenceResponse\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"PasswordResetRequiredException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"UserNotConfirmedException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>The user's multi-factor authentication (MFA) preference, including which MFA options are activated, and if any are preferred. Only one factor can be set as preferred. The preferred MFA factor will be used to authenticate a user if multiple factors are activated. If multiple options are activated and no preference is set, a challenge to choose an MFA option will be returned during sign-in.</p>\"\
},\
\"AdminSetUserPassword\":{\
\"name\":\"AdminSetUserPassword\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminSetUserPasswordRequest\"},\
\"output\":{\"shape\":\"AdminSetUserPasswordResponse\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InvalidPasswordException\"}\
],\
\"documentation\":\"<p>Sets the specified user's password in a user pool as an administrator. Works on any user. </p> <p>The password can be temporary or permanent. If it is temporary, the user status enters the <code>FORCE_CHANGE_PASSWORD</code> state. When the user next tries to sign in, the InitiateAuth/AdminInitiateAuth response will contain the <code>NEW_PASSWORD_REQUIRED</code> challenge. If the user doesn't sign in before it expires, the user won't be able to sign in, and an administrator must reset their password. </p> <p>Once the user has set a new password, or the password is permanent, the user status is set to <code>Confirmed</code>.</p>\"\
},\
\"AdminSetUserSettings\":{\
\"name\":\"AdminSetUserSettings\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminSetUserSettingsRequest\"},\
\"output\":{\"shape\":\"AdminSetUserSettingsResponse\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p> <i>This action is no longer supported.</i> You can use it to configure only SMS MFA. You can't use it to configure time-based one-time password (TOTP) software token MFA. To configure either type of MFA, use <a href=\\\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminSetUserMFAPreference.html\\\">AdminSetUserMFAPreference</a> instead.</p>\"\
},\
\"AdminUpdateAuthEventFeedback\":{\
\"name\":\"AdminUpdateAuthEventFeedback\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminUpdateAuthEventFeedbackRequest\"},\
\"output\":{\"shape\":\"AdminUpdateAuthEventFeedbackResponse\"},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"UserPoolAddOnNotEnabledException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Provides feedback for an authentication event indicating if it was from a valid user. This feedback is used for improving the risk evaluation decision for the user pool as part of Amazon Cognito advanced security.</p>\"\
},\
\"AdminUpdateDeviceStatus\":{\
\"name\":\"AdminUpdateDeviceStatus\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminUpdateDeviceStatusRequest\"},\
\"output\":{\"shape\":\"AdminUpdateDeviceStatusResponse\"},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidUserPoolConfigurationException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Updates the device status as an administrator.</p> <p>Calling this action requires developer credentials.</p>\"\
},\
\"AdminUpdateUserAttributes\":{\
\"name\":\"AdminUpdateUserAttributes\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminUpdateUserAttributesRequest\"},\
\"output\":{\"shape\":\"AdminUpdateUserAttributesResponse\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"UnexpectedLambdaException\"},\
{\"shape\":\"UserLambdaValidationException\"},\
{\"shape\":\"InvalidLambdaResponseException\"},\
{\"shape\":\"AliasExistsException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"InvalidSmsRoleAccessPolicyException\"},\
{\"shape\":\"InvalidEmailRoleAccessPolicyException\"},\
{\"shape\":\"InvalidSmsRoleTrustRelationshipException\"}\
],\
\"documentation\":\"<p>Updates the specified user's attributes, including developer attributes, as an administrator. Works on any user.</p> <p>For custom attributes, you must prepend the <code>custom:</code> prefix to the attribute name.</p> <p>In addition to updating user attributes, this API can also be used to mark phone and email as verified.</p> <note> <p>This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with <a href=\\\"https://console.aws.amazon.com/pinpoint/home/\\\">Amazon Pinpoint</a>. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.</p> <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In <i> <a href=\\\"https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html\\\">sandbox mode</a> </i>, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see <a href=\\\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html\\\"> SMS message settings for Amazon Cognito user pools</a> in the <i>Amazon Cognito Developer Guide</i>.</p> </note> <p>Calling this action requires developer credentials.</p>\"\
},\
\"AdminUserGlobalSignOut\":{\
\"name\":\"AdminUserGlobalSignOut\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AdminUserGlobalSignOutRequest\"},\
\"output\":{\"shape\":\"AdminUserGlobalSignOutResponse\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Signs out users from all devices, as an administrator. It also invalidates all refresh tokens issued to a user. The user's current access and Id tokens remain valid until their expiry. Access and Id tokens expire one hour after they're issued.</p> <p>Calling this action requires developer credentials.</p>\"\
},\
\"AssociateSoftwareToken\":{\
\"name\":\"AssociateSoftwareToken\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AssociateSoftwareTokenRequest\"},\
\"output\":{\"shape\":\"AssociateSoftwareTokenResponse\"},\
\"errors\":[\
{\"shape\":\"ConcurrentModificationException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"SoftwareTokenMFANotFoundException\"}\
],\
\"documentation\":\"<p>Returns a unique generated shared secret key code for the user account. The request takes an access token or a session string, but not both.</p> <note> <p>Calling AssociateSoftwareToken immediately disassociates the existing software token from the user account. If the user doesn't subsequently verify the software token, their account is set up to authenticate without MFA. If MFA config is set to Optional at the user pool level, the user can then log in without MFA. However, if MFA is set to Required for the user pool, the user is asked to set up a new software token MFA during sign-in.</p> </note>\"\
},\
\"ChangePassword\":{\
\"name\":\"ChangePassword\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"ChangePasswordRequest\"},\
\"output\":{\"shape\":\"ChangePasswordResponse\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InvalidPasswordException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"LimitExceededException\"},\
{\"shape\":\"PasswordResetRequiredException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"UserNotConfirmedException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Changes the password for a specified user in a user pool.</p>\",\
\"authtype\":\"none\"\
},\
\"ConfirmDevice\":{\
\"name\":\"ConfirmDevice\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"ConfirmDeviceRequest\"},\
\"output\":{\"shape\":\"ConfirmDeviceResponse\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"InvalidPasswordException\"},\
{\"shape\":\"InvalidLambdaResponseException\"},\
{\"shape\":\"UsernameExistsException\"},\
{\"shape\":\"InvalidUserPoolConfigurationException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"PasswordResetRequiredException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"UserNotConfirmedException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Confirms tracking of the device. This API call is the call that begins device tracking.</p>\"\
},\
\"ConfirmForgotPassword\":{\
\"name\":\"ConfirmForgotPassword\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"ConfirmForgotPasswordRequest\"},\
\"output\":{\"shape\":\"ConfirmForgotPasswordResponse\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"UnexpectedLambdaException\"},\
{\"shape\":\"UserLambdaValidationException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InvalidPasswordException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"CodeMismatchException\"},\
{\"shape\":\"ExpiredCodeException\"},\
{\"shape\":\"TooManyFailedAttemptsException\"},\
{\"shape\":\"InvalidLambdaResponseException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"LimitExceededException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"UserNotConfirmedException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Allows a user to enter a confirmation code to reset a forgotten password.</p>\",\
\"authtype\":\"none\"\
},\
\"ConfirmSignUp\":{\
\"name\":\"ConfirmSignUp\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"ConfirmSignUpRequest\"},\
\"output\":{\"shape\":\"ConfirmSignUpResponse\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"UnexpectedLambdaException\"},\
{\"shape\":\"UserLambdaValidationException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"TooManyFailedAttemptsException\"},\
{\"shape\":\"CodeMismatchException\"},\
{\"shape\":\"ExpiredCodeException\"},\
{\"shape\":\"InvalidLambdaResponseException\"},\
{\"shape\":\"AliasExistsException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"LimitExceededException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Confirms registration of a user and handles the existing alias from a previous user.</p>\",\
\"authtype\":\"none\"\
},\
\"CreateGroup\":{\
\"name\":\"CreateGroup\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"CreateGroupRequest\"},\
\"output\":{\"shape\":\"CreateGroupResponse\"},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"GroupExistsException\"},\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"LimitExceededException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Creates a new group in the specified user pool.</p> <p>Calling this action requires developer credentials.</p>\"\
},\
\"CreateIdentityProvider\":{\
\"name\":\"CreateIdentityProvider\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"CreateIdentityProviderRequest\"},\
\"output\":{\"shape\":\"CreateIdentityProviderResponse\"},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"DuplicateProviderException\"},\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"LimitExceededException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Creates an identity provider for a user pool.</p>\"\
},\
\"CreateResourceServer\":{\
\"name\":\"CreateResourceServer\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"CreateResourceServerRequest\"},\
\"output\":{\"shape\":\"CreateResourceServerResponse\"},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"LimitExceededException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Creates a new OAuth2.0 resource server and defines custom scopes within it.</p>\"\
},\
\"CreateUserImportJob\":{\
\"name\":\"CreateUserImportJob\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"CreateUserImportJobRequest\"},\
\"output\":{\"shape\":\"CreateUserImportJobResponse\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"PreconditionNotMetException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"LimitExceededException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Creates the user import job.</p>\"\
},\
\"CreateUserPool\":{\
\"name\":\"CreateUserPool\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"CreateUserPoolRequest\"},\
\"output\":{\"shape\":\"CreateUserPoolResponse\"},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"LimitExceededException\"},\
{\"shape\":\"InvalidSmsRoleAccessPolicyException\"},\
{\"shape\":\"InvalidSmsRoleTrustRelationshipException\"},\
{\"shape\":\"InvalidEmailRoleAccessPolicyException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"UserPoolTaggingException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Creates a new Amazon Cognito user pool and sets the password policy for the pool.</p> <note> <p>This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with <a href=\\\"https://console.aws.amazon.com/pinpoint/home/\\\">Amazon Pinpoint</a>. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.</p> <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In <i> <a href=\\\"https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html\\\">sandbox mode</a> </i>, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see <a href=\\\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html\\\"> SMS message settings for Amazon Cognito user pools</a> in the <i>Amazon Cognito Developer Guide</i>.</p> </note>\"\
},\
\"CreateUserPoolClient\":{\
\"name\":\"CreateUserPoolClient\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"CreateUserPoolClientRequest\"},\
\"output\":{\"shape\":\"CreateUserPoolClientResponse\"},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"LimitExceededException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"ScopeDoesNotExistException\"},\
{\"shape\":\"InvalidOAuthFlowException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Creates the user pool client.</p> <p>When you create a new user pool client, token revocation is automatically activated. For more information about revoking tokens, see <a href=\\\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html\\\">RevokeToken</a>.</p>\"\
},\
\"CreateUserPoolDomain\":{\
\"name\":\"CreateUserPoolDomain\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"CreateUserPoolDomainRequest\"},\
\"output\":{\"shape\":\"CreateUserPoolDomainResponse\"},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"LimitExceededException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Creates a new domain for a user pool.</p>\"\
},\
\"DeleteGroup\":{\
\"name\":\"DeleteGroup\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"DeleteGroupRequest\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Deletes a group.</p> <p>Calling this action requires developer credentials.</p>\"\
},\
\"DeleteIdentityProvider\":{\
\"name\":\"DeleteIdentityProvider\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"DeleteIdentityProviderRequest\"},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"UnsupportedIdentityProviderException\"},\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Deletes an identity provider for a user pool.</p>\"\
},\
\"DeleteResourceServer\":{\
\"name\":\"DeleteResourceServer\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"DeleteResourceServerRequest\"},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Deletes a resource server.</p>\"\
},\
\"DeleteUser\":{\
\"name\":\"DeleteUser\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"DeleteUserRequest\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"PasswordResetRequiredException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"UserNotConfirmedException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Allows a user to delete himself or herself.</p>\",\
\"authtype\":\"none\"\
},\
\"DeleteUserAttributes\":{\
\"name\":\"DeleteUserAttributes\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"DeleteUserAttributesRequest\"},\
\"output\":{\"shape\":\"DeleteUserAttributesResponse\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"PasswordResetRequiredException\"},\
{\"shape\":\"UserNotFoundException\"},\
{\"shape\":\"UserNotConfirmedException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Deletes the attributes for a user.</p>\",\
\"authtype\":\"none\"\
},\
\"DeleteUserPool\":{\
\"name\":\"DeleteUserPool\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"DeleteUserPoolRequest\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"UserImportInProgressException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Deletes the specified Amazon Cognito user pool.</p>\"\
},\
\"DeleteUserPoolClient\":{\
\"name\":\"DeleteUserPoolClient\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"DeleteUserPoolClientRequest\"},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"TooManyRequestsException\"},\
{\"shape\":\"NotAuthorizedException\"},\
{\"shape\":\"InternalErrorException\"}\
],\
\"documentation\":\"<p>Allows the developer to delete the user pool client.</p>\"\
},\
\"DeleteUserPoolDomain\":{\
\"name\":\"DeleteUserPoolDomain\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"DeleteUserPoolDomainRequest\"},\
\"output\":{\"shape\":\"DeleteUserPoolDomainResponse\"},\
\"errors\":[\
{\"shape\":\"NotAuthorizedException\"},\