aws-sdk-cognitoidentityprovider 1.150.0 → 1.151.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23816c5ca5f2838e2ee707e3366d50b633c01a78ede71fd26c70ee97e0734786
4
- data.tar.gz: 2edaf22d0afe0a9c394876d7014131cff90fa4ef03edb848ba25cd5fe02f6667
3
+ metadata.gz: '0782fc580517572f1ed5f75d94d233eedf24f386ec72f769bc42576877e8def3'
4
+ data.tar.gz: 8a34fa2ebbd9c840b5108d75f70e6968d88e837a9f705d5f748a367bc088cf77
5
5
  SHA512:
6
- metadata.gz: 66a93703201dac8f7b9e78b7f5d2a6788b1d294bc23e21917e97bc7b6fbfafabbd79c69b4216213a6c9eeac0f78aedcad112b678107f1df53a1a3b89ced43b3f
7
- data.tar.gz: 8bc371b0b45ea97259f7b05ff568ebcb71b24eaf6eda57bca1e4bf513f00e88b8c2446dc5a8bf38d6bb5fbe3f37cf1d02e05ad988bbbf94b594abcb8b8fede4f
6
+ metadata.gz: 272b7102f4c3190658db9876e156467142bb387aa1906078f8830da83eae79af284d590005b57e50f25d7349e37881763db8e84b0f8d45324f955f4fe1027288
7
+ data.tar.gz: 336c40fda42f6acab013d6b3ffa0eb509d67ed3e1e98f696ffc3f69eb6f54a69d08f4f0238b56723baa1fb1d99f49f73769ebd5b35275df31adeb33e9bb97fd7
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.151.0 (2026-08-28)
5
+ ------------------
6
+
7
+ * Feature - Adds two new operations - GetClientToken which allows M2M auth through the SDK, and DescribeTermsByClient to find which Terms are associated with a user-pool client without knowing the Terms resource id.
8
+
4
9
  1.150.0 (2026-08-27)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.150.0
1
+ 1.151.0
@@ -7634,6 +7634,80 @@ module Aws::CognitoIdentityProvider
7634
7634
  req.send_request(options)
7635
7635
  end
7636
7636
 
7637
+ # Returns details for the terms documents that are associated with an
7638
+ # app client, identified by the app client ID, user pool ID, and terms
7639
+ # name. For more information, see [Terms documents][1].
7640
+ #
7641
+ # To call `DescribeTermsByClient`, you must have the
7642
+ # `cognito-idp:DescribeTermsByClient` Identity and Access Management
7643
+ # (IAM) permission. This operation additionally validates your
7644
+ # permission for `cognito-idp:DescribeTerms`, the action for . As a
7645
+ # result, an IAM policy that denies `cognito-idp:DescribeTerms` also
7646
+ # denies requests to `DescribeTermsByClient`.
7647
+ #
7648
+ # <note markdown="1"> Amazon Cognito evaluates Identity and Access Management (IAM) policies
7649
+ # in requests for this API operation. For this operation, you must use
7650
+ # IAM credentials to authorize requests, and you must grant yourself the
7651
+ # corresponding IAM permission in a policy.
7652
+ #
7653
+ # **Learn more**
7654
+ #
7655
+ # * [Signing Amazon Web Services API Requests][2]
7656
+ #
7657
+ # * [Using the Amazon Cognito user pools API and user pool endpoints][3]
7658
+ #
7659
+ # </note>
7660
+ #
7661
+ #
7662
+ #
7663
+ # [1]: https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-managed-login.html#managed-login-terms-documents
7664
+ # [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html
7665
+ # [3]: https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html
7666
+ #
7667
+ # @option params [required, String] :client_id
7668
+ # The ID of the app client that the terms documents are associated with.
7669
+ #
7670
+ # @option params [required, String] :user_pool_id
7671
+ # The ID of the user pool that contains the terms documents that you
7672
+ # want to describe.
7673
+ #
7674
+ # @option params [required, String] :terms_name
7675
+ # The name of the terms documents that you want to describe.
7676
+ #
7677
+ # @return [Types::DescribeTermsByClientResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
7678
+ #
7679
+ # * {Types::DescribeTermsByClientResponse#terms #terms} => Types::TermsType
7680
+ #
7681
+ # @example Request syntax with placeholder values
7682
+ #
7683
+ # resp = client.describe_terms_by_client({
7684
+ # client_id: "ClientIdType", # required
7685
+ # user_pool_id: "UserPoolIdType", # required
7686
+ # terms_name: "TermsNameType", # required
7687
+ # })
7688
+ #
7689
+ # @example Response structure
7690
+ #
7691
+ # resp.terms.terms_id #=> String
7692
+ # resp.terms.user_pool_id #=> String
7693
+ # resp.terms.client_id #=> String
7694
+ # resp.terms.terms_name #=> String
7695
+ # resp.terms.terms_source #=> String, one of "LINK"
7696
+ # resp.terms.enforcement #=> String, one of "NONE"
7697
+ # resp.terms.links #=> Hash
7698
+ # resp.terms.links["LanguageIdType"] #=> String
7699
+ # resp.terms.creation_date #=> Time
7700
+ # resp.terms.last_modified_date #=> Time
7701
+ #
7702
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeTermsByClient AWS API Documentation
7703
+ #
7704
+ # @overload describe_terms_by_client(params = {})
7705
+ # @param [Hash] params ({})
7706
+ def describe_terms_by_client(params = {}, options = {})
7707
+ req = build_request(:describe_terms_by_client, params)
7708
+ req.send_request(options)
7709
+ end
7710
+
7637
7711
  # Describes a user import job. For more information about user CSV
7638
7712
  # import, see [Importing users from a CSV file][1].
7639
7713
  #
@@ -8262,6 +8336,137 @@ module Aws::CognitoIdentityProvider
8262
8336
  req.send_request(options)
8263
8337
  end
8264
8338
 
8339
+ # Issues an access token for machine-to-machine (M2M) authorization.
8340
+ # Your app client provides its client ID and secret, and receives an
8341
+ # access token that authorizes requests to your resource servers.
8342
+ # `GetClientToken` provides the same functionality as the OAuth2
8343
+ # client-credentials grant; both authorize an application rather than a
8344
+ # user.
8345
+ #
8346
+ # To use this operation, you must configure the app client with a client
8347
+ # secret and enable the `ALLOW_CLIENT_TOKEN_AUTH` authentication flow.
8348
+ # The `ALLOW_CLIENT_TOKEN_AUTH` flow is mutually exclusive with user
8349
+ # authentication flows. It must be the only authentication flow that you
8350
+ # configure for the app client. For more information, see [Scopes, M2M,
8351
+ # and resource servers][1].
8352
+ #
8353
+ # <note markdown="1"> Amazon Cognito doesn't evaluate Identity and Access Management (IAM)
8354
+ # policies in requests for this API operation. For this operation, you
8355
+ # can't use IAM credentials to authorize requests, and you can't grant
8356
+ # IAM permissions in policies. For more information about authorization
8357
+ # models in Amazon Cognito, see [Using the Amazon Cognito user pools API
8358
+ # and user pool endpoints][2].
8359
+ #
8360
+ # </note>
8361
+ #
8362
+ #
8363
+ #
8364
+ # [1]: https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-define-resource-servers.html
8365
+ # [2]: https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html
8366
+ #
8367
+ # @option params [required, String] :client_id
8368
+ # The ID of the app client that requests the access token. The app
8369
+ # client must have a client secret and the `ALLOW_CLIENT_TOKEN_AUTH`
8370
+ # authentication flow.
8371
+ #
8372
+ # @option params [required, String] :secret
8373
+ # An active secret for the app client.
8374
+ #
8375
+ # @option params [Array<String>] :scopes
8376
+ # The custom scopes to authorize in the access token, in the format
8377
+ # `resource-server-identifier/scope-name`. Each scope must belong to a
8378
+ # resource server in your user pool. If you don't specify any scopes,
8379
+ # Amazon Cognito authorizes the scopes that are configured for the app
8380
+ # client.
8381
+ #
8382
+ # @option params [Hash<String,String>] :client_metadata
8383
+ # A map of custom key-value pairs that you can provide as input for any
8384
+ # custom workflows that this action triggers. You create custom
8385
+ # workflows by assigning Lambda functions to user pool triggers.
8386
+ #
8387
+ # When Amazon Cognito invokes any of these functions, it passes a JSON
8388
+ # payload, which the function receives as input. This payload contains a
8389
+ # `clientMetadata` attribute that provides the data that you assigned to
8390
+ # the ClientMetadata parameter in your request. In your function code,
8391
+ # you can process the `clientMetadata` value to enhance your workflow
8392
+ # for your specific needs.
8393
+ #
8394
+ # To review the Lambda trigger types that Amazon Cognito invokes at
8395
+ # runtime with API requests, see [ Connecting API actions to Lambda
8396
+ # triggers][1] in the *Amazon Cognito Developer Guide*.
8397
+ #
8398
+ # <note markdown="1"> When you use the `ClientMetadata` parameter, note that Amazon Cognito
8399
+ # won't do the following:
8400
+ #
8401
+ # * Store the `ClientMetadata` value. This data is available only to
8402
+ # Lambda triggers that are assigned to a user pool to support custom
8403
+ # workflows. If your user pool configuration doesn't include
8404
+ # triggers, the `ClientMetadata` parameter serves no purpose.
8405
+ #
8406
+ # * Validate the `ClientMetadata` value.
8407
+ #
8408
+ # * Encrypt the `ClientMetadata` value. Don't send sensitive
8409
+ # information in this parameter.
8410
+ #
8411
+ # </note>
8412
+ #
8413
+ #
8414
+ #
8415
+ # [1]: https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-working-with-lambda-triggers.html#lambda-triggers-by-event
8416
+ #
8417
+ # @return [Types::GetClientTokenResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
8418
+ #
8419
+ # * {Types::GetClientTokenResponse#client_authentication_result #client_authentication_result} => Types::ClientAuthenticationResultType
8420
+ #
8421
+ #
8422
+ # @example Example: Example – Get an access token for machine-to-machine authorization
8423
+ #
8424
+ # # The following example gets an access token for the app client 1example23456789 with the custom scope
8425
+ # # solar-system-data/asteroids.add.
8426
+ #
8427
+ # resp = client.get_client_token({
8428
+ # client_id: "1example23456789",
8429
+ # scopes: [
8430
+ # "solar-system-data/asteroids.add",
8431
+ # ],
8432
+ # secret: "exampleClientSecret123EXAMPLE",
8433
+ # })
8434
+ #
8435
+ # resp.to_h outputs the following:
8436
+ # {
8437
+ # client_authentication_result: {
8438
+ # access_token: "eyJra456defEXAMPLE",
8439
+ # expires_in: 3600,
8440
+ # token_type: "Bearer",
8441
+ # },
8442
+ # }
8443
+ #
8444
+ # @example Request syntax with placeholder values
8445
+ #
8446
+ # resp = client.get_client_token({
8447
+ # client_id: "ClientIdType", # required
8448
+ # secret: "ClientSecretType", # required
8449
+ # scopes: ["ScopeType"],
8450
+ # client_metadata: {
8451
+ # "StringType" => "StringType",
8452
+ # },
8453
+ # })
8454
+ #
8455
+ # @example Response structure
8456
+ #
8457
+ # resp.client_authentication_result.access_token #=> String
8458
+ # resp.client_authentication_result.expires_in #=> Integer
8459
+ # resp.client_authentication_result.token_type #=> String
8460
+ #
8461
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetClientToken AWS API Documentation
8462
+ #
8463
+ # @overload get_client_token(params = {})
8464
+ # @param [Hash] params ({})
8465
+ def get_client_token(params = {}, options = {})
8466
+ req = build_request(:get_client_token, params)
8467
+ req.send_request(options)
8468
+ end
8469
+
8265
8470
  # Given a device key, returns information about a remembered device for
8266
8471
  # the current user. For more information about device authentication,
8267
8472
  # see [Working with user devices in your user pool][1].
@@ -14477,7 +14682,7 @@ module Aws::CognitoIdentityProvider
14477
14682
  tracer: tracer
14478
14683
  )
14479
14684
  context[:gem_name] = 'aws-sdk-cognitoidentityprovider'
14480
- context[:gem_version] = '1.150.0'
14685
+ context[:gem_version] = '1.151.0'
14481
14686
  Seahorse::Client::Request.new(handlers, context)
14482
14687
  end
14483
14688
 
@@ -129,6 +129,7 @@ module Aws::CognitoIdentityProvider
129
129
  ChallengeResponsesType = Shapes::MapShape.new(name: 'ChallengeResponsesType')
130
130
  ChangePasswordRequest = Shapes::StructureShape.new(name: 'ChangePasswordRequest')
131
131
  ChangePasswordResponse = Shapes::StructureShape.new(name: 'ChangePasswordResponse')
132
+ ClientAuthenticationResultType = Shapes::StructureShape.new(name: 'ClientAuthenticationResultType')
132
133
  ClientIdType = Shapes::StringShape.new(name: 'ClientIdType')
133
134
  ClientMetadataType = Shapes::MapShape.new(name: 'ClientMetadataType')
134
135
  ClientNameType = Shapes::StringShape.new(name: 'ClientNameType')
@@ -220,6 +221,8 @@ module Aws::CognitoIdentityProvider
220
221
  DescribeResourceServerResponse = Shapes::StructureShape.new(name: 'DescribeResourceServerResponse')
221
222
  DescribeRiskConfigurationRequest = Shapes::StructureShape.new(name: 'DescribeRiskConfigurationRequest')
222
223
  DescribeRiskConfigurationResponse = Shapes::StructureShape.new(name: 'DescribeRiskConfigurationResponse')
224
+ DescribeTermsByClientRequest = Shapes::StructureShape.new(name: 'DescribeTermsByClientRequest')
225
+ DescribeTermsByClientResponse = Shapes::StructureShape.new(name: 'DescribeTermsByClientResponse')
223
226
  DescribeTermsRequest = Shapes::StructureShape.new(name: 'DescribeTermsRequest')
224
227
  DescribeTermsResponse = Shapes::StructureShape.new(name: 'DescribeTermsResponse')
225
228
  DescribeUserImportJobRequest = Shapes::StructureShape.new(name: 'DescribeUserImportJobRequest')
@@ -288,6 +291,8 @@ module Aws::CognitoIdentityProvider
288
291
  GenerateSecret = Shapes::BooleanShape.new(name: 'GenerateSecret')
289
292
  GetCSVHeaderRequest = Shapes::StructureShape.new(name: 'GetCSVHeaderRequest')
290
293
  GetCSVHeaderResponse = Shapes::StructureShape.new(name: 'GetCSVHeaderResponse')
294
+ GetClientTokenRequest = Shapes::StructureShape.new(name: 'GetClientTokenRequest')
295
+ GetClientTokenResponse = Shapes::StructureShape.new(name: 'GetClientTokenResponse')
291
296
  GetDeviceRequest = Shapes::StructureShape.new(name: 'GetDeviceRequest')
292
297
  GetDeviceResponse = Shapes::StructureShape.new(name: 'GetDeviceResponse')
293
298
  GetGroupRequest = Shapes::StructureShape.new(name: 'GetGroupRequest')
@@ -1018,6 +1023,11 @@ module Aws::CognitoIdentityProvider
1018
1023
 
1019
1024
  ChangePasswordResponse.struct_class = Types::ChangePasswordResponse
1020
1025
 
1026
+ ClientAuthenticationResultType.add_member(:access_token, Shapes::ShapeRef.new(shape: TokenModelType, location_name: "AccessToken"))
1027
+ ClientAuthenticationResultType.add_member(:expires_in, Shapes::ShapeRef.new(shape: IntegerType, location_name: "ExpiresIn"))
1028
+ ClientAuthenticationResultType.add_member(:token_type, Shapes::ShapeRef.new(shape: StringType, location_name: "TokenType"))
1029
+ ClientAuthenticationResultType.struct_class = Types::ClientAuthenticationResultType
1030
+
1021
1031
  ClientMetadataType.key = Shapes::ShapeRef.new(shape: StringType)
1022
1032
  ClientMetadataType.value = Shapes::ShapeRef.new(shape: StringType)
1023
1033
 
@@ -1361,6 +1371,14 @@ module Aws::CognitoIdentityProvider
1361
1371
  DescribeRiskConfigurationResponse.add_member(:risk_configuration, Shapes::ShapeRef.new(shape: RiskConfigurationType, required: true, location_name: "RiskConfiguration"))
1362
1372
  DescribeRiskConfigurationResponse.struct_class = Types::DescribeRiskConfigurationResponse
1363
1373
 
1374
+ DescribeTermsByClientRequest.add_member(:client_id, Shapes::ShapeRef.new(shape: ClientIdType, required: true, location_name: "ClientId"))
1375
+ DescribeTermsByClientRequest.add_member(:user_pool_id, Shapes::ShapeRef.new(shape: UserPoolIdType, required: true, location_name: "UserPoolId"))
1376
+ DescribeTermsByClientRequest.add_member(:terms_name, Shapes::ShapeRef.new(shape: TermsNameType, required: true, location_name: "TermsName"))
1377
+ DescribeTermsByClientRequest.struct_class = Types::DescribeTermsByClientRequest
1378
+
1379
+ DescribeTermsByClientResponse.add_member(:terms, Shapes::ShapeRef.new(shape: TermsType, location_name: "Terms"))
1380
+ DescribeTermsByClientResponse.struct_class = Types::DescribeTermsByClientResponse
1381
+
1364
1382
  DescribeTermsRequest.add_member(:terms_id, Shapes::ShapeRef.new(shape: TermsIdType, required: true, location_name: "TermsId"))
1365
1383
  DescribeTermsRequest.add_member(:user_pool_id, Shapes::ShapeRef.new(shape: UserPoolIdType, required: true, location_name: "UserPoolId"))
1366
1384
  DescribeTermsRequest.struct_class = Types::DescribeTermsRequest
@@ -1515,6 +1533,15 @@ module Aws::CognitoIdentityProvider
1515
1533
  GetCSVHeaderResponse.add_member(:csv_header, Shapes::ShapeRef.new(shape: ListOfStringTypes, location_name: "CSVHeader"))
1516
1534
  GetCSVHeaderResponse.struct_class = Types::GetCSVHeaderResponse
1517
1535
 
1536
+ GetClientTokenRequest.add_member(:client_id, Shapes::ShapeRef.new(shape: ClientIdType, required: true, location_name: "ClientId"))
1537
+ GetClientTokenRequest.add_member(:secret, Shapes::ShapeRef.new(shape: ClientSecretType, required: true, location_name: "Secret"))
1538
+ GetClientTokenRequest.add_member(:scopes, Shapes::ShapeRef.new(shape: ScopeListType, location_name: "Scopes"))
1539
+ GetClientTokenRequest.add_member(:client_metadata, Shapes::ShapeRef.new(shape: ClientMetadataType, location_name: "ClientMetadata"))
1540
+ GetClientTokenRequest.struct_class = Types::GetClientTokenRequest
1541
+
1542
+ GetClientTokenResponse.add_member(:client_authentication_result, Shapes::ShapeRef.new(shape: ClientAuthenticationResultType, location_name: "ClientAuthenticationResult"))
1543
+ GetClientTokenResponse.struct_class = Types::GetClientTokenResponse
1544
+
1518
1545
  GetDeviceRequest.add_member(:device_key, Shapes::ShapeRef.new(shape: DeviceKeyType, required: true, location_name: "DeviceKey"))
1519
1546
  GetDeviceRequest.add_member(:access_token, Shapes::ShapeRef.new(shape: TokenModelType, location_name: "AccessToken"))
1520
1547
  GetDeviceRequest.struct_class = Types::GetDeviceRequest
@@ -3817,6 +3844,20 @@ module Aws::CognitoIdentityProvider
3817
3844
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
3818
3845
  end)
3819
3846
 
3847
+ api.add_operation(:describe_terms_by_client, Seahorse::Model::Operation.new.tap do |o|
3848
+ o.name = "DescribeTermsByClient"
3849
+ o.http_method = "POST"
3850
+ o.http_request_uri = "/"
3851
+ o.input = Shapes::ShapeRef.new(shape: DescribeTermsByClientRequest)
3852
+ o.output = Shapes::ShapeRef.new(shape: DescribeTermsByClientResponse)
3853
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
3854
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
3855
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
3856
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
3857
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotEnabledException)
3858
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
3859
+ end)
3860
+
3820
3861
  api.add_operation(:describe_user_import_job, Seahorse::Model::Operation.new.tap do |o|
3821
3862
  o.name = "DescribeUserImportJob"
3822
3863
  o.http_method = "POST"
@@ -3934,6 +3975,21 @@ module Aws::CognitoIdentityProvider
3934
3975
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
3935
3976
  end)
3936
3977
 
3978
+ api.add_operation(:get_client_token, Seahorse::Model::Operation.new.tap do |o|
3979
+ o.name = "GetClientToken"
3980
+ o.http_method = "POST"
3981
+ o.http_request_uri = "/"
3982
+ o.input = Shapes::ShapeRef.new(shape: GetClientTokenRequest)
3983
+ o.output = Shapes::ShapeRef.new(shape: GetClientTokenResponse)
3984
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
3985
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
3986
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
3987
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
3988
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
3989
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotEnabledException)
3990
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
3991
+ end)
3992
+
3937
3993
  api.add_operation(:get_device, Seahorse::Model::Operation.new.tap do |o|
3938
3994
  o.name = "GetDevice"
3939
3995
  o.http_method = "POST"
@@ -3119,6 +3119,33 @@ module Aws::CognitoIdentityProvider
3119
3119
  #
3120
3120
  class ChangePasswordResponse < Aws::EmptyStructure; end
3121
3121
 
3122
+ # The access token and its metadata from a machine-to-machine (M2M)
3123
+ # client credentials grant.
3124
+ #
3125
+ # @!attribute [rw] access_token
3126
+ # The access token for the requested app client. Present this token to
3127
+ # a resource server to authorize a request, using the scopes granted
3128
+ # in the token.
3129
+ # @return [String]
3130
+ #
3131
+ # @!attribute [rw] expires_in
3132
+ # The number of seconds until the access token expires.
3133
+ # @return [Integer]
3134
+ #
3135
+ # @!attribute [rw] token_type
3136
+ # The type of the token. For example, `Bearer`.
3137
+ # @return [String]
3138
+ #
3139
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ClientAuthenticationResultType AWS API Documentation
3140
+ #
3141
+ class ClientAuthenticationResultType < Struct.new(
3142
+ :access_token,
3143
+ :expires_in,
3144
+ :token_type)
3145
+ SENSITIVE = [:access_token]
3146
+ include Aws::Structure
3147
+ end
3148
+
3122
3149
  # Contains information about a client secret, including its unique
3123
3150
  # identifier, value, and creation timestamp.
3124
3151
  #
@@ -5623,6 +5650,43 @@ module Aws::CognitoIdentityProvider
5623
5650
  include Aws::Structure
5624
5651
  end
5625
5652
 
5653
+ # @!attribute [rw] client_id
5654
+ # The ID of the app client that the terms documents are associated
5655
+ # with.
5656
+ # @return [String]
5657
+ #
5658
+ # @!attribute [rw] user_pool_id
5659
+ # The ID of the user pool that contains the terms documents that you
5660
+ # want to describe.
5661
+ # @return [String]
5662
+ #
5663
+ # @!attribute [rw] terms_name
5664
+ # The name of the terms documents that you want to describe.
5665
+ # @return [String]
5666
+ #
5667
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeTermsByClientRequest AWS API Documentation
5668
+ #
5669
+ class DescribeTermsByClientRequest < Struct.new(
5670
+ :client_id,
5671
+ :user_pool_id,
5672
+ :terms_name)
5673
+ SENSITIVE = [:client_id]
5674
+ include Aws::Structure
5675
+ end
5676
+
5677
+ # @!attribute [rw] terms
5678
+ # A summary of the requested terms documents. Includes a unique
5679
+ # identifier for later changes to the terms documents.
5680
+ # @return [Types::TermsType]
5681
+ #
5682
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeTermsByClientResponse AWS API Documentation
5683
+ #
5684
+ class DescribeTermsByClientResponse < Struct.new(
5685
+ :terms)
5686
+ SENSITIVE = []
5687
+ include Aws::Structure
5688
+ end
5689
+
5626
5690
  # @!attribute [rw] terms_id
5627
5691
  # The ID of the terms documents that you want to describe.
5628
5692
  # @return [String]
@@ -6665,6 +6729,84 @@ module Aws::CognitoIdentityProvider
6665
6729
  include Aws::Structure
6666
6730
  end
6667
6731
 
6732
+ # @!attribute [rw] client_id
6733
+ # The ID of the app client that requests the access token. The app
6734
+ # client must have a client secret and the `ALLOW_CLIENT_TOKEN_AUTH`
6735
+ # authentication flow.
6736
+ # @return [String]
6737
+ #
6738
+ # @!attribute [rw] secret
6739
+ # An active secret for the app client.
6740
+ # @return [String]
6741
+ #
6742
+ # @!attribute [rw] scopes
6743
+ # The custom scopes to authorize in the access token, in the format
6744
+ # `resource-server-identifier/scope-name`. Each scope must belong to a
6745
+ # resource server in your user pool. If you don't specify any scopes,
6746
+ # Amazon Cognito authorizes the scopes that are configured for the app
6747
+ # client.
6748
+ # @return [Array<String>]
6749
+ #
6750
+ # @!attribute [rw] client_metadata
6751
+ # A map of custom key-value pairs that you can provide as input for
6752
+ # any custom workflows that this action triggers. You create custom
6753
+ # workflows by assigning Lambda functions to user pool triggers.
6754
+ #
6755
+ # When Amazon Cognito invokes any of these functions, it passes a JSON
6756
+ # payload, which the function receives as input. This payload contains
6757
+ # a `clientMetadata` attribute that provides the data that you
6758
+ # assigned to the ClientMetadata parameter in your request. In your
6759
+ # function code, you can process the `clientMetadata` value to enhance
6760
+ # your workflow for your specific needs.
6761
+ #
6762
+ # To review the Lambda trigger types that Amazon Cognito invokes at
6763
+ # runtime with API requests, see [ Connecting API actions to Lambda
6764
+ # triggers][1] in the *Amazon Cognito Developer Guide*.
6765
+ #
6766
+ # <note markdown="1"> When you use the `ClientMetadata` parameter, note that Amazon
6767
+ # Cognito won't do the following:
6768
+ #
6769
+ # * Store the `ClientMetadata` value. This data is available only to
6770
+ # Lambda triggers that are assigned to a user pool to support custom
6771
+ # workflows. If your user pool configuration doesn't include
6772
+ # triggers, the `ClientMetadata` parameter serves no purpose.
6773
+ #
6774
+ # * Validate the `ClientMetadata` value.
6775
+ #
6776
+ # * Encrypt the `ClientMetadata` value. Don't send sensitive
6777
+ # information in this parameter.
6778
+ #
6779
+ # </note>
6780
+ #
6781
+ #
6782
+ #
6783
+ # [1]: https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-working-with-lambda-triggers.html#lambda-triggers-by-event
6784
+ # @return [Hash<String,String>]
6785
+ #
6786
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetClientTokenRequest AWS API Documentation
6787
+ #
6788
+ class GetClientTokenRequest < Struct.new(
6789
+ :client_id,
6790
+ :secret,
6791
+ :scopes,
6792
+ :client_metadata)
6793
+ SENSITIVE = [:client_id, :secret]
6794
+ include Aws::Structure
6795
+ end
6796
+
6797
+ # @!attribute [rw] client_authentication_result
6798
+ # The access token that Amazon Cognito issues for the app client, and
6799
+ # its metadata.
6800
+ # @return [Types::ClientAuthenticationResultType]
6801
+ #
6802
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetClientTokenResponse AWS API Documentation
6803
+ #
6804
+ class GetClientTokenResponse < Struct.new(
6805
+ :client_authentication_result)
6806
+ SENSITIVE = []
6807
+ include Aws::Structure
6808
+ end
6809
+
6668
6810
  # Represents the request to get the device.
6669
6811
  #
6670
6812
  # @!attribute [rw] device_key
@@ -54,7 +54,7 @@ module Aws::CognitoIdentityProvider
54
54
  autoload :EndpointProvider, 'aws-sdk-cognitoidentityprovider/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-cognitoidentityprovider/endpoints'
56
56
 
57
- GEM_VERSION = '1.150.0'
57
+ GEM_VERSION = '1.151.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -1009,6 +1009,18 @@ module Aws
1009
1009
  ) -> _DescribeTermsResponseSuccess
1010
1010
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeTermsResponseSuccess
1011
1011
 
1012
+ interface _DescribeTermsByClientResponseSuccess
1013
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeTermsByClientResponse]
1014
+ def terms: () -> Types::TermsType
1015
+ end
1016
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CognitoIdentityProvider/Client.html#describe_terms_by_client-instance_method
1017
+ def describe_terms_by_client: (
1018
+ client_id: ::String,
1019
+ user_pool_id: ::String,
1020
+ terms_name: ::String
1021
+ ) -> _DescribeTermsByClientResponseSuccess
1022
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeTermsByClientResponseSuccess
1023
+
1012
1024
  interface _DescribeUserImportJobResponseSuccess
1013
1025
  include ::Seahorse::Client::_ResponseSuccess[Types::DescribeUserImportJobResponse]
1014
1026
  def user_import_job: () -> Types::UserImportJobType
@@ -1089,6 +1101,19 @@ module Aws
1089
1101
  ) -> _GetCSVHeaderResponseSuccess
1090
1102
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetCSVHeaderResponseSuccess
1091
1103
 
1104
+ interface _GetClientTokenResponseSuccess
1105
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetClientTokenResponse]
1106
+ def client_authentication_result: () -> Types::ClientAuthenticationResultType
1107
+ end
1108
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CognitoIdentityProvider/Client.html#get_client_token-instance_method
1109
+ def get_client_token: (
1110
+ client_id: ::String,
1111
+ secret: ::String,
1112
+ ?scopes: Array[::String],
1113
+ ?client_metadata: Hash[::String, ::String]
1114
+ ) -> _GetClientTokenResponseSuccess
1115
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetClientTokenResponseSuccess
1116
+
1092
1117
  interface _GetDeviceResponseSuccess
1093
1118
  include ::Seahorse::Client::_ResponseSuccess[Types::GetDeviceResponse]
1094
1119
  def device: () -> Types::DeviceType
data/sig/types.rbs CHANGED
@@ -479,6 +479,13 @@ module Aws::CognitoIdentityProvider
479
479
  class ChangePasswordResponse < Aws::EmptyStructure
480
480
  end
481
481
 
482
+ class ClientAuthenticationResultType
483
+ attr_accessor access_token: ::String
484
+ attr_accessor expires_in: ::Integer
485
+ attr_accessor token_type: ::String
486
+ SENSITIVE: [:access_token]
487
+ end
488
+
482
489
  class ClientSecretDescriptorType
483
490
  attr_accessor client_secret_id: ::String
484
491
  attr_accessor client_secret_value: ::String
@@ -937,6 +944,18 @@ module Aws::CognitoIdentityProvider
937
944
  SENSITIVE: []
938
945
  end
939
946
 
947
+ class DescribeTermsByClientRequest
948
+ attr_accessor client_id: ::String
949
+ attr_accessor user_pool_id: ::String
950
+ attr_accessor terms_name: ::String
951
+ SENSITIVE: [:client_id]
952
+ end
953
+
954
+ class DescribeTermsByClientResponse
955
+ attr_accessor terms: Types::TermsType
956
+ SENSITIVE: []
957
+ end
958
+
940
959
  class DescribeTermsRequest
941
960
  attr_accessor terms_id: ::String
942
961
  attr_accessor user_pool_id: ::String
@@ -1153,6 +1172,19 @@ module Aws::CognitoIdentityProvider
1153
1172
  SENSITIVE: []
1154
1173
  end
1155
1174
 
1175
+ class GetClientTokenRequest
1176
+ attr_accessor client_id: ::String
1177
+ attr_accessor secret: ::String
1178
+ attr_accessor scopes: ::Array[::String]
1179
+ attr_accessor client_metadata: ::Hash[::String, ::String]
1180
+ SENSITIVE: [:client_id, :secret]
1181
+ end
1182
+
1183
+ class GetClientTokenResponse
1184
+ attr_accessor client_authentication_result: Types::ClientAuthenticationResultType
1185
+ SENSITIVE: []
1186
+ end
1187
+
1156
1188
  class GetDeviceRequest
1157
1189
  attr_accessor device_key: ::String
1158
1190
  attr_accessor access_token: ::String
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cognitoidentityprovider
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.150.0
4
+ version: 1.151.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services