@aws-sdk/client-cognito-identity-provider 3.623.0 → 3.625.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 (36) hide show
  1. package/dist-cjs/index.js +70 -37
  2. package/dist-es/models/models_0.js +14 -24
  3. package/dist-es/models/models_1.js +24 -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 +3 -1
  18. package/dist-types/commands/DescribeUserPoolCommand.d.ts +1 -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/SetLogDeliveryConfigurationCommand.d.ts +19 -7
  26. package/dist-types/commands/SetUserPoolMfaConfigCommand.d.ts +1 -1
  27. package/dist-types/commands/SignUpCommand.d.ts +1 -1
  28. package/dist-types/commands/UpdateUserAttributesCommand.d.ts +1 -1
  29. package/dist-types/commands/UpdateUserPoolCommand.d.ts +2 -1
  30. package/dist-types/index.d.ts +5 -5
  31. package/dist-types/models/models_0.d.ts +90 -54
  32. package/dist-types/models/models_1.d.ts +43 -2
  33. package/dist-types/ts3.4/commands/SetLogDeliveryConfigurationCommand.d.ts +4 -2
  34. package/dist-types/ts3.4/models/models_0.d.ts +21 -18
  35. package/dist-types/ts3.4/models/models_1.d.ts +19 -0
  36. package/package.json +5 -5
@@ -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,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
  * },
@@ -208,7 +209,7 @@ declare const UpdateUserPoolCommand_base: {
208
209
  * @throws {@link InvalidSmsRoleTrustRelationshipException} (client fault)
209
210
  * <p>This exception is thrown when the trust relationship is not valid for the role
210
211
  * 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
212
+ * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
212
213
  * not match what is provided in the SMS configuration for the user pool.</p>
213
214
  *
214
215
  * @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>
@@ -933,7 +933,7 @@ export declare class InvalidSmsRoleAccessPolicyException extends __BaseException
933
933
  /**
934
934
  * <p>This exception is thrown when the trust relationship is not valid for the role
935
935
  * provided for SMS configuration. This can happen if you don't trust
936
- * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
936
+ * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
937
937
  * not match what is provided in the SMS configuration for the user pool.</p>
938
938
  * @public
939
939
  */
@@ -2775,6 +2775,19 @@ export declare class ExpiredCodeException extends __BaseException {
2775
2775
  */
2776
2776
  constructor(opts: __ExceptionOptionType<ExpiredCodeException, __BaseException>);
2777
2777
  }
2778
+ /**
2779
+ * <p>The message returned when a user's new password matches a previous password and
2780
+ * doesn't comply with the password-history policy.</p>
2781
+ * @public
2782
+ */
2783
+ export declare class PasswordHistoryPolicyViolationException extends __BaseException {
2784
+ readonly name: "PasswordHistoryPolicyViolationException";
2785
+ readonly $fault: "client";
2786
+ /**
2787
+ * @internal
2788
+ */
2789
+ constructor(opts: __ExceptionOptionType<PasswordHistoryPolicyViolationException, __BaseException>);
2790
+ }
2778
2791
  /**
2779
2792
  * <p>This exception is thrown when the software token time-based one-time password (TOTP)
2780
2793
  * multi-factor authentication (MFA) isn't activated for the user pool.</p>
@@ -4645,6 +4658,16 @@ export interface PasswordPolicyType {
4645
4658
  * @public
4646
4659
  */
4647
4660
  RequireSymbols?: boolean;
4661
+ /**
4662
+ * <p>The number of previous passwords that you want Amazon Cognito to restrict each user from
4663
+ * reusing. Users can't set a password that matches any of <code>n</code> previous
4664
+ * passwords, where <code>n</code> is the value of <code>PasswordHistorySize</code>.</p>
4665
+ * <p>Password history isn't enforced and isn't displayed in <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html">DescribeUserPool</a> responses when you set this value to
4666
+ * <code>0</code> or don't provide it. To activate this setting, <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html">
4667
+ * advanced security features</a> must be active in your user pool.</p>
4668
+ * @public
4669
+ */
4670
+ PasswordHistorySize?: number;
4648
4671
  /**
4649
4672
  * <p>The number of days a temporary password is valid in the password policy. If the user
4650
4673
  * doesn't sign in during this time, an administrator must reset their password. Defaults
@@ -5725,6 +5748,7 @@ export interface CreateUserPoolClientRequest {
5725
5748
  * existence related errors aren't prevented.</p>
5726
5749
  * </li>
5727
5750
  * </ul>
5751
+ * <p>Defaults to <code>LEGACY</code> when you don't provide a value.</p>
5728
5752
  * @public
5729
5753
  */
5730
5754
  PreventUserExistenceErrors?: PreventUserExistenceErrorTypes;
@@ -6074,10 +6098,11 @@ export interface UserPoolClientType {
6074
6098
  * </li>
6075
6099
  * <li>
6076
6100
  * <p>
6077
- * <code>LEGACY</code> - This represents the old behavior of Amazon Cognito where user
6101
+ * <code>LEGACY</code> - This represents the early behavior of Amazon Cognito where user
6078
6102
  * existence related errors aren't prevented.</p>
6079
6103
  * </li>
6080
6104
  * </ul>
6105
+ * <p>Defaults to <code>LEGACY</code> when you don't provide a value.</p>
6081
6106
  * @public
6082
6107
  */
6083
6108
  PreventUserExistenceErrors?: PreventUserExistenceErrorTypes;
@@ -6941,15 +6966,15 @@ export interface GetIdentityProviderByIdentifierResponse {
6941
6966
  */
6942
6967
  export interface GetLogDeliveryConfigurationRequest {
6943
6968
  /**
6944
- * <p>The ID of the user pool where you want to view detailed activity logging
6945
- * configuration.</p>
6969
+ * <p>The ID of the user pool that has the logging configuration that you want to
6970
+ * view.</p>
6946
6971
  * @public
6947
6972
  */
6948
6973
  UserPoolId: string | undefined;
6949
6974
  }
6950
6975
  /**
6951
- * <p>The CloudWatch logging destination of a user pool detailed activity logging
6952
- * configuration.</p>
6976
+ * <p>Configuration for the CloudWatch log group destination of user pool detailed activity
6977
+ * logging, or of user activity log export with advanced security features.</p>
6953
6978
  * @public
6954
6979
  */
6955
6980
  export interface CloudWatchLogsConfigurationType {
@@ -6970,23 +6995,51 @@ export interface CloudWatchLogsConfigurationType {
6970
6995
  * @enum
6971
6996
  */
6972
6997
  export declare const EventSourceName: {
6998
+ readonly USER_AUTH_EVENTS: "userAuthEvents";
6973
6999
  readonly USER_NOTIFICATION: "userNotification";
6974
7000
  };
6975
7001
  /**
6976
7002
  * @public
6977
7003
  */
6978
7004
  export type EventSourceName = (typeof EventSourceName)[keyof typeof EventSourceName];
7005
+ /**
7006
+ * <p>Configuration for the Amazon Data Firehose stream destination of user activity log export with
7007
+ * advanced security features.</p>
7008
+ * @public
7009
+ */
7010
+ export interface FirehoseConfigurationType {
7011
+ /**
7012
+ * <p>The ARN of an Amazon Data Firehose stream that's the destination for advanced security
7013
+ * features log export.</p>
7014
+ * @public
7015
+ */
7016
+ StreamArn?: string;
7017
+ }
6979
7018
  /**
6980
7019
  * @public
6981
7020
  * @enum
6982
7021
  */
6983
7022
  export declare const LogLevel: {
6984
7023
  readonly ERROR: "ERROR";
7024
+ readonly INFO: "INFO";
6985
7025
  };
6986
7026
  /**
6987
7027
  * @public
6988
7028
  */
6989
7029
  export type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
7030
+ /**
7031
+ * <p>Configuration for the Amazon S3 bucket destination of user activity log export with
7032
+ * advanced security features.</p>
7033
+ * @public
7034
+ */
7035
+ export interface S3ConfigurationType {
7036
+ /**
7037
+ * <p>The ARN of an Amazon S3 bucket that's the destination for advanced security features
7038
+ * log export.</p>
7039
+ * @public
7040
+ */
7041
+ BucketArn?: string;
7042
+ }
6990
7043
  /**
6991
7044
  * <p>The logging parameters of a user pool.</p>
6992
7045
  * @public
@@ -6994,33 +7047,57 @@ export type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
6994
7047
  export interface LogConfigurationType {
6995
7048
  /**
6996
7049
  * <p>The <code>errorlevel</code> selection of logs that a user pool sends for detailed
6997
- * activity logging.</p>
7050
+ * activity logging. To send <code>userNotification</code> activity with <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/tracking-quotas-and-usage-in-cloud-watch-logs.html">information about message delivery</a>, choose <code>ERROR</code> with
7051
+ * <code>CloudWatchLogsConfiguration</code>. To send <code>userAuthEvents</code>
7052
+ * activity with user logs from advanced security features, choose <code>INFO</code> with
7053
+ * one of <code>CloudWatchLogsConfiguration</code>, <code>FirehoseConfiguration</code>, or
7054
+ * <code>S3Configuration</code>.</p>
6998
7055
  * @public
6999
7056
  */
7000
7057
  LogLevel: LogLevel | undefined;
7001
7058
  /**
7002
- * <p>The source of events that your user pool sends for detailed activity logging.</p>
7059
+ * <p>The source of events that your user pool sends for logging. To send error-level logs
7060
+ * about user notification activity, set to <code>userNotification</code>. To send
7061
+ * info-level logs about advanced security features user activity, set to
7062
+ * <code>userAuthEvents</code>.</p>
7003
7063
  * @public
7004
7064
  */
7005
7065
  EventSource: EventSourceName | undefined;
7006
7066
  /**
7007
- * <p>The CloudWatch logging destination of a user pool.</p>
7067
+ * <p>The CloudWatch log group destination of user pool detailed activity logs, or of user
7068
+ * activity log export with advanced security features.</p>
7008
7069
  * @public
7009
7070
  */
7010
7071
  CloudWatchLogsConfiguration?: CloudWatchLogsConfigurationType;
7072
+ /**
7073
+ * <p>The Amazon S3 bucket destination of user activity log export with advanced security
7074
+ * features. To activate this setting, <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html">
7075
+ * advanced security features</a> must be active in your user pool.</p>
7076
+ * @public
7077
+ */
7078
+ S3Configuration?: S3ConfigurationType;
7079
+ /**
7080
+ * <p>The Amazon Data Firehose stream destination of user activity log export with advanced security
7081
+ * features. To activate this setting, <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html">
7082
+ * advanced security features</a> must be active in your user pool.</p>
7083
+ * @public
7084
+ */
7085
+ FirehoseConfiguration?: FirehoseConfigurationType;
7011
7086
  }
7012
7087
  /**
7013
- * <p>The logging parameters of a user pool.</p>
7088
+ * <p>The logging parameters of a user pool returned in response to
7089
+ * <code>GetLogDeliveryConfiguration</code>.</p>
7014
7090
  * @public
7015
7091
  */
7016
7092
  export interface LogDeliveryConfigurationType {
7017
7093
  /**
7018
- * <p>The ID of the user pool where you configured detailed activity logging.</p>
7094
+ * <p>The ID of the user pool where you configured logging.</p>
7019
7095
  * @public
7020
7096
  */
7021
7097
  UserPoolId: string | undefined;
7022
7098
  /**
7023
- * <p>The detailed activity logging destination of a user pool.</p>
7099
+ * <p>A logging destination of a user pool. User pools can have multiple logging
7100
+ * destinations for message-delivery and user-activity logs.</p>
7024
7101
  * @public
7025
7102
  */
7026
7103
  LogConfigurations: LogConfigurationType[] | undefined;
@@ -7030,7 +7107,7 @@ export interface LogDeliveryConfigurationType {
7030
7107
  */
7031
7108
  export interface GetLogDeliveryConfigurationResponse {
7032
7109
  /**
7033
- * <p>The detailed activity logging configuration of the requested user pool.</p>
7110
+ * <p>The logging configuration of the requested user pool.</p>
7034
7111
  * @public
7035
7112
  */
7036
7113
  LogDeliveryConfiguration?: LogDeliveryConfigurationType;
@@ -8530,47 +8607,6 @@ export declare class UnauthorizedException extends __BaseException {
8530
8607
  */
8531
8608
  constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
8532
8609
  }
8533
- /**
8534
- * <p>Exception that is thrown when you attempt to perform an operation that isn't enabled
8535
- * for the user pool client.</p>
8536
- * @public
8537
- */
8538
- export declare class UnsupportedOperationException extends __BaseException {
8539
- readonly name: "UnsupportedOperationException";
8540
- readonly $fault: "client";
8541
- /**
8542
- * @internal
8543
- */
8544
- constructor(opts: __ExceptionOptionType<UnsupportedOperationException, __BaseException>);
8545
- }
8546
- /**
8547
- * <p>Exception that is thrown when an unsupported token is passed to an operation.</p>
8548
- * @public
8549
- */
8550
- export declare class UnsupportedTokenTypeException extends __BaseException {
8551
- readonly name: "UnsupportedTokenTypeException";
8552
- readonly $fault: "client";
8553
- /**
8554
- * @internal
8555
- */
8556
- constructor(opts: __ExceptionOptionType<UnsupportedTokenTypeException, __BaseException>);
8557
- }
8558
- /**
8559
- * @public
8560
- */
8561
- export interface SetLogDeliveryConfigurationRequest {
8562
- /**
8563
- * <p>The ID of the user pool where you want to configure detailed activity logging .</p>
8564
- * @public
8565
- */
8566
- UserPoolId: string | undefined;
8567
- /**
8568
- * <p>A collection of all of the detailed activity logging configurations for a user
8569
- * pool.</p>
8570
- * @public
8571
- */
8572
- LogConfigurations: LogConfigurationType[] | undefined;
8573
- }
8574
8610
  /**
8575
8611
  * @internal
8576
8612
  */
@@ -1,6 +1,46 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { CognitoIdentityProviderServiceException as __BaseException } from "./CognitoIdentityProviderServiceException";
3
- import { AccountRecoverySettingType, AccountTakeoverRiskConfigurationType, AdminCreateUserConfigType, AnalyticsConfigurationType, AnalyticsMetadataType, AttributeType, CodeDeliveryDetailsType, CompromisedCredentialsRiskConfigurationType, CustomDomainConfigType, DeletionProtectionType, DeviceConfigurationType, DeviceRememberedStatusType, EmailConfigurationType, ExplicitAuthFlowsType, FeedbackValueType, GroupType, IdentityProviderType, LambdaConfigType, LogDeliveryConfigurationType, MFAOptionType, OAuthFlowType, PreventUserExistenceErrorTypes, ResourceServerScopeType, ResourceServerType, RiskConfigurationType, RiskExceptionConfigurationType, SmsConfigurationType, SmsMfaConfigType, SMSMfaSettingsType, SoftwareTokenMfaConfigType, SoftwareTokenMfaSettingsType, TokenValidityUnitsType, UICustomizationType, UserAttributeUpdateSettingsType, UserContextDataType, UserImportJobType, UserPoolAddOnsType, UserPoolClientType, UserPoolMfaType, UserPoolPolicyType, VerificationMessageTemplateType, VerifiedAttributeType } from "./models_0";
3
+ import { AccountRecoverySettingType, AccountTakeoverRiskConfigurationType, AdminCreateUserConfigType, AnalyticsConfigurationType, AnalyticsMetadataType, AttributeType, CodeDeliveryDetailsType, CompromisedCredentialsRiskConfigurationType, CustomDomainConfigType, DeletionProtectionType, DeviceConfigurationType, DeviceRememberedStatusType, EmailConfigurationType, ExplicitAuthFlowsType, FeedbackValueType, GroupType, IdentityProviderType, LambdaConfigType, LogConfigurationType, LogDeliveryConfigurationType, MFAOptionType, OAuthFlowType, PreventUserExistenceErrorTypes, ResourceServerScopeType, ResourceServerType, RiskConfigurationType, RiskExceptionConfigurationType, SmsConfigurationType, SmsMfaConfigType, SMSMfaSettingsType, SoftwareTokenMfaConfigType, SoftwareTokenMfaSettingsType, TokenValidityUnitsType, UICustomizationType, UserAttributeUpdateSettingsType, UserContextDataType, UserImportJobType, UserPoolAddOnsType, UserPoolClientType, UserPoolMfaType, UserPoolPolicyType, VerificationMessageTemplateType, VerifiedAttributeType } from "./models_0";
4
+ /**
5
+ * <p>Exception that is thrown when you attempt to perform an operation that isn't enabled
6
+ * for the user pool client.</p>
7
+ * @public
8
+ */
9
+ export declare class UnsupportedOperationException extends __BaseException {
10
+ readonly name: "UnsupportedOperationException";
11
+ readonly $fault: "client";
12
+ /**
13
+ * @internal
14
+ */
15
+ constructor(opts: __ExceptionOptionType<UnsupportedOperationException, __BaseException>);
16
+ }
17
+ /**
18
+ * <p>Exception that is thrown when an unsupported token is passed to an operation.</p>
19
+ * @public
20
+ */
21
+ export declare class UnsupportedTokenTypeException extends __BaseException {
22
+ readonly name: "UnsupportedTokenTypeException";
23
+ readonly $fault: "client";
24
+ /**
25
+ * @internal
26
+ */
27
+ constructor(opts: __ExceptionOptionType<UnsupportedTokenTypeException, __BaseException>);
28
+ }
29
+ /**
30
+ * @public
31
+ */
32
+ export interface SetLogDeliveryConfigurationRequest {
33
+ /**
34
+ * <p>The ID of the user pool where you want to configure logging.</p>
35
+ * @public
36
+ */
37
+ UserPoolId: string | undefined;
38
+ /**
39
+ * <p>A collection of the logging configurations for a user pool.</p>
40
+ * @public
41
+ */
42
+ LogConfigurations: LogConfigurationType[] | undefined;
43
+ }
4
44
  /**
5
45
  * @public
6
46
  */
@@ -334,7 +374,7 @@ export interface SignUpResponse {
334
374
  */
335
375
  CodeDeliveryDetails?: CodeDeliveryDetailsType;
336
376
  /**
337
- * <p>The UUID of the authenticated user. This isn't the same as
377
+ * <p>The 128-bit ID of the authenticated user. This isn't the same as
338
378
  * <code>username</code>.</p>
339
379
  * @public
340
380
  */
@@ -1288,6 +1328,7 @@ export interface UpdateUserPoolClientRequest {
1288
1328
  * existence related errors aren't prevented.</p>
1289
1329
  * </li>
1290
1330
  * </ul>
1331
+ * <p>Defaults to <code>LEGACY</code> when you don't provide a value.</p>
1291
1332
  * @public
1292
1333
  */
1293
1334
  PreventUserExistenceErrors?: PreventUserExistenceErrorTypes;
@@ -5,8 +5,10 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../CognitoIdentityProviderClient";
8
- import { SetLogDeliveryConfigurationRequest } from "../models/models_0";
9
- import { SetLogDeliveryConfigurationResponse } from "../models/models_1";
8
+ import {
9
+ SetLogDeliveryConfigurationRequest,
10
+ SetLogDeliveryConfigurationResponse,
11
+ } from "../models/models_1";
10
12
  export { __MetadataBearer };
11
13
  export { $Command };
12
14
  export interface SetLogDeliveryConfigurationCommandInput
@@ -643,6 +643,16 @@ export declare class ExpiredCodeException extends __BaseException {
643
643
  opts: __ExceptionOptionType<ExpiredCodeException, __BaseException>
644
644
  );
645
645
  }
646
+ export declare class PasswordHistoryPolicyViolationException extends __BaseException {
647
+ readonly name: "PasswordHistoryPolicyViolationException";
648
+ readonly $fault: "client";
649
+ constructor(
650
+ opts: __ExceptionOptionType<
651
+ PasswordHistoryPolicyViolationException,
652
+ __BaseException
653
+ >
654
+ );
655
+ }
646
656
  export declare class SoftwareTokenMFANotFoundException extends __BaseException {
647
657
  readonly name: "SoftwareTokenMFANotFoundException";
648
658
  readonly $fault: "client";
@@ -997,6 +1007,7 @@ export interface PasswordPolicyType {
997
1007
  RequireLowercase?: boolean;
998
1008
  RequireNumbers?: boolean;
999
1009
  RequireSymbols?: boolean;
1010
+ PasswordHistorySize?: number;
1000
1011
  TemporaryPasswordValidityDays?: number;
1001
1012
  }
1002
1013
  export interface UserPoolPolicyType {
@@ -1421,18 +1432,28 @@ export interface CloudWatchLogsConfigurationType {
1421
1432
  LogGroupArn?: string;
1422
1433
  }
1423
1434
  export declare const EventSourceName: {
1435
+ readonly USER_AUTH_EVENTS: "userAuthEvents";
1424
1436
  readonly USER_NOTIFICATION: "userNotification";
1425
1437
  };
1426
1438
  export type EventSourceName =
1427
1439
  (typeof EventSourceName)[keyof typeof EventSourceName];
1440
+ export interface FirehoseConfigurationType {
1441
+ StreamArn?: string;
1442
+ }
1428
1443
  export declare const LogLevel: {
1429
1444
  readonly ERROR: "ERROR";
1445
+ readonly INFO: "INFO";
1430
1446
  };
1431
1447
  export type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
1448
+ export interface S3ConfigurationType {
1449
+ BucketArn?: string;
1450
+ }
1432
1451
  export interface LogConfigurationType {
1433
1452
  LogLevel: LogLevel | undefined;
1434
1453
  EventSource: EventSourceName | undefined;
1435
1454
  CloudWatchLogsConfiguration?: CloudWatchLogsConfigurationType;
1455
+ S3Configuration?: S3ConfigurationType;
1456
+ FirehoseConfiguration?: FirehoseConfigurationType;
1436
1457
  }
1437
1458
  export interface LogDeliveryConfigurationType {
1438
1459
  UserPoolId: string | undefined;
@@ -1661,24 +1682,6 @@ export declare class UnauthorizedException extends __BaseException {
1661
1682
  opts: __ExceptionOptionType<UnauthorizedException, __BaseException>
1662
1683
  );
1663
1684
  }
1664
- export declare class UnsupportedOperationException extends __BaseException {
1665
- readonly name: "UnsupportedOperationException";
1666
- readonly $fault: "client";
1667
- constructor(
1668
- opts: __ExceptionOptionType<UnsupportedOperationException, __BaseException>
1669
- );
1670
- }
1671
- export declare class UnsupportedTokenTypeException extends __BaseException {
1672
- readonly name: "UnsupportedTokenTypeException";
1673
- readonly $fault: "client";
1674
- constructor(
1675
- opts: __ExceptionOptionType<UnsupportedTokenTypeException, __BaseException>
1676
- );
1677
- }
1678
- export interface SetLogDeliveryConfigurationRequest {
1679
- UserPoolId: string | undefined;
1680
- LogConfigurations: LogConfigurationType[] | undefined;
1681
- }
1682
1685
  export declare const AdminAddUserToGroupRequestFilterSensitiveLog: (
1683
1686
  obj: AdminAddUserToGroupRequest
1684
1687
  ) => any;
@@ -19,6 +19,7 @@ import {
19
19
  GroupType,
20
20
  IdentityProviderType,
21
21
  LambdaConfigType,
22
+ LogConfigurationType,
22
23
  LogDeliveryConfigurationType,
23
24
  MFAOptionType,
24
25
  OAuthFlowType,
@@ -44,6 +45,24 @@ import {
44
45
  VerificationMessageTemplateType,
45
46
  VerifiedAttributeType,
46
47
  } from "./models_0";
48
+ export declare class UnsupportedOperationException extends __BaseException {
49
+ readonly name: "UnsupportedOperationException";
50
+ readonly $fault: "client";
51
+ constructor(
52
+ opts: __ExceptionOptionType<UnsupportedOperationException, __BaseException>
53
+ );
54
+ }
55
+ export declare class UnsupportedTokenTypeException extends __BaseException {
56
+ readonly name: "UnsupportedTokenTypeException";
57
+ readonly $fault: "client";
58
+ constructor(
59
+ opts: __ExceptionOptionType<UnsupportedTokenTypeException, __BaseException>
60
+ );
61
+ }
62
+ export interface SetLogDeliveryConfigurationRequest {
63
+ UserPoolId: string | undefined;
64
+ LogConfigurations: LogConfigurationType[] | undefined;
65
+ }
47
66
  export interface SetLogDeliveryConfigurationResponse {
48
67
  LogDeliveryConfiguration?: LogDeliveryConfigurationType;
49
68
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cognito-identity-provider",
3
3
  "description": "AWS SDK for JavaScript Cognito Identity Provider Client for Node.js, Browser and React Native",
4
- "version": "3.623.0",
4
+ "version": "3.625.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cognito-identity-provider",
@@ -20,10 +20,10 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.623.0",
24
- "@aws-sdk/client-sts": "3.623.0",
25
- "@aws-sdk/core": "3.623.0",
26
- "@aws-sdk/credential-provider-node": "3.623.0",
23
+ "@aws-sdk/client-sso-oidc": "3.624.0",
24
+ "@aws-sdk/client-sts": "3.624.0",
25
+ "@aws-sdk/core": "3.624.0",
26
+ "@aws-sdk/credential-provider-node": "3.624.0",
27
27
  "@aws-sdk/middleware-host-header": "3.620.0",
28
28
  "@aws-sdk/middleware-logger": "3.609.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.620.0",