@aws-sdk/client-cognito-identity-provider 3.696.0 → 3.699.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.
- package/README.md +80 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +20 -0
- package/dist-cjs/index.js +983 -71
- package/dist-es/CognitoIdentityProvider.js +20 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +20 -0
- package/dist-es/commands/CompleteWebAuthnRegistrationCommand.js +23 -0
- package/dist-es/commands/ConfirmSignUpCommand.js +2 -2
- package/dist-es/commands/CreateManagedLoginBrandingCommand.js +23 -0
- package/dist-es/commands/DeleteManagedLoginBrandingCommand.js +22 -0
- package/dist-es/commands/DeleteWebAuthnCredentialCommand.js +23 -0
- package/dist-es/commands/DescribeManagedLoginBrandingByClientCommand.js +23 -0
- package/dist-es/commands/DescribeManagedLoginBrandingCommand.js +22 -0
- package/dist-es/commands/GetUserAuthFactorsCommand.js +23 -0
- package/dist-es/commands/GlobalSignOutCommand.js +1 -1
- package/dist-es/commands/InitiateAuthCommand.js +1 -1
- package/dist-es/commands/ListDevicesCommand.js +1 -1
- package/dist-es/commands/ListUserPoolClientsCommand.js +1 -1
- package/dist-es/commands/ListUsersCommand.js +1 -1
- package/dist-es/commands/ListUsersInGroupCommand.js +1 -1
- package/dist-es/commands/ListWebAuthnCredentialsCommand.js +23 -0
- package/dist-es/commands/ResendConfirmationCodeCommand.js +1 -1
- package/dist-es/commands/RespondToAuthChallengeCommand.js +1 -2
- package/dist-es/commands/SignUpCommand.js +2 -2
- package/dist-es/commands/StartWebAuthnRegistrationCommand.js +23 -0
- package/dist-es/commands/UpdateManagedLoginBrandingCommand.js +22 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/models/models_0.js +184 -50
- package/dist-es/models/models_1.js +82 -1
- package/dist-es/protocols/Aws_json1_1.js +433 -2
- package/dist-types/CognitoIdentityProvider.d.ts +71 -0
- package/dist-types/CognitoIdentityProviderClient.d.ts +12 -2
- package/dist-types/commands/AdminCreateUserCommand.d.ts +9 -4
- package/dist-types/commands/AdminGetUserCommand.d.ts +2 -1
- package/dist-types/commands/AdminInitiateAuthCommand.d.ts +5 -4
- package/dist-types/commands/AdminListDevicesCommand.d.ts +1 -1
- package/dist-types/commands/AdminResetUserPasswordCommand.d.ts +2 -2
- package/dist-types/commands/AdminRespondToAuthChallengeCommand.d.ts +4 -4
- package/dist-types/commands/AdminUpdateUserAttributesCommand.d.ts +2 -2
- package/dist-types/commands/ChangePasswordCommand.d.ts +1 -1
- package/dist-types/commands/CompleteWebAuthnRegistrationCommand.d.ts +119 -0
- package/dist-types/commands/ConfirmSignUpCommand.d.ts +5 -2
- package/dist-types/commands/CreateManagedLoginBrandingCommand.d.ts +162 -0
- package/dist-types/commands/CreateUserPoolClientCommand.d.ts +2 -2
- package/dist-types/commands/CreateUserPoolCommand.d.ts +22 -2
- package/dist-types/commands/CreateUserPoolDomainCommand.d.ts +8 -1
- package/dist-types/commands/DeleteManagedLoginBrandingCommand.d.ts +113 -0
- package/dist-types/commands/DeleteWebAuthnCredentialCommand.d.ts +90 -0
- package/dist-types/commands/DescribeManagedLoginBrandingByClientCommand.d.ts +108 -0
- package/dist-types/commands/DescribeManagedLoginBrandingCommand.d.ts +108 -0
- package/dist-types/commands/DescribeUserPoolClientCommand.d.ts +1 -1
- package/dist-types/commands/DescribeUserPoolCommand.d.ts +6 -0
- package/dist-types/commands/DescribeUserPoolDomainCommand.d.ts +1 -0
- package/dist-types/commands/ForgotPasswordCommand.d.ts +2 -2
- package/dist-types/commands/GetUserAttributeVerificationCodeCommand.d.ts +2 -2
- package/dist-types/commands/GetUserAuthFactorsCommand.d.ts +120 -0
- package/dist-types/commands/GetUserPoolMfaConfigCommand.d.ts +6 -1
- package/dist-types/commands/GlobalSignOutCommand.d.ts +1 -1
- package/dist-types/commands/InitiateAuthCommand.d.ts +9 -5
- package/dist-types/commands/ListDevicesCommand.d.ts +1 -1
- package/dist-types/commands/ListGroupsCommand.d.ts +1 -1
- package/dist-types/commands/ListIdentityProvidersCommand.d.ts +1 -1
- package/dist-types/commands/ListResourceServersCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListUserImportJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListUserPoolClientsCommand.d.ts +1 -1
- package/dist-types/commands/ListUserPoolsCommand.d.ts +1 -1
- package/dist-types/commands/ListUsersCommand.d.ts +1 -1
- package/dist-types/commands/ListUsersInGroupCommand.d.ts +1 -1
- package/dist-types/commands/ListWebAuthnCredentialsCommand.d.ts +100 -0
- package/dist-types/commands/ResendConfirmationCodeCommand.d.ts +3 -3
- package/dist-types/commands/RespondToAuthChallengeCommand.d.ts +5 -6
- package/dist-types/commands/SetLogDeliveryConfigurationCommand.d.ts +4 -0
- package/dist-types/commands/SetUserPoolMfaConfigCommand.d.ts +15 -3
- package/dist-types/commands/SignUpCommand.d.ts +11 -3
- package/dist-types/commands/StartWebAuthnRegistrationCommand.d.ts +107 -0
- package/dist-types/commands/UpdateManagedLoginBrandingCommand.d.ts +150 -0
- package/dist-types/commands/UpdateUserAttributesCommand.d.ts +2 -2
- package/dist-types/commands/UpdateUserPoolClientCommand.d.ts +2 -2
- package/dist-types/commands/UpdateUserPoolCommand.d.ts +17 -2
- package/dist-types/commands/UpdateUserPoolDomainCommand.d.ts +6 -0
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +1609 -1660
- package/dist-types/models/models_1.d.ts +1711 -7
- package/dist-types/protocols/Aws_json1_1.d.ts +90 -0
- package/dist-types/ts3.4/CognitoIdentityProvider.d.ts +177 -0
- package/dist-types/ts3.4/CognitoIdentityProviderClient.d.ts +60 -0
- package/dist-types/ts3.4/commands/CompleteWebAuthnRegistrationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ConfirmSignUpCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateManagedLoginBrandingCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteManagedLoginBrandingCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteWebAuthnCredentialCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeManagedLoginBrandingByClientCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeManagedLoginBrandingCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetUserAuthFactorsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetUserPoolMfaConfigCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/GlobalSignOutCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/InitiateAuthCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListDevicesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListGroupsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListIdentityProvidersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListResourceServersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListUserImportJobsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListUserPoolClientsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListUserPoolsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListUsersInGroupCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListWebAuthnCredentialsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ResendConfirmationCodeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/RespondToAuthChallengeCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/StartWebAuthnRegistrationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateManagedLoginBrandingCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +10 -0
- package/dist-types/ts3.4/models/models_0.d.ts +248 -185
- package/dist-types/ts3.4/models/models_1.d.ts +262 -1
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +120 -0
- package/package.json +4 -4
|
@@ -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 { RespondToAuthChallengeRequest } from "../models/
|
|
5
|
-
import { RespondToAuthChallengeResponse } from "../models/models_1";
|
|
4
|
+
import { RespondToAuthChallengeRequest, RespondToAuthChallengeResponse } from "../models/models_1";
|
|
6
5
|
/**
|
|
7
6
|
* @public
|
|
8
7
|
*/
|
|
@@ -49,7 +48,7 @@ declare const RespondToAuthChallengeCommand_base: {
|
|
|
49
48
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
50
49
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
51
50
|
* in.</p>
|
|
52
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
51
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Services service,
|
|
53
52
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
54
53
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
55
54
|
* mode</a>
|
|
@@ -66,7 +65,7 @@ declare const RespondToAuthChallengeCommand_base: {
|
|
|
66
65
|
* const client = new CognitoIdentityProviderClient(config);
|
|
67
66
|
* const input = { // RespondToAuthChallengeRequest
|
|
68
67
|
* ClientId: "STRING_VALUE", // required
|
|
69
|
-
* ChallengeName: "SMS_MFA" || "EMAIL_OTP" || "SOFTWARE_TOKEN_MFA" || "SELECT_MFA_TYPE" || "MFA_SETUP" || "PASSWORD_VERIFIER" || "CUSTOM_CHALLENGE" || "DEVICE_SRP_AUTH" || "DEVICE_PASSWORD_VERIFIER" || "ADMIN_NO_SRP_AUTH" || "NEW_PASSWORD_REQUIRED", // required
|
|
68
|
+
* ChallengeName: "SMS_MFA" || "EMAIL_OTP" || "SOFTWARE_TOKEN_MFA" || "SELECT_MFA_TYPE" || "MFA_SETUP" || "PASSWORD_VERIFIER" || "CUSTOM_CHALLENGE" || "SELECT_CHALLENGE" || "DEVICE_SRP_AUTH" || "DEVICE_PASSWORD_VERIFIER" || "ADMIN_NO_SRP_AUTH" || "NEW_PASSWORD_REQUIRED" || "SMS_OTP" || "PASSWORD" || "WEB_AUTHN" || "PASSWORD_SRP", // required
|
|
70
69
|
* Session: "STRING_VALUE",
|
|
71
70
|
* ChallengeResponses: { // ChallengeResponsesType
|
|
72
71
|
* "<keys>": "STRING_VALUE",
|
|
@@ -85,7 +84,7 @@ declare const RespondToAuthChallengeCommand_base: {
|
|
|
85
84
|
* const command = new RespondToAuthChallengeCommand(input);
|
|
86
85
|
* const response = await client.send(command);
|
|
87
86
|
* // { // RespondToAuthChallengeResponse
|
|
88
|
-
* // ChallengeName: "SMS_MFA" || "EMAIL_OTP" || "SOFTWARE_TOKEN_MFA" || "SELECT_MFA_TYPE" || "MFA_SETUP" || "PASSWORD_VERIFIER" || "CUSTOM_CHALLENGE" || "DEVICE_SRP_AUTH" || "DEVICE_PASSWORD_VERIFIER" || "ADMIN_NO_SRP_AUTH" || "NEW_PASSWORD_REQUIRED",
|
|
87
|
+
* // ChallengeName: "SMS_MFA" || "EMAIL_OTP" || "SOFTWARE_TOKEN_MFA" || "SELECT_MFA_TYPE" || "MFA_SETUP" || "PASSWORD_VERIFIER" || "CUSTOM_CHALLENGE" || "SELECT_CHALLENGE" || "DEVICE_SRP_AUTH" || "DEVICE_PASSWORD_VERIFIER" || "ADMIN_NO_SRP_AUTH" || "NEW_PASSWORD_REQUIRED" || "SMS_OTP" || "PASSWORD" || "WEB_AUTHN" || "PASSWORD_SRP",
|
|
89
88
|
* // Session: "STRING_VALUE",
|
|
90
89
|
* // ChallengeParameters: { // ChallengeParametersType
|
|
91
90
|
* // "<keys>": "STRING_VALUE",
|
|
@@ -153,7 +152,7 @@ declare const RespondToAuthChallengeCommand_base: {
|
|
|
153
152
|
* @throws {@link InvalidSmsRoleTrustRelationshipException} (client fault)
|
|
154
153
|
* <p>This exception is thrown when the trust relationship is not valid for the role
|
|
155
154
|
* provided for SMS configuration. This can happen if you don't trust
|
|
156
|
-
*
|
|
155
|
+
* <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
|
|
157
156
|
* not match what is provided in the SMS configuration for the user pool.</p>
|
|
158
157
|
*
|
|
159
158
|
* @throws {@link InvalidUserPoolConfigurationException} (client fault)
|
|
@@ -84,6 +84,10 @@ declare const SetLogDeliveryConfigurationCommand_base: {
|
|
|
84
84
|
* @see {@link SetLogDeliveryConfigurationCommandOutput} for command's `response` shape.
|
|
85
85
|
* @see {@link CognitoIdentityProviderClientResolvedConfig | config} for CognitoIdentityProviderClient's `config` shape.
|
|
86
86
|
*
|
|
87
|
+
* @throws {@link FeatureUnavailableInTierException} (client fault)
|
|
88
|
+
* <p>This exception is thrown when a feature you attempted to configure isn't
|
|
89
|
+
* available in your current feature plan.</p>
|
|
90
|
+
*
|
|
87
91
|
* @throws {@link InternalErrorException} (server fault)
|
|
88
92
|
* <p>This exception is thrown when Amazon Cognito encounters an internal error.</p>
|
|
89
93
|
*
|
|
@@ -27,7 +27,7 @@ declare const SetUserPoolMfaConfigCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Sets the user pool multi-factor authentication (MFA) configuration.</p>
|
|
30
|
+
* <p>Sets the user pool multi-factor authentication (MFA) and passkey configuration.</p>
|
|
31
31
|
* <note>
|
|
32
32
|
* <p>This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers
|
|
33
33
|
* require you to register an origination phone number before you can send SMS messages
|
|
@@ -36,7 +36,7 @@ declare const SetUserPoolMfaConfigCommand_base: {
|
|
|
36
36
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
37
37
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
38
38
|
* in.</p>
|
|
39
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
39
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Services service,
|
|
40
40
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
41
41
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
42
42
|
* mode</a>
|
|
@@ -69,6 +69,10 @@ declare const SetUserPoolMfaConfigCommand_base: {
|
|
|
69
69
|
* Subject: "STRING_VALUE",
|
|
70
70
|
* },
|
|
71
71
|
* MfaConfiguration: "OFF" || "ON" || "OPTIONAL",
|
|
72
|
+
* WebAuthnConfiguration: { // WebAuthnConfigurationType
|
|
73
|
+
* RelyingPartyId: "STRING_VALUE",
|
|
74
|
+
* UserVerification: "required" || "preferred",
|
|
75
|
+
* },
|
|
72
76
|
* };
|
|
73
77
|
* const command = new SetUserPoolMfaConfigCommand(input);
|
|
74
78
|
* const response = await client.send(command);
|
|
@@ -89,6 +93,10 @@ declare const SetUserPoolMfaConfigCommand_base: {
|
|
|
89
93
|
* // Subject: "STRING_VALUE",
|
|
90
94
|
* // },
|
|
91
95
|
* // MfaConfiguration: "OFF" || "ON" || "OPTIONAL",
|
|
96
|
+
* // WebAuthnConfiguration: { // WebAuthnConfigurationType
|
|
97
|
+
* // RelyingPartyId: "STRING_VALUE",
|
|
98
|
+
* // UserVerification: "required" || "preferred",
|
|
99
|
+
* // },
|
|
92
100
|
* // };
|
|
93
101
|
*
|
|
94
102
|
* ```
|
|
@@ -103,6 +111,10 @@ declare const SetUserPoolMfaConfigCommand_base: {
|
|
|
103
111
|
* <p>This exception is thrown if two or more modifications are happening
|
|
104
112
|
* concurrently.</p>
|
|
105
113
|
*
|
|
114
|
+
* @throws {@link FeatureUnavailableInTierException} (client fault)
|
|
115
|
+
* <p>This exception is thrown when a feature you attempted to configure isn't
|
|
116
|
+
* available in your current feature plan.</p>
|
|
117
|
+
*
|
|
106
118
|
* @throws {@link InternalErrorException} (server fault)
|
|
107
119
|
* <p>This exception is thrown when Amazon Cognito encounters an internal error.</p>
|
|
108
120
|
*
|
|
@@ -117,7 +129,7 @@ declare const SetUserPoolMfaConfigCommand_base: {
|
|
|
117
129
|
* @throws {@link InvalidSmsRoleTrustRelationshipException} (client fault)
|
|
118
130
|
* <p>This exception is thrown when the trust relationship is not valid for the role
|
|
119
131
|
* provided for SMS configuration. This can happen if you don't trust
|
|
120
|
-
*
|
|
132
|
+
* <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
|
|
121
133
|
* not match what is provided in the SMS configuration for the user pool.</p>
|
|
122
134
|
*
|
|
123
135
|
* @throws {@link NotAuthorizedException} (client fault)
|
|
@@ -43,7 +43,7 @@ declare const SignUpCommand_base: {
|
|
|
43
43
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
44
44
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
45
45
|
* in.</p>
|
|
46
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
46
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Services service,
|
|
47
47
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
48
48
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
49
49
|
* mode</a>
|
|
@@ -52,6 +52,13 @@ declare const SignUpCommand_base: {
|
|
|
52
52
|
* of the sandbox and into production. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html"> SMS message settings for Amazon Cognito user pools</a> in the <i>Amazon Cognito
|
|
53
53
|
* Developer Guide</i>.</p>
|
|
54
54
|
* </note>
|
|
55
|
+
* <p>You might receive a <code>LimitExceeded</code> exception in response to this request
|
|
56
|
+
* if you have exceeded a rate quota for email or SMS messages, and if your user pool
|
|
57
|
+
* automatically verifies email addresses or phone numbers. When you get this exception in
|
|
58
|
+
* the response, the user is successfully created and is in an <code>UNCONFIRMED</code>
|
|
59
|
+
* state. You can send a new code with the <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_ResendConfirmationCode.html"> ResendConfirmationCode</a> request, or confirm the user as an administrator
|
|
60
|
+
* with an <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminConfirmSignUp.html">
|
|
61
|
+
* AdminConfirmSignUp</a> request.</p>
|
|
55
62
|
* @example
|
|
56
63
|
* Use a bare-bones client and the command you need to make an API call.
|
|
57
64
|
* ```javascript
|
|
@@ -62,7 +69,7 @@ declare const SignUpCommand_base: {
|
|
|
62
69
|
* ClientId: "STRING_VALUE", // required
|
|
63
70
|
* SecretHash: "STRING_VALUE",
|
|
64
71
|
* Username: "STRING_VALUE", // required
|
|
65
|
-
* Password: "STRING_VALUE",
|
|
72
|
+
* Password: "STRING_VALUE",
|
|
66
73
|
* UserAttributes: [ // AttributeListType
|
|
67
74
|
* { // AttributeType
|
|
68
75
|
* Name: "STRING_VALUE", // required
|
|
@@ -96,6 +103,7 @@ declare const SignUpCommand_base: {
|
|
|
96
103
|
* // AttributeName: "STRING_VALUE",
|
|
97
104
|
* // },
|
|
98
105
|
* // UserSub: "STRING_VALUE", // required
|
|
106
|
+
* // Session: "STRING_VALUE",
|
|
99
107
|
* // };
|
|
100
108
|
*
|
|
101
109
|
* ```
|
|
@@ -138,7 +146,7 @@ declare const SignUpCommand_base: {
|
|
|
138
146
|
* @throws {@link InvalidSmsRoleTrustRelationshipException} (client fault)
|
|
139
147
|
* <p>This exception is thrown when the trust relationship is not valid for the role
|
|
140
148
|
* provided for SMS configuration. This can happen if you don't trust
|
|
141
|
-
*
|
|
149
|
+
* <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
|
|
142
150
|
* not match what is provided in the SMS configuration for the user pool.</p>
|
|
143
151
|
*
|
|
144
152
|
* @throws {@link LimitExceededException} (client fault)
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityProviderClient";
|
|
4
|
+
import { StartWebAuthnRegistrationRequest, StartWebAuthnRegistrationResponse } from "../models/models_1";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link StartWebAuthnRegistrationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface StartWebAuthnRegistrationCommandInput extends StartWebAuthnRegistrationRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link StartWebAuthnRegistrationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface StartWebAuthnRegistrationCommandOutput extends StartWebAuthnRegistrationResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const StartWebAuthnRegistrationCommand_base: {
|
|
25
|
+
new (input: StartWebAuthnRegistrationCommandInput): import("@smithy/smithy-client").CommandImpl<StartWebAuthnRegistrationCommandInput, StartWebAuthnRegistrationCommandOutput, CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: StartWebAuthnRegistrationCommandInput): import("@smithy/smithy-client").CommandImpl<StartWebAuthnRegistrationCommandInput, StartWebAuthnRegistrationCommandOutput, CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Requests credential creation options from your user pool for registration of a passkey
|
|
31
|
+
* authenticator. Returns information about the user pool, the user profile, and
|
|
32
|
+
* authentication requirements. Users must provide this information in their request to
|
|
33
|
+
* enroll your application with their passkey provider.</p>
|
|
34
|
+
* <p>After users present this data and register with their passkey provider, return the
|
|
35
|
+
* response to your user pool in a <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CompleteWebAuthnRegistration.html"> CompleteWebAuthnRegistration</a> API request.</p>
|
|
36
|
+
* <p>Authorize this action with a signed-in user's access token. It must include the scope <code>aws.cognito.signin.user.admin</code>.</p>
|
|
37
|
+
* @example
|
|
38
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
39
|
+
* ```javascript
|
|
40
|
+
* import { CognitoIdentityProviderClient, StartWebAuthnRegistrationCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
|
|
41
|
+
* // const { CognitoIdentityProviderClient, StartWebAuthnRegistrationCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
|
|
42
|
+
* const client = new CognitoIdentityProviderClient(config);
|
|
43
|
+
* const input = { // StartWebAuthnRegistrationRequest
|
|
44
|
+
* AccessToken: "STRING_VALUE", // required
|
|
45
|
+
* };
|
|
46
|
+
* const command = new StartWebAuthnRegistrationCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* // { // StartWebAuthnRegistrationResponse
|
|
49
|
+
* // CredentialCreationOptions: "DOCUMENT_VALUE", // required
|
|
50
|
+
* // };
|
|
51
|
+
*
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @param StartWebAuthnRegistrationCommandInput - {@link StartWebAuthnRegistrationCommandInput}
|
|
55
|
+
* @returns {@link StartWebAuthnRegistrationCommandOutput}
|
|
56
|
+
* @see {@link StartWebAuthnRegistrationCommandInput} for command's `input` shape.
|
|
57
|
+
* @see {@link StartWebAuthnRegistrationCommandOutput} for command's `response` shape.
|
|
58
|
+
* @see {@link CognitoIdentityProviderClientResolvedConfig | config} for CognitoIdentityProviderClient's `config` shape.
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
61
|
+
* <p>This exception is thrown when WAF doesn't allow your request based on a web
|
|
62
|
+
* ACL that's associated with your user pool.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link InternalErrorException} (server fault)
|
|
65
|
+
* <p>This exception is thrown when Amazon Cognito encounters an internal error.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
68
|
+
* <p>This exception is thrown when the Amazon Cognito service encounters an invalid
|
|
69
|
+
* parameter.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
72
|
+
* <p>This exception is thrown when a user exceeds the limit for a requested Amazon Web Services
|
|
73
|
+
* resource.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link NotAuthorizedException} (client fault)
|
|
76
|
+
* <p>This exception is thrown when a user isn't authorized.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
79
|
+
* <p>This exception is thrown when the user has made too many requests for a given
|
|
80
|
+
* operation.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link WebAuthnConfigurationMissingException} (client fault)
|
|
83
|
+
* <p>This exception is thrown when a user pool doesn't have a configured relying party
|
|
84
|
+
* id or a user pool domain.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link WebAuthnNotEnabledException} (client fault)
|
|
87
|
+
* <p>This exception is thrown when the passkey feature isn't enabled for the user
|
|
88
|
+
* pool.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link CognitoIdentityProviderServiceException}
|
|
91
|
+
* <p>Base exception class for all service exceptions from CognitoIdentityProvider service.</p>
|
|
92
|
+
*
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
export declare class StartWebAuthnRegistrationCommand extends StartWebAuthnRegistrationCommand_base {
|
|
96
|
+
/** @internal type navigation helper, not in runtime. */
|
|
97
|
+
protected static __types: {
|
|
98
|
+
api: {
|
|
99
|
+
input: StartWebAuthnRegistrationRequest;
|
|
100
|
+
output: StartWebAuthnRegistrationResponse;
|
|
101
|
+
};
|
|
102
|
+
sdk: {
|
|
103
|
+
input: StartWebAuthnRegistrationCommandInput;
|
|
104
|
+
output: StartWebAuthnRegistrationCommandOutput;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityProviderClient";
|
|
4
|
+
import { UpdateManagedLoginBrandingRequest, UpdateManagedLoginBrandingResponse } from "../models/models_1";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateManagedLoginBrandingCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateManagedLoginBrandingCommandInput extends UpdateManagedLoginBrandingRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateManagedLoginBrandingCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateManagedLoginBrandingCommandOutput extends UpdateManagedLoginBrandingResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateManagedLoginBrandingCommand_base: {
|
|
25
|
+
new (input: UpdateManagedLoginBrandingCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateManagedLoginBrandingCommandInput, UpdateManagedLoginBrandingCommandOutput, CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [UpdateManagedLoginBrandingCommandInput]): import("@smithy/smithy-client").CommandImpl<UpdateManagedLoginBrandingCommandInput, UpdateManagedLoginBrandingCommandOutput, CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Configures the branding settings for a user pool style. This operation is the
|
|
31
|
+
* programmatic option for the configuration of a style in the branding designer.</p>
|
|
32
|
+
* <p>Provides values for UI customization in a <code>Settings</code> JSON object and image
|
|
33
|
+
* files in an <code>Assets</code> array.</p>
|
|
34
|
+
* <p> This operation has a 2-megabyte request-size limit and include the CSS settings and
|
|
35
|
+
* image assets for your app client. Your branding settings might exceed 2MB in size. Amazon Cognito
|
|
36
|
+
* doesn't require that you pass all parameters in one request and preserves existing
|
|
37
|
+
* style settings that you don't specify. If your request is larger than 2MB, separate it
|
|
38
|
+
* into multiple requests, each with a size smaller than the limit. </p>
|
|
39
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/managed-login-brandingdesigner.html#branding-designer-api">API and SDK operations for managed login branding</a>.</p>
|
|
40
|
+
* <note>
|
|
41
|
+
* <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For
|
|
42
|
+
* this operation, you must use IAM credentials to authorize requests, and you must
|
|
43
|
+
* grant yourself the corresponding IAM permission in a policy.</p>
|
|
44
|
+
* <p class="title">
|
|
45
|
+
* <b>Learn more</b>
|
|
46
|
+
* </p>
|
|
47
|
+
* <ul>
|
|
48
|
+
* <li>
|
|
49
|
+
* <p>
|
|
50
|
+
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html">Signing Amazon Web Services API Requests</a>
|
|
51
|
+
* </p>
|
|
52
|
+
* </li>
|
|
53
|
+
* <li>
|
|
54
|
+
* <p>
|
|
55
|
+
* <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>
|
|
56
|
+
* </p>
|
|
57
|
+
* </li>
|
|
58
|
+
* </ul>
|
|
59
|
+
* </note>
|
|
60
|
+
* @example
|
|
61
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
62
|
+
* ```javascript
|
|
63
|
+
* import { CognitoIdentityProviderClient, UpdateManagedLoginBrandingCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
|
|
64
|
+
* // const { CognitoIdentityProviderClient, UpdateManagedLoginBrandingCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
|
|
65
|
+
* const client = new CognitoIdentityProviderClient(config);
|
|
66
|
+
* const input = { // UpdateManagedLoginBrandingRequest
|
|
67
|
+
* UserPoolId: "STRING_VALUE",
|
|
68
|
+
* ManagedLoginBrandingId: "STRING_VALUE",
|
|
69
|
+
* UseCognitoProvidedValues: true || false,
|
|
70
|
+
* Settings: "DOCUMENT_VALUE",
|
|
71
|
+
* Assets: [ // AssetListType
|
|
72
|
+
* { // AssetType
|
|
73
|
+
* Category: "FAVICON_ICO" || "FAVICON_SVG" || "EMAIL_GRAPHIC" || "SMS_GRAPHIC" || "AUTH_APP_GRAPHIC" || "PASSWORD_GRAPHIC" || "PASSKEY_GRAPHIC" || "PAGE_HEADER_LOGO" || "PAGE_HEADER_BACKGROUND" || "PAGE_FOOTER_LOGO" || "PAGE_FOOTER_BACKGROUND" || "PAGE_BACKGROUND" || "FORM_BACKGROUND" || "FORM_LOGO" || "IDP_BUTTON_ICON", // required
|
|
74
|
+
* ColorMode: "LIGHT" || "DARK" || "DYNAMIC", // required
|
|
75
|
+
* Extension: "ICO" || "JPEG" || "PNG" || "SVG" || "WEBP", // required
|
|
76
|
+
* Bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
77
|
+
* ResourceId: "STRING_VALUE",
|
|
78
|
+
* },
|
|
79
|
+
* ],
|
|
80
|
+
* };
|
|
81
|
+
* const command = new UpdateManagedLoginBrandingCommand(input);
|
|
82
|
+
* const response = await client.send(command);
|
|
83
|
+
* // { // UpdateManagedLoginBrandingResponse
|
|
84
|
+
* // ManagedLoginBranding: { // ManagedLoginBrandingType
|
|
85
|
+
* // ManagedLoginBrandingId: "STRING_VALUE",
|
|
86
|
+
* // UserPoolId: "STRING_VALUE",
|
|
87
|
+
* // UseCognitoProvidedValues: true || false,
|
|
88
|
+
* // Settings: "DOCUMENT_VALUE",
|
|
89
|
+
* // Assets: [ // AssetListType
|
|
90
|
+
* // { // AssetType
|
|
91
|
+
* // Category: "FAVICON_ICO" || "FAVICON_SVG" || "EMAIL_GRAPHIC" || "SMS_GRAPHIC" || "AUTH_APP_GRAPHIC" || "PASSWORD_GRAPHIC" || "PASSKEY_GRAPHIC" || "PAGE_HEADER_LOGO" || "PAGE_HEADER_BACKGROUND" || "PAGE_FOOTER_LOGO" || "PAGE_FOOTER_BACKGROUND" || "PAGE_BACKGROUND" || "FORM_BACKGROUND" || "FORM_LOGO" || "IDP_BUTTON_ICON", // required
|
|
92
|
+
* // ColorMode: "LIGHT" || "DARK" || "DYNAMIC", // required
|
|
93
|
+
* // Extension: "ICO" || "JPEG" || "PNG" || "SVG" || "WEBP", // required
|
|
94
|
+
* // Bytes: new Uint8Array(),
|
|
95
|
+
* // ResourceId: "STRING_VALUE",
|
|
96
|
+
* // },
|
|
97
|
+
* // ],
|
|
98
|
+
* // CreationDate: new Date("TIMESTAMP"),
|
|
99
|
+
* // LastModifiedDate: new Date("TIMESTAMP"),
|
|
100
|
+
* // },
|
|
101
|
+
* // };
|
|
102
|
+
*
|
|
103
|
+
* ```
|
|
104
|
+
*
|
|
105
|
+
* @param UpdateManagedLoginBrandingCommandInput - {@link UpdateManagedLoginBrandingCommandInput}
|
|
106
|
+
* @returns {@link UpdateManagedLoginBrandingCommandOutput}
|
|
107
|
+
* @see {@link UpdateManagedLoginBrandingCommandInput} for command's `input` shape.
|
|
108
|
+
* @see {@link UpdateManagedLoginBrandingCommandOutput} for command's `response` shape.
|
|
109
|
+
* @see {@link CognitoIdentityProviderClientResolvedConfig | config} for CognitoIdentityProviderClient's `config` shape.
|
|
110
|
+
*
|
|
111
|
+
* @throws {@link ConcurrentModificationException} (client fault)
|
|
112
|
+
* <p>This exception is thrown if two or more modifications are happening
|
|
113
|
+
* concurrently.</p>
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link InternalErrorException} (server fault)
|
|
116
|
+
* <p>This exception is thrown when Amazon Cognito encounters an internal error.</p>
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
119
|
+
* <p>This exception is thrown when the Amazon Cognito service encounters an invalid
|
|
120
|
+
* parameter.</p>
|
|
121
|
+
*
|
|
122
|
+
* @throws {@link NotAuthorizedException} (client fault)
|
|
123
|
+
* <p>This exception is thrown when a user isn't authorized.</p>
|
|
124
|
+
*
|
|
125
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
126
|
+
* <p>This exception is thrown when the Amazon Cognito service can't find the requested
|
|
127
|
+
* resource.</p>
|
|
128
|
+
*
|
|
129
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
130
|
+
* <p>This exception is thrown when the user has made too many requests for a given
|
|
131
|
+
* operation.</p>
|
|
132
|
+
*
|
|
133
|
+
* @throws {@link CognitoIdentityProviderServiceException}
|
|
134
|
+
* <p>Base exception class for all service exceptions from CognitoIdentityProvider service.</p>
|
|
135
|
+
*
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
export declare class UpdateManagedLoginBrandingCommand extends UpdateManagedLoginBrandingCommand_base {
|
|
139
|
+
/** @internal type navigation helper, not in runtime. */
|
|
140
|
+
protected static __types: {
|
|
141
|
+
api: {
|
|
142
|
+
input: UpdateManagedLoginBrandingRequest;
|
|
143
|
+
output: UpdateManagedLoginBrandingResponse;
|
|
144
|
+
};
|
|
145
|
+
sdk: {
|
|
146
|
+
input: UpdateManagedLoginBrandingCommandInput;
|
|
147
|
+
output: UpdateManagedLoginBrandingCommandOutput;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
}
|
|
@@ -47,7 +47,7 @@ declare const UpdateUserAttributesCommand_base: {
|
|
|
47
47
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
48
48
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
49
49
|
* in.</p>
|
|
50
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
50
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Services service,
|
|
51
51
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
52
52
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
53
53
|
* mode</a>
|
|
@@ -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
|
-
*
|
|
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)
|
|
@@ -79,7 +79,7 @@ declare const UpdateUserPoolClientCommand_base: {
|
|
|
79
79
|
* "STRING_VALUE",
|
|
80
80
|
* ],
|
|
81
81
|
* ExplicitAuthFlows: [ // ExplicitAuthFlowsListType
|
|
82
|
-
* "ADMIN_NO_SRP_AUTH" || "CUSTOM_AUTH_FLOW_ONLY" || "USER_PASSWORD_AUTH" || "ALLOW_ADMIN_USER_PASSWORD_AUTH" || "ALLOW_CUSTOM_AUTH" || "ALLOW_USER_PASSWORD_AUTH" || "ALLOW_USER_SRP_AUTH" || "ALLOW_REFRESH_TOKEN_AUTH",
|
|
82
|
+
* "ADMIN_NO_SRP_AUTH" || "CUSTOM_AUTH_FLOW_ONLY" || "USER_PASSWORD_AUTH" || "ALLOW_ADMIN_USER_PASSWORD_AUTH" || "ALLOW_CUSTOM_AUTH" || "ALLOW_USER_PASSWORD_AUTH" || "ALLOW_USER_SRP_AUTH" || "ALLOW_REFRESH_TOKEN_AUTH" || "ALLOW_USER_AUTH",
|
|
83
83
|
* ],
|
|
84
84
|
* SupportedIdentityProviders: [ // SupportedIdentityProvidersListType
|
|
85
85
|
* "STRING_VALUE",
|
|
@@ -135,7 +135,7 @@ declare const UpdateUserPoolClientCommand_base: {
|
|
|
135
135
|
* // "STRING_VALUE",
|
|
136
136
|
* // ],
|
|
137
137
|
* // ExplicitAuthFlows: [ // ExplicitAuthFlowsListType
|
|
138
|
-
* // "ADMIN_NO_SRP_AUTH" || "CUSTOM_AUTH_FLOW_ONLY" || "USER_PASSWORD_AUTH" || "ALLOW_ADMIN_USER_PASSWORD_AUTH" || "ALLOW_CUSTOM_AUTH" || "ALLOW_USER_PASSWORD_AUTH" || "ALLOW_USER_SRP_AUTH" || "ALLOW_REFRESH_TOKEN_AUTH",
|
|
138
|
+
* // "ADMIN_NO_SRP_AUTH" || "CUSTOM_AUTH_FLOW_ONLY" || "USER_PASSWORD_AUTH" || "ALLOW_ADMIN_USER_PASSWORD_AUTH" || "ALLOW_CUSTOM_AUTH" || "ALLOW_USER_PASSWORD_AUTH" || "ALLOW_USER_SRP_AUTH" || "ALLOW_REFRESH_TOKEN_AUTH" || "ALLOW_USER_AUTH",
|
|
139
139
|
* // ],
|
|
140
140
|
* // SupportedIdentityProviders: [ // SupportedIdentityProvidersListType
|
|
141
141
|
* // "STRING_VALUE",
|
|
@@ -35,7 +35,7 @@ declare const UpdateUserPoolCommand_base: {
|
|
|
35
35
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
36
36
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
37
37
|
* in.</p>
|
|
38
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
38
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Services service,
|
|
39
39
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
40
40
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
41
41
|
* mode</a>
|
|
@@ -87,6 +87,11 @@ declare const UpdateUserPoolCommand_base: {
|
|
|
87
87
|
* PasswordHistorySize: Number("int"),
|
|
88
88
|
* TemporaryPasswordValidityDays: Number("int"),
|
|
89
89
|
* },
|
|
90
|
+
* SignInPolicy: { // SignInPolicyType
|
|
91
|
+
* AllowedFirstAuthFactors: [ // AllowedFirstAuthFactorsListType
|
|
92
|
+
* "PASSWORD" || "EMAIL_OTP" || "SMS_OTP" || "WEB_AUTHN",
|
|
93
|
+
* ],
|
|
94
|
+
* },
|
|
90
95
|
* },
|
|
91
96
|
* DeletionProtection: "ACTIVE" || "INACTIVE",
|
|
92
97
|
* LambdaConfig: { // LambdaConfigType
|
|
@@ -177,6 +182,8 @@ declare const UpdateUserPoolCommand_base: {
|
|
|
177
182
|
* },
|
|
178
183
|
* ],
|
|
179
184
|
* },
|
|
185
|
+
* PoolName: "STRING_VALUE",
|
|
186
|
+
* UserPoolTier: "LITE" || "ESSENTIALS" || "PLUS",
|
|
180
187
|
* };
|
|
181
188
|
* const command = new UpdateUserPoolCommand(input);
|
|
182
189
|
* const response = await client.send(command);
|
|
@@ -194,6 +201,10 @@ declare const UpdateUserPoolCommand_base: {
|
|
|
194
201
|
* <p>This exception is thrown if two or more modifications are happening
|
|
195
202
|
* concurrently.</p>
|
|
196
203
|
*
|
|
204
|
+
* @throws {@link FeatureUnavailableInTierException} (client fault)
|
|
205
|
+
* <p>This exception is thrown when a feature you attempted to configure isn't
|
|
206
|
+
* available in your current feature plan.</p>
|
|
207
|
+
*
|
|
197
208
|
* @throws {@link InternalErrorException} (server fault)
|
|
198
209
|
* <p>This exception is thrown when Amazon Cognito encounters an internal error.</p>
|
|
199
210
|
*
|
|
@@ -212,7 +223,7 @@ declare const UpdateUserPoolCommand_base: {
|
|
|
212
223
|
* @throws {@link InvalidSmsRoleTrustRelationshipException} (client fault)
|
|
213
224
|
* <p>This exception is thrown when the trust relationship is not valid for the role
|
|
214
225
|
* provided for SMS configuration. This can happen if you don't trust
|
|
215
|
-
*
|
|
226
|
+
* <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
|
|
216
227
|
* not match what is provided in the SMS configuration for the user pool.</p>
|
|
217
228
|
*
|
|
218
229
|
* @throws {@link NotAuthorizedException} (client fault)
|
|
@@ -222,6 +233,10 @@ declare const UpdateUserPoolCommand_base: {
|
|
|
222
233
|
* <p>This exception is thrown when the Amazon Cognito service can't find the requested
|
|
223
234
|
* resource.</p>
|
|
224
235
|
*
|
|
236
|
+
* @throws {@link TierChangeNotAllowedException} (client fault)
|
|
237
|
+
* <p>This exception is thrown when you've attempted to change your feature plan but
|
|
238
|
+
* the operation isn't permitted.</p>
|
|
239
|
+
*
|
|
225
240
|
* @throws {@link TooManyRequestsException} (client fault)
|
|
226
241
|
* <p>This exception is thrown when the user has made too many requests for a given
|
|
227
242
|
* operation.</p>
|
|
@@ -75,6 +75,7 @@ declare const UpdateUserPoolDomainCommand_base: {
|
|
|
75
75
|
* const input = { // UpdateUserPoolDomainRequest
|
|
76
76
|
* Domain: "STRING_VALUE", // required
|
|
77
77
|
* UserPoolId: "STRING_VALUE", // required
|
|
78
|
+
* ManagedLoginVersion: Number("int"),
|
|
78
79
|
* CustomDomainConfig: { // CustomDomainConfigType
|
|
79
80
|
* CertificateArn: "STRING_VALUE", // required
|
|
80
81
|
* },
|
|
@@ -82,6 +83,7 @@ declare const UpdateUserPoolDomainCommand_base: {
|
|
|
82
83
|
* const command = new UpdateUserPoolDomainCommand(input);
|
|
83
84
|
* const response = await client.send(command);
|
|
84
85
|
* // { // UpdateUserPoolDomainResponse
|
|
86
|
+
* // ManagedLoginVersion: Number("int"),
|
|
85
87
|
* // CloudFrontDomain: "STRING_VALUE",
|
|
86
88
|
* // };
|
|
87
89
|
*
|
|
@@ -93,6 +95,10 @@ declare const UpdateUserPoolDomainCommand_base: {
|
|
|
93
95
|
* @see {@link UpdateUserPoolDomainCommandOutput} for command's `response` shape.
|
|
94
96
|
* @see {@link CognitoIdentityProviderClientResolvedConfig | config} for CognitoIdentityProviderClient's `config` shape.
|
|
95
97
|
*
|
|
98
|
+
* @throws {@link FeatureUnavailableInTierException} (client fault)
|
|
99
|
+
* <p>This exception is thrown when a feature you attempted to configure isn't
|
|
100
|
+
* available in your current feature plan.</p>
|
|
101
|
+
*
|
|
96
102
|
* @throws {@link InternalErrorException} (server fault)
|
|
97
103
|
* <p>This exception is thrown when Amazon Cognito encounters an internal error.</p>
|
|
98
104
|
*
|
|
@@ -27,11 +27,13 @@ export * from "./AdminUpdateUserAttributesCommand";
|
|
|
27
27
|
export * from "./AdminUserGlobalSignOutCommand";
|
|
28
28
|
export * from "./AssociateSoftwareTokenCommand";
|
|
29
29
|
export * from "./ChangePasswordCommand";
|
|
30
|
+
export * from "./CompleteWebAuthnRegistrationCommand";
|
|
30
31
|
export * from "./ConfirmDeviceCommand";
|
|
31
32
|
export * from "./ConfirmForgotPasswordCommand";
|
|
32
33
|
export * from "./ConfirmSignUpCommand";
|
|
33
34
|
export * from "./CreateGroupCommand";
|
|
34
35
|
export * from "./CreateIdentityProviderCommand";
|
|
36
|
+
export * from "./CreateManagedLoginBrandingCommand";
|
|
35
37
|
export * from "./CreateResourceServerCommand";
|
|
36
38
|
export * from "./CreateUserImportJobCommand";
|
|
37
39
|
export * from "./CreateUserPoolClientCommand";
|
|
@@ -39,13 +41,17 @@ export * from "./CreateUserPoolCommand";
|
|
|
39
41
|
export * from "./CreateUserPoolDomainCommand";
|
|
40
42
|
export * from "./DeleteGroupCommand";
|
|
41
43
|
export * from "./DeleteIdentityProviderCommand";
|
|
44
|
+
export * from "./DeleteManagedLoginBrandingCommand";
|
|
42
45
|
export * from "./DeleteResourceServerCommand";
|
|
43
46
|
export * from "./DeleteUserAttributesCommand";
|
|
44
47
|
export * from "./DeleteUserCommand";
|
|
45
48
|
export * from "./DeleteUserPoolClientCommand";
|
|
46
49
|
export * from "./DeleteUserPoolCommand";
|
|
47
50
|
export * from "./DeleteUserPoolDomainCommand";
|
|
51
|
+
export * from "./DeleteWebAuthnCredentialCommand";
|
|
48
52
|
export * from "./DescribeIdentityProviderCommand";
|
|
53
|
+
export * from "./DescribeManagedLoginBrandingByClientCommand";
|
|
54
|
+
export * from "./DescribeManagedLoginBrandingCommand";
|
|
49
55
|
export * from "./DescribeResourceServerCommand";
|
|
50
56
|
export * from "./DescribeRiskConfigurationCommand";
|
|
51
57
|
export * from "./DescribeUserImportJobCommand";
|
|
@@ -62,6 +68,7 @@ export * from "./GetLogDeliveryConfigurationCommand";
|
|
|
62
68
|
export * from "./GetSigningCertificateCommand";
|
|
63
69
|
export * from "./GetUICustomizationCommand";
|
|
64
70
|
export * from "./GetUserAttributeVerificationCodeCommand";
|
|
71
|
+
export * from "./GetUserAuthFactorsCommand";
|
|
65
72
|
export * from "./GetUserCommand";
|
|
66
73
|
export * from "./GetUserPoolMfaConfigCommand";
|
|
67
74
|
export * from "./GlobalSignOutCommand";
|
|
@@ -76,6 +83,7 @@ export * from "./ListUserPoolClientsCommand";
|
|
|
76
83
|
export * from "./ListUserPoolsCommand";
|
|
77
84
|
export * from "./ListUsersCommand";
|
|
78
85
|
export * from "./ListUsersInGroupCommand";
|
|
86
|
+
export * from "./ListWebAuthnCredentialsCommand";
|
|
79
87
|
export * from "./ResendConfirmationCodeCommand";
|
|
80
88
|
export * from "./RespondToAuthChallengeCommand";
|
|
81
89
|
export * from "./RevokeTokenCommand";
|
|
@@ -87,6 +95,7 @@ export * from "./SetUserPoolMfaConfigCommand";
|
|
|
87
95
|
export * from "./SetUserSettingsCommand";
|
|
88
96
|
export * from "./SignUpCommand";
|
|
89
97
|
export * from "./StartUserImportJobCommand";
|
|
98
|
+
export * from "./StartWebAuthnRegistrationCommand";
|
|
90
99
|
export * from "./StopUserImportJobCommand";
|
|
91
100
|
export * from "./TagResourceCommand";
|
|
92
101
|
export * from "./UntagResourceCommand";
|
|
@@ -94,6 +103,7 @@ export * from "./UpdateAuthEventFeedbackCommand";
|
|
|
94
103
|
export * from "./UpdateDeviceStatusCommand";
|
|
95
104
|
export * from "./UpdateGroupCommand";
|
|
96
105
|
export * from "./UpdateIdentityProviderCommand";
|
|
106
|
+
export * from "./UpdateManagedLoginBrandingCommand";
|
|
97
107
|
export * from "./UpdateResourceServerCommand";
|
|
98
108
|
export * from "./UpdateUserAttributesCommand";
|
|
99
109
|
export * from "./UpdateUserPoolClientCommand";
|