aws-sdk-cognitoidentityprovider 1.66.0 → 1.69.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -217,6 +217,7 @@ module Aws::CognitoIdentityProvider
217
217
  ExplicitAuthFlowsListType = Shapes::ListShape.new(name: 'ExplicitAuthFlowsListType')
218
218
  ExplicitAuthFlowsType = Shapes::StringShape.new(name: 'ExplicitAuthFlowsType')
219
219
  FeedbackValueType = Shapes::StringShape.new(name: 'FeedbackValueType')
220
+ ForbiddenException = Shapes::StructureShape.new(name: 'ForbiddenException')
220
221
  ForceAliasCreation = Shapes::BooleanShape.new(name: 'ForceAliasCreation')
221
222
  ForgetDeviceRequest = Shapes::StructureShape.new(name: 'ForgetDeviceRequest')
222
223
  ForgotPasswordRequest = Shapes::StructureShape.new(name: 'ForgotPasswordRequest')
@@ -928,6 +929,7 @@ module Aws::CognitoIdentityProvider
928
929
  CreateUserPoolClientRequest.add_member(:analytics_configuration, Shapes::ShapeRef.new(shape: AnalyticsConfigurationType, location_name: "AnalyticsConfiguration"))
929
930
  CreateUserPoolClientRequest.add_member(:prevent_user_existence_errors, Shapes::ShapeRef.new(shape: PreventUserExistenceErrorTypes, location_name: "PreventUserExistenceErrors"))
930
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"))
931
933
  CreateUserPoolClientRequest.struct_class = Types::CreateUserPoolClientRequest
932
934
 
933
935
  CreateUserPoolClientResponse.add_member(:user_pool_client, Shapes::ShapeRef.new(shape: UserPoolClientType, location_name: "UserPoolClient"))
@@ -1128,6 +1130,9 @@ module Aws::CognitoIdentityProvider
1128
1130
 
1129
1131
  ExplicitAuthFlowsListType.member = Shapes::ShapeRef.new(shape: ExplicitAuthFlowsType)
1130
1132
 
1133
+ ForbiddenException.add_member(:message, Shapes::ShapeRef.new(shape: MessageType, location_name: "message"))
1134
+ ForbiddenException.struct_class = Types::ForbiddenException
1135
+
1131
1136
  ForgetDeviceRequest.add_member(:access_token, Shapes::ShapeRef.new(shape: TokenModelType, location_name: "AccessToken"))
1132
1137
  ForgetDeviceRequest.add_member(:device_key, Shapes::ShapeRef.new(shape: DeviceKeyType, required: true, location_name: "DeviceKey"))
1133
1138
  ForgetDeviceRequest.struct_class = Types::ForgetDeviceRequest
@@ -1782,6 +1787,7 @@ module Aws::CognitoIdentityProvider
1782
1787
  UpdateUserPoolClientRequest.add_member(:analytics_configuration, Shapes::ShapeRef.new(shape: AnalyticsConfigurationType, location_name: "AnalyticsConfiguration"))
1783
1788
  UpdateUserPoolClientRequest.add_member(:prevent_user_existence_errors, Shapes::ShapeRef.new(shape: PreventUserExistenceErrorTypes, location_name: "PreventUserExistenceErrors"))
1784
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"))
1785
1791
  UpdateUserPoolClientRequest.struct_class = Types::UpdateUserPoolClientRequest
1786
1792
 
1787
1793
  UpdateUserPoolClientResponse.add_member(:user_pool_client, Shapes::ShapeRef.new(shape: UserPoolClientType, location_name: "UserPoolClient"))
@@ -1820,6 +1826,7 @@ module Aws::CognitoIdentityProvider
1820
1826
  UserAttributeUpdateSettingsType.add_member(:attributes_require_verification_before_update, Shapes::ShapeRef.new(shape: AttributesRequireVerificationBeforeUpdateType, location_name: "AttributesRequireVerificationBeforeUpdate"))
1821
1827
  UserAttributeUpdateSettingsType.struct_class = Types::UserAttributeUpdateSettingsType
1822
1828
 
1829
+ UserContextDataType.add_member(:ip_address, Shapes::ShapeRef.new(shape: StringType, location_name: "IpAddress"))
1823
1830
  UserContextDataType.add_member(:encoded_data, Shapes::ShapeRef.new(shape: StringType, location_name: "EncodedData"))
1824
1831
  UserContextDataType.struct_class = Types::UserContextDataType
1825
1832
 
@@ -1890,6 +1897,7 @@ module Aws::CognitoIdentityProvider
1890
1897
  UserPoolClientType.add_member(:analytics_configuration, Shapes::ShapeRef.new(shape: AnalyticsConfigurationType, location_name: "AnalyticsConfiguration"))
1891
1898
  UserPoolClientType.add_member(:prevent_user_existence_errors, Shapes::ShapeRef.new(shape: PreventUserExistenceErrorTypes, location_name: "PreventUserExistenceErrors"))
1892
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"))
1893
1901
  UserPoolClientType.struct_class = Types::UserPoolClientType
1894
1902
 
1895
1903
  UserPoolDescriptionType.add_member(:id, Shapes::ShapeRef.new(shape: UserPoolIdType, location_name: "Id"))
@@ -2473,6 +2481,7 @@ module Aws::CognitoIdentityProvider
2473
2481
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2474
2482
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
2475
2483
  o.errors << Shapes::ShapeRef.new(shape: SoftwareTokenMFANotFoundException)
2484
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
2476
2485
  end)
2477
2486
 
2478
2487
  api.add_operation(:change_password, Seahorse::Model::Operation.new.tap do |o|
@@ -2492,6 +2501,7 @@ module Aws::CognitoIdentityProvider
2492
2501
  o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
2493
2502
  o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
2494
2503
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
2504
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
2495
2505
  end)
2496
2506
 
2497
2507
  api.add_operation(:confirm_device, Seahorse::Model::Operation.new.tap do |o|
@@ -2512,6 +2522,7 @@ module Aws::CognitoIdentityProvider
2512
2522
  o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
2513
2523
  o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
2514
2524
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
2525
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
2515
2526
  end)
2516
2527
 
2517
2528
  api.add_operation(:confirm_forgot_password, Seahorse::Model::Operation.new.tap do |o|
@@ -2536,6 +2547,7 @@ module Aws::CognitoIdentityProvider
2536
2547
  o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
2537
2548
  o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
2538
2549
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
2550
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
2539
2551
  end)
2540
2552
 
2541
2553
  api.add_operation(:confirm_sign_up, Seahorse::Model::Operation.new.tap do |o|
@@ -2559,6 +2571,7 @@ module Aws::CognitoIdentityProvider
2559
2571
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
2560
2572
  o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
2561
2573
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
2574
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
2562
2575
  end)
2563
2576
 
2564
2577
  api.add_operation(:create_group, Seahorse::Model::Operation.new.tap do |o|
@@ -2721,6 +2734,7 @@ module Aws::CognitoIdentityProvider
2721
2734
  o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
2722
2735
  o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
2723
2736
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
2737
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
2724
2738
  end)
2725
2739
 
2726
2740
  api.add_operation(:delete_user_attributes, Seahorse::Model::Operation.new.tap do |o|
@@ -2738,6 +2752,7 @@ module Aws::CognitoIdentityProvider
2738
2752
  o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
2739
2753
  o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
2740
2754
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
2755
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
2741
2756
  end)
2742
2757
 
2743
2758
  api.add_operation(:delete_user_pool, Seahorse::Model::Operation.new.tap do |o|
@@ -2886,6 +2901,7 @@ module Aws::CognitoIdentityProvider
2886
2901
  o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
2887
2902
  o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
2888
2903
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
2904
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
2889
2905
  end)
2890
2906
 
2891
2907
  api.add_operation(:forgot_password, Seahorse::Model::Operation.new.tap do |o|
@@ -2909,6 +2925,7 @@ module Aws::CognitoIdentityProvider
2909
2925
  o.errors << Shapes::ShapeRef.new(shape: CodeDeliveryFailureException)
2910
2926
  o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
2911
2927
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
2928
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
2912
2929
  end)
2913
2930
 
2914
2931
  api.add_operation(:get_csv_header, Seahorse::Model::Operation.new.tap do |o|
@@ -2939,6 +2956,7 @@ module Aws::CognitoIdentityProvider
2939
2956
  o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
2940
2957
  o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
2941
2958
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
2959
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
2942
2960
  end)
2943
2961
 
2944
2962
  api.add_operation(:get_group, Seahorse::Model::Operation.new.tap do |o|
@@ -3006,6 +3024,7 @@ module Aws::CognitoIdentityProvider
3006
3024
  o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
3007
3025
  o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
3008
3026
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
3027
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
3009
3028
  end)
3010
3029
 
3011
3030
  api.add_operation(:get_user_attribute_verification_code, Seahorse::Model::Operation.new.tap do |o|
@@ -3031,6 +3050,7 @@ module Aws::CognitoIdentityProvider
3031
3050
  o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
3032
3051
  o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
3033
3052
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
3053
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
3034
3054
  end)
3035
3055
 
3036
3056
  api.add_operation(:get_user_pool_mfa_config, Seahorse::Model::Operation.new.tap do |o|
@@ -3059,6 +3079,7 @@ module Aws::CognitoIdentityProvider
3059
3079
  o.errors << Shapes::ShapeRef.new(shape: PasswordResetRequiredException)
3060
3080
  o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
3061
3081
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
3082
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
3062
3083
  end)
3063
3084
 
3064
3085
  api.add_operation(:initiate_auth, Seahorse::Model::Operation.new.tap do |o|
@@ -3082,6 +3103,7 @@ module Aws::CognitoIdentityProvider
3082
3103
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
3083
3104
  o.errors << Shapes::ShapeRef.new(shape: InvalidSmsRoleAccessPolicyException)
3084
3105
  o.errors << Shapes::ShapeRef.new(shape: InvalidSmsRoleTrustRelationshipException)
3106
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
3085
3107
  end)
3086
3108
 
3087
3109
  api.add_operation(:list_devices, Seahorse::Model::Operation.new.tap do |o|
@@ -3099,6 +3121,7 @@ module Aws::CognitoIdentityProvider
3099
3121
  o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
3100
3122
  o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
3101
3123
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
3124
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
3102
3125
  end)
3103
3126
 
3104
3127
  api.add_operation(:list_groups, Seahorse::Model::Operation.new.tap do |o|
@@ -3280,6 +3303,7 @@ module Aws::CognitoIdentityProvider
3280
3303
  o.errors << Shapes::ShapeRef.new(shape: CodeDeliveryFailureException)
3281
3304
  o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
3282
3305
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
3306
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
3283
3307
  end)
3284
3308
 
3285
3309
  api.add_operation(:respond_to_auth_challenge, Seahorse::Model::Operation.new.tap do |o|
@@ -3309,6 +3333,7 @@ module Aws::CognitoIdentityProvider
3309
3333
  o.errors << Shapes::ShapeRef.new(shape: AliasExistsException)
3310
3334
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
3311
3335
  o.errors << Shapes::ShapeRef.new(shape: SoftwareTokenMFANotFoundException)
3336
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
3312
3337
  end)
3313
3338
 
3314
3339
  api.add_operation(:revoke_token, Seahorse::Model::Operation.new.tap do |o|
@@ -3323,6 +3348,7 @@ module Aws::CognitoIdentityProvider
3323
3348
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
3324
3349
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
3325
3350
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedTokenTypeException)
3351
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
3326
3352
  end)
3327
3353
 
3328
3354
  api.add_operation(:set_risk_configuration, Seahorse::Model::Operation.new.tap do |o|
@@ -3367,6 +3393,7 @@ module Aws::CognitoIdentityProvider
3367
3393
  o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
3368
3394
  o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
3369
3395
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
3396
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
3370
3397
  end)
3371
3398
 
3372
3399
  api.add_operation(:set_user_pool_mfa_config, Seahorse::Model::Operation.new.tap do |o|
@@ -3398,6 +3425,7 @@ module Aws::CognitoIdentityProvider
3398
3425
  o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
3399
3426
  o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
3400
3427
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
3428
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
3401
3429
  end)
3402
3430
 
3403
3431
  api.add_operation(:sign_up, Seahorse::Model::Operation.new.tap do |o|
@@ -3421,6 +3449,7 @@ module Aws::CognitoIdentityProvider
3421
3449
  o.errors << Shapes::ShapeRef.new(shape: InvalidSmsRoleTrustRelationshipException)
3422
3450
  o.errors << Shapes::ShapeRef.new(shape: InvalidEmailRoleAccessPolicyException)
3423
3451
  o.errors << Shapes::ShapeRef.new(shape: CodeDeliveryFailureException)
3452
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
3424
3453
  end)
3425
3454
 
3426
3455
  api.add_operation(:start_user_import_job, Seahorse::Model::Operation.new.tap do |o|
@@ -3507,6 +3536,7 @@ module Aws::CognitoIdentityProvider
3507
3536
  o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
3508
3537
  o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
3509
3538
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
3539
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
3510
3540
  end)
3511
3541
 
3512
3542
  api.add_operation(:update_group, Seahorse::Model::Operation.new.tap do |o|
@@ -3574,6 +3604,7 @@ module Aws::CognitoIdentityProvider
3574
3604
  o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
3575
3605
  o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
3576
3606
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
3607
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
3577
3608
  end)
3578
3609
 
3579
3610
  api.add_operation(:update_user_pool, Seahorse::Model::Operation.new.tap do |o|
@@ -3643,6 +3674,7 @@ module Aws::CognitoIdentityProvider
3643
3674
  o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
3644
3675
  o.errors << Shapes::ShapeRef.new(shape: SoftwareTokenMFANotFoundException)
3645
3676
  o.errors << Shapes::ShapeRef.new(shape: CodeMismatchException)
3677
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
3646
3678
  end)
3647
3679
 
3648
3680
  api.add_operation(:verify_user_attribute, Seahorse::Model::Operation.new.tap do |o|
@@ -3664,6 +3696,7 @@ module Aws::CognitoIdentityProvider
3664
3696
  o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
3665
3697
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
3666
3698
  o.errors << Shapes::ShapeRef.new(shape: AliasExistsException)
3699
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
3667
3700
  end)
3668
3701
  end
3669
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