aws-sdk-cognitoidentityprovider 1.52.0 → 1.53.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cognitoidentityprovider.rb +1 -1
- data/lib/aws-sdk-cognitoidentityprovider/client.rb +71 -1
- data/lib/aws-sdk-cognitoidentityprovider/client_api.rb +38 -0
- data/lib/aws-sdk-cognitoidentityprovider/errors.rb +48 -0
- data/lib/aws-sdk-cognitoidentityprovider/types.rb +118 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1af9b5f06b1963253ed3dd35948da0475bd3a872631843a3b90e605adee8e33c
|
4
|
+
data.tar.gz: ce8310c2ec0576f3f2971b0493695b98c64f5e7bde6f1bcd2255a23158dcf60d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 256b1a7a95d7e25aa4939d3f1534d9a641c715f3072deecc1e678ebf757855477da62e4611a9b3299352f2ad45d22fc7f805b078c97b2eddfa7d23f19b6ade45
|
7
|
+
data.tar.gz: 26efbb5741917d179acaf1354f04b4cc21daf736fe06901f1eda615802285b91a3eefbd1e59461585d7cc12cb34cc1491efc69a8993ffa46a9d803f6daaab6a6
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.53.0
|
@@ -3195,6 +3195,14 @@ module Aws::CognitoIdentityProvider
|
|
3195
3195
|
|
3196
3196
|
# Creates the user pool client.
|
3197
3197
|
#
|
3198
|
+
# When you create a new user pool client, token revocation is
|
3199
|
+
# automatically enabled. For more information about revoking tokens, see
|
3200
|
+
# [RevokeToken][1].
|
3201
|
+
#
|
3202
|
+
#
|
3203
|
+
#
|
3204
|
+
# [1]: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html
|
3205
|
+
#
|
3198
3206
|
# @option params [required, String] :user_pool_id
|
3199
3207
|
# The user pool ID for the user pool where you want to create a user
|
3200
3208
|
# pool client.
|
@@ -3379,6 +3387,17 @@ module Aws::CognitoIdentityProvider
|
|
3379
3387
|
#
|
3380
3388
|
# </note>
|
3381
3389
|
#
|
3390
|
+
# @option params [Boolean] :enable_token_revocation
|
3391
|
+
# Enables or disables token revocation. For more information about
|
3392
|
+
# revoking tokens, see [RevokeToken][1].
|
3393
|
+
#
|
3394
|
+
# If you don't include this parameter, token revocation is
|
3395
|
+
# automatically enabled for the new user pool client.
|
3396
|
+
#
|
3397
|
+
#
|
3398
|
+
#
|
3399
|
+
# [1]: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html
|
3400
|
+
#
|
3382
3401
|
# @return [Types::CreateUserPoolClientResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3383
3402
|
#
|
3384
3403
|
# * {Types::CreateUserPoolClientResponse#user_pool_client #user_pool_client} => Types::UserPoolClientType
|
@@ -3415,6 +3434,7 @@ module Aws::CognitoIdentityProvider
|
|
3415
3434
|
# user_data_shared: false,
|
3416
3435
|
# },
|
3417
3436
|
# prevent_user_existence_errors: "LEGACY", # accepts LEGACY, ENABLED
|
3437
|
+
# enable_token_revocation: false,
|
3418
3438
|
# })
|
3419
3439
|
#
|
3420
3440
|
# @example Response structure
|
@@ -3455,6 +3475,7 @@ module Aws::CognitoIdentityProvider
|
|
3455
3475
|
# resp.user_pool_client.analytics_configuration.external_id #=> String
|
3456
3476
|
# resp.user_pool_client.analytics_configuration.user_data_shared #=> Boolean
|
3457
3477
|
# resp.user_pool_client.prevent_user_existence_errors #=> String, one of "LEGACY", "ENABLED"
|
3478
|
+
# resp.user_pool_client.enable_token_revocation #=> Boolean
|
3458
3479
|
#
|
3459
3480
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPoolClient AWS API Documentation
|
3460
3481
|
#
|
@@ -4071,6 +4092,7 @@ module Aws::CognitoIdentityProvider
|
|
4071
4092
|
# resp.user_pool_client.analytics_configuration.external_id #=> String
|
4072
4093
|
# resp.user_pool_client.analytics_configuration.user_data_shared #=> Boolean
|
4073
4094
|
# resp.user_pool_client.prevent_user_existence_errors #=> String, one of "LEGACY", "ENABLED"
|
4095
|
+
# resp.user_pool_client.enable_token_revocation #=> Boolean
|
4074
4096
|
#
|
4075
4097
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserPoolClient AWS API Documentation
|
4076
4098
|
#
|
@@ -5764,6 +5786,39 @@ module Aws::CognitoIdentityProvider
|
|
5764
5786
|
req.send_request(options)
|
5765
5787
|
end
|
5766
5788
|
|
5789
|
+
# Revokes all of the access tokens generated by the specified refresh
|
5790
|
+
# token. After the token is revoked, you can not use the revoked token
|
5791
|
+
# to access Cognito authenticated APIs.
|
5792
|
+
#
|
5793
|
+
# @option params [required, String] :token
|
5794
|
+
# The token that you want to revoke.
|
5795
|
+
#
|
5796
|
+
# @option params [required, String] :client_id
|
5797
|
+
# The client ID for the token that you want to revoke.
|
5798
|
+
#
|
5799
|
+
# @option params [String] :client_secret
|
5800
|
+
# The secret for the client ID. This is required only if the client ID
|
5801
|
+
# has a secret.
|
5802
|
+
#
|
5803
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
5804
|
+
#
|
5805
|
+
# @example Request syntax with placeholder values
|
5806
|
+
#
|
5807
|
+
# resp = client.revoke_token({
|
5808
|
+
# token: "TokenModelType", # required
|
5809
|
+
# client_id: "ClientIdType", # required
|
5810
|
+
# client_secret: "ClientSecretType",
|
5811
|
+
# })
|
5812
|
+
#
|
5813
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/RevokeToken AWS API Documentation
|
5814
|
+
#
|
5815
|
+
# @overload revoke_token(params = {})
|
5816
|
+
# @param [Hash] params ({})
|
5817
|
+
def revoke_token(params = {}, options = {})
|
5818
|
+
req = build_request(:revoke_token, params)
|
5819
|
+
req.send_request(options)
|
5820
|
+
end
|
5821
|
+
|
5767
5822
|
# Configures actions on detected risks. To delete the risk configuration
|
5768
5823
|
# for `UserPoolId` or `ClientId`, pass null values for all four
|
5769
5824
|
# configuration types.
|
@@ -7011,9 +7066,14 @@ module Aws::CognitoIdentityProvider
|
|
7011
7066
|
# If you don't provide a value for an attribute, it will be set to the
|
7012
7067
|
# default value.
|
7013
7068
|
#
|
7069
|
+
# You can also use this operation to enable token revocation for user
|
7070
|
+
# pool clients. For more information about revoking tokens, see
|
7071
|
+
# [RevokeToken][2].
|
7072
|
+
#
|
7014
7073
|
#
|
7015
7074
|
#
|
7016
7075
|
# [1]: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPoolClient.html
|
7076
|
+
# [2]: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html
|
7017
7077
|
#
|
7018
7078
|
# @option params [required, String] :user_pool_id
|
7019
7079
|
# The user pool ID for the user pool where you want to update the user
|
@@ -7182,6 +7242,14 @@ module Aws::CognitoIdentityProvider
|
|
7182
7242
|
#
|
7183
7243
|
# </note>
|
7184
7244
|
#
|
7245
|
+
# @option params [Boolean] :enable_token_revocation
|
7246
|
+
# Enables or disables token revocation. For more information about
|
7247
|
+
# revoking tokens, see [RevokeToken][1].
|
7248
|
+
#
|
7249
|
+
#
|
7250
|
+
#
|
7251
|
+
# [1]: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html
|
7252
|
+
#
|
7185
7253
|
# @return [Types::UpdateUserPoolClientResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
7186
7254
|
#
|
7187
7255
|
# * {Types::UpdateUserPoolClientResponse#user_pool_client #user_pool_client} => Types::UserPoolClientType
|
@@ -7218,6 +7286,7 @@ module Aws::CognitoIdentityProvider
|
|
7218
7286
|
# user_data_shared: false,
|
7219
7287
|
# },
|
7220
7288
|
# prevent_user_existence_errors: "LEGACY", # accepts LEGACY, ENABLED
|
7289
|
+
# enable_token_revocation: false,
|
7221
7290
|
# })
|
7222
7291
|
#
|
7223
7292
|
# @example Response structure
|
@@ -7258,6 +7327,7 @@ module Aws::CognitoIdentityProvider
|
|
7258
7327
|
# resp.user_pool_client.analytics_configuration.external_id #=> String
|
7259
7328
|
# resp.user_pool_client.analytics_configuration.user_data_shared #=> Boolean
|
7260
7329
|
# resp.user_pool_client.prevent_user_existence_errors #=> String, one of "LEGACY", "ENABLED"
|
7330
|
+
# resp.user_pool_client.enable_token_revocation #=> Boolean
|
7261
7331
|
#
|
7262
7332
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserPoolClient AWS API Documentation
|
7263
7333
|
#
|
@@ -7440,7 +7510,7 @@ module Aws::CognitoIdentityProvider
|
|
7440
7510
|
params: params,
|
7441
7511
|
config: config)
|
7442
7512
|
context[:gem_name] = 'aws-sdk-cognitoidentityprovider'
|
7443
|
-
context[:gem_version] = '1.
|
7513
|
+
context[:gem_version] = '1.53.0'
|
7444
7514
|
Seahorse::Client::Request.new(handlers, context)
|
7445
7515
|
end
|
7446
7516
|
|
@@ -345,6 +345,8 @@ module Aws::CognitoIdentityProvider
|
|
345
345
|
ResourceServersListType = Shapes::ListShape.new(name: 'ResourceServersListType')
|
346
346
|
RespondToAuthChallengeRequest = Shapes::StructureShape.new(name: 'RespondToAuthChallengeRequest')
|
347
347
|
RespondToAuthChallengeResponse = Shapes::StructureShape.new(name: 'RespondToAuthChallengeResponse')
|
348
|
+
RevokeTokenRequest = Shapes::StructureShape.new(name: 'RevokeTokenRequest')
|
349
|
+
RevokeTokenResponse = Shapes::StructureShape.new(name: 'RevokeTokenResponse')
|
348
350
|
RiskConfigurationType = Shapes::StructureShape.new(name: 'RiskConfigurationType')
|
349
351
|
RiskDecisionType = Shapes::StringShape.new(name: 'RiskDecisionType')
|
350
352
|
RiskExceptionConfigurationType = Shapes::StructureShape.new(name: 'RiskExceptionConfigurationType')
|
@@ -401,8 +403,11 @@ module Aws::CognitoIdentityProvider
|
|
401
403
|
TooManyFailedAttemptsException = Shapes::StructureShape.new(name: 'TooManyFailedAttemptsException')
|
402
404
|
TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
|
403
405
|
UICustomizationType = Shapes::StructureShape.new(name: 'UICustomizationType')
|
406
|
+
UnauthorizedException = Shapes::StructureShape.new(name: 'UnauthorizedException')
|
404
407
|
UnexpectedLambdaException = Shapes::StructureShape.new(name: 'UnexpectedLambdaException')
|
405
408
|
UnsupportedIdentityProviderException = Shapes::StructureShape.new(name: 'UnsupportedIdentityProviderException')
|
409
|
+
UnsupportedOperationException = Shapes::StructureShape.new(name: 'UnsupportedOperationException')
|
410
|
+
UnsupportedTokenTypeException = Shapes::StructureShape.new(name: 'UnsupportedTokenTypeException')
|
406
411
|
UnsupportedUserStateException = Shapes::StructureShape.new(name: 'UnsupportedUserStateException')
|
407
412
|
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
408
413
|
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
@@ -917,6 +922,7 @@ module Aws::CognitoIdentityProvider
|
|
917
922
|
CreateUserPoolClientRequest.add_member(:allowed_o_auth_flows_user_pool_client, Shapes::ShapeRef.new(shape: BooleanType, location_name: "AllowedOAuthFlowsUserPoolClient"))
|
918
923
|
CreateUserPoolClientRequest.add_member(:analytics_configuration, Shapes::ShapeRef.new(shape: AnalyticsConfigurationType, location_name: "AnalyticsConfiguration"))
|
919
924
|
CreateUserPoolClientRequest.add_member(:prevent_user_existence_errors, Shapes::ShapeRef.new(shape: PreventUserExistenceErrorTypes, location_name: "PreventUserExistenceErrors"))
|
925
|
+
CreateUserPoolClientRequest.add_member(:enable_token_revocation, Shapes::ShapeRef.new(shape: WrappedBooleanType, location_name: "EnableTokenRevocation"))
|
920
926
|
CreateUserPoolClientRequest.struct_class = Types::CreateUserPoolClientRequest
|
921
927
|
|
922
928
|
CreateUserPoolClientResponse.add_member(:user_pool_client, Shapes::ShapeRef.new(shape: UserPoolClientType, location_name: "UserPoolClient"))
|
@@ -1506,6 +1512,13 @@ module Aws::CognitoIdentityProvider
|
|
1506
1512
|
RespondToAuthChallengeResponse.add_member(:authentication_result, Shapes::ShapeRef.new(shape: AuthenticationResultType, location_name: "AuthenticationResult"))
|
1507
1513
|
RespondToAuthChallengeResponse.struct_class = Types::RespondToAuthChallengeResponse
|
1508
1514
|
|
1515
|
+
RevokeTokenRequest.add_member(:token, Shapes::ShapeRef.new(shape: TokenModelType, required: true, location_name: "Token"))
|
1516
|
+
RevokeTokenRequest.add_member(:client_id, Shapes::ShapeRef.new(shape: ClientIdType, required: true, location_name: "ClientId"))
|
1517
|
+
RevokeTokenRequest.add_member(:client_secret, Shapes::ShapeRef.new(shape: ClientSecretType, location_name: "ClientSecret"))
|
1518
|
+
RevokeTokenRequest.struct_class = Types::RevokeTokenRequest
|
1519
|
+
|
1520
|
+
RevokeTokenResponse.struct_class = Types::RevokeTokenResponse
|
1521
|
+
|
1509
1522
|
RiskConfigurationType.add_member(:user_pool_id, Shapes::ShapeRef.new(shape: UserPoolIdType, location_name: "UserPoolId"))
|
1510
1523
|
RiskConfigurationType.add_member(:client_id, Shapes::ShapeRef.new(shape: ClientIdType, location_name: "ClientId"))
|
1511
1524
|
RiskConfigurationType.add_member(:compromised_credentials_risk_configuration, Shapes::ShapeRef.new(shape: CompromisedCredentialsRiskConfigurationType, location_name: "CompromisedCredentialsRiskConfiguration"))
|
@@ -1665,12 +1678,21 @@ module Aws::CognitoIdentityProvider
|
|
1665
1678
|
UICustomizationType.add_member(:creation_date, Shapes::ShapeRef.new(shape: DateType, location_name: "CreationDate"))
|
1666
1679
|
UICustomizationType.struct_class = Types::UICustomizationType
|
1667
1680
|
|
1681
|
+
UnauthorizedException.add_member(:message, Shapes::ShapeRef.new(shape: MessageType, location_name: "message"))
|
1682
|
+
UnauthorizedException.struct_class = Types::UnauthorizedException
|
1683
|
+
|
1668
1684
|
UnexpectedLambdaException.add_member(:message, Shapes::ShapeRef.new(shape: MessageType, location_name: "message"))
|
1669
1685
|
UnexpectedLambdaException.struct_class = Types::UnexpectedLambdaException
|
1670
1686
|
|
1671
1687
|
UnsupportedIdentityProviderException.add_member(:message, Shapes::ShapeRef.new(shape: MessageType, location_name: "message"))
|
1672
1688
|
UnsupportedIdentityProviderException.struct_class = Types::UnsupportedIdentityProviderException
|
1673
1689
|
|
1690
|
+
UnsupportedOperationException.add_member(:message, Shapes::ShapeRef.new(shape: MessageType, location_name: "message"))
|
1691
|
+
UnsupportedOperationException.struct_class = Types::UnsupportedOperationException
|
1692
|
+
|
1693
|
+
UnsupportedTokenTypeException.add_member(:message, Shapes::ShapeRef.new(shape: MessageType, location_name: "message"))
|
1694
|
+
UnsupportedTokenTypeException.struct_class = Types::UnsupportedTokenTypeException
|
1695
|
+
|
1674
1696
|
UnsupportedUserStateException.add_member(:message, Shapes::ShapeRef.new(shape: MessageType, location_name: "message"))
|
1675
1697
|
UnsupportedUserStateException.struct_class = Types::UnsupportedUserStateException
|
1676
1698
|
|
@@ -1752,6 +1774,7 @@ module Aws::CognitoIdentityProvider
|
|
1752
1774
|
UpdateUserPoolClientRequest.add_member(:allowed_o_auth_flows_user_pool_client, Shapes::ShapeRef.new(shape: BooleanType, location_name: "AllowedOAuthFlowsUserPoolClient"))
|
1753
1775
|
UpdateUserPoolClientRequest.add_member(:analytics_configuration, Shapes::ShapeRef.new(shape: AnalyticsConfigurationType, location_name: "AnalyticsConfiguration"))
|
1754
1776
|
UpdateUserPoolClientRequest.add_member(:prevent_user_existence_errors, Shapes::ShapeRef.new(shape: PreventUserExistenceErrorTypes, location_name: "PreventUserExistenceErrors"))
|
1777
|
+
UpdateUserPoolClientRequest.add_member(:enable_token_revocation, Shapes::ShapeRef.new(shape: WrappedBooleanType, location_name: "EnableTokenRevocation"))
|
1755
1778
|
UpdateUserPoolClientRequest.struct_class = Types::UpdateUserPoolClientRequest
|
1756
1779
|
|
1757
1780
|
UpdateUserPoolClientResponse.add_member(:user_pool_client, Shapes::ShapeRef.new(shape: UserPoolClientType, location_name: "UserPoolClient"))
|
@@ -1855,6 +1878,7 @@ module Aws::CognitoIdentityProvider
|
|
1855
1878
|
UserPoolClientType.add_member(:allowed_o_auth_flows_user_pool_client, Shapes::ShapeRef.new(shape: BooleanType, location_name: "AllowedOAuthFlowsUserPoolClient", metadata: {"box"=>true}))
|
1856
1879
|
UserPoolClientType.add_member(:analytics_configuration, Shapes::ShapeRef.new(shape: AnalyticsConfigurationType, location_name: "AnalyticsConfiguration"))
|
1857
1880
|
UserPoolClientType.add_member(:prevent_user_existence_errors, Shapes::ShapeRef.new(shape: PreventUserExistenceErrorTypes, location_name: "PreventUserExistenceErrors"))
|
1881
|
+
UserPoolClientType.add_member(:enable_token_revocation, Shapes::ShapeRef.new(shape: WrappedBooleanType, location_name: "EnableTokenRevocation"))
|
1858
1882
|
UserPoolClientType.struct_class = Types::UserPoolClientType
|
1859
1883
|
|
1860
1884
|
UserPoolDescriptionType.add_member(:id, Shapes::ShapeRef.new(shape: UserPoolIdType, location_name: "Id"))
|
@@ -3276,6 +3300,20 @@ module Aws::CognitoIdentityProvider
|
|
3276
3300
|
o.errors << Shapes::ShapeRef.new(shape: SoftwareTokenMFANotFoundException)
|
3277
3301
|
end)
|
3278
3302
|
|
3303
|
+
api.add_operation(:revoke_token, Seahorse::Model::Operation.new.tap do |o|
|
3304
|
+
o.name = "RevokeToken"
|
3305
|
+
o.http_method = "POST"
|
3306
|
+
o.http_request_uri = "/"
|
3307
|
+
o.input = Shapes::ShapeRef.new(shape: RevokeTokenRequest)
|
3308
|
+
o.output = Shapes::ShapeRef.new(shape: RevokeTokenResponse)
|
3309
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
3310
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
3311
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
3312
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
3313
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
3314
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedTokenTypeException)
|
3315
|
+
end)
|
3316
|
+
|
3279
3317
|
api.add_operation(:set_risk_configuration, Seahorse::Model::Operation.new.tap do |o|
|
3280
3318
|
o.name = "SetRiskConfiguration"
|
3281
3319
|
o.http_method = "POST"
|
@@ -54,8 +54,11 @@ module Aws::CognitoIdentityProvider
|
|
54
54
|
# * {SoftwareTokenMFANotFoundException}
|
55
55
|
# * {TooManyFailedAttemptsException}
|
56
56
|
# * {TooManyRequestsException}
|
57
|
+
# * {UnauthorizedException}
|
57
58
|
# * {UnexpectedLambdaException}
|
58
59
|
# * {UnsupportedIdentityProviderException}
|
60
|
+
# * {UnsupportedOperationException}
|
61
|
+
# * {UnsupportedTokenTypeException}
|
59
62
|
# * {UnsupportedUserStateException}
|
60
63
|
# * {UserImportInProgressException}
|
61
64
|
# * {UserLambdaValidationException}
|
@@ -476,6 +479,21 @@ module Aws::CognitoIdentityProvider
|
|
476
479
|
end
|
477
480
|
end
|
478
481
|
|
482
|
+
class UnauthorizedException < ServiceError
|
483
|
+
|
484
|
+
# @param [Seahorse::Client::RequestContext] context
|
485
|
+
# @param [String] message
|
486
|
+
# @param [Aws::CognitoIdentityProvider::Types::UnauthorizedException] data
|
487
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
488
|
+
super(context, message, data)
|
489
|
+
end
|
490
|
+
|
491
|
+
# @return [String]
|
492
|
+
def message
|
493
|
+
@message || @data[:message]
|
494
|
+
end
|
495
|
+
end
|
496
|
+
|
479
497
|
class UnexpectedLambdaException < ServiceError
|
480
498
|
|
481
499
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -506,6 +524,36 @@ module Aws::CognitoIdentityProvider
|
|
506
524
|
end
|
507
525
|
end
|
508
526
|
|
527
|
+
class UnsupportedOperationException < ServiceError
|
528
|
+
|
529
|
+
# @param [Seahorse::Client::RequestContext] context
|
530
|
+
# @param [String] message
|
531
|
+
# @param [Aws::CognitoIdentityProvider::Types::UnsupportedOperationException] data
|
532
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
533
|
+
super(context, message, data)
|
534
|
+
end
|
535
|
+
|
536
|
+
# @return [String]
|
537
|
+
def message
|
538
|
+
@message || @data[:message]
|
539
|
+
end
|
540
|
+
end
|
541
|
+
|
542
|
+
class UnsupportedTokenTypeException < ServiceError
|
543
|
+
|
544
|
+
# @param [Seahorse::Client::RequestContext] context
|
545
|
+
# @param [String] message
|
546
|
+
# @param [Aws::CognitoIdentityProvider::Types::UnsupportedTokenTypeException] data
|
547
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
548
|
+
super(context, message, data)
|
549
|
+
end
|
550
|
+
|
551
|
+
# @return [String]
|
552
|
+
def message
|
553
|
+
@message || @data[:message]
|
554
|
+
end
|
555
|
+
end
|
556
|
+
|
509
557
|
class UnsupportedUserStateException < ServiceError
|
510
558
|
|
511
559
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -3310,6 +3310,7 @@ module Aws::CognitoIdentityProvider
|
|
3310
3310
|
# user_data_shared: false,
|
3311
3311
|
# },
|
3312
3312
|
# prevent_user_existence_errors: "LEGACY", # accepts LEGACY, ENABLED
|
3313
|
+
# enable_token_revocation: false,
|
3313
3314
|
# }
|
3314
3315
|
#
|
3315
3316
|
# @!attribute [rw] user_pool_id
|
@@ -3518,6 +3519,18 @@ module Aws::CognitoIdentityProvider
|
|
3518
3519
|
# </note>
|
3519
3520
|
# @return [String]
|
3520
3521
|
#
|
3522
|
+
# @!attribute [rw] enable_token_revocation
|
3523
|
+
# Enables or disables token revocation. For more information about
|
3524
|
+
# revoking tokens, see [RevokeToken][1].
|
3525
|
+
#
|
3526
|
+
# If you don't include this parameter, token revocation is
|
3527
|
+
# automatically enabled for the new user pool client.
|
3528
|
+
#
|
3529
|
+
#
|
3530
|
+
#
|
3531
|
+
# [1]: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html
|
3532
|
+
# @return [Boolean]
|
3533
|
+
#
|
3521
3534
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPoolClientRequest AWS API Documentation
|
3522
3535
|
#
|
3523
3536
|
class CreateUserPoolClientRequest < Struct.new(
|
@@ -3539,7 +3552,8 @@ module Aws::CognitoIdentityProvider
|
|
3539
3552
|
:allowed_o_auth_scopes,
|
3540
3553
|
:allowed_o_auth_flows_user_pool_client,
|
3541
3554
|
:analytics_configuration,
|
3542
|
-
:prevent_user_existence_errors
|
3555
|
+
:prevent_user_existence_errors,
|
3556
|
+
:enable_token_revocation)
|
3543
3557
|
SENSITIVE = []
|
3544
3558
|
include Aws::Structure
|
3545
3559
|
end
|
@@ -7608,6 +7622,42 @@ module Aws::CognitoIdentityProvider
|
|
7608
7622
|
include Aws::Structure
|
7609
7623
|
end
|
7610
7624
|
|
7625
|
+
# @note When making an API call, you may pass RevokeTokenRequest
|
7626
|
+
# data as a hash:
|
7627
|
+
#
|
7628
|
+
# {
|
7629
|
+
# token: "TokenModelType", # required
|
7630
|
+
# client_id: "ClientIdType", # required
|
7631
|
+
# client_secret: "ClientSecretType",
|
7632
|
+
# }
|
7633
|
+
#
|
7634
|
+
# @!attribute [rw] token
|
7635
|
+
# The token that you want to revoke.
|
7636
|
+
# @return [String]
|
7637
|
+
#
|
7638
|
+
# @!attribute [rw] client_id
|
7639
|
+
# The client ID for the token that you want to revoke.
|
7640
|
+
# @return [String]
|
7641
|
+
#
|
7642
|
+
# @!attribute [rw] client_secret
|
7643
|
+
# The secret for the client ID. This is required only if the client ID
|
7644
|
+
# has a secret.
|
7645
|
+
# @return [String]
|
7646
|
+
#
|
7647
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/RevokeTokenRequest AWS API Documentation
|
7648
|
+
#
|
7649
|
+
class RevokeTokenRequest < Struct.new(
|
7650
|
+
:token,
|
7651
|
+
:client_id,
|
7652
|
+
:client_secret)
|
7653
|
+
SENSITIVE = [:token, :client_id, :client_secret]
|
7654
|
+
include Aws::Structure
|
7655
|
+
end
|
7656
|
+
|
7657
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/RevokeTokenResponse AWS API Documentation
|
7658
|
+
#
|
7659
|
+
class RevokeTokenResponse < Aws::EmptyStructure; end
|
7660
|
+
|
7611
7661
|
# The risk configuration type.
|
7612
7662
|
#
|
7613
7663
|
# @!attribute [rw] user_pool_id
|
@@ -8714,6 +8764,20 @@ module Aws::CognitoIdentityProvider
|
|
8714
8764
|
include Aws::Structure
|
8715
8765
|
end
|
8716
8766
|
|
8767
|
+
# This exception is thrown when the request is not authorized. This can
|
8768
|
+
# happen due to an invalid access token in the request.
|
8769
|
+
#
|
8770
|
+
# @!attribute [rw] message
|
8771
|
+
# @return [String]
|
8772
|
+
#
|
8773
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UnauthorizedException AWS API Documentation
|
8774
|
+
#
|
8775
|
+
class UnauthorizedException < Struct.new(
|
8776
|
+
:message)
|
8777
|
+
SENSITIVE = []
|
8778
|
+
include Aws::Structure
|
8779
|
+
end
|
8780
|
+
|
8717
8781
|
# This exception is thrown when the Amazon Cognito service encounters an
|
8718
8782
|
# unexpected exception with the AWS Lambda service.
|
8719
8783
|
#
|
@@ -8744,6 +8808,34 @@ module Aws::CognitoIdentityProvider
|
|
8744
8808
|
include Aws::Structure
|
8745
8809
|
end
|
8746
8810
|
|
8811
|
+
# This exception is thrown when you attempt to perform an operation that
|
8812
|
+
# is not enabled for the user pool client.
|
8813
|
+
#
|
8814
|
+
# @!attribute [rw] message
|
8815
|
+
# @return [String]
|
8816
|
+
#
|
8817
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UnsupportedOperationException AWS API Documentation
|
8818
|
+
#
|
8819
|
+
class UnsupportedOperationException < Struct.new(
|
8820
|
+
:message)
|
8821
|
+
SENSITIVE = []
|
8822
|
+
include Aws::Structure
|
8823
|
+
end
|
8824
|
+
|
8825
|
+
# This exception is thrown when an unsupported token is passed to an
|
8826
|
+
# operation.
|
8827
|
+
#
|
8828
|
+
# @!attribute [rw] message
|
8829
|
+
# @return [String]
|
8830
|
+
#
|
8831
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UnsupportedTokenTypeException AWS API Documentation
|
8832
|
+
#
|
8833
|
+
class UnsupportedTokenTypeException < Struct.new(
|
8834
|
+
:message)
|
8835
|
+
SENSITIVE = []
|
8836
|
+
include Aws::Structure
|
8837
|
+
end
|
8838
|
+
|
8747
8839
|
# The request failed because the user is in an unsupported state.
|
8748
8840
|
#
|
8749
8841
|
# @!attribute [rw] message
|
@@ -9178,6 +9270,7 @@ module Aws::CognitoIdentityProvider
|
|
9178
9270
|
# user_data_shared: false,
|
9179
9271
|
# },
|
9180
9272
|
# prevent_user_existence_errors: "LEGACY", # accepts LEGACY, ENABLED
|
9273
|
+
# enable_token_revocation: false,
|
9181
9274
|
# }
|
9182
9275
|
#
|
9183
9276
|
# @!attribute [rw] user_pool_id
|
@@ -9369,6 +9462,15 @@ module Aws::CognitoIdentityProvider
|
|
9369
9462
|
# </note>
|
9370
9463
|
# @return [String]
|
9371
9464
|
#
|
9465
|
+
# @!attribute [rw] enable_token_revocation
|
9466
|
+
# Enables or disables token revocation. For more information about
|
9467
|
+
# revoking tokens, see [RevokeToken][1].
|
9468
|
+
#
|
9469
|
+
#
|
9470
|
+
#
|
9471
|
+
# [1]: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html
|
9472
|
+
# @return [Boolean]
|
9473
|
+
#
|
9372
9474
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserPoolClientRequest AWS API Documentation
|
9373
9475
|
#
|
9374
9476
|
class UpdateUserPoolClientRequest < Struct.new(
|
@@ -9390,7 +9492,8 @@ module Aws::CognitoIdentityProvider
|
|
9390
9492
|
:allowed_o_auth_scopes,
|
9391
9493
|
:allowed_o_auth_flows_user_pool_client,
|
9392
9494
|
:analytics_configuration,
|
9393
|
-
:prevent_user_existence_errors
|
9495
|
+
:prevent_user_existence_errors,
|
9496
|
+
:enable_token_revocation)
|
9394
9497
|
SENSITIVE = [:client_id]
|
9395
9498
|
include Aws::Structure
|
9396
9499
|
end
|
@@ -10130,6 +10233,17 @@ module Aws::CognitoIdentityProvider
|
|
10130
10233
|
# </note>
|
10131
10234
|
# @return [String]
|
10132
10235
|
#
|
10236
|
+
# @!attribute [rw] enable_token_revocation
|
10237
|
+
# Indicates whether token revocation is enabled for the user pool
|
10238
|
+
# client. When you create a new user pool client, token revocation is
|
10239
|
+
# enabled by default. For more information about revoking tokens, see
|
10240
|
+
# [RevokeToken][1].
|
10241
|
+
#
|
10242
|
+
#
|
10243
|
+
#
|
10244
|
+
# [1]: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html
|
10245
|
+
# @return [Boolean]
|
10246
|
+
#
|
10133
10247
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UserPoolClientType AWS API Documentation
|
10134
10248
|
#
|
10135
10249
|
class UserPoolClientType < Struct.new(
|
@@ -10154,7 +10268,8 @@ module Aws::CognitoIdentityProvider
|
|
10154
10268
|
:allowed_o_auth_scopes,
|
10155
10269
|
:allowed_o_auth_flows_user_pool_client,
|
10156
10270
|
:analytics_configuration,
|
10157
|
-
:prevent_user_existence_errors
|
10271
|
+
:prevent_user_existence_errors,
|
10272
|
+
:enable_token_revocation)
|
10158
10273
|
SENSITIVE = [:client_id, :client_secret]
|
10159
10274
|
include Aws::Structure
|
10160
10275
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-cognitoidentityprovider
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.53.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|