@aws-sdk/client-cognito-identity-provider 3.624.0 → 3.627.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 (38) hide show
  1. package/dist-cjs/index.js +94 -55
  2. package/dist-es/models/models_0.js +18 -36
  3. package/dist-es/models/models_1.js +36 -0
  4. package/dist-es/protocols/Aws_json1_1.js +14 -2
  5. package/dist-types/CognitoIdentityProvider.d.ts +5 -5
  6. package/dist-types/CognitoIdentityProviderClient.d.ts +5 -5
  7. package/dist-types/commands/AdminConfirmSignUpCommand.d.ts +6 -9
  8. package/dist-types/commands/AdminCreateUserCommand.d.ts +1 -1
  9. package/dist-types/commands/AdminInitiateAuthCommand.d.ts +1 -1
  10. package/dist-types/commands/AdminResetUserPasswordCommand.d.ts +1 -1
  11. package/dist-types/commands/AdminRespondToAuthChallengeCommand.d.ts +5 -1
  12. package/dist-types/commands/AdminSetUserPasswordCommand.d.ts +4 -0
  13. package/dist-types/commands/AdminUpdateUserAttributesCommand.d.ts +1 -1
  14. package/dist-types/commands/AssociateSoftwareTokenCommand.d.ts +2 -2
  15. package/dist-types/commands/ChangePasswordCommand.d.ts +4 -0
  16. package/dist-types/commands/ConfirmForgotPasswordCommand.d.ts +4 -0
  17. package/dist-types/commands/CreateUserPoolCommand.d.ts +9 -1
  18. package/dist-types/commands/DescribeUserPoolCommand.d.ts +4 -0
  19. package/dist-types/commands/ForgotPasswordCommand.d.ts +1 -1
  20. package/dist-types/commands/GetLogDeliveryConfigurationCommand.d.ts +9 -3
  21. package/dist-types/commands/GetUserAttributeVerificationCodeCommand.d.ts +1 -1
  22. package/dist-types/commands/InitiateAuthCommand.d.ts +1 -1
  23. package/dist-types/commands/ResendConfirmationCodeCommand.d.ts +1 -1
  24. package/dist-types/commands/RespondToAuthChallengeCommand.d.ts +5 -1
  25. package/dist-types/commands/RevokeTokenCommand.d.ts +2 -1
  26. package/dist-types/commands/SetLogDeliveryConfigurationCommand.d.ts +19 -7
  27. package/dist-types/commands/SetUserPoolMfaConfigCommand.d.ts +1 -1
  28. package/dist-types/commands/SignUpCommand.d.ts +1 -1
  29. package/dist-types/commands/UpdateUserAttributesCommand.d.ts +1 -1
  30. package/dist-types/commands/UpdateUserPoolCommand.d.ts +5 -1
  31. package/dist-types/index.d.ts +5 -5
  32. package/dist-types/models/models_0.d.ts +131 -73
  33. package/dist-types/models/models_1.d.ts +61 -2
  34. package/dist-types/ts3.4/commands/RevokeTokenCommand.d.ts +2 -1
  35. package/dist-types/ts3.4/commands/SetLogDeliveryConfigurationCommand.d.ts +4 -2
  36. package/dist-types/ts3.4/models/models_0.d.ts +31 -26
  37. package/dist-types/ts3.4/models/models_1.d.ts +27 -0
  38. package/package.json +1 -1
@@ -84,6 +84,7 @@ declare const CreateUserPoolCommand_base: {
84
84
  * RequireLowercase: true || false,
85
85
  * RequireNumbers: true || false,
86
86
  * RequireSymbols: true || false,
87
+ * PasswordHistorySize: Number("int"),
87
88
  * TemporaryPasswordValidityDays: Number("int"),
88
89
  * },
89
90
  * },
@@ -187,6 +188,9 @@ declare const CreateUserPoolCommand_base: {
187
188
  * ],
188
189
  * UserPoolAddOns: { // UserPoolAddOnsType
189
190
  * AdvancedSecurityMode: "OFF" || "AUDIT" || "ENFORCED", // required
191
+ * AdvancedSecurityAdditionalFlows: { // AdvancedSecurityAdditionalFlowsType
192
+ * CustomAuthMode: "AUDIT" || "ENFORCED",
193
+ * },
190
194
  * },
191
195
  * UsernameConfiguration: { // UsernameConfigurationType
192
196
  * CaseSensitive: true || false, // required
@@ -213,6 +217,7 @@ declare const CreateUserPoolCommand_base: {
213
217
  * // RequireLowercase: true || false,
214
218
  * // RequireNumbers: true || false,
215
219
  * // RequireSymbols: true || false,
220
+ * // PasswordHistorySize: Number("int"),
216
221
  * // TemporaryPasswordValidityDays: Number("int"),
217
222
  * // },
218
223
  * // },
@@ -324,6 +329,9 @@ declare const CreateUserPoolCommand_base: {
324
329
  * // },
325
330
  * // UserPoolAddOns: { // UserPoolAddOnsType
326
331
  * // AdvancedSecurityMode: "OFF" || "AUDIT" || "ENFORCED", // required
332
+ * // AdvancedSecurityAdditionalFlows: { // AdvancedSecurityAdditionalFlowsType
333
+ * // CustomAuthMode: "AUDIT" || "ENFORCED",
334
+ * // },
327
335
  * // },
328
336
  * // UsernameConfiguration: { // UsernameConfigurationType
329
337
  * // CaseSensitive: true || false, // required
@@ -366,7 +374,7 @@ declare const CreateUserPoolCommand_base: {
366
374
  * @throws {@link InvalidSmsRoleTrustRelationshipException} (client fault)
367
375
  * <p>This exception is thrown when the trust relationship is not valid for the role
368
376
  * provided for SMS configuration. This can happen if you don't trust
369
- * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
377
+ * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
370
378
  * not match what is provided in the SMS configuration for the user pool.</p>
371
379
  *
372
380
  * @throws {@link LimitExceededException} (client fault)
@@ -70,6 +70,7 @@ declare const DescribeUserPoolCommand_base: {
70
70
  * // RequireLowercase: true || false,
71
71
  * // RequireNumbers: true || false,
72
72
  * // RequireSymbols: true || false,
73
+ * // PasswordHistorySize: Number("int"),
73
74
  * // TemporaryPasswordValidityDays: Number("int"),
74
75
  * // },
75
76
  * // },
@@ -181,6 +182,9 @@ declare const DescribeUserPoolCommand_base: {
181
182
  * // },
182
183
  * // UserPoolAddOns: { // UserPoolAddOnsType
183
184
  * // AdvancedSecurityMode: "OFF" || "AUDIT" || "ENFORCED", // required
185
+ * // AdvancedSecurityAdditionalFlows: { // AdvancedSecurityAdditionalFlowsType
186
+ * // CustomAuthMode: "AUDIT" || "ENFORCED",
187
+ * // },
184
188
  * // },
185
189
  * // UsernameConfiguration: { // UsernameConfigurationType
186
190
  * // CaseSensitive: true || false, // required
@@ -130,7 +130,7 @@ declare const ForgotPasswordCommand_base: {
130
130
  * @throws {@link InvalidSmsRoleTrustRelationshipException} (client fault)
131
131
  * <p>This exception is thrown when the trust relationship is not valid for the role
132
132
  * provided for SMS configuration. This can happen if you don't trust
133
- * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
133
+ * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
134
134
  * not match what is provided in the SMS configuration for the user pool.</p>
135
135
  *
136
136
  * @throws {@link LimitExceededException} (client fault)
@@ -27,7 +27,7 @@ declare const GetLogDeliveryConfigurationCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Gets the detailed activity logging configuration for a user pool.</p>
30
+ * <p>Gets the logging configuration of a user pool.</p>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -44,11 +44,17 @@ declare const GetLogDeliveryConfigurationCommand_base: {
44
44
  * // UserPoolId: "STRING_VALUE", // required
45
45
  * // LogConfigurations: [ // LogConfigurationListType // required
46
46
  * // { // LogConfigurationType
47
- * // LogLevel: "ERROR", // required
48
- * // EventSource: "userNotification", // required
47
+ * // LogLevel: "ERROR" || "INFO", // required
48
+ * // EventSource: "userNotification" || "userAuthEvents", // required
49
49
  * // CloudWatchLogsConfiguration: { // CloudWatchLogsConfigurationType
50
50
  * // LogGroupArn: "STRING_VALUE",
51
51
  * // },
52
+ * // S3Configuration: { // S3ConfigurationType
53
+ * // BucketArn: "STRING_VALUE",
54
+ * // },
55
+ * // FirehoseConfiguration: { // FirehoseConfigurationType
56
+ * // StreamArn: "STRING_VALUE",
57
+ * // },
52
58
  * // },
53
59
  * // ],
54
60
  * // },
@@ -114,7 +114,7 @@ declare const GetUserAttributeVerificationCodeCommand_base: {
114
114
  * @throws {@link InvalidSmsRoleTrustRelationshipException} (client fault)
115
115
  * <p>This exception is thrown when the trust relationship is not valid for the role
116
116
  * provided for SMS configuration. This can happen if you don't trust
117
- * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
117
+ * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
118
118
  * not match what is provided in the SMS configuration for the user pool.</p>
119
119
  *
120
120
  * @throws {@link LimitExceededException} (client fault)
@@ -125,7 +125,7 @@ declare const InitiateAuthCommand_base: {
125
125
  * @throws {@link InvalidSmsRoleTrustRelationshipException} (client fault)
126
126
  * <p>This exception is thrown when the trust relationship is not valid for the role
127
127
  * provided for SMS configuration. This can happen if you don't trust
128
- * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
128
+ * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
129
129
  * not match what is provided in the SMS configuration for the user pool.</p>
130
130
  *
131
131
  * @throws {@link InvalidUserPoolConfigurationException} (client fault)
@@ -120,7 +120,7 @@ declare const ResendConfirmationCodeCommand_base: {
120
120
  * @throws {@link InvalidSmsRoleTrustRelationshipException} (client fault)
121
121
  * <p>This exception is thrown when the trust relationship is not valid for the role
122
122
  * provided for SMS configuration. This can happen if you don't trust
123
- * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
123
+ * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
124
124
  * not match what is provided in the SMS configuration for the user pool.</p>
125
125
  *
126
126
  * @throws {@link LimitExceededException} (client fault)
@@ -148,7 +148,7 @@ declare const RespondToAuthChallengeCommand_base: {
148
148
  * @throws {@link InvalidSmsRoleTrustRelationshipException} (client fault)
149
149
  * <p>This exception is thrown when the trust relationship is not valid for the role
150
150
  * provided for SMS configuration. This can happen if you don't trust
151
- * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
151
+ * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
152
152
  * not match what is provided in the SMS configuration for the user pool.</p>
153
153
  *
154
154
  * @throws {@link InvalidUserPoolConfigurationException} (client fault)
@@ -161,6 +161,10 @@ declare const RespondToAuthChallengeCommand_base: {
161
161
  * @throws {@link NotAuthorizedException} (client fault)
162
162
  * <p>This exception is thrown when a user isn't authorized.</p>
163
163
  *
164
+ * @throws {@link PasswordHistoryPolicyViolationException} (client fault)
165
+ * <p>The message returned when a user's new password matches a previous password and
166
+ * doesn't comply with the password-history policy.</p>
167
+ *
164
168
  * @throws {@link PasswordResetRequiredException} (client fault)
165
169
  * <p>This exception is thrown when a password reset is required.</p>
166
170
  *
@@ -1,7 +1,8 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityProviderClient";
4
- import { RevokeTokenRequest, RevokeTokenResponse } from "../models/models_0";
4
+ import { RevokeTokenRequest } from "../models/models_0";
5
+ import { RevokeTokenResponse } from "../models/models_1";
5
6
  /**
6
7
  * @public
7
8
  */
@@ -1,8 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityProviderClient";
4
- import { SetLogDeliveryConfigurationRequest } from "../models/models_0";
5
- import { SetLogDeliveryConfigurationResponse } from "../models/models_1";
4
+ import { SetLogDeliveryConfigurationRequest, SetLogDeliveryConfigurationResponse } from "../models/models_1";
6
5
  /**
7
6
  * @public
8
7
  */
@@ -28,7 +27,8 @@ declare const SetLogDeliveryConfigurationCommand_base: {
28
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
29
28
  };
30
29
  /**
31
- * <p>Sets up or modifies the detailed activity logging configuration of a user pool.</p>
30
+ * <p>Sets up or modifies the logging configuration of a user pool. User pools can export
31
+ * user notification logs and advanced security features user activity logs.</p>
32
32
  * @example
33
33
  * Use a bare-bones client and the command you need to make an API call.
34
34
  * ```javascript
@@ -39,11 +39,17 @@ declare const SetLogDeliveryConfigurationCommand_base: {
39
39
  * UserPoolId: "STRING_VALUE", // required
40
40
  * LogConfigurations: [ // LogConfigurationListType // required
41
41
  * { // LogConfigurationType
42
- * LogLevel: "ERROR", // required
43
- * EventSource: "userNotification", // required
42
+ * LogLevel: "ERROR" || "INFO", // required
43
+ * EventSource: "userNotification" || "userAuthEvents", // required
44
44
  * CloudWatchLogsConfiguration: { // CloudWatchLogsConfigurationType
45
45
  * LogGroupArn: "STRING_VALUE",
46
46
  * },
47
+ * S3Configuration: { // S3ConfigurationType
48
+ * BucketArn: "STRING_VALUE",
49
+ * },
50
+ * FirehoseConfiguration: { // FirehoseConfigurationType
51
+ * StreamArn: "STRING_VALUE",
52
+ * },
47
53
  * },
48
54
  * ],
49
55
  * };
@@ -54,11 +60,17 @@ declare const SetLogDeliveryConfigurationCommand_base: {
54
60
  * // UserPoolId: "STRING_VALUE", // required
55
61
  * // LogConfigurations: [ // LogConfigurationListType // required
56
62
  * // { // LogConfigurationType
57
- * // LogLevel: "ERROR", // required
58
- * // EventSource: "userNotification", // required
63
+ * // LogLevel: "ERROR" || "INFO", // required
64
+ * // EventSource: "userNotification" || "userAuthEvents", // required
59
65
  * // CloudWatchLogsConfiguration: { // CloudWatchLogsConfigurationType
60
66
  * // LogGroupArn: "STRING_VALUE",
61
67
  * // },
68
+ * // S3Configuration: { // S3ConfigurationType
69
+ * // BucketArn: "STRING_VALUE",
70
+ * // },
71
+ * // FirehoseConfiguration: { // FirehoseConfigurationType
72
+ * // StreamArn: "STRING_VALUE",
73
+ * // },
62
74
  * // },
63
75
  * // ],
64
76
  * // },
@@ -109,7 +109,7 @@ declare const SetUserPoolMfaConfigCommand_base: {
109
109
  * @throws {@link InvalidSmsRoleTrustRelationshipException} (client fault)
110
110
  * <p>This exception is thrown when the trust relationship is not valid for the role
111
111
  * provided for SMS configuration. This can happen if you don't trust
112
- * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
112
+ * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
113
113
  * not match what is provided in the SMS configuration for the user pool.</p>
114
114
  *
115
115
  * @throws {@link NotAuthorizedException} (client fault)
@@ -138,7 +138,7 @@ declare const SignUpCommand_base: {
138
138
  * @throws {@link InvalidSmsRoleTrustRelationshipException} (client fault)
139
139
  * <p>This exception is thrown when the trust relationship is not valid for the role
140
140
  * provided for SMS configuration. This can happen if you don't trust
141
- * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
141
+ * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
142
142
  * not match what is provided in the SMS configuration for the user pool.</p>
143
143
  *
144
144
  * @throws {@link LimitExceededException} (client fault)
@@ -137,7 +137,7 @@ declare const UpdateUserAttributesCommand_base: {
137
137
  * @throws {@link InvalidSmsRoleTrustRelationshipException} (client fault)
138
138
  * <p>This exception is thrown when the trust relationship is not valid for the role
139
139
  * provided for SMS configuration. This can happen if you don't trust
140
- * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
140
+ * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
141
141
  * not match what is provided in the SMS configuration for the user pool.</p>
142
142
  *
143
143
  * @throws {@link NotAuthorizedException} (client fault)
@@ -84,6 +84,7 @@ declare const UpdateUserPoolCommand_base: {
84
84
  * RequireLowercase: true || false,
85
85
  * RequireNumbers: true || false,
86
86
  * RequireSymbols: true || false,
87
+ * PasswordHistorySize: Number("int"),
87
88
  * TemporaryPasswordValidityDays: Number("int"),
88
89
  * },
89
90
  * },
@@ -164,6 +165,9 @@ declare const UpdateUserPoolCommand_base: {
164
165
  * },
165
166
  * UserPoolAddOns: { // UserPoolAddOnsType
166
167
  * AdvancedSecurityMode: "OFF" || "AUDIT" || "ENFORCED", // required
168
+ * AdvancedSecurityAdditionalFlows: { // AdvancedSecurityAdditionalFlowsType
169
+ * CustomAuthMode: "AUDIT" || "ENFORCED",
170
+ * },
167
171
  * },
168
172
  * AccountRecoverySetting: { // AccountRecoverySettingType
169
173
  * RecoveryMechanisms: [ // RecoveryMechanismsType
@@ -208,7 +212,7 @@ declare const UpdateUserPoolCommand_base: {
208
212
  * @throws {@link InvalidSmsRoleTrustRelationshipException} (client fault)
209
213
  * <p>This exception is thrown when the trust relationship is not valid for the role
210
214
  * provided for SMS configuration. This can happen if you don't trust
211
- * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
215
+ * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
212
216
  * not match what is provided in the SMS configuration for the user pool.</p>
213
217
  *
214
218
  * @throws {@link NotAuthorizedException} (client fault)
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * <p>With the Amazon Cognito user pools API, you can configure user pools and authenticate users. To
3
3
  * authenticate users from third-party identity providers (IdPs) in this API, you can
4
- * <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation-consolidate-users.html">link IdP users to native user profiles</a>. Learn more
4
+ * <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation-consolidate-users.html">link IdP users to native user profiles</a>. Learn more
5
5
  * about the authentication and authorization of federated users at <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation.html">Adding user pool sign-in through a third party</a> and in the <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-userpools-server-contract-reference.html">User pool federation endpoints and hosted UI reference</a>.</p>
6
6
  * <p>This API reference provides detailed information about API operations and object types
7
7
  * in Amazon Cognito.</p>
@@ -33,7 +33,7 @@
33
33
  * <li>
34
34
  * <p>
35
35
  * <a href="https://docs.aws.amazon.com/cli/latest/reference/cognito-idp/index.html#cli-aws-cognito-idp">Amazon Web Services
36
- * Command Line Interface</a>
36
+ * Command Line Interface</a>
37
37
  * </p>
38
38
  * </li>
39
39
  * <li>
@@ -59,13 +59,13 @@
59
59
  * <li>
60
60
  * <p>
61
61
  * <a href="https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/CognitoIdentityServiceProvider.html">Amazon Web Services
62
- * SDK for JavaScript</a>
62
+ * SDK for JavaScript</a>
63
63
  * </p>
64
64
  * </li>
65
65
  * <li>
66
66
  * <p>
67
67
  * <a href="https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-cognito-idp-2016-04-18.html">Amazon Web Services SDK for PHP
68
- * V3</a>
68
+ * V3</a>
69
69
  * </p>
70
70
  * </li>
71
71
  * <li>
@@ -76,7 +76,7 @@
76
76
  * <li>
77
77
  * <p>
78
78
  * <a href="https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CognitoIdentityProvider/Client.html">Amazon Web Services SDK
79
- * for Ruby V3</a>
79
+ * for Ruby V3</a>
80
80
  * </p>
81
81
  * </li>
82
82
  * </ul>