@aws-sdk/client-cognito-identity-provider 3.1056.0 → 3.1058.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.
Files changed (155) hide show
  1. package/README.md +28 -0
  2. package/dist-cjs/index.js +83 -0
  3. package/dist-cjs/models/errors.js +15 -2
  4. package/dist-cjs/schemas/schemas_0.js +158 -36
  5. package/dist-es/CognitoIdentityProvider.js +8 -0
  6. package/dist-es/commands/CreateUserPoolReplicaCommand.js +16 -0
  7. package/dist-es/commands/DeleteUserPoolReplicaCommand.js +16 -0
  8. package/dist-es/commands/ListUserPoolReplicasCommand.js +16 -0
  9. package/dist-es/commands/UpdateUserPoolReplicaCommand.js +16 -0
  10. package/dist-es/commands/index.js +4 -0
  11. package/dist-es/models/enums.js +22 -0
  12. package/dist-es/models/errors.js +12 -0
  13. package/dist-es/schemas/schemas_0.js +148 -27
  14. package/dist-types/CognitoIdentityProvider.d.ts +28 -0
  15. package/dist-types/CognitoIdentityProviderClient.d.ts +6 -2
  16. package/dist-types/commands/AddCustomAttributesCommand.d.ts +3 -0
  17. package/dist-types/commands/AdminAddUserToGroupCommand.d.ts +3 -0
  18. package/dist-types/commands/AdminConfirmSignUpCommand.d.ts +3 -0
  19. package/dist-types/commands/AdminCreateUserCommand.d.ts +3 -0
  20. package/dist-types/commands/AdminDeleteUserAttributesCommand.d.ts +3 -0
  21. package/dist-types/commands/AdminDeleteUserCommand.d.ts +3 -0
  22. package/dist-types/commands/AdminDisableProviderForUserCommand.d.ts +3 -0
  23. package/dist-types/commands/AdminDisableUserCommand.d.ts +3 -0
  24. package/dist-types/commands/AdminEnableUserCommand.d.ts +3 -0
  25. package/dist-types/commands/AdminForgetDeviceCommand.d.ts +3 -0
  26. package/dist-types/commands/AdminGetDeviceCommand.d.ts +3 -0
  27. package/dist-types/commands/AdminGetUserCommand.d.ts +3 -0
  28. package/dist-types/commands/AdminInitiateAuthCommand.d.ts +3 -0
  29. package/dist-types/commands/AdminLinkProviderForUserCommand.d.ts +3 -0
  30. package/dist-types/commands/AdminListDevicesCommand.d.ts +3 -0
  31. package/dist-types/commands/AdminListGroupsForUserCommand.d.ts +3 -0
  32. package/dist-types/commands/AdminListUserAuthEventsCommand.d.ts +3 -0
  33. package/dist-types/commands/AdminRemoveUserFromGroupCommand.d.ts +3 -0
  34. package/dist-types/commands/AdminResetUserPasswordCommand.d.ts +3 -0
  35. package/dist-types/commands/AdminRespondToAuthChallengeCommand.d.ts +3 -0
  36. package/dist-types/commands/AdminSetUserMFAPreferenceCommand.d.ts +3 -0
  37. package/dist-types/commands/AdminSetUserPasswordCommand.d.ts +3 -0
  38. package/dist-types/commands/AdminSetUserSettingsCommand.d.ts +3 -0
  39. package/dist-types/commands/AdminUpdateAuthEventFeedbackCommand.d.ts +3 -0
  40. package/dist-types/commands/AdminUpdateDeviceStatusCommand.d.ts +3 -0
  41. package/dist-types/commands/AdminUpdateUserAttributesCommand.d.ts +3 -0
  42. package/dist-types/commands/AdminUserGlobalSignOutCommand.d.ts +3 -0
  43. package/dist-types/commands/AssociateSoftwareTokenCommand.d.ts +3 -0
  44. package/dist-types/commands/ChangePasswordCommand.d.ts +3 -0
  45. package/dist-types/commands/CompleteWebAuthnRegistrationCommand.d.ts +3 -0
  46. package/dist-types/commands/ConfirmDeviceCommand.d.ts +3 -0
  47. package/dist-types/commands/ConfirmForgotPasswordCommand.d.ts +3 -0
  48. package/dist-types/commands/ConfirmSignUpCommand.d.ts +3 -0
  49. package/dist-types/commands/CreateGroupCommand.d.ts +3 -0
  50. package/dist-types/commands/CreateManagedLoginBrandingCommand.d.ts +3 -0
  51. package/dist-types/commands/CreateResourceServerCommand.d.ts +3 -0
  52. package/dist-types/commands/CreateTermsCommand.d.ts +3 -0
  53. package/dist-types/commands/CreateUserImportJobCommand.d.ts +3 -0
  54. package/dist-types/commands/CreateUserPoolClientCommand.d.ts +3 -0
  55. package/dist-types/commands/CreateUserPoolCommand.d.ts +14 -0
  56. package/dist-types/commands/CreateUserPoolDomainCommand.d.ts +15 -0
  57. package/dist-types/commands/CreateUserPoolReplicaCommand.d.ts +160 -0
  58. package/dist-types/commands/DeleteGroupCommand.d.ts +3 -0
  59. package/dist-types/commands/DeleteManagedLoginBrandingCommand.d.ts +3 -0
  60. package/dist-types/commands/DeleteResourceServerCommand.d.ts +3 -0
  61. package/dist-types/commands/DeleteTermsCommand.d.ts +3 -0
  62. package/dist-types/commands/DeleteUserAttributesCommand.d.ts +3 -0
  63. package/dist-types/commands/DeleteUserCommand.d.ts +3 -0
  64. package/dist-types/commands/DeleteUserPoolClientCommand.d.ts +3 -0
  65. package/dist-types/commands/DeleteUserPoolCommand.d.ts +3 -0
  66. package/dist-types/commands/DeleteUserPoolDomainCommand.d.ts +3 -0
  67. package/dist-types/commands/DeleteUserPoolReplicaCommand.d.ts +145 -0
  68. package/dist-types/commands/DeleteWebAuthnCredentialCommand.d.ts +3 -0
  69. package/dist-types/commands/DescribeManagedLoginBrandingByClientCommand.d.ts +3 -0
  70. package/dist-types/commands/DescribeManagedLoginBrandingCommand.d.ts +3 -0
  71. package/dist-types/commands/DescribeResourceServerCommand.d.ts +3 -0
  72. package/dist-types/commands/DescribeRiskConfigurationCommand.d.ts +3 -0
  73. package/dist-types/commands/DescribeTermsCommand.d.ts +3 -0
  74. package/dist-types/commands/DescribeUserImportJobCommand.d.ts +3 -0
  75. package/dist-types/commands/DescribeUserPoolClientCommand.d.ts +3 -0
  76. package/dist-types/commands/DescribeUserPoolCommand.d.ts +10 -0
  77. package/dist-types/commands/DescribeUserPoolDomainCommand.d.ts +9 -0
  78. package/dist-types/commands/ForgetDeviceCommand.d.ts +3 -0
  79. package/dist-types/commands/ForgotPasswordCommand.d.ts +3 -0
  80. package/dist-types/commands/GetCSVHeaderCommand.d.ts +3 -0
  81. package/dist-types/commands/GetDeviceCommand.d.ts +3 -0
  82. package/dist-types/commands/GetGroupCommand.d.ts +3 -0
  83. package/dist-types/commands/GetSigningCertificateCommand.d.ts +3 -0
  84. package/dist-types/commands/GetTokensFromRefreshTokenCommand.d.ts +3 -0
  85. package/dist-types/commands/GetUICustomizationCommand.d.ts +3 -0
  86. package/dist-types/commands/GetUserAttributeVerificationCodeCommand.d.ts +3 -0
  87. package/dist-types/commands/GetUserAuthFactorsCommand.d.ts +3 -0
  88. package/dist-types/commands/GetUserCommand.d.ts +3 -0
  89. package/dist-types/commands/GlobalSignOutCommand.d.ts +3 -0
  90. package/dist-types/commands/InitiateAuthCommand.d.ts +3 -0
  91. package/dist-types/commands/ListDevicesCommand.d.ts +3 -0
  92. package/dist-types/commands/ListGroupsCommand.d.ts +3 -0
  93. package/dist-types/commands/ListResourceServersCommand.d.ts +3 -0
  94. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -0
  95. package/dist-types/commands/ListTermsCommand.d.ts +3 -0
  96. package/dist-types/commands/ListUserImportJobsCommand.d.ts +3 -0
  97. package/dist-types/commands/ListUserPoolClientsCommand.d.ts +3 -0
  98. package/dist-types/commands/ListUserPoolReplicasCommand.d.ts +156 -0
  99. package/dist-types/commands/ListUserPoolsCommand.d.ts +3 -0
  100. package/dist-types/commands/ListUsersCommand.d.ts +3 -0
  101. package/dist-types/commands/ListUsersInGroupCommand.d.ts +3 -0
  102. package/dist-types/commands/ListWebAuthnCredentialsCommand.d.ts +3 -0
  103. package/dist-types/commands/ResendConfirmationCodeCommand.d.ts +3 -0
  104. package/dist-types/commands/RespondToAuthChallengeCommand.d.ts +3 -0
  105. package/dist-types/commands/RevokeTokenCommand.d.ts +3 -0
  106. package/dist-types/commands/SetRiskConfigurationCommand.d.ts +8 -0
  107. package/dist-types/commands/SetUICustomizationCommand.d.ts +3 -0
  108. package/dist-types/commands/SetUserMFAPreferenceCommand.d.ts +3 -0
  109. package/dist-types/commands/SetUserPoolMfaConfigCommand.d.ts +3 -0
  110. package/dist-types/commands/SetUserSettingsCommand.d.ts +3 -0
  111. package/dist-types/commands/SignUpCommand.d.ts +3 -0
  112. package/dist-types/commands/StartUserImportJobCommand.d.ts +3 -0
  113. package/dist-types/commands/StartWebAuthnRegistrationCommand.d.ts +3 -0
  114. package/dist-types/commands/StopUserImportJobCommand.d.ts +3 -0
  115. package/dist-types/commands/TagResourceCommand.d.ts +3 -0
  116. package/dist-types/commands/UntagResourceCommand.d.ts +5 -1
  117. package/dist-types/commands/UpdateAuthEventFeedbackCommand.d.ts +4 -1
  118. package/dist-types/commands/UpdateDeviceStatusCommand.d.ts +4 -1
  119. package/dist-types/commands/UpdateGroupCommand.d.ts +4 -1
  120. package/dist-types/commands/UpdateIdentityProviderCommand.d.ts +1 -1
  121. package/dist-types/commands/UpdateManagedLoginBrandingCommand.d.ts +4 -1
  122. package/dist-types/commands/UpdateResourceServerCommand.d.ts +3 -0
  123. package/dist-types/commands/UpdateTermsCommand.d.ts +3 -0
  124. package/dist-types/commands/UpdateUserAttributesCommand.d.ts +3 -0
  125. package/dist-types/commands/UpdateUserPoolClientCommand.d.ts +3 -0
  126. package/dist-types/commands/UpdateUserPoolCommand.d.ts +15 -1
  127. package/dist-types/commands/UpdateUserPoolDomainCommand.d.ts +15 -0
  128. package/dist-types/commands/UpdateUserPoolReplicaCommand.d.ts +148 -0
  129. package/dist-types/commands/VerifySoftwareTokenCommand.d.ts +3 -0
  130. package/dist-types/commands/VerifyUserAttributeCommand.d.ts +3 -0
  131. package/dist-types/commands/index.d.ts +4 -0
  132. package/dist-types/models/enums.d.ts +62 -0
  133. package/dist-types/models/errors.d.ts +12 -0
  134. package/dist-types/models/models_0.d.ts +281 -377
  135. package/dist-types/models/models_1.d.ts +432 -5
  136. package/dist-types/schemas/schemas_0.d.ts +18 -0
  137. package/dist-types/ts3.4/CognitoIdentityProvider.d.ts +68 -0
  138. package/dist-types/ts3.4/CognitoIdentityProviderClient.d.ts +24 -0
  139. package/dist-types/ts3.4/commands/CreateUserPoolReplicaCommand.d.ts +53 -0
  140. package/dist-types/ts3.4/commands/DeleteUserPoolReplicaCommand.d.ts +53 -0
  141. package/dist-types/ts3.4/commands/ListUserPoolReplicasCommand.d.ts +53 -0
  142. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -4
  143. package/dist-types/ts3.4/commands/UpdateAuthEventFeedbackCommand.d.ts +1 -1
  144. package/dist-types/ts3.4/commands/UpdateDeviceStatusCommand.d.ts +1 -1
  145. package/dist-types/ts3.4/commands/UpdateGroupCommand.d.ts +1 -1
  146. package/dist-types/ts3.4/commands/UpdateIdentityProviderCommand.d.ts +1 -1
  147. package/dist-types/ts3.4/commands/UpdateManagedLoginBrandingCommand.d.ts +1 -1
  148. package/dist-types/ts3.4/commands/UpdateUserPoolReplicaCommand.d.ts +53 -0
  149. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  150. package/dist-types/ts3.4/models/enums.d.ts +31 -0
  151. package/dist-types/ts3.4/models/errors.d.ts +7 -0
  152. package/dist-types/ts3.4/models/models_0.d.ts +55 -45
  153. package/dist-types/ts3.4/models/models_1.d.ts +69 -0
  154. package/dist-types/ts3.4/schemas/schemas_0.d.ts +18 -0
  155. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/core/client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityProviderClient";
4
- import type { UpdateGroupRequest, UpdateGroupResponse } from "../models/models_0";
4
+ import type { UpdateGroupRequest, UpdateGroupResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -98,6 +98,9 @@ declare const UpdateGroupCommand_base: {
98
98
  * @throws {@link NotAuthorizedException} (client fault)
99
99
  * <p>This exception is thrown when a user isn't authorized.</p>
100
100
  *
101
+ * @throws {@link OperationNotEnabledException} (client fault)
102
+ * <p>This exception is thrown when an operation is not available in the current region or for the current user pool configuration. This can occur when attempting to perform operations that are not supported in secondary replica regions.</p>
103
+ *
101
104
  * @throws {@link ResourceNotFoundException} (client fault)
102
105
  * <p>This exception is thrown when the Amazon Cognito service can't find the requested
103
106
  * resource.</p>
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/core/client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityProviderClient";
4
- import type { UpdateIdentityProviderRequest, UpdateIdentityProviderResponse } from "../models/models_0";
4
+ import type { UpdateIdentityProviderRequest, UpdateIdentityProviderResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/core/client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityProviderClient";
4
- import type { UpdateManagedLoginBrandingRequest, UpdateManagedLoginBrandingResponse } from "../models/models_0";
4
+ import type { UpdateManagedLoginBrandingRequest, UpdateManagedLoginBrandingResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -125,6 +125,9 @@ declare const UpdateManagedLoginBrandingCommand_base: {
125
125
  * @throws {@link NotAuthorizedException} (client fault)
126
126
  * <p>This exception is thrown when a user isn't authorized.</p>
127
127
  *
128
+ * @throws {@link OperationNotEnabledException} (client fault)
129
+ * <p>This exception is thrown when an operation is not available in the current region or for the current user pool configuration. This can occur when attempting to perform operations that are not supported in secondary replica regions.</p>
130
+ *
128
131
  * @throws {@link ResourceNotFoundException} (client fault)
129
132
  * <p>This exception is thrown when the Amazon Cognito service can't find the requested
130
133
  * resource.</p>
@@ -108,6 +108,9 @@ declare const UpdateResourceServerCommand_base: {
108
108
  * @throws {@link NotAuthorizedException} (client fault)
109
109
  * <p>This exception is thrown when a user isn't authorized.</p>
110
110
  *
111
+ * @throws {@link OperationNotEnabledException} (client fault)
112
+ * <p>This exception is thrown when an operation is not available in the current region or for the current user pool configuration. This can occur when attempting to perform operations that are not supported in secondary replica regions.</p>
113
+ *
111
114
  * @throws {@link ResourceNotFoundException} (client fault)
112
115
  * <p>This exception is thrown when the Amazon Cognito service can't find the requested
113
116
  * resource.</p>
@@ -118,6 +118,9 @@ declare const UpdateTermsCommand_base: {
118
118
  * @throws {@link NotAuthorizedException} (client fault)
119
119
  * <p>This exception is thrown when a user isn't authorized.</p>
120
120
  *
121
+ * @throws {@link OperationNotEnabledException} (client fault)
122
+ * <p>This exception is thrown when an operation is not available in the current region or for the current user pool configuration. This can occur when attempting to perform operations that are not supported in secondary replica regions.</p>
123
+ *
121
124
  * @throws {@link ResourceNotFoundException} (client fault)
122
125
  * <p>This exception is thrown when the Amazon Cognito service can't find the requested
123
126
  * resource.</p>
@@ -146,6 +146,9 @@ declare const UpdateUserAttributesCommand_base: {
146
146
  * @throws {@link NotAuthorizedException} (client fault)
147
147
  * <p>This exception is thrown when a user isn't authorized.</p>
148
148
  *
149
+ * @throws {@link OperationNotEnabledException} (client fault)
150
+ * <p>This exception is thrown when an operation is not available in the current region or for the current user pool configuration. This can occur when attempting to perform operations that are not supported in secondary replica regions.</p>
151
+ *
149
152
  * @throws {@link PasswordResetRequiredException} (client fault)
150
153
  * <p>This exception is thrown when a password reset is required.</p>
151
154
  *
@@ -212,6 +212,9 @@ declare const UpdateUserPoolClientCommand_base: {
212
212
  * @throws {@link NotAuthorizedException} (client fault)
213
213
  * <p>This exception is thrown when a user isn't authorized.</p>
214
214
  *
215
+ * @throws {@link OperationNotEnabledException} (client fault)
216
+ * <p>This exception is thrown when an operation is not available in the current region or for the current user pool configuration. This can occur when attempting to perform operations that are not supported in secondary replica regions.</p>
217
+ *
215
218
  * @throws {@link ResourceNotFoundException} (client fault)
216
219
  * <p>This exception is thrown when the Amazon Cognito service can't find the requested
217
220
  * resource.</p>
@@ -33,8 +33,12 @@ declare const UpdateUserPoolCommand_base: {
33
33
  * defaults, construct this API request to pass the existing configuration of your user
34
34
  * pool, modified to include the changes that you want to make.</p>
35
35
  * <important>
36
- * <p>With the exception of <code>UserPoolTier</code>, if you don't provide a value for an attribute, Amazon Cognito sets it to its default value.</p>
36
+ * <p>If you don't provide a value for an attribute, Amazon Cognito sets it to its default value.</p>
37
37
  * </important>
38
+ * <p>In secondary regions for user pools with multi-region replication, regional
39
+ * configurations for email, SMS, Lambda functions, and tags can be updated. Both global
40
+ * and regional settings must be provided as inputs, with global settings required to match
41
+ * existing values to maintain consistency across replicas.</p>
38
42
  * <note>
39
43
  * <p>This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers
40
44
  * require you to register an origination phone number before you can send SMS messages
@@ -193,6 +197,13 @@ declare const UpdateUserPoolCommand_base: {
193
197
  * },
194
198
  * PoolName: "STRING_VALUE",
195
199
  * UserPoolTier: "LITE" || "ESSENTIALS" || "PLUS",
200
+ * KeyConfiguration: { // KeyConfigurationType
201
+ * KeyType: "AWS_OWNED_KEY" || "CUSTOMER_MANAGED_KEY",
202
+ * KmsKeyArn: "STRING_VALUE",
203
+ * },
204
+ * IssuerConfiguration: { // IssuerConfigurationType
205
+ * Type: "ORIGINAL" || "UPDATED",
206
+ * },
196
207
  * };
197
208
  * const command = new UpdateUserPoolCommand(input);
198
209
  * const response = await client.send(command);
@@ -238,6 +249,9 @@ declare const UpdateUserPoolCommand_base: {
238
249
  * @throws {@link NotAuthorizedException} (client fault)
239
250
  * <p>This exception is thrown when a user isn't authorized.</p>
240
251
  *
252
+ * @throws {@link OperationNotEnabledException} (client fault)
253
+ * <p>This exception is thrown when an operation is not available in the current region or for the current user pool configuration. This can occur when attempting to perform operations that are not supported in secondary replica regions.</p>
254
+ *
241
255
  * @throws {@link ResourceNotFoundException} (client fault)
242
256
  * <p>This exception is thrown when the Amazon Cognito service can't find the requested
243
257
  * resource.</p>
@@ -81,12 +81,24 @@ declare const UpdateUserPoolDomainCommand_base: {
81
81
  * CustomDomainConfig: { // CustomDomainConfigType
82
82
  * CertificateArn: "STRING_VALUE", // required
83
83
  * },
84
+ * Routing: { // RoutingType
85
+ * Failover: { // FailoverType
86
+ * SecondaryRegion: "STRING_VALUE", // required
87
+ * PrimaryRoute53HealthCheckId: "STRING_VALUE", // required
88
+ * },
89
+ * },
84
90
  * };
85
91
  * const command = new UpdateUserPoolDomainCommand(input);
86
92
  * const response = await client.send(command);
87
93
  * // { // UpdateUserPoolDomainResponse
88
94
  * // ManagedLoginVersion: Number("int"),
89
95
  * // CloudFrontDomain: "STRING_VALUE",
96
+ * // Routing: { // RoutingType
97
+ * // Failover: { // FailoverType
98
+ * // SecondaryRegion: "STRING_VALUE", // required
99
+ * // PrimaryRoute53HealthCheckId: "STRING_VALUE", // required
100
+ * // },
101
+ * // },
90
102
  * // };
91
103
  *
92
104
  * ```
@@ -115,6 +127,9 @@ declare const UpdateUserPoolDomainCommand_base: {
115
127
  * @throws {@link NotAuthorizedException} (client fault)
116
128
  * <p>This exception is thrown when a user isn't authorized.</p>
117
129
  *
130
+ * @throws {@link OperationNotEnabledException} (client fault)
131
+ * <p>This exception is thrown when an operation is not available in the current region or for the current user pool configuration. This can occur when attempting to perform operations that are not supported in secondary replica regions.</p>
132
+ *
118
133
  * @throws {@link ResourceNotFoundException} (client fault)
119
134
  * <p>This exception is thrown when the Amazon Cognito service can't find the requested
120
135
  * resource.</p>
@@ -0,0 +1,148 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityProviderClient";
4
+ import type { UpdateUserPoolReplicaRequest, UpdateUserPoolReplicaResponse } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateUserPoolReplicaCommand}.
14
+ */
15
+ export interface UpdateUserPoolReplicaCommandInput extends UpdateUserPoolReplicaRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateUserPoolReplicaCommand}.
21
+ */
22
+ export interface UpdateUserPoolReplicaCommandOutput extends UpdateUserPoolReplicaResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateUserPoolReplicaCommand_base: {
25
+ new (input: UpdateUserPoolReplicaCommandInput): import("@smithy/core/client").CommandImpl<UpdateUserPoolReplicaCommandInput, UpdateUserPoolReplicaCommandOutput, CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateUserPoolReplicaCommandInput): import("@smithy/core/client").CommandImpl<UpdateUserPoolReplicaCommandInput, UpdateUserPoolReplicaCommandOutput, CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * <p>Updates replica-specific settings for a user pool replica. You can modify the status
33
+ * to activate or deactivate the replica. This request can be made in both primary and secondary
34
+ * regions of the user pool.</p>
35
+ * <note>
36
+ * <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For
37
+ * this operation, you must use IAM credentials to authorize requests, and you must
38
+ * grant yourself the corresponding IAM permission in a policy.</p>
39
+ * <p class="title">
40
+ * <b>Learn more</b>
41
+ * </p>
42
+ * <ul>
43
+ * <li>
44
+ * <p>
45
+ * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html">Signing Amazon Web Services API Requests</a>
46
+ * </p>
47
+ * </li>
48
+ * <li>
49
+ * <p>
50
+ * <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html">Using the Amazon Cognito user pools API and user pool endpoints</a>
51
+ * </p>
52
+ * </li>
53
+ * </ul>
54
+ * </note>
55
+ * @example
56
+ * Use a bare-bones client and the command you need to make an API call.
57
+ * ```javascript
58
+ * import { CognitoIdentityProviderClient, UpdateUserPoolReplicaCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
59
+ * // const { CognitoIdentityProviderClient, UpdateUserPoolReplicaCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
60
+ * // import type { CognitoIdentityProviderClientConfig } from "@aws-sdk/client-cognito-identity-provider";
61
+ * const config = {}; // type is CognitoIdentityProviderClientConfig
62
+ * const client = new CognitoIdentityProviderClient(config);
63
+ * const input = { // UpdateUserPoolReplicaRequest
64
+ * UserPoolId: "STRING_VALUE", // required
65
+ * RegionName: "STRING_VALUE", // required
66
+ * Status: "ACTIVE" || "INACTIVE", // required
67
+ * };
68
+ * const command = new UpdateUserPoolReplicaCommand(input);
69
+ * const response = await client.send(command);
70
+ * // { // UpdateUserPoolReplicaResponse
71
+ * // UserPoolReplica: { // UserPoolReplicaType
72
+ * // RegionName: "STRING_VALUE",
73
+ * // Status: "CREATING" || "ACTIVE" || "INACTIVE" || "DELETING",
74
+ * // Role: "PRIMARY" || "SECONDARY",
75
+ * // UserPoolArn: "STRING_VALUE",
76
+ * // },
77
+ * // };
78
+ *
79
+ * ```
80
+ *
81
+ * @param UpdateUserPoolReplicaCommandInput - {@link UpdateUserPoolReplicaCommandInput}
82
+ * @returns {@link UpdateUserPoolReplicaCommandOutput}
83
+ * @see {@link UpdateUserPoolReplicaCommandInput} for command's `input` shape.
84
+ * @see {@link UpdateUserPoolReplicaCommandOutput} for command's `response` shape.
85
+ * @see {@link CognitoIdentityProviderClientResolvedConfig | config} for CognitoIdentityProviderClient's `config` shape.
86
+ *
87
+ * @throws {@link InternalErrorException} (server fault)
88
+ * <p>This exception is thrown when Amazon Cognito encounters an internal error.</p>
89
+ *
90
+ * @throws {@link InvalidParameterException} (client fault)
91
+ * <p>This exception is thrown when the Amazon Cognito service encounters an invalid
92
+ * parameter.</p>
93
+ *
94
+ * @throws {@link NotAuthorizedException} (client fault)
95
+ * <p>This exception is thrown when a user isn't authorized.</p>
96
+ *
97
+ * @throws {@link OperationNotEnabledException} (client fault)
98
+ * <p>This exception is thrown when an operation is not available in the current region or for the current user pool configuration. This can occur when attempting to perform operations that are not supported in secondary replica regions.</p>
99
+ *
100
+ * @throws {@link ResourceNotFoundException} (client fault)
101
+ * <p>This exception is thrown when the Amazon Cognito service can't find the requested
102
+ * resource.</p>
103
+ *
104
+ * @throws {@link TooManyRequestsException} (client fault)
105
+ * <p>This exception is thrown when the user has made too many requests for a given
106
+ * operation.</p>
107
+ *
108
+ * @throws {@link CognitoIdentityProviderServiceException}
109
+ * <p>Base exception class for all service exceptions from CognitoIdentityProvider service.</p>
110
+ *
111
+ *
112
+ * @example Example update a user pool replica
113
+ * ```javascript
114
+ * // The following example sets the status of a user pool replica in the us-east-1 Region to ACTIVE.
115
+ * const input = {
116
+ * RegionName: "us-east-1",
117
+ * Status: "ACTIVE",
118
+ * UserPoolId: "ap-south-1_abcd12345"
119
+ * };
120
+ * const command = new UpdateUserPoolReplicaCommand(input);
121
+ * const response = await client.send(command);
122
+ * /* response is
123
+ * {
124
+ * UserPoolReplica: {
125
+ * RegionName: "us-east-1",
126
+ * Role: "SECONDARY",
127
+ * Status: "ACTIVE",
128
+ * UserPoolArn: "arn:aws:cognito-idp:us-east-1:123456789012:userpool/ap-south-1_abcd12345"
129
+ * }
130
+ * }
131
+ * *\/
132
+ * ```
133
+ *
134
+ * @public
135
+ */
136
+ export declare class UpdateUserPoolReplicaCommand extends UpdateUserPoolReplicaCommand_base {
137
+ /** @internal type navigation helper, not in runtime. */
138
+ protected static __types: {
139
+ api: {
140
+ input: UpdateUserPoolReplicaRequest;
141
+ output: UpdateUserPoolReplicaResponse;
142
+ };
143
+ sdk: {
144
+ input: UpdateUserPoolReplicaCommandInput;
145
+ output: UpdateUserPoolReplicaCommandOutput;
146
+ };
147
+ };
148
+ }
@@ -93,6 +93,9 @@ declare const VerifySoftwareTokenCommand_base: {
93
93
  * @throws {@link NotAuthorizedException} (client fault)
94
94
  * <p>This exception is thrown when a user isn't authorized.</p>
95
95
  *
96
+ * @throws {@link OperationNotEnabledException} (client fault)
97
+ * <p>This exception is thrown when an operation is not available in the current region or for the current user pool configuration. This can occur when attempting to perform operations that are not supported in secondary replica regions.</p>
98
+ *
96
99
  * @throws {@link PasswordResetRequiredException} (client fault)
97
100
  * <p>This exception is thrown when a password reset is required.</p>
98
101
  *
@@ -99,6 +99,9 @@ declare const VerifyUserAttributeCommand_base: {
99
99
  * @throws {@link NotAuthorizedException} (client fault)
100
100
  * <p>This exception is thrown when a user isn't authorized.</p>
101
101
  *
102
+ * @throws {@link OperationNotEnabledException} (client fault)
103
+ * <p>This exception is thrown when an operation is not available in the current region or for the current user pool configuration. This can occur when attempting to perform operations that are not supported in secondary replica regions.</p>
104
+ *
102
105
  * @throws {@link PasswordResetRequiredException} (client fault)
103
106
  * <p>This exception is thrown when a password reset is required.</p>
104
107
  *
@@ -41,6 +41,7 @@ export * from "./CreateUserImportJobCommand";
41
41
  export * from "./CreateUserPoolClientCommand";
42
42
  export * from "./CreateUserPoolCommand";
43
43
  export * from "./CreateUserPoolDomainCommand";
44
+ export * from "./CreateUserPoolReplicaCommand";
44
45
  export * from "./DeleteGroupCommand";
45
46
  export * from "./DeleteIdentityProviderCommand";
46
47
  export * from "./DeleteManagedLoginBrandingCommand";
@@ -52,6 +53,7 @@ export * from "./DeleteUserPoolClientCommand";
52
53
  export * from "./DeleteUserPoolClientSecretCommand";
53
54
  export * from "./DeleteUserPoolCommand";
54
55
  export * from "./DeleteUserPoolDomainCommand";
56
+ export * from "./DeleteUserPoolReplicaCommand";
55
57
  export * from "./DeleteWebAuthnCredentialCommand";
56
58
  export * from "./DescribeIdentityProviderCommand";
57
59
  export * from "./DescribeManagedLoginBrandingByClientCommand";
@@ -88,6 +90,7 @@ export * from "./ListTermsCommand";
88
90
  export * from "./ListUserImportJobsCommand";
89
91
  export * from "./ListUserPoolClientSecretsCommand";
90
92
  export * from "./ListUserPoolClientsCommand";
93
+ export * from "./ListUserPoolReplicasCommand";
91
94
  export * from "./ListUserPoolsCommand";
92
95
  export * from "./ListUsersCommand";
93
96
  export * from "./ListUsersInGroupCommand";
@@ -118,5 +121,6 @@ export * from "./UpdateUserAttributesCommand";
118
121
  export * from "./UpdateUserPoolClientCommand";
119
122
  export * from "./UpdateUserPoolCommand";
120
123
  export * from "./UpdateUserPoolDomainCommand";
124
+ export * from "./UpdateUserPoolReplicaCommand";
121
125
  export * from "./VerifySoftwareTokenCommand";
122
126
  export * from "./VerifyUserAttributeCommand";
@@ -424,6 +424,30 @@ export declare const EmailSendingAccountType: {
424
424
  * @public
425
425
  */
426
426
  export type EmailSendingAccountType = (typeof EmailSendingAccountType)[keyof typeof EmailSendingAccountType];
427
+ /**
428
+ * @public
429
+ * @enum
430
+ */
431
+ export declare const IssuerType: {
432
+ readonly ORIGINAL: "ORIGINAL";
433
+ readonly UPDATED: "UPDATED";
434
+ };
435
+ /**
436
+ * @public
437
+ */
438
+ export type IssuerType = (typeof IssuerType)[keyof typeof IssuerType];
439
+ /**
440
+ * @public
441
+ * @enum
442
+ */
443
+ export declare const EncryptionKeyType: {
444
+ readonly AWS_OWNED_KEY: "AWS_OWNED_KEY";
445
+ readonly CUSTOMER_MANAGED_KEY: "CUSTOMER_MANAGED_KEY";
446
+ };
447
+ /**
448
+ * @public
449
+ */
450
+ export type EncryptionKeyType = (typeof EncryptionKeyType)[keyof typeof EncryptionKeyType];
427
451
  /**
428
452
  * @public
429
453
  * @enum
@@ -602,6 +626,32 @@ export declare const TimeUnitsType: {
602
626
  * @public
603
627
  */
604
628
  export type TimeUnitsType = (typeof TimeUnitsType)[keyof typeof TimeUnitsType];
629
+ /**
630
+ * @public
631
+ * @enum
632
+ */
633
+ export declare const ReplicaRoleType: {
634
+ readonly PRIMARY: "PRIMARY";
635
+ readonly SECONDARY: "SECONDARY";
636
+ };
637
+ /**
638
+ * @public
639
+ */
640
+ export type ReplicaRoleType = (typeof ReplicaRoleType)[keyof typeof ReplicaRoleType];
641
+ /**
642
+ * @public
643
+ * @enum
644
+ */
645
+ export declare const ReplicaStatusType: {
646
+ readonly ACTIVE: "ACTIVE";
647
+ readonly CREATING: "CREATING";
648
+ readonly DELETING: "DELETING";
649
+ readonly INACTIVE: "INACTIVE";
650
+ };
651
+ /**
652
+ * @public
653
+ */
654
+ export type ReplicaStatusType = (typeof ReplicaStatusType)[keyof typeof ReplicaStatusType];
605
655
  /**
606
656
  * @public
607
657
  * @enum
@@ -690,6 +740,18 @@ export declare const UserVerificationType: {
690
740
  * @public
691
741
  */
692
742
  export type UserVerificationType = (typeof UserVerificationType)[keyof typeof UserVerificationType];
743
+ /**
744
+ * @public
745
+ * @enum
746
+ */
747
+ export declare const UpdateReplicaStatusType: {
748
+ readonly ACTIVE: "ACTIVE";
749
+ readonly INACTIVE: "INACTIVE";
750
+ };
751
+ /**
752
+ * @public
753
+ */
754
+ export type UpdateReplicaStatusType = (typeof UpdateReplicaStatusType)[keyof typeof UpdateReplicaStatusType];
693
755
  /**
694
756
  * @public
695
757
  * @enum
@@ -54,6 +54,18 @@ export declare class NotAuthorizedException extends __BaseException {
54
54
  */
55
55
  constructor(opts: __ExceptionOptionType<NotAuthorizedException, __BaseException>);
56
56
  }
57
+ /**
58
+ * <p>This exception is thrown when an operation is not available in the current region or for the current user pool configuration. This can occur when attempting to perform operations that are not supported in secondary replica regions.</p>
59
+ * @public
60
+ */
61
+ export declare class OperationNotEnabledException extends __BaseException {
62
+ readonly name: "OperationNotEnabledException";
63
+ readonly $fault: "client";
64
+ /**
65
+ * @internal
66
+ */
67
+ constructor(opts: __ExceptionOptionType<OperationNotEnabledException, __BaseException>);
68
+ }
57
69
  /**
58
70
  * <p>This exception is thrown when the Amazon Cognito service can't find the requested
59
71
  * resource.</p>