aws-sdk-cognitoidentityprovider 1.165.0 → 1.166.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: c55d779f7ab23ffc30b72eedbab59f00626e996472b147c5d73c9bece37fd05b
4
- data.tar.gz: a0c63fbe8571268db6dbd86c36187364f8ca56df5075205b33eb6eb492b2db58
3
+ metadata.gz: 6754218580b3c0781ad19e318e3c53550eddca40954923e243340ec8a3965d01
4
+ data.tar.gz: 1ab912085bdc64dae79f0499eed99540415ecb51f7f2b963fff80d096effcfac
5
5
  SHA512:
6
- metadata.gz: cefcb4780b60b890438a23e056bb95671b143a74b744ad0af016a13c7521ca704eb92bc90545431421f85511d89a75b2c2c7bec42fcb2cbfe0a2892377263e90
7
- data.tar.gz: a8839951d3e169b1b841d185806b4211e1e97096dbfb5f93ccdc2f14d17ba1904e2e4dd64ad364bf9cfc1e72bc09027341c304c9ef8b425b1bb0648d56ae89d9
6
+ metadata.gz: 95315a76f07d3fe73f340afde5d8c0753cf2d13c39d5e1e252fd01e07382af1e45b4234c8888502c11fdf184d517985b460a0ffd1bacbabfb31f772ddbf08f56
7
+ data.tar.gz: 42608c40e619571d628567d6ed120c6ecee82581e2a44522f89329cd99036e58238f8da00f00e5e2ed0690ad382c733c75eacd466f876f07368c6b1aa87e7020
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.166.0 (2026-11-16)
5
+ ------------------
6
+
7
+ * Feature - Implement OAuth 2.0 Token Exchange (RFC 8693) for Cognito User Pools, enabling services to exchange a user's existing token for a new token that is appropriately scoped and audience-bound for a specific downstream service.
8
+
4
9
  1.165.0 (2026-11-13)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.165.0
1
+ 1.166.0
@@ -6369,6 +6369,15 @@ module Aws::CognitoIdentityProvider
6369
6369
  #
6370
6370
  # * `ALLOW_REFRESH_TOKEN_AUTH`: Enable authflow to refresh tokens.
6371
6371
  #
6372
+ # * `ALLOW_TOKEN_EXCHANGE_IMPERSONATION` – Use this flow to request
6373
+ # `GetDerivedToken` token exchanges without an `ActorToken`. The
6374
+ # issued token represents the subject user directly.
6375
+ #
6376
+ # * `ALLOW_TOKEN_EXCHANGE_DELEGATION` – Use this flow to request
6377
+ # `GetDerivedToken` token exchanges that include an `ActorToken`. The
6378
+ # issued token carries an `act` claim that identifies the intermediary
6379
+ # acting on the behalf of the subject.
6380
+ #
6372
6381
  # In some environments, you will see the values `ADMIN_NO_SRP_AUTH`,
6373
6382
  # `CUSTOM_AUTH_FLOW_ONLY`, or `USER_PASSWORD_AUTH`. You can't assign
6374
6383
  # these legacy `ExplicitAuthFlows` values to user pool clients at the
@@ -6721,7 +6730,7 @@ module Aws::CognitoIdentityProvider
6721
6730
  # },
6722
6731
  # read_attributes: ["ClientPermissionType"],
6723
6732
  # write_attributes: ["ClientPermissionType"],
6724
- # explicit_auth_flows: ["ADMIN_NO_SRP_AUTH"], # accepts ADMIN_NO_SRP_AUTH, CUSTOM_AUTH_FLOW_ONLY, USER_PASSWORD_AUTH, ALLOW_ADMIN_USER_PASSWORD_AUTH, ALLOW_CUSTOM_AUTH, ALLOW_USER_PASSWORD_AUTH, ALLOW_USER_SRP_AUTH, ALLOW_REFRESH_TOKEN_AUTH, ALLOW_USER_AUTH
6733
+ # explicit_auth_flows: ["ADMIN_NO_SRP_AUTH"], # accepts ADMIN_NO_SRP_AUTH, CUSTOM_AUTH_FLOW_ONLY, USER_PASSWORD_AUTH, ALLOW_ADMIN_USER_PASSWORD_AUTH, ALLOW_CUSTOM_AUTH, ALLOW_USER_PASSWORD_AUTH, ALLOW_USER_SRP_AUTH, ALLOW_REFRESH_TOKEN_AUTH, ALLOW_USER_AUTH, ALLOW_TOKEN_EXCHANGE_DELEGATION, ALLOW_TOKEN_EXCHANGE_IMPERSONATION
6725
6734
  # supported_identity_providers: ["ProviderNameType"],
6726
6735
  # callback_urls: ["RedirectUrlType"],
6727
6736
  # logout_urls: ["RedirectUrlType"],
@@ -6765,7 +6774,7 @@ module Aws::CognitoIdentityProvider
6765
6774
  # resp.user_pool_client.write_attributes #=> Array
6766
6775
  # resp.user_pool_client.write_attributes[0] #=> String
6767
6776
  # resp.user_pool_client.explicit_auth_flows #=> Array
6768
- # resp.user_pool_client.explicit_auth_flows[0] #=> String, one of "ADMIN_NO_SRP_AUTH", "CUSTOM_AUTH_FLOW_ONLY", "USER_PASSWORD_AUTH", "ALLOW_ADMIN_USER_PASSWORD_AUTH", "ALLOW_CUSTOM_AUTH", "ALLOW_USER_PASSWORD_AUTH", "ALLOW_USER_SRP_AUTH", "ALLOW_REFRESH_TOKEN_AUTH", "ALLOW_USER_AUTH"
6777
+ # resp.user_pool_client.explicit_auth_flows[0] #=> String, one of "ADMIN_NO_SRP_AUTH", "CUSTOM_AUTH_FLOW_ONLY", "USER_PASSWORD_AUTH", "ALLOW_ADMIN_USER_PASSWORD_AUTH", "ALLOW_CUSTOM_AUTH", "ALLOW_USER_PASSWORD_AUTH", "ALLOW_USER_SRP_AUTH", "ALLOW_REFRESH_TOKEN_AUTH", "ALLOW_USER_AUTH", "ALLOW_TOKEN_EXCHANGE_DELEGATION", "ALLOW_TOKEN_EXCHANGE_IMPERSONATION"
6769
6778
  # resp.user_pool_client.supported_identity_providers #=> Array
6770
6779
  # resp.user_pool_client.supported_identity_providers[0] #=> String
6771
6780
  # resp.user_pool_client.callback_urls #=> Array
@@ -8272,7 +8281,7 @@ module Aws::CognitoIdentityProvider
8272
8281
  # resp.user_pool_client.write_attributes #=> Array
8273
8282
  # resp.user_pool_client.write_attributes[0] #=> String
8274
8283
  # resp.user_pool_client.explicit_auth_flows #=> Array
8275
- # resp.user_pool_client.explicit_auth_flows[0] #=> String, one of "ADMIN_NO_SRP_AUTH", "CUSTOM_AUTH_FLOW_ONLY", "USER_PASSWORD_AUTH", "ALLOW_ADMIN_USER_PASSWORD_AUTH", "ALLOW_CUSTOM_AUTH", "ALLOW_USER_PASSWORD_AUTH", "ALLOW_USER_SRP_AUTH", "ALLOW_REFRESH_TOKEN_AUTH", "ALLOW_USER_AUTH"
8284
+ # resp.user_pool_client.explicit_auth_flows[0] #=> String, one of "ADMIN_NO_SRP_AUTH", "CUSTOM_AUTH_FLOW_ONLY", "USER_PASSWORD_AUTH", "ALLOW_ADMIN_USER_PASSWORD_AUTH", "ALLOW_CUSTOM_AUTH", "ALLOW_USER_PASSWORD_AUTH", "ALLOW_USER_SRP_AUTH", "ALLOW_REFRESH_TOKEN_AUTH", "ALLOW_USER_AUTH", "ALLOW_TOKEN_EXCHANGE_DELEGATION", "ALLOW_TOKEN_EXCHANGE_IMPERSONATION"
8276
8285
  # resp.user_pool_client.supported_identity_providers #=> Array
8277
8286
  # resp.user_pool_client.supported_identity_providers[0] #=> String
8278
8287
  # resp.user_pool_client.callback_urls #=> Array
@@ -8768,6 +8777,187 @@ module Aws::CognitoIdentityProvider
8768
8777
  req.send_request(options)
8769
8778
  end
8770
8779
 
8780
+ # Exchanges an existing token for a new token that is scoped and
8781
+ # audience-bound for a specific downstream service, following the OAuth
8782
+ # 2.0 Token Exchange grant type. For more information about the OAuth
8783
+ # 2.0 Token Exchange grant type, see [RFC 8693 - OAuth 2.0 Token
8784
+ # Exchange][1] on the IETF website. Present a `SubjectToken`, the
8785
+ # credential that you already hold, to receive a new token appropriate
8786
+ # for calling a specific resource server or audience.
8787
+ #
8788
+ # If you also present an `ActorToken` that identifies an intermediary
8789
+ # service, the issued token carries an `act` claim that identifies the
8790
+ # intermediary, and downstream services can distinguish a user acting
8791
+ # directly from an intermediary acting on the user's behalf. If you
8792
+ # don't present an `ActorToken`, the issued token appears as if the
8793
+ # user acted directly.
8794
+ #
8795
+ # To use this operation, you must have IAM credentials, or you must
8796
+ # present the requesting app client's `ClientId` and, if the client has
8797
+ # a secret, `ClientSecret`, in the request.
8798
+ #
8799
+ # The requesting app client must have
8800
+ # `ALLOW_TOKEN_EXCHANGE_IMPERSONATION` or
8801
+ # `ALLOW_TOKEN_EXCHANGE_DELEGATION` in its `ExplicitAuthFlows`
8802
+ # (depending on whether you include an `ActorToken`), or the request
8803
+ # fails.
8804
+ #
8805
+ #
8806
+ #
8807
+ # [1]: https://tools.ietf.org/html/rfc8693
8808
+ #
8809
+ # @option params [required, String] :client_id
8810
+ # The ID of the app client that requests the token exchange.
8811
+ #
8812
+ # @option params [String] :client_secret
8813
+ # The client secret of the requested app client, if the client has a
8814
+ # secret.
8815
+ #
8816
+ # @option params [required, String] :subject_token
8817
+ # The token that you want to exchange for a new token. This is the
8818
+ # credential that represents the identity of the party on behalf of whom
8819
+ # the request is being made.
8820
+ #
8821
+ # @option params [required, String] :subject_token_type
8822
+ # The type of the `SubjectToken` that you want to exchange. Valid
8823
+ # values:
8824
+ #
8825
+ # * `ACCESS_TOKEN` – The subject token is an access token.
8826
+ #
8827
+ # * `ID_TOKEN` – The subject token is an ID token.
8828
+ #
8829
+ # * `SAML2` – The subject token is a SAML 2.0 assertion.
8830
+ #
8831
+ # @option params [String] :subject_token_provider_name
8832
+ # The name of the third-party identity provider that issued the
8833
+ # `SubjectToken`, if the subject token isn't a Amazon Cognito token.
8834
+ # Provide this value when your `SubjectToken` came from a SAML or OIDC
8835
+ # provider that you registered with your user pool, so that Amazon
8836
+ # Cognito can validate it against that provider's configuration. Omit
8837
+ # this parameter for a Amazon Cognito ID or access token.
8838
+ #
8839
+ # @option params [String] :actor_token
8840
+ # A token that identifies the intermediary service that is exchanging
8841
+ # the token on behalf of the user. When you provide an `ActorToken`, the
8842
+ # token that Amazon Cognito issues carries an `act` claim that
8843
+ # identifies the intermediary, so that downstream services can
8844
+ # distinguish a user acting directly from an intermediary acting on the
8845
+ # user's behalf.
8846
+ #
8847
+ # @option params [String] :actor_token_type
8848
+ # The type of the `ActorToken` that you provide. Required when you
8849
+ # provide an `ActorToken`. Valid values:
8850
+ #
8851
+ # * `ACCESS_TOKEN` – The actor token is an access token.
8852
+ #
8853
+ # * `ID_TOKEN` – The actor token is an ID token.
8854
+ #
8855
+ # * `SAML2` – The actor token is a SAML 2.0 assertion.
8856
+ #
8857
+ # @option params [String] :actor_token_provider_name
8858
+ # The name of the third-party identity provider that issued the
8859
+ # `ActorToken`, if the actor token isn't a Amazon Cognito token.
8860
+ #
8861
+ # @option params [Array<String>] :scopes
8862
+ # The scopes that you want the new token to have. Amazon Cognito issues
8863
+ # a token with the intersection of these requested scopes, the scopes of
8864
+ # your `SubjectToken`, and the scopes that are allowed for the
8865
+ # requesting app client. If you don't specify any scopes, Amazon
8866
+ # Cognito issues a token with the same scopes as your `SubjectToken`.
8867
+ #
8868
+ # @option params [Array<String>] :audiences
8869
+ # The logical name of the target service where you intend to use the
8870
+ # issued token. You can't request both `Audiences` and `Resources` in
8871
+ # the same request.
8872
+ #
8873
+ # @option params [Array<String>] :resources
8874
+ # The identifier of a resource server in your user pool where you intend
8875
+ # to use the issued token. You can't request both `Resources` and
8876
+ # `Audiences` in the same request.
8877
+ #
8878
+ # @option params [String] :requested_token_type
8879
+ # The type of token that you want Amazon Cognito to issue. Valid values:
8880
+ #
8881
+ # * `ACCESS_TOKEN` – Issues an access token.
8882
+ #
8883
+ # * `ID_TOKEN` – Issues an ID token.
8884
+ #
8885
+ # Amazon Cognito can't issue a SAML assertion, so `SAML2` isn't a
8886
+ # valid value for this parameter.
8887
+ #
8888
+ # @return [Types::GetDerivedTokenResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
8889
+ #
8890
+ # * {Types::GetDerivedTokenResponse#issued_token #issued_token} => String
8891
+ # * {Types::GetDerivedTokenResponse#issued_token_type #issued_token_type} => String
8892
+ # * {Types::GetDerivedTokenResponse#token_type #token_type} => String
8893
+ # * {Types::GetDerivedTokenResponse#expires_in #expires_in} => Integer
8894
+ # * {Types::GetDerivedTokenResponse#scopes #scopes} => Array&lt;String&gt;
8895
+ #
8896
+ #
8897
+ # @example Example: Example exchange a subject token for an audience-bound access token
8898
+ #
8899
+ # # The following example exchanges an access token for a new access token that is scoped and audience-bound for the
8900
+ # # solar-system-data resource server.
8901
+ #
8902
+ # resp = client.get_derived_token({
8903
+ # audiences: [
8904
+ # "solar-system-data",
8905
+ # ],
8906
+ # client_id: "1example23456789",
8907
+ # client_secret: "13ka4h7u28d9oo44tqpq9djqsfvhvu8rk4d2ighvpu0k8fj1c2r9",
8908
+ # scopes: [
8909
+ # "solar-system-data/asteroids.read",
8910
+ # ],
8911
+ # subject_token: "eyJra456defEXAMPLE",
8912
+ # subject_token_type: "ACCESS_TOKEN",
8913
+ # })
8914
+ #
8915
+ # resp.to_h outputs the following:
8916
+ # {
8917
+ # expires_in: 3600,
8918
+ # issued_token: "eyJra789ghiEXAMPLE",
8919
+ # issued_token_type: "ACCESS_TOKEN",
8920
+ # scopes: [
8921
+ # "solar-system-data/asteroids.read",
8922
+ # ],
8923
+ # token_type: "Bearer",
8924
+ # }
8925
+ #
8926
+ # @example Request syntax with placeholder values
8927
+ #
8928
+ # resp = client.get_derived_token({
8929
+ # client_id: "ClientIdType", # required
8930
+ # client_secret: "ClientSecretType",
8931
+ # subject_token: "GetDerivedTokenTokenModelType", # required
8932
+ # subject_token_type: "ACCESS_TOKEN", # required, accepts ACCESS_TOKEN, ID_TOKEN, SAML2
8933
+ # subject_token_provider_name: "ProviderNameType",
8934
+ # actor_token: "GetDerivedTokenTokenModelType",
8935
+ # actor_token_type: "ACCESS_TOKEN", # accepts ACCESS_TOKEN, ID_TOKEN, SAML2
8936
+ # actor_token_provider_name: "ProviderNameType",
8937
+ # scopes: ["ScopeType"],
8938
+ # audiences: ["AudienceType"],
8939
+ # resources: ["ResourceServerIdentifierType"],
8940
+ # requested_token_type: "ACCESS_TOKEN", # accepts ACCESS_TOKEN, ID_TOKEN
8941
+ # })
8942
+ #
8943
+ # @example Response structure
8944
+ #
8945
+ # resp.issued_token #=> String
8946
+ # resp.issued_token_type #=> String, one of "ACCESS_TOKEN", "ID_TOKEN"
8947
+ # resp.token_type #=> String, one of "Bearer", "N_A"
8948
+ # resp.expires_in #=> Integer
8949
+ # resp.scopes #=> Array
8950
+ # resp.scopes[0] #=> String
8951
+ #
8952
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetDerivedToken AWS API Documentation
8953
+ #
8954
+ # @overload get_derived_token(params = {})
8955
+ # @param [Hash] params ({})
8956
+ def get_derived_token(params = {}, options = {})
8957
+ req = build_request(:get_derived_token, params)
8958
+ req.send_request(options)
8959
+ end
8960
+
8771
8961
  # Given a device key, returns information about a remembered device for
8772
8962
  # the current user. For more information about device authentication,
8773
8963
  # see [Working with user devices in your user pool][1].
@@ -14909,6 +15099,15 @@ module Aws::CognitoIdentityProvider
14909
15099
  #
14910
15100
  # * `ALLOW_REFRESH_TOKEN_AUTH`: Enable authflow to refresh tokens.
14911
15101
  #
15102
+ # * `ALLOW_TOKEN_EXCHANGE_IMPERSONATION` – Use this flow to request
15103
+ # `GetDerivedToken` token exchanges without an `ActorToken`. The
15104
+ # issued token represents the subject user directly.
15105
+ #
15106
+ # * `ALLOW_TOKEN_EXCHANGE_DELEGATION` – Use this flow to request
15107
+ # `GetDerivedToken` token exchanges that include an `ActorToken`. The
15108
+ # issued token carries an `act` claim that identifies the intermediary
15109
+ # acting on the behalf of the subject.
15110
+ #
14912
15111
  # In some environments, you will see the values `ADMIN_NO_SRP_AUTH`,
14913
15112
  # `CUSTOM_AUTH_FLOW_ONLY`, or `USER_PASSWORD_AUTH`. You can't assign
14914
15113
  # these legacy `ExplicitAuthFlows` values to user pool clients at the
@@ -15126,7 +15325,7 @@ module Aws::CognitoIdentityProvider
15126
15325
  # },
15127
15326
  # read_attributes: ["ClientPermissionType"],
15128
15327
  # write_attributes: ["ClientPermissionType"],
15129
- # explicit_auth_flows: ["ADMIN_NO_SRP_AUTH"], # accepts ADMIN_NO_SRP_AUTH, CUSTOM_AUTH_FLOW_ONLY, USER_PASSWORD_AUTH, ALLOW_ADMIN_USER_PASSWORD_AUTH, ALLOW_CUSTOM_AUTH, ALLOW_USER_PASSWORD_AUTH, ALLOW_USER_SRP_AUTH, ALLOW_REFRESH_TOKEN_AUTH, ALLOW_USER_AUTH
15328
+ # explicit_auth_flows: ["ADMIN_NO_SRP_AUTH"], # accepts ADMIN_NO_SRP_AUTH, CUSTOM_AUTH_FLOW_ONLY, USER_PASSWORD_AUTH, ALLOW_ADMIN_USER_PASSWORD_AUTH, ALLOW_CUSTOM_AUTH, ALLOW_USER_PASSWORD_AUTH, ALLOW_USER_SRP_AUTH, ALLOW_REFRESH_TOKEN_AUTH, ALLOW_USER_AUTH, ALLOW_TOKEN_EXCHANGE_DELEGATION, ALLOW_TOKEN_EXCHANGE_IMPERSONATION
15130
15329
  # supported_identity_providers: ["ProviderNameType"],
15131
15330
  # callback_urls: ["RedirectUrlType"],
15132
15331
  # logout_urls: ["RedirectUrlType"],
@@ -15170,7 +15369,7 @@ module Aws::CognitoIdentityProvider
15170
15369
  # resp.user_pool_client.write_attributes #=> Array
15171
15370
  # resp.user_pool_client.write_attributes[0] #=> String
15172
15371
  # resp.user_pool_client.explicit_auth_flows #=> Array
15173
- # resp.user_pool_client.explicit_auth_flows[0] #=> String, one of "ADMIN_NO_SRP_AUTH", "CUSTOM_AUTH_FLOW_ONLY", "USER_PASSWORD_AUTH", "ALLOW_ADMIN_USER_PASSWORD_AUTH", "ALLOW_CUSTOM_AUTH", "ALLOW_USER_PASSWORD_AUTH", "ALLOW_USER_SRP_AUTH", "ALLOW_REFRESH_TOKEN_AUTH", "ALLOW_USER_AUTH"
15372
+ # resp.user_pool_client.explicit_auth_flows[0] #=> String, one of "ADMIN_NO_SRP_AUTH", "CUSTOM_AUTH_FLOW_ONLY", "USER_PASSWORD_AUTH", "ALLOW_ADMIN_USER_PASSWORD_AUTH", "ALLOW_CUSTOM_AUTH", "ALLOW_USER_PASSWORD_AUTH", "ALLOW_USER_SRP_AUTH", "ALLOW_REFRESH_TOKEN_AUTH", "ALLOW_USER_AUTH", "ALLOW_TOKEN_EXCHANGE_DELEGATION", "ALLOW_TOKEN_EXCHANGE_IMPERSONATION"
15174
15373
  # resp.user_pool_client.supported_identity_providers #=> Array
15175
15374
  # resp.user_pool_client.supported_identity_providers[0] #=> String
15176
15375
  # resp.user_pool_client.callback_urls #=> Array
@@ -15543,7 +15742,7 @@ module Aws::CognitoIdentityProvider
15543
15742
  tracer: tracer
15544
15743
  )
15545
15744
  context[:gem_name] = 'aws-sdk-cognitoidentityprovider'
15546
- context[:gem_version] = '1.165.0'
15745
+ context[:gem_version] = '1.166.0'
15547
15746
  Seahorse::Client::Request.new(handlers, context)
15548
15747
  end
15549
15748
 
@@ -117,6 +117,8 @@ module Aws::CognitoIdentityProvider
117
117
  AttributeType = Shapes::StructureShape.new(name: 'AttributeType')
118
118
  AttributeValueType = Shapes::StringShape.new(name: 'AttributeValueType')
119
119
  AttributesRequireVerificationBeforeUpdateType = Shapes::ListShape.new(name: 'AttributesRequireVerificationBeforeUpdateType')
120
+ AudienceListType = Shapes::ListShape.new(name: 'AudienceListType')
121
+ AudienceType = Shapes::StringShape.new(name: 'AudienceType')
120
122
  AuthEventType = Shapes::StructureShape.new(name: 'AuthEventType')
121
123
  AuthEventsType = Shapes::ListShape.new(name: 'AuthEventsType')
122
124
  AuthFactorType = Shapes::StringShape.new(name: 'AuthFactorType')
@@ -306,6 +308,9 @@ module Aws::CognitoIdentityProvider
306
308
  GetCSVHeaderResponse = Shapes::StructureShape.new(name: 'GetCSVHeaderResponse')
307
309
  GetClientTokenRequest = Shapes::StructureShape.new(name: 'GetClientTokenRequest')
308
310
  GetClientTokenResponse = Shapes::StructureShape.new(name: 'GetClientTokenResponse')
311
+ GetDerivedTokenRequest = Shapes::StructureShape.new(name: 'GetDerivedTokenRequest')
312
+ GetDerivedTokenResponse = Shapes::StructureShape.new(name: 'GetDerivedTokenResponse')
313
+ GetDerivedTokenTokenModelType = Shapes::StringShape.new(name: 'GetDerivedTokenTokenModelType')
309
314
  GetDeviceRequest = Shapes::StructureShape.new(name: 'GetDeviceRequest')
310
315
  GetDeviceResponse = Shapes::StructureShape.new(name: 'GetDeviceResponse')
311
316
  GetGroupRequest = Shapes::StructureShape.new(name: 'GetGroupRequest')
@@ -367,6 +372,7 @@ module Aws::CognitoIdentityProvider
367
372
  InvalidSmsRoleAccessPolicyException = Shapes::StructureShape.new(name: 'InvalidSmsRoleAccessPolicyException')
368
373
  InvalidSmsRoleTrustRelationshipException = Shapes::StructureShape.new(name: 'InvalidSmsRoleTrustRelationshipException')
369
374
  InvalidUserPoolConfigurationException = Shapes::StructureShape.new(name: 'InvalidUserPoolConfigurationException')
375
+ IssuedTokenTypeIdentifierType = Shapes::StringShape.new(name: 'IssuedTokenTypeIdentifierType')
370
376
  IssuerConfigurationType = Shapes::StructureShape.new(name: 'IssuerConfigurationType')
371
377
  IssuerType = Shapes::StringShape.new(name: 'IssuerType')
372
378
  KeyConfigurationType = Shapes::StructureShape.new(name: 'KeyConfigurationType')
@@ -435,6 +441,7 @@ module Aws::CognitoIdentityProvider
435
441
  NumberAttributeConstraintsType = Shapes::StructureShape.new(name: 'NumberAttributeConstraintsType')
436
442
  OAuthFlowType = Shapes::StringShape.new(name: 'OAuthFlowType')
437
443
  OAuthFlowsType = Shapes::ListShape.new(name: 'OAuthFlowsType')
444
+ OAuthTokenTypeType = Shapes::StringShape.new(name: 'OAuthTokenTypeType')
438
445
  OperationNotEnabledException = Shapes::StructureShape.new(name: 'OperationNotEnabledException')
439
446
  OptionalArnType = Shapes::StringShape.new(name: 'OptionalArnType')
440
447
  PaginationKey = Shapes::StringShape.new(name: 'PaginationKey')
@@ -478,6 +485,7 @@ module Aws::CognitoIdentityProvider
478
485
  ResendConfirmationCodeRequest = Shapes::StructureShape.new(name: 'ResendConfirmationCodeRequest')
479
486
  ResendConfirmationCodeResponse = Shapes::StructureShape.new(name: 'ResendConfirmationCodeResponse')
480
487
  ResourceIdType = Shapes::StringShape.new(name: 'ResourceIdType')
488
+ ResourceListType = Shapes::ListShape.new(name: 'ResourceListType')
481
489
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
482
490
  ResourceServerIdentifierType = Shapes::StringShape.new(name: 'ResourceServerIdentifierType')
483
491
  ResourceServerManagedByType = Shapes::StringShape.new(name: 'ResourceServerManagedByType')
@@ -583,6 +591,7 @@ module Aws::CognitoIdentityProvider
583
591
  TierChangeNotAllowedException = Shapes::StructureShape.new(name: 'TierChangeNotAllowedException')
584
592
  TimeUnitsType = Shapes::StringShape.new(name: 'TimeUnitsType')
585
593
  TokenModelType = Shapes::StringShape.new(name: 'TokenModelType')
594
+ TokenTypeIdentifierType = Shapes::StringShape.new(name: 'TokenTypeIdentifierType')
586
595
  TokenValidityUnitsType = Shapes::StructureShape.new(name: 'TokenValidityUnitsType')
587
596
  TooManyFailedAttemptsException = Shapes::StructureShape.new(name: 'TooManyFailedAttemptsException')
588
597
  TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
@@ -1042,6 +1051,8 @@ module Aws::CognitoIdentityProvider
1042
1051
 
1043
1052
  AttributesRequireVerificationBeforeUpdateType.member = Shapes::ShapeRef.new(shape: VerifiedAttributeType)
1044
1053
 
1054
+ AudienceListType.member = Shapes::ShapeRef.new(shape: AudienceType)
1055
+
1045
1056
  AuthEventType.add_member(:event_id, Shapes::ShapeRef.new(shape: StringType, location_name: "EventId"))
1046
1057
  AuthEventType.add_member(:event_type, Shapes::ShapeRef.new(shape: EventType, location_name: "EventType"))
1047
1058
  AuthEventType.add_member(:creation_date, Shapes::ShapeRef.new(shape: DateType, location_name: "CreationDate"))
@@ -1622,6 +1633,27 @@ module Aws::CognitoIdentityProvider
1622
1633
  GetClientTokenResponse.add_member(:client_authentication_result, Shapes::ShapeRef.new(shape: ClientAuthenticationResultType, location_name: "ClientAuthenticationResult"))
1623
1634
  GetClientTokenResponse.struct_class = Types::GetClientTokenResponse
1624
1635
 
1636
+ GetDerivedTokenRequest.add_member(:client_id, Shapes::ShapeRef.new(shape: ClientIdType, required: true, location_name: "ClientId"))
1637
+ GetDerivedTokenRequest.add_member(:client_secret, Shapes::ShapeRef.new(shape: ClientSecretType, location_name: "ClientSecret"))
1638
+ GetDerivedTokenRequest.add_member(:subject_token, Shapes::ShapeRef.new(shape: GetDerivedTokenTokenModelType, required: true, location_name: "SubjectToken"))
1639
+ GetDerivedTokenRequest.add_member(:subject_token_type, Shapes::ShapeRef.new(shape: TokenTypeIdentifierType, required: true, location_name: "SubjectTokenType"))
1640
+ GetDerivedTokenRequest.add_member(:subject_token_provider_name, Shapes::ShapeRef.new(shape: ProviderNameType, location_name: "SubjectTokenProviderName"))
1641
+ GetDerivedTokenRequest.add_member(:actor_token, Shapes::ShapeRef.new(shape: GetDerivedTokenTokenModelType, location_name: "ActorToken"))
1642
+ GetDerivedTokenRequest.add_member(:actor_token_type, Shapes::ShapeRef.new(shape: TokenTypeIdentifierType, location_name: "ActorTokenType"))
1643
+ GetDerivedTokenRequest.add_member(:actor_token_provider_name, Shapes::ShapeRef.new(shape: ProviderNameType, location_name: "ActorTokenProviderName"))
1644
+ GetDerivedTokenRequest.add_member(:scopes, Shapes::ShapeRef.new(shape: ScopeListType, location_name: "Scopes"))
1645
+ GetDerivedTokenRequest.add_member(:audiences, Shapes::ShapeRef.new(shape: AudienceListType, location_name: "Audiences"))
1646
+ GetDerivedTokenRequest.add_member(:resources, Shapes::ShapeRef.new(shape: ResourceListType, location_name: "Resources"))
1647
+ GetDerivedTokenRequest.add_member(:requested_token_type, Shapes::ShapeRef.new(shape: IssuedTokenTypeIdentifierType, location_name: "RequestedTokenType"))
1648
+ GetDerivedTokenRequest.struct_class = Types::GetDerivedTokenRequest
1649
+
1650
+ GetDerivedTokenResponse.add_member(:issued_token, Shapes::ShapeRef.new(shape: TokenModelType, required: true, location_name: "IssuedToken"))
1651
+ GetDerivedTokenResponse.add_member(:issued_token_type, Shapes::ShapeRef.new(shape: IssuedTokenTypeIdentifierType, required: true, location_name: "IssuedTokenType"))
1652
+ GetDerivedTokenResponse.add_member(:token_type, Shapes::ShapeRef.new(shape: OAuthTokenTypeType, required: true, location_name: "TokenType"))
1653
+ GetDerivedTokenResponse.add_member(:expires_in, Shapes::ShapeRef.new(shape: IntegerType, location_name: "ExpiresIn"))
1654
+ GetDerivedTokenResponse.add_member(:scopes, Shapes::ShapeRef.new(shape: ScopeListType, location_name: "Scopes"))
1655
+ GetDerivedTokenResponse.struct_class = Types::GetDerivedTokenResponse
1656
+
1625
1657
  GetDeviceRequest.add_member(:device_key, Shapes::ShapeRef.new(shape: DeviceKeyType, required: true, location_name: "DeviceKey"))
1626
1658
  GetDeviceRequest.add_member(:access_token, Shapes::ShapeRef.new(shape: TokenModelType, location_name: "AccessToken"))
1627
1659
  GetDeviceRequest.struct_class = Types::GetDeviceRequest
@@ -2129,6 +2161,8 @@ module Aws::CognitoIdentityProvider
2129
2161
  ResendConfirmationCodeResponse.add_member(:code_delivery_details, Shapes::ShapeRef.new(shape: CodeDeliveryDetailsType, location_name: "CodeDeliveryDetails"))
2130
2162
  ResendConfirmationCodeResponse.struct_class = Types::ResendConfirmationCodeResponse
2131
2163
 
2164
+ ResourceListType.member = Shapes::ShapeRef.new(shape: ResourceServerIdentifierType)
2165
+
2132
2166
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: MessageType, location_name: "message"))
2133
2167
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
2134
2168
 
@@ -4185,6 +4219,25 @@ module Aws::CognitoIdentityProvider
4185
4219
  o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
4186
4220
  end)
4187
4221
 
4222
+ api.add_operation(:get_derived_token, Seahorse::Model::Operation.new.tap do |o|
4223
+ o.name = "GetDerivedToken"
4224
+ o.http_method = "POST"
4225
+ o.http_request_uri = "/"
4226
+ o.input = Shapes::ShapeRef.new(shape: GetDerivedTokenRequest)
4227
+ o.output = Shapes::ShapeRef.new(shape: GetDerivedTokenResponse)
4228
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
4229
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
4230
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
4231
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
4232
+ o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
4233
+ o.errors << Shapes::ShapeRef.new(shape: UnexpectedLambdaException)
4234
+ o.errors << Shapes::ShapeRef.new(shape: UserLambdaValidationException)
4235
+ o.errors << Shapes::ShapeRef.new(shape: InvalidLambdaResponseException)
4236
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
4237
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotEnabledException)
4238
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
4239
+ end)
4240
+
4188
4241
  api.add_operation(:get_device, Seahorse::Model::Operation.new.tap do |o|
4189
4242
  o.name = "GetDevice"
4190
4243
  o.http_method = "POST"
@@ -4563,6 +4563,15 @@ module Aws::CognitoIdentityProvider
4563
4563
  #
4564
4564
  # * `ALLOW_REFRESH_TOKEN_AUTH`: Enable authflow to refresh tokens.
4565
4565
  #
4566
+ # * `ALLOW_TOKEN_EXCHANGE_IMPERSONATION` – Use this flow to request
4567
+ # `GetDerivedToken` token exchanges without an `ActorToken`. The
4568
+ # issued token represents the subject user directly.
4569
+ #
4570
+ # * `ALLOW_TOKEN_EXCHANGE_DELEGATION` – Use this flow to request
4571
+ # `GetDerivedToken` token exchanges that include an `ActorToken`.
4572
+ # The issued token carries an `act` claim that identifies the
4573
+ # intermediary acting on the behalf of the subject.
4574
+ #
4566
4575
  # In some environments, you will see the values `ADMIN_NO_SRP_AUTH`,
4567
4576
  # `CUSTOM_AUTH_FLOW_ONLY`, or `USER_PASSWORD_AUTH`. You can't assign
4568
4577
  # these legacy `ExplicitAuthFlows` values to user pool clients at the
@@ -7150,6 +7159,158 @@ module Aws::CognitoIdentityProvider
7150
7159
  include Aws::Structure
7151
7160
  end
7152
7161
 
7162
+ # Represents the request to exchange a subject token for a new token.
7163
+ #
7164
+ # @!attribute [rw] client_id
7165
+ # The ID of the app client that requests the token exchange.
7166
+ # @return [String]
7167
+ #
7168
+ # @!attribute [rw] client_secret
7169
+ # The client secret of the requested app client, if the client has a
7170
+ # secret.
7171
+ # @return [String]
7172
+ #
7173
+ # @!attribute [rw] subject_token
7174
+ # The token that you want to exchange for a new token. This is the
7175
+ # credential that represents the identity of the party on behalf of
7176
+ # whom the request is being made.
7177
+ # @return [String]
7178
+ #
7179
+ # @!attribute [rw] subject_token_type
7180
+ # The type of the `SubjectToken` that you want to exchange. Valid
7181
+ # values:
7182
+ #
7183
+ # * `ACCESS_TOKEN` – The subject token is an access token.
7184
+ #
7185
+ # * `ID_TOKEN` – The subject token is an ID token.
7186
+ #
7187
+ # * `SAML2` – The subject token is a SAML 2.0 assertion.
7188
+ # @return [String]
7189
+ #
7190
+ # @!attribute [rw] subject_token_provider_name
7191
+ # The name of the third-party identity provider that issued the
7192
+ # `SubjectToken`, if the subject token isn't a Amazon Cognito token.
7193
+ # Provide this value when your `SubjectToken` came from a SAML or OIDC
7194
+ # provider that you registered with your user pool, so that Amazon
7195
+ # Cognito can validate it against that provider's configuration. Omit
7196
+ # this parameter for a Amazon Cognito ID or access token.
7197
+ # @return [String]
7198
+ #
7199
+ # @!attribute [rw] actor_token
7200
+ # A token that identifies the intermediary service that is exchanging
7201
+ # the token on behalf of the user. When you provide an `ActorToken`,
7202
+ # the token that Amazon Cognito issues carries an `act` claim that
7203
+ # identifies the intermediary, so that downstream services can
7204
+ # distinguish a user acting directly from an intermediary acting on
7205
+ # the user's behalf.
7206
+ # @return [String]
7207
+ #
7208
+ # @!attribute [rw] actor_token_type
7209
+ # The type of the `ActorToken` that you provide. Required when you
7210
+ # provide an `ActorToken`. Valid values:
7211
+ #
7212
+ # * `ACCESS_TOKEN` – The actor token is an access token.
7213
+ #
7214
+ # * `ID_TOKEN` – The actor token is an ID token.
7215
+ #
7216
+ # * `SAML2` – The actor token is a SAML 2.0 assertion.
7217
+ # @return [String]
7218
+ #
7219
+ # @!attribute [rw] actor_token_provider_name
7220
+ # The name of the third-party identity provider that issued the
7221
+ # `ActorToken`, if the actor token isn't a Amazon Cognito token.
7222
+ # @return [String]
7223
+ #
7224
+ # @!attribute [rw] scopes
7225
+ # The scopes that you want the new token to have. Amazon Cognito
7226
+ # issues a token with the intersection of these requested scopes, the
7227
+ # scopes of your `SubjectToken`, and the scopes that are allowed for
7228
+ # the requesting app client. If you don't specify any scopes, Amazon
7229
+ # Cognito issues a token with the same scopes as your `SubjectToken`.
7230
+ # @return [Array<String>]
7231
+ #
7232
+ # @!attribute [rw] audiences
7233
+ # The logical name of the target service where you intend to use the
7234
+ # issued token. You can't request both `Audiences` and `Resources` in
7235
+ # the same request.
7236
+ # @return [Array<String>]
7237
+ #
7238
+ # @!attribute [rw] resources
7239
+ # The identifier of a resource server in your user pool where you
7240
+ # intend to use the issued token. You can't request both `Resources`
7241
+ # and `Audiences` in the same request.
7242
+ # @return [Array<String>]
7243
+ #
7244
+ # @!attribute [rw] requested_token_type
7245
+ # The type of token that you want Amazon Cognito to issue. Valid
7246
+ # values:
7247
+ #
7248
+ # * `ACCESS_TOKEN` – Issues an access token.
7249
+ #
7250
+ # * `ID_TOKEN` – Issues an ID token.
7251
+ #
7252
+ # Amazon Cognito can't issue a SAML assertion, so `SAML2` isn't a
7253
+ # valid value for this parameter.
7254
+ # @return [String]
7255
+ #
7256
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetDerivedTokenRequest AWS API Documentation
7257
+ #
7258
+ class GetDerivedTokenRequest < Struct.new(
7259
+ :client_id,
7260
+ :client_secret,
7261
+ :subject_token,
7262
+ :subject_token_type,
7263
+ :subject_token_provider_name,
7264
+ :actor_token,
7265
+ :actor_token_type,
7266
+ :actor_token_provider_name,
7267
+ :scopes,
7268
+ :audiences,
7269
+ :resources,
7270
+ :requested_token_type)
7271
+ SENSITIVE = [:client_id, :client_secret, :subject_token, :actor_token]
7272
+ include Aws::Structure
7273
+ end
7274
+
7275
+ # Represents the response to a token exchange request.
7276
+ #
7277
+ # @!attribute [rw] issued_token
7278
+ # The token that Amazon Cognito issued in response to the token
7279
+ # exchange request.
7280
+ # @return [String]
7281
+ #
7282
+ # @!attribute [rw] issued_token_type
7283
+ # The type of the token in the `IssuedToken` parameter. Valid values:
7284
+ #
7285
+ # * `ACCESS_TOKEN` – The issued token is an access token.
7286
+ #
7287
+ # * `ID_TOKEN` – The issued token is an ID token.
7288
+ # @return [String]
7289
+ #
7290
+ # @!attribute [rw] token_type
7291
+ # The type of the issued token. For example, `Bearer`.
7292
+ # @return [String]
7293
+ #
7294
+ # @!attribute [rw] expires_in
7295
+ # The number of seconds until the issued token expires.
7296
+ # @return [Integer]
7297
+ #
7298
+ # @!attribute [rw] scopes
7299
+ # The scopes that Amazon Cognito granted in the issued token.
7300
+ # @return [Array<String>]
7301
+ #
7302
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetDerivedTokenResponse AWS API Documentation
7303
+ #
7304
+ class GetDerivedTokenResponse < Struct.new(
7305
+ :issued_token,
7306
+ :issued_token_type,
7307
+ :token_type,
7308
+ :expires_in,
7309
+ :scopes)
7310
+ SENSITIVE = [:issued_token]
7311
+ include Aws::Structure
7312
+ end
7313
+
7153
7314
  # Represents the request to get the device.
7154
7315
  #
7155
7316
  # @!attribute [rw] device_key
@@ -13820,6 +13981,15 @@ module Aws::CognitoIdentityProvider
13820
13981
  #
13821
13982
  # * `ALLOW_REFRESH_TOKEN_AUTH`: Enable authflow to refresh tokens.
13822
13983
  #
13984
+ # * `ALLOW_TOKEN_EXCHANGE_IMPERSONATION` – Use this flow to request
13985
+ # `GetDerivedToken` token exchanges without an `ActorToken`. The
13986
+ # issued token represents the subject user directly.
13987
+ #
13988
+ # * `ALLOW_TOKEN_EXCHANGE_DELEGATION` – Use this flow to request
13989
+ # `GetDerivedToken` token exchanges that include an `ActorToken`.
13990
+ # The issued token carries an `act` claim that identifies the
13991
+ # intermediary acting on the behalf of the subject.
13992
+ #
13823
13993
  # In some environments, you will see the values `ADMIN_NO_SRP_AUTH`,
13824
13994
  # `CUSTOM_AUTH_FLOW_ONLY`, or `USER_PASSWORD_AUTH`. You can't assign
13825
13995
  # these legacy `ExplicitAuthFlows` values to user pool clients at the
@@ -14982,6 +15152,15 @@ module Aws::CognitoIdentityProvider
14982
15152
  #
14983
15153
  # * `ALLOW_REFRESH_TOKEN_AUTH`: Enable authflow to refresh tokens.
14984
15154
  #
15155
+ # * `ALLOW_TOKEN_EXCHANGE_IMPERSONATION` – Use this flow to request
15156
+ # `GetDerivedToken` token exchanges without an `ActorToken`. The
15157
+ # issued token represents the subject user directly.
15158
+ #
15159
+ # * `ALLOW_TOKEN_EXCHANGE_DELEGATION` – Use this flow to request
15160
+ # `GetDerivedToken` token exchanges that include an `ActorToken`.
15161
+ # The issued token carries an `act` claim that identifies the
15162
+ # intermediary acting on the behalf of the subject.
15163
+ #
14985
15164
  # In some environments, you will see the values `ADMIN_NO_SRP_AUTH`,
14986
15165
  # `CUSTOM_AUTH_FLOW_ONLY`, or `USER_PASSWORD_AUTH`. You can't assign
14987
15166
  # these legacy `ExplicitAuthFlows` values to user pool clients at the
@@ -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.165.0'
57
+ GEM_VERSION = '1.166.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -811,7 +811,7 @@ module Aws
811
811
  },
812
812
  ?read_attributes: Array[::String],
813
813
  ?write_attributes: Array[::String],
814
- ?explicit_auth_flows: Array[("ADMIN_NO_SRP_AUTH" | "CUSTOM_AUTH_FLOW_ONLY" | "USER_PASSWORD_AUTH" | "ALLOW_ADMIN_USER_PASSWORD_AUTH" | "ALLOW_CUSTOM_AUTH" | "ALLOW_USER_PASSWORD_AUTH" | "ALLOW_USER_SRP_AUTH" | "ALLOW_REFRESH_TOKEN_AUTH" | "ALLOW_USER_AUTH")],
814
+ ?explicit_auth_flows: Array[("ADMIN_NO_SRP_AUTH" | "CUSTOM_AUTH_FLOW_ONLY" | "USER_PASSWORD_AUTH" | "ALLOW_ADMIN_USER_PASSWORD_AUTH" | "ALLOW_CUSTOM_AUTH" | "ALLOW_USER_PASSWORD_AUTH" | "ALLOW_USER_SRP_AUTH" | "ALLOW_REFRESH_TOKEN_AUTH" | "ALLOW_USER_AUTH" | "ALLOW_TOKEN_EXCHANGE_DELEGATION" | "ALLOW_TOKEN_EXCHANGE_IMPERSONATION")],
815
815
  ?supported_identity_providers: Array[::String],
816
816
  ?callback_urls: Array[::String],
817
817
  ?logout_urls: Array[::String],
@@ -1152,6 +1152,31 @@ module Aws
1152
1152
  ) -> _GetClientTokenResponseSuccess
1153
1153
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetClientTokenResponseSuccess
1154
1154
 
1155
+ interface _GetDerivedTokenResponseSuccess
1156
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetDerivedTokenResponse]
1157
+ def issued_token: () -> ::String
1158
+ def issued_token_type: () -> ("ACCESS_TOKEN" | "ID_TOKEN")
1159
+ def token_type: () -> ("Bearer" | "N_A")
1160
+ def expires_in: () -> ::Integer
1161
+ def scopes: () -> ::Array[::String]
1162
+ end
1163
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CognitoIdentityProvider/Client.html#get_derived_token-instance_method
1164
+ def get_derived_token: (
1165
+ client_id: ::String,
1166
+ ?client_secret: ::String,
1167
+ subject_token: ::String,
1168
+ subject_token_type: ("ACCESS_TOKEN" | "ID_TOKEN" | "SAML2"),
1169
+ ?subject_token_provider_name: ::String,
1170
+ ?actor_token: ::String,
1171
+ ?actor_token_type: ("ACCESS_TOKEN" | "ID_TOKEN" | "SAML2"),
1172
+ ?actor_token_provider_name: ::String,
1173
+ ?scopes: Array[::String],
1174
+ ?audiences: Array[::String],
1175
+ ?resources: Array[::String],
1176
+ ?requested_token_type: ("ACCESS_TOKEN" | "ID_TOKEN")
1177
+ ) -> _GetDerivedTokenResponseSuccess
1178
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetDerivedTokenResponseSuccess
1179
+
1155
1180
  interface _GetDeviceResponseSuccess
1156
1181
  include ::Seahorse::Client::_ResponseSuccess[Types::GetDeviceResponse]
1157
1182
  def device: () -> Types::DeviceType
@@ -2129,7 +2154,7 @@ module Aws
2129
2154
  },
2130
2155
  ?read_attributes: Array[::String],
2131
2156
  ?write_attributes: Array[::String],
2132
- ?explicit_auth_flows: Array[("ADMIN_NO_SRP_AUTH" | "CUSTOM_AUTH_FLOW_ONLY" | "USER_PASSWORD_AUTH" | "ALLOW_ADMIN_USER_PASSWORD_AUTH" | "ALLOW_CUSTOM_AUTH" | "ALLOW_USER_PASSWORD_AUTH" | "ALLOW_USER_SRP_AUTH" | "ALLOW_REFRESH_TOKEN_AUTH" | "ALLOW_USER_AUTH")],
2157
+ ?explicit_auth_flows: Array[("ADMIN_NO_SRP_AUTH" | "CUSTOM_AUTH_FLOW_ONLY" | "USER_PASSWORD_AUTH" | "ALLOW_ADMIN_USER_PASSWORD_AUTH" | "ALLOW_CUSTOM_AUTH" | "ALLOW_USER_PASSWORD_AUTH" | "ALLOW_USER_SRP_AUTH" | "ALLOW_REFRESH_TOKEN_AUTH" | "ALLOW_USER_AUTH" | "ALLOW_TOKEN_EXCHANGE_DELEGATION" | "ALLOW_TOKEN_EXCHANGE_IMPERSONATION")],
2133
2158
  ?supported_identity_providers: Array[::String],
2134
2159
  ?callback_urls: Array[::String],
2135
2160
  ?logout_urls: Array[::String],
data/sig/types.rbs CHANGED
@@ -726,7 +726,7 @@ module Aws::CognitoIdentityProvider
726
726
  attr_accessor token_validity_units: Types::TokenValidityUnitsType
727
727
  attr_accessor read_attributes: ::Array[::String]
728
728
  attr_accessor write_attributes: ::Array[::String]
729
- attr_accessor explicit_auth_flows: ::Array[("ADMIN_NO_SRP_AUTH" | "CUSTOM_AUTH_FLOW_ONLY" | "USER_PASSWORD_AUTH" | "ALLOW_ADMIN_USER_PASSWORD_AUTH" | "ALLOW_CUSTOM_AUTH" | "ALLOW_USER_PASSWORD_AUTH" | "ALLOW_USER_SRP_AUTH" | "ALLOW_REFRESH_TOKEN_AUTH" | "ALLOW_USER_AUTH")]
729
+ attr_accessor explicit_auth_flows: ::Array[("ADMIN_NO_SRP_AUTH" | "CUSTOM_AUTH_FLOW_ONLY" | "USER_PASSWORD_AUTH" | "ALLOW_ADMIN_USER_PASSWORD_AUTH" | "ALLOW_CUSTOM_AUTH" | "ALLOW_USER_PASSWORD_AUTH" | "ALLOW_USER_SRP_AUTH" | "ALLOW_REFRESH_TOKEN_AUTH" | "ALLOW_USER_AUTH" | "ALLOW_TOKEN_EXCHANGE_DELEGATION" | "ALLOW_TOKEN_EXCHANGE_IMPERSONATION")]
730
730
  attr_accessor supported_identity_providers: ::Array[::String]
731
731
  attr_accessor callback_urls: ::Array[::String]
732
732
  attr_accessor logout_urls: ::Array[::String]
@@ -1232,6 +1232,31 @@ module Aws::CognitoIdentityProvider
1232
1232
  SENSITIVE: []
1233
1233
  end
1234
1234
 
1235
+ class GetDerivedTokenRequest
1236
+ attr_accessor client_id: ::String
1237
+ attr_accessor client_secret: ::String
1238
+ attr_accessor subject_token: ::String
1239
+ attr_accessor subject_token_type: ("ACCESS_TOKEN" | "ID_TOKEN" | "SAML2")
1240
+ attr_accessor subject_token_provider_name: ::String
1241
+ attr_accessor actor_token: ::String
1242
+ attr_accessor actor_token_type: ("ACCESS_TOKEN" | "ID_TOKEN" | "SAML2")
1243
+ attr_accessor actor_token_provider_name: ::String
1244
+ attr_accessor scopes: ::Array[::String]
1245
+ attr_accessor audiences: ::Array[::String]
1246
+ attr_accessor resources: ::Array[::String]
1247
+ attr_accessor requested_token_type: ("ACCESS_TOKEN" | "ID_TOKEN")
1248
+ SENSITIVE: [:client_id, :client_secret, :subject_token, :actor_token]
1249
+ end
1250
+
1251
+ class GetDerivedTokenResponse
1252
+ attr_accessor issued_token: ::String
1253
+ attr_accessor issued_token_type: ("ACCESS_TOKEN" | "ID_TOKEN")
1254
+ attr_accessor token_type: ("Bearer" | "N_A")
1255
+ attr_accessor expires_in: ::Integer
1256
+ attr_accessor scopes: ::Array[::String]
1257
+ SENSITIVE: [:issued_token]
1258
+ end
1259
+
1235
1260
  class GetDeviceRequest
1236
1261
  attr_accessor device_key: ::String
1237
1262
  attr_accessor access_token: ::String
@@ -2494,7 +2519,7 @@ module Aws::CognitoIdentityProvider
2494
2519
  attr_accessor token_validity_units: Types::TokenValidityUnitsType
2495
2520
  attr_accessor read_attributes: ::Array[::String]
2496
2521
  attr_accessor write_attributes: ::Array[::String]
2497
- attr_accessor explicit_auth_flows: ::Array[("ADMIN_NO_SRP_AUTH" | "CUSTOM_AUTH_FLOW_ONLY" | "USER_PASSWORD_AUTH" | "ALLOW_ADMIN_USER_PASSWORD_AUTH" | "ALLOW_CUSTOM_AUTH" | "ALLOW_USER_PASSWORD_AUTH" | "ALLOW_USER_SRP_AUTH" | "ALLOW_REFRESH_TOKEN_AUTH" | "ALLOW_USER_AUTH")]
2522
+ attr_accessor explicit_auth_flows: ::Array[("ADMIN_NO_SRP_AUTH" | "CUSTOM_AUTH_FLOW_ONLY" | "USER_PASSWORD_AUTH" | "ALLOW_ADMIN_USER_PASSWORD_AUTH" | "ALLOW_CUSTOM_AUTH" | "ALLOW_USER_PASSWORD_AUTH" | "ALLOW_USER_SRP_AUTH" | "ALLOW_REFRESH_TOKEN_AUTH" | "ALLOW_USER_AUTH" | "ALLOW_TOKEN_EXCHANGE_DELEGATION" | "ALLOW_TOKEN_EXCHANGE_IMPERSONATION")]
2498
2523
  attr_accessor supported_identity_providers: ::Array[::String]
2499
2524
  attr_accessor callback_urls: ::Array[::String]
2500
2525
  attr_accessor logout_urls: ::Array[::String]
@@ -2656,7 +2681,7 @@ module Aws::CognitoIdentityProvider
2656
2681
  attr_accessor token_validity_units: Types::TokenValidityUnitsType
2657
2682
  attr_accessor read_attributes: ::Array[::String]
2658
2683
  attr_accessor write_attributes: ::Array[::String]
2659
- attr_accessor explicit_auth_flows: ::Array[("ADMIN_NO_SRP_AUTH" | "CUSTOM_AUTH_FLOW_ONLY" | "USER_PASSWORD_AUTH" | "ALLOW_ADMIN_USER_PASSWORD_AUTH" | "ALLOW_CUSTOM_AUTH" | "ALLOW_USER_PASSWORD_AUTH" | "ALLOW_USER_SRP_AUTH" | "ALLOW_REFRESH_TOKEN_AUTH" | "ALLOW_USER_AUTH")]
2684
+ attr_accessor explicit_auth_flows: ::Array[("ADMIN_NO_SRP_AUTH" | "CUSTOM_AUTH_FLOW_ONLY" | "USER_PASSWORD_AUTH" | "ALLOW_ADMIN_USER_PASSWORD_AUTH" | "ALLOW_CUSTOM_AUTH" | "ALLOW_USER_PASSWORD_AUTH" | "ALLOW_USER_SRP_AUTH" | "ALLOW_REFRESH_TOKEN_AUTH" | "ALLOW_USER_AUTH" | "ALLOW_TOKEN_EXCHANGE_DELEGATION" | "ALLOW_TOKEN_EXCHANGE_IMPERSONATION")]
2660
2685
  attr_accessor supported_identity_providers: ::Array[::String]
2661
2686
  attr_accessor callback_urls: ::Array[::String]
2662
2687
  attr_accessor logout_urls: ::Array[::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.165.0
4
+ version: 1.166.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
@@ -18,7 +18,7 @@ dependencies:
18
18
  version: '3'
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 3.268.0
21
+ version: 3.269.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,7 +28,7 @@ dependencies:
28
28
  version: '3'
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
- version: 3.268.0
31
+ version: 3.269.0
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: aws-sigv4
34
34
  requirement: !ruby/object:Gem::Requirement