aws-sdk-cognitoidentityprovider 1.65.0 → 1.68.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cognitoidentityprovider/client.rb +534 -249
- data/lib/aws-sdk-cognitoidentityprovider/client_api.rb +44 -0
- data/lib/aws-sdk-cognitoidentityprovider/errors.rb +16 -0
- data/lib/aws-sdk-cognitoidentityprovider/types.rb +857 -379
- data/lib/aws-sdk-cognitoidentityprovider.rb +1 -1
- metadata +2 -2
@@ -90,6 +90,7 @@ module Aws::CognitoIdentityProvider
|
|
90
90
|
AttributeNameType = Shapes::StringShape.new(name: 'AttributeNameType')
|
91
91
|
AttributeType = Shapes::StructureShape.new(name: 'AttributeType')
|
92
92
|
AttributeValueType = Shapes::StringShape.new(name: 'AttributeValueType')
|
93
|
+
AttributesRequireVerificationBeforeUpdateType = Shapes::ListShape.new(name: 'AttributesRequireVerificationBeforeUpdateType')
|
93
94
|
AuthEventType = Shapes::StructureShape.new(name: 'AuthEventType')
|
94
95
|
AuthEventsType = Shapes::ListShape.new(name: 'AuthEventsType')
|
95
96
|
AuthFlowType = Shapes::StringShape.new(name: 'AuthFlowType')
|
@@ -216,6 +217,7 @@ module Aws::CognitoIdentityProvider
|
|
216
217
|
ExplicitAuthFlowsListType = Shapes::ListShape.new(name: 'ExplicitAuthFlowsListType')
|
217
218
|
ExplicitAuthFlowsType = Shapes::StringShape.new(name: 'ExplicitAuthFlowsType')
|
218
219
|
FeedbackValueType = Shapes::StringShape.new(name: 'FeedbackValueType')
|
220
|
+
ForbiddenException = Shapes::StructureShape.new(name: 'ForbiddenException')
|
219
221
|
ForceAliasCreation = Shapes::BooleanShape.new(name: 'ForceAliasCreation')
|
220
222
|
ForgetDeviceRequest = Shapes::StructureShape.new(name: 'ForgetDeviceRequest')
|
221
223
|
ForgotPasswordRequest = Shapes::StructureShape.new(name: 'ForgotPasswordRequest')
|
@@ -430,6 +432,7 @@ module Aws::CognitoIdentityProvider
|
|
430
432
|
UpdateUserPoolDomainResponse = Shapes::StructureShape.new(name: 'UpdateUserPoolDomainResponse')
|
431
433
|
UpdateUserPoolRequest = Shapes::StructureShape.new(name: 'UpdateUserPoolRequest')
|
432
434
|
UpdateUserPoolResponse = Shapes::StructureShape.new(name: 'UpdateUserPoolResponse')
|
435
|
+
UserAttributeUpdateSettingsType = Shapes::StructureShape.new(name: 'UserAttributeUpdateSettingsType')
|
433
436
|
UserContextDataType = Shapes::StructureShape.new(name: 'UserContextDataType')
|
434
437
|
UserFilterType = Shapes::StringShape.new(name: 'UserFilterType')
|
435
438
|
UserImportInProgressException = Shapes::StructureShape.new(name: 'UserImportInProgressException')
|
@@ -752,6 +755,8 @@ module Aws::CognitoIdentityProvider
|
|
752
755
|
AttributeType.add_member(:value, Shapes::ShapeRef.new(shape: AttributeValueType, location_name: "Value"))
|
753
756
|
AttributeType.struct_class = Types::AttributeType
|
754
757
|
|
758
|
+
AttributesRequireVerificationBeforeUpdateType.member = Shapes::ShapeRef.new(shape: VerifiedAttributeType)
|
759
|
+
|
755
760
|
AuthEventType.add_member(:event_id, Shapes::ShapeRef.new(shape: StringType, location_name: "EventId"))
|
756
761
|
AuthEventType.add_member(:event_type, Shapes::ShapeRef.new(shape: EventType, location_name: "EventType"))
|
757
762
|
AuthEventType.add_member(:creation_date, Shapes::ShapeRef.new(shape: DateType, location_name: "CreationDate"))
|
@@ -924,6 +929,7 @@ module Aws::CognitoIdentityProvider
|
|
924
929
|
CreateUserPoolClientRequest.add_member(:analytics_configuration, Shapes::ShapeRef.new(shape: AnalyticsConfigurationType, location_name: "AnalyticsConfiguration"))
|
925
930
|
CreateUserPoolClientRequest.add_member(:prevent_user_existence_errors, Shapes::ShapeRef.new(shape: PreventUserExistenceErrorTypes, location_name: "PreventUserExistenceErrors"))
|
926
931
|
CreateUserPoolClientRequest.add_member(:enable_token_revocation, Shapes::ShapeRef.new(shape: WrappedBooleanType, location_name: "EnableTokenRevocation"))
|
932
|
+
CreateUserPoolClientRequest.add_member(:enable_propagate_additional_user_context_data, Shapes::ShapeRef.new(shape: WrappedBooleanType, location_name: "EnablePropagateAdditionalUserContextData"))
|
927
933
|
CreateUserPoolClientRequest.struct_class = Types::CreateUserPoolClientRequest
|
928
934
|
|
929
935
|
CreateUserPoolClientResponse.add_member(:user_pool_client, Shapes::ShapeRef.new(shape: UserPoolClientType, location_name: "UserPoolClient"))
|
@@ -949,6 +955,7 @@ module Aws::CognitoIdentityProvider
|
|
949
955
|
CreateUserPoolRequest.add_member(:verification_message_template, Shapes::ShapeRef.new(shape: VerificationMessageTemplateType, location_name: "VerificationMessageTemplate"))
|
950
956
|
CreateUserPoolRequest.add_member(:sms_authentication_message, Shapes::ShapeRef.new(shape: SmsVerificationMessageType, location_name: "SmsAuthenticationMessage"))
|
951
957
|
CreateUserPoolRequest.add_member(:mfa_configuration, Shapes::ShapeRef.new(shape: UserPoolMfaType, location_name: "MfaConfiguration"))
|
958
|
+
CreateUserPoolRequest.add_member(:user_attribute_update_settings, Shapes::ShapeRef.new(shape: UserAttributeUpdateSettingsType, location_name: "UserAttributeUpdateSettings"))
|
952
959
|
CreateUserPoolRequest.add_member(:device_configuration, Shapes::ShapeRef.new(shape: DeviceConfigurationType, location_name: "DeviceConfiguration"))
|
953
960
|
CreateUserPoolRequest.add_member(:email_configuration, Shapes::ShapeRef.new(shape: EmailConfigurationType, location_name: "EmailConfiguration"))
|
954
961
|
CreateUserPoolRequest.add_member(:sms_configuration, Shapes::ShapeRef.new(shape: SmsConfigurationType, location_name: "SmsConfiguration"))
|
@@ -1123,6 +1130,9 @@ module Aws::CognitoIdentityProvider
|
|
1123
1130
|
|
1124
1131
|
ExplicitAuthFlowsListType.member = Shapes::ShapeRef.new(shape: ExplicitAuthFlowsType)
|
1125
1132
|
|
1133
|
+
ForbiddenException.add_member(:message, Shapes::ShapeRef.new(shape: MessageType, location_name: "message"))
|
1134
|
+
ForbiddenException.struct_class = Types::ForbiddenException
|
1135
|
+
|
1126
1136
|
ForgetDeviceRequest.add_member(:access_token, Shapes::ShapeRef.new(shape: TokenModelType, location_name: "AccessToken"))
|
1127
1137
|
ForgetDeviceRequest.add_member(:device_key, Shapes::ShapeRef.new(shape: DeviceKeyType, required: true, location_name: "DeviceKey"))
|
1128
1138
|
ForgetDeviceRequest.struct_class = Types::ForgetDeviceRequest
|
@@ -1777,6 +1787,7 @@ module Aws::CognitoIdentityProvider
|
|
1777
1787
|
UpdateUserPoolClientRequest.add_member(:analytics_configuration, Shapes::ShapeRef.new(shape: AnalyticsConfigurationType, location_name: "AnalyticsConfiguration"))
|
1778
1788
|
UpdateUserPoolClientRequest.add_member(:prevent_user_existence_errors, Shapes::ShapeRef.new(shape: PreventUserExistenceErrorTypes, location_name: "PreventUserExistenceErrors"))
|
1779
1789
|
UpdateUserPoolClientRequest.add_member(:enable_token_revocation, Shapes::ShapeRef.new(shape: WrappedBooleanType, location_name: "EnableTokenRevocation"))
|
1790
|
+
UpdateUserPoolClientRequest.add_member(:enable_propagate_additional_user_context_data, Shapes::ShapeRef.new(shape: WrappedBooleanType, location_name: "EnablePropagateAdditionalUserContextData"))
|
1780
1791
|
UpdateUserPoolClientRequest.struct_class = Types::UpdateUserPoolClientRequest
|
1781
1792
|
|
1782
1793
|
UpdateUserPoolClientResponse.add_member(:user_pool_client, Shapes::ShapeRef.new(shape: UserPoolClientType, location_name: "UserPoolClient"))
|
@@ -1799,6 +1810,7 @@ module Aws::CognitoIdentityProvider
|
|
1799
1810
|
UpdateUserPoolRequest.add_member(:email_verification_subject, Shapes::ShapeRef.new(shape: EmailVerificationSubjectType, location_name: "EmailVerificationSubject"))
|
1800
1811
|
UpdateUserPoolRequest.add_member(:verification_message_template, Shapes::ShapeRef.new(shape: VerificationMessageTemplateType, location_name: "VerificationMessageTemplate"))
|
1801
1812
|
UpdateUserPoolRequest.add_member(:sms_authentication_message, Shapes::ShapeRef.new(shape: SmsVerificationMessageType, location_name: "SmsAuthenticationMessage"))
|
1813
|
+
UpdateUserPoolRequest.add_member(:user_attribute_update_settings, Shapes::ShapeRef.new(shape: UserAttributeUpdateSettingsType, location_name: "UserAttributeUpdateSettings"))
|
1802
1814
|
UpdateUserPoolRequest.add_member(:mfa_configuration, Shapes::ShapeRef.new(shape: UserPoolMfaType, location_name: "MfaConfiguration"))
|
1803
1815
|
UpdateUserPoolRequest.add_member(:device_configuration, Shapes::ShapeRef.new(shape: DeviceConfigurationType, location_name: "DeviceConfiguration"))
|
1804
1816
|
UpdateUserPoolRequest.add_member(:email_configuration, Shapes::ShapeRef.new(shape: EmailConfigurationType, location_name: "EmailConfiguration"))
|
@@ -1811,6 +1823,10 @@ module Aws::CognitoIdentityProvider
|
|
1811
1823
|
|
1812
1824
|
UpdateUserPoolResponse.struct_class = Types::UpdateUserPoolResponse
|
1813
1825
|
|
1826
|
+
UserAttributeUpdateSettingsType.add_member(:attributes_require_verification_before_update, Shapes::ShapeRef.new(shape: AttributesRequireVerificationBeforeUpdateType, location_name: "AttributesRequireVerificationBeforeUpdate"))
|
1827
|
+
UserAttributeUpdateSettingsType.struct_class = Types::UserAttributeUpdateSettingsType
|
1828
|
+
|
1829
|
+
UserContextDataType.add_member(:ip_address, Shapes::ShapeRef.new(shape: StringType, location_name: "IpAddress"))
|
1814
1830
|
UserContextDataType.add_member(:encoded_data, Shapes::ShapeRef.new(shape: StringType, location_name: "EncodedData"))
|
1815
1831
|
UserContextDataType.struct_class = Types::UserContextDataType
|
1816
1832
|
|
@@ -1881,6 +1897,7 @@ module Aws::CognitoIdentityProvider
|
|
1881
1897
|
UserPoolClientType.add_member(:analytics_configuration, Shapes::ShapeRef.new(shape: AnalyticsConfigurationType, location_name: "AnalyticsConfiguration"))
|
1882
1898
|
UserPoolClientType.add_member(:prevent_user_existence_errors, Shapes::ShapeRef.new(shape: PreventUserExistenceErrorTypes, location_name: "PreventUserExistenceErrors"))
|
1883
1899
|
UserPoolClientType.add_member(:enable_token_revocation, Shapes::ShapeRef.new(shape: WrappedBooleanType, location_name: "EnableTokenRevocation"))
|
1900
|
+
UserPoolClientType.add_member(:enable_propagate_additional_user_context_data, Shapes::ShapeRef.new(shape: WrappedBooleanType, location_name: "EnablePropagateAdditionalUserContextData"))
|
1884
1901
|
UserPoolClientType.struct_class = Types::UserPoolClientType
|
1885
1902
|
|
1886
1903
|
UserPoolDescriptionType.add_member(:id, Shapes::ShapeRef.new(shape: UserPoolIdType, location_name: "Id"))
|
@@ -1920,6 +1937,7 @@ module Aws::CognitoIdentityProvider
|
|
1920
1937
|
UserPoolType.add_member(:email_verification_subject, Shapes::ShapeRef.new(shape: EmailVerificationSubjectType, location_name: "EmailVerificationSubject"))
|
1921
1938
|
UserPoolType.add_member(:verification_message_template, Shapes::ShapeRef.new(shape: VerificationMessageTemplateType, location_name: "VerificationMessageTemplate"))
|
1922
1939
|
UserPoolType.add_member(:sms_authentication_message, Shapes::ShapeRef.new(shape: SmsVerificationMessageType, location_name: "SmsAuthenticationMessage"))
|
1940
|
+
UserPoolType.add_member(:user_attribute_update_settings, Shapes::ShapeRef.new(shape: UserAttributeUpdateSettingsType, location_name: "UserAttributeUpdateSettings"))
|
1923
1941
|
UserPoolType.add_member(:mfa_configuration, Shapes::ShapeRef.new(shape: UserPoolMfaType, location_name: "MfaConfiguration"))
|
1924
1942
|
UserPoolType.add_member(:device_configuration, Shapes::ShapeRef.new(shape: DeviceConfigurationType, location_name: "DeviceConfiguration"))
|
1925
1943
|
UserPoolType.add_member(:estimated_number_of_users, Shapes::ShapeRef.new(shape: IntegerType, location_name: "EstimatedNumberOfUsers"))
|
@@ -2463,6 +2481,7 @@ module Aws::CognitoIdentityProvider
|
|
2463
2481
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
2464
2482
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
2465
2483
|
o.errors << Shapes::ShapeRef.new(shape: SoftwareTokenMFANotFoundException)
|
2484
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
2466
2485
|
end)
|
2467
2486
|
|
2468
2487
|
api.add_operation(:change_password, Seahorse::Model::Operation.new.tap do |o|
|
@@ -2482,6 +2501,7 @@ module Aws::CognitoIdentityProvider
|
|
2482
2501
|
o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
|
2483
2502
|
o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
|
2484
2503
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
2504
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
2485
2505
|
end)
|
2486
2506
|
|
2487
2507
|
api.add_operation(:confirm_device, Seahorse::Model::Operation.new.tap do |o|
|
@@ -2502,6 +2522,7 @@ module Aws::CognitoIdentityProvider
|
|
2502
2522
|
o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
|
2503
2523
|
o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
|
2504
2524
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
2525
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
2505
2526
|
end)
|
2506
2527
|
|
2507
2528
|
api.add_operation(:confirm_forgot_password, Seahorse::Model::Operation.new.tap do |o|
|
@@ -2526,6 +2547,7 @@ module Aws::CognitoIdentityProvider
|
|
2526
2547
|
o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
|
2527
2548
|
o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
|
2528
2549
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
2550
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
2529
2551
|
end)
|
2530
2552
|
|
2531
2553
|
api.add_operation(:confirm_sign_up, Seahorse::Model::Operation.new.tap do |o|
|
@@ -2549,6 +2571,7 @@ module Aws::CognitoIdentityProvider
|
|
2549
2571
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
2550
2572
|
o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
|
2551
2573
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
2574
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
2552
2575
|
end)
|
2553
2576
|
|
2554
2577
|
api.add_operation(:create_group, Seahorse::Model::Operation.new.tap do |o|
|
@@ -2711,6 +2734,7 @@ module Aws::CognitoIdentityProvider
|
|
2711
2734
|
o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
|
2712
2735
|
o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
|
2713
2736
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
2737
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
2714
2738
|
end)
|
2715
2739
|
|
2716
2740
|
api.add_operation(:delete_user_attributes, Seahorse::Model::Operation.new.tap do |o|
|
@@ -2728,6 +2752,7 @@ module Aws::CognitoIdentityProvider
|
|
2728
2752
|
o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
|
2729
2753
|
o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
|
2730
2754
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
2755
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
2731
2756
|
end)
|
2732
2757
|
|
2733
2758
|
api.add_operation(:delete_user_pool, Seahorse::Model::Operation.new.tap do |o|
|
@@ -2876,6 +2901,7 @@ module Aws::CognitoIdentityProvider
|
|
2876
2901
|
o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
|
2877
2902
|
o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
|
2878
2903
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
2904
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
2879
2905
|
end)
|
2880
2906
|
|
2881
2907
|
api.add_operation(:forgot_password, Seahorse::Model::Operation.new.tap do |o|
|
@@ -2899,6 +2925,7 @@ module Aws::CognitoIdentityProvider
|
|
2899
2925
|
o.errors << Shapes::ShapeRef.new(shape: CodeDeliveryFailureException)
|
2900
2926
|
o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
|
2901
2927
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
2928
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
2902
2929
|
end)
|
2903
2930
|
|
2904
2931
|
api.add_operation(:get_csv_header, Seahorse::Model::Operation.new.tap do |o|
|
@@ -2929,6 +2956,7 @@ module Aws::CognitoIdentityProvider
|
|
2929
2956
|
o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
|
2930
2957
|
o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
|
2931
2958
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
2959
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
2932
2960
|
end)
|
2933
2961
|
|
2934
2962
|
api.add_operation(:get_group, Seahorse::Model::Operation.new.tap do |o|
|
@@ -2996,6 +3024,7 @@ module Aws::CognitoIdentityProvider
|
|
2996
3024
|
o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
|
2997
3025
|
o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
|
2998
3026
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
3027
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
2999
3028
|
end)
|
3000
3029
|
|
3001
3030
|
api.add_operation(:get_user_attribute_verification_code, Seahorse::Model::Operation.new.tap do |o|
|
@@ -3021,6 +3050,7 @@ module Aws::CognitoIdentityProvider
|
|
3021
3050
|
o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
|
3022
3051
|
o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
|
3023
3052
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
3053
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
3024
3054
|
end)
|
3025
3055
|
|
3026
3056
|
api.add_operation(:get_user_pool_mfa_config, Seahorse::Model::Operation.new.tap do |o|
|
@@ -3049,6 +3079,7 @@ module Aws::CognitoIdentityProvider
|
|
3049
3079
|
o.errors << Shapes::ShapeRef.new(shape: PasswordResetRequiredException)
|
3050
3080
|
o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
|
3051
3081
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
3082
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
3052
3083
|
end)
|
3053
3084
|
|
3054
3085
|
api.add_operation(:initiate_auth, Seahorse::Model::Operation.new.tap do |o|
|
@@ -3072,6 +3103,7 @@ module Aws::CognitoIdentityProvider
|
|
3072
3103
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
3073
3104
|
o.errors << Shapes::ShapeRef.new(shape: InvalidSmsRoleAccessPolicyException)
|
3074
3105
|
o.errors << Shapes::ShapeRef.new(shape: InvalidSmsRoleTrustRelationshipException)
|
3106
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
3075
3107
|
end)
|
3076
3108
|
|
3077
3109
|
api.add_operation(:list_devices, Seahorse::Model::Operation.new.tap do |o|
|
@@ -3089,6 +3121,7 @@ module Aws::CognitoIdentityProvider
|
|
3089
3121
|
o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
|
3090
3122
|
o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
|
3091
3123
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
3124
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
3092
3125
|
end)
|
3093
3126
|
|
3094
3127
|
api.add_operation(:list_groups, Seahorse::Model::Operation.new.tap do |o|
|
@@ -3270,6 +3303,7 @@ module Aws::CognitoIdentityProvider
|
|
3270
3303
|
o.errors << Shapes::ShapeRef.new(shape: CodeDeliveryFailureException)
|
3271
3304
|
o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
|
3272
3305
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
3306
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
3273
3307
|
end)
|
3274
3308
|
|
3275
3309
|
api.add_operation(:respond_to_auth_challenge, Seahorse::Model::Operation.new.tap do |o|
|
@@ -3299,6 +3333,7 @@ module Aws::CognitoIdentityProvider
|
|
3299
3333
|
o.errors << Shapes::ShapeRef.new(shape: AliasExistsException)
|
3300
3334
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
3301
3335
|
o.errors << Shapes::ShapeRef.new(shape: SoftwareTokenMFANotFoundException)
|
3336
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
3302
3337
|
end)
|
3303
3338
|
|
3304
3339
|
api.add_operation(:revoke_token, Seahorse::Model::Operation.new.tap do |o|
|
@@ -3313,6 +3348,7 @@ module Aws::CognitoIdentityProvider
|
|
3313
3348
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
3314
3349
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
3315
3350
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedTokenTypeException)
|
3351
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
3316
3352
|
end)
|
3317
3353
|
|
3318
3354
|
api.add_operation(:set_risk_configuration, Seahorse::Model::Operation.new.tap do |o|
|
@@ -3357,6 +3393,7 @@ module Aws::CognitoIdentityProvider
|
|
3357
3393
|
o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
|
3358
3394
|
o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
|
3359
3395
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
3396
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
3360
3397
|
end)
|
3361
3398
|
|
3362
3399
|
api.add_operation(:set_user_pool_mfa_config, Seahorse::Model::Operation.new.tap do |o|
|
@@ -3388,6 +3425,7 @@ module Aws::CognitoIdentityProvider
|
|
3388
3425
|
o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
|
3389
3426
|
o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
|
3390
3427
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
3428
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
3391
3429
|
end)
|
3392
3430
|
|
3393
3431
|
api.add_operation(:sign_up, Seahorse::Model::Operation.new.tap do |o|
|
@@ -3411,6 +3449,7 @@ module Aws::CognitoIdentityProvider
|
|
3411
3449
|
o.errors << Shapes::ShapeRef.new(shape: InvalidSmsRoleTrustRelationshipException)
|
3412
3450
|
o.errors << Shapes::ShapeRef.new(shape: InvalidEmailRoleAccessPolicyException)
|
3413
3451
|
o.errors << Shapes::ShapeRef.new(shape: CodeDeliveryFailureException)
|
3452
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
3414
3453
|
end)
|
3415
3454
|
|
3416
3455
|
api.add_operation(:start_user_import_job, Seahorse::Model::Operation.new.tap do |o|
|
@@ -3497,6 +3536,7 @@ module Aws::CognitoIdentityProvider
|
|
3497
3536
|
o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
|
3498
3537
|
o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
|
3499
3538
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
3539
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
3500
3540
|
end)
|
3501
3541
|
|
3502
3542
|
api.add_operation(:update_group, Seahorse::Model::Operation.new.tap do |o|
|
@@ -3564,6 +3604,7 @@ module Aws::CognitoIdentityProvider
|
|
3564
3604
|
o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
|
3565
3605
|
o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
|
3566
3606
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
3607
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
3567
3608
|
end)
|
3568
3609
|
|
3569
3610
|
api.add_operation(:update_user_pool, Seahorse::Model::Operation.new.tap do |o|
|
@@ -3633,6 +3674,7 @@ module Aws::CognitoIdentityProvider
|
|
3633
3674
|
o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
|
3634
3675
|
o.errors << Shapes::ShapeRef.new(shape: SoftwareTokenMFANotFoundException)
|
3635
3676
|
o.errors << Shapes::ShapeRef.new(shape: CodeMismatchException)
|
3677
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
3636
3678
|
end)
|
3637
3679
|
|
3638
3680
|
api.add_operation(:verify_user_attribute, Seahorse::Model::Operation.new.tap do |o|
|
@@ -3653,6 +3695,8 @@ module Aws::CognitoIdentityProvider
|
|
3653
3695
|
o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
|
3654
3696
|
o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
|
3655
3697
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
3698
|
+
o.errors << Shapes::ShapeRef.new(shape: AliasExistsException)
|
3699
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
3656
3700
|
end)
|
3657
3701
|
end
|
3658
3702
|
|
@@ -34,6 +34,7 @@ module Aws::CognitoIdentityProvider
|
|
34
34
|
# * {DuplicateProviderException}
|
35
35
|
# * {EnableSoftwareTokenMFAException}
|
36
36
|
# * {ExpiredCodeException}
|
37
|
+
# * {ForbiddenException}
|
37
38
|
# * {GroupExistsException}
|
38
39
|
# * {InternalErrorException}
|
39
40
|
# * {InvalidEmailRoleAccessPolicyException}
|
@@ -179,6 +180,21 @@ module Aws::CognitoIdentityProvider
|
|
179
180
|
end
|
180
181
|
end
|
181
182
|
|
183
|
+
class ForbiddenException < ServiceError
|
184
|
+
|
185
|
+
# @param [Seahorse::Client::RequestContext] context
|
186
|
+
# @param [String] message
|
187
|
+
# @param [Aws::CognitoIdentityProvider::Types::ForbiddenException] data
|
188
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
189
|
+
super(context, message, data)
|
190
|
+
end
|
191
|
+
|
192
|
+
# @return [String]
|
193
|
+
def message
|
194
|
+
@message || @data[:message]
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
182
198
|
class GroupExistsException < ServiceError
|
183
199
|
|
184
200
|
# @param [Seahorse::Client::RequestContext] context
|