aws-sdk-cognitoidentityprovider 1.149.0 → 1.150.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: 596a7ce8aa6cd1e63718f70d3e9760e382113bfc5a0a384c59ee90b4a54f400d
4
- data.tar.gz: cc937a7321ff09b987ea70b47b0e9ba2e853141238ba481ea1298c6a434d0e89
3
+ metadata.gz: 23816c5ca5f2838e2ee707e3366d50b633c01a78ede71fd26c70ee97e0734786
4
+ data.tar.gz: 2edaf22d0afe0a9c394876d7014131cff90fa4ef03edb848ba25cd5fe02f6667
5
5
  SHA512:
6
- metadata.gz: 0a33ebb69d6441e6a61e0564f670e834792d19baf3305305a18d97d45c280d8138a35a3ab2ba04d836b395162a0697870ef323842f50a5db7dd3e18d548c73d7
7
- data.tar.gz: 3b66ac29709c631addae7649fc7872460dbc0eacc7e02064a2763b34ae59cab2f7ae25bdf19a98972167da8df734f432dda4bcf8205e3b24d88d5f09787c4309
6
+ metadata.gz: 66a93703201dac8f7b9e78b7f5d2a6788b1d294bc23e21917e97bc7b6fbfafabbd79c69b4216213a6c9eeac0f78aedcad112b678107f1df53a1a3b89ced43b3f
7
+ data.tar.gz: 8bc371b0b45ea97259f7b05ff568ebcb71b24eaf6eda57bca1e4bf513f00e88b8c2446dc5a8bf38d6bb5fbe3f37cf1d02e05ad988bbbf94b594abcb8b8fede4f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.150.0 (2026-08-27)
5
+ ------------------
6
+
7
+ * Feature - Adds the AdminDeleteSoftwareToken API operation, enabling administrators to remove a user's registered TOTP (software token) MFA configuration from a user pool.
8
+
4
9
  1.149.0 (2026-07-24)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.149.0
1
+ 1.150.0
@@ -1113,6 +1113,61 @@ module Aws::CognitoIdentityProvider
1113
1113
  req.send_request(options)
1114
1114
  end
1115
1115
 
1116
+ # Deletes a user's registered time-based one-time password (TOTP)
1117
+ # multi-factor authentication (MFA) factor, also known as a software
1118
+ # token. After this operation, the user can no longer sign in with TOTP
1119
+ # MFA, and can register a new TOTP factor with `AssociateSoftwareToken`.
1120
+ # Use this operation when a user loses access to their TOTP-generating
1121
+ # device, for example, a lost or reset phone, and needs to register a
1122
+ # new one.
1123
+ #
1124
+ # <note markdown="1"> Amazon Cognito evaluates Identity and Access Management (IAM) policies
1125
+ # in requests for this API operation. For this operation, you must use
1126
+ # IAM credentials to authorize requests, and you must grant yourself the
1127
+ # corresponding IAM permission in a policy.
1128
+ #
1129
+ # **Learn more**
1130
+ #
1131
+ # * [Signing Amazon Web Services API Requests][1]
1132
+ #
1133
+ # * [Using the Amazon Cognito user pools API and user pool endpoints][2]
1134
+ #
1135
+ # </note>
1136
+ #
1137
+ #
1138
+ #
1139
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html
1140
+ # [2]: https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html
1141
+ #
1142
+ # @option params [required, String] :user_pool_id
1143
+ # The ID of the user pool where you want to delete the user's software
1144
+ # token.
1145
+ #
1146
+ # @option params [required, String] :username
1147
+ # The name of the user that you want to query or modify. The value of
1148
+ # this parameter is typically your user's username, but it can be any
1149
+ # of their alias attributes. If `username` isn't an alias attribute in
1150
+ # your user pool, this value must be the `sub` of a local user or the
1151
+ # username of a user from a third-party IdP.
1152
+ #
1153
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1154
+ #
1155
+ # @example Request syntax with placeholder values
1156
+ #
1157
+ # resp = client.admin_delete_software_token({
1158
+ # user_pool_id: "UserPoolIdType", # required
1159
+ # username: "UsernameType", # required
1160
+ # })
1161
+ #
1162
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDeleteSoftwareToken AWS API Documentation
1163
+ #
1164
+ # @overload admin_delete_software_token(params = {})
1165
+ # @param [Hash] params ({})
1166
+ def admin_delete_software_token(params = {}, options = {})
1167
+ req = build_request(:admin_delete_software_token, params)
1168
+ req.send_request(options)
1169
+ end
1170
+
1116
1171
  # Deletes a user profile in your user pool.
1117
1172
  #
1118
1173
  # <note markdown="1"> Amazon Cognito evaluates Identity and Access Management (IAM) policies
@@ -2027,10 +2082,6 @@ module Aws::CognitoIdentityProvider
2027
2082
  # The `ProviderName` should be set to `Cognito` for users in Cognito
2028
2083
  # user pools.
2029
2084
  #
2030
- # All attributes in the DestinationUser profile must be mutable. If you
2031
- # have assigned the user any immutable custom attributes, the operation
2032
- # won't succeed.
2033
- #
2034
2085
  # @option params [required, Types::ProviderUserIdentifierType] :source_user
2035
2086
  # An external IdP account for a user who doesn't exist yet in the user
2036
2087
  # pool. This user must be a federated user (for example, a SAML or
@@ -7881,6 +7932,14 @@ module Aws::CognitoIdentityProvider
7881
7932
  # Given a user pool domain name, returns information about the domain
7882
7933
  # configuration.
7883
7934
  #
7935
+ # <note markdown="1"> This operation doesn't return results when you query a prefix domain
7936
+ # in a secondary Region. Prefix domains are Region-specific and can only
7937
+ # be described in the Region where they were created. To describe a
7938
+ # prefix domain for a replica user pool, make the request to the primary
7939
+ # Region's endpoint.
7940
+ #
7941
+ # </note>
7942
+ #
7884
7943
  # <note markdown="1"> Amazon Cognito evaluates Identity and Access Management (IAM) policies
7885
7944
  # in requests for this API operation. For this operation, you must use
7886
7945
  # IAM credentials to authorize requests, and you must grant yourself the
@@ -14418,7 +14477,7 @@ module Aws::CognitoIdentityProvider
14418
14477
  tracer: tracer
14419
14478
  )
14420
14479
  context[:gem_name] = 'aws-sdk-cognitoidentityprovider'
14421
- context[:gem_version] = '1.149.0'
14480
+ context[:gem_version] = '1.150.0'
14422
14481
  Seahorse::Client::Request.new(handlers, context)
14423
14482
  end
14424
14483
 
@@ -34,6 +34,8 @@ module Aws::CognitoIdentityProvider
34
34
  AdminCreateUserRequest = Shapes::StructureShape.new(name: 'AdminCreateUserRequest')
35
35
  AdminCreateUserResponse = Shapes::StructureShape.new(name: 'AdminCreateUserResponse')
36
36
  AdminCreateUserUnusedAccountValidityDaysType = Shapes::IntegerShape.new(name: 'AdminCreateUserUnusedAccountValidityDaysType')
37
+ AdminDeleteSoftwareTokenRequest = Shapes::StructureShape.new(name: 'AdminDeleteSoftwareTokenRequest')
38
+ AdminDeleteSoftwareTokenResponse = Shapes::StructureShape.new(name: 'AdminDeleteSoftwareTokenResponse')
37
39
  AdminDeleteUserAttributesRequest = Shapes::StructureShape.new(name: 'AdminDeleteUserAttributesRequest')
38
40
  AdminDeleteUserAttributesResponse = Shapes::StructureShape.new(name: 'AdminDeleteUserAttributesResponse')
39
41
  AdminDeleteUserRequest = Shapes::StructureShape.new(name: 'AdminDeleteUserRequest')
@@ -708,6 +710,12 @@ module Aws::CognitoIdentityProvider
708
710
  AdminCreateUserResponse.add_member(:user, Shapes::ShapeRef.new(shape: UserType, location_name: "User"))
709
711
  AdminCreateUserResponse.struct_class = Types::AdminCreateUserResponse
710
712
 
713
+ AdminDeleteSoftwareTokenRequest.add_member(:user_pool_id, Shapes::ShapeRef.new(shape: UserPoolIdType, required: true, location_name: "UserPoolId"))
714
+ AdminDeleteSoftwareTokenRequest.add_member(:username, Shapes::ShapeRef.new(shape: UsernameType, required: true, location_name: "Username"))
715
+ AdminDeleteSoftwareTokenRequest.struct_class = Types::AdminDeleteSoftwareTokenRequest
716
+
717
+ AdminDeleteSoftwareTokenResponse.struct_class = Types::AdminDeleteSoftwareTokenResponse
718
+
711
719
  AdminDeleteUserAttributesRequest.add_member(:user_pool_id, Shapes::ShapeRef.new(shape: UserPoolIdType, required: true, location_name: "UserPoolId"))
712
720
  AdminDeleteUserAttributesRequest.add_member(:username, Shapes::ShapeRef.new(shape: UsernameType, required: true, location_name: "Username"))
713
721
  AdminDeleteUserAttributesRequest.add_member(:user_attribute_names, Shapes::ShapeRef.new(shape: AttributeNameListType, required: true, location_name: "UserAttributeNames"))
@@ -2774,6 +2782,22 @@ module Aws::CognitoIdentityProvider
2774
2782
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
2775
2783
  end)
2776
2784
 
2785
+ api.add_operation(:admin_delete_software_token, Seahorse::Model::Operation.new.tap do |o|
2786
+ o.name = "AdminDeleteSoftwareToken"
2787
+ o.http_method = "POST"
2788
+ o.http_request_uri = "/"
2789
+ o.input = Shapes::ShapeRef.new(shape: AdminDeleteSoftwareTokenRequest)
2790
+ o.output = Shapes::ShapeRef.new(shape: AdminDeleteSoftwareTokenResponse)
2791
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2792
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2793
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
2794
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2795
+ o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
2796
+ o.errors << Shapes::ShapeRef.new(shape: UserNotConfirmedException)
2797
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotEnabledException)
2798
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
2799
+ end)
2800
+
2777
2801
  api.add_operation(:admin_delete_user, Seahorse::Model::Operation.new.tap do |o|
2778
2802
  o.name = "AdminDeleteUser"
2779
2803
  o.http_method = "POST"
@@ -593,6 +593,32 @@ module Aws::CognitoIdentityProvider
593
593
  include Aws::Structure
594
594
  end
595
595
 
596
+ # @!attribute [rw] user_pool_id
597
+ # The ID of the user pool where you want to delete the user's
598
+ # software token.
599
+ # @return [String]
600
+ #
601
+ # @!attribute [rw] username
602
+ # The name of the user that you want to query or modify. The value of
603
+ # this parameter is typically your user's username, but it can be any
604
+ # of their alias attributes. If `username` isn't an alias attribute
605
+ # in your user pool, this value must be the `sub` of a local user or
606
+ # the username of a user from a third-party IdP.
607
+ # @return [String]
608
+ #
609
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDeleteSoftwareTokenRequest AWS API Documentation
610
+ #
611
+ class AdminDeleteSoftwareTokenRequest < Struct.new(
612
+ :user_pool_id,
613
+ :username)
614
+ SENSITIVE = [:username]
615
+ include Aws::Structure
616
+ end
617
+
618
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDeleteSoftwareTokenResponse AWS API Documentation
619
+ #
620
+ class AdminDeleteSoftwareTokenResponse < Aws::EmptyStructure; end
621
+
596
622
  # Represents the request to delete user attributes as an administrator.
597
623
  #
598
624
  # @!attribute [rw] user_pool_id
@@ -1375,10 +1401,6 @@ module Aws::CognitoIdentityProvider
1375
1401
  #
1376
1402
  # The `ProviderName` should be set to `Cognito` for users in Cognito
1377
1403
  # user pools.
1378
- #
1379
- # All attributes in the DestinationUser profile must be mutable. If
1380
- # you have assigned the user any immutable custom attributes, the
1381
- # operation won't succeed.
1382
1404
  # @return [Types::ProviderUserIdentifierType]
1383
1405
  #
1384
1406
  # @!attribute [rw] source_user
@@ -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.149.0'
57
+ GEM_VERSION = '1.150.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -150,6 +150,16 @@ module Aws
150
150
  ) -> _AdminCreateUserResponseSuccess
151
151
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _AdminCreateUserResponseSuccess
152
152
 
153
+ interface _AdminDeleteSoftwareTokenResponseSuccess
154
+ include ::Seahorse::Client::_ResponseSuccess[Types::AdminDeleteSoftwareTokenResponse]
155
+ end
156
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CognitoIdentityProvider/Client.html#admin_delete_software_token-instance_method
157
+ def admin_delete_software_token: (
158
+ user_pool_id: ::String,
159
+ username: ::String
160
+ ) -> _AdminDeleteSoftwareTokenResponseSuccess
161
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _AdminDeleteSoftwareTokenResponseSuccess
162
+
153
163
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CognitoIdentityProvider/Client.html#admin_delete_user-instance_method
154
164
  def admin_delete_user: (
155
165
  user_pool_id: ::String,
data/sig/types.rbs CHANGED
@@ -100,6 +100,15 @@ module Aws::CognitoIdentityProvider
100
100
  SENSITIVE: []
101
101
  end
102
102
 
103
+ class AdminDeleteSoftwareTokenRequest
104
+ attr_accessor user_pool_id: ::String
105
+ attr_accessor username: ::String
106
+ SENSITIVE: [:username]
107
+ end
108
+
109
+ class AdminDeleteSoftwareTokenResponse < Aws::EmptyStructure
110
+ end
111
+
103
112
  class AdminDeleteUserAttributesRequest
104
113
  attr_accessor user_pool_id: ::String
105
114
  attr_accessor username: ::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.149.0
4
+ version: 1.150.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services