@aws-sdk/client-cognito-identity-provider 3.36.0 → 3.39.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/CHANGELOG.md +42 -0
- package/dist-cjs/CognitoIdentityProvider.js +0 -9
- package/dist-cjs/CognitoIdentityProviderClient.js +0 -14
- package/dist-cjs/commands/AddCustomAttributesCommand.js +0 -24
- package/dist-cjs/commands/AdminAddUserToGroupCommand.js +0 -25
- package/dist-cjs/commands/AdminConfirmSignUpCommand.js +0 -26
- package/dist-cjs/commands/AdminCreateUserCommand.js +0 -53
- package/dist-cjs/commands/AdminDeleteUserAttributesCommand.js +0 -26
- package/dist-cjs/commands/AdminDeleteUserCommand.js +0 -25
- package/dist-cjs/commands/AdminDisableProviderForUserCommand.js +0 -51
- package/dist-cjs/commands/AdminDisableUserCommand.js +0 -25
- package/dist-cjs/commands/AdminEnableUserCommand.js +0 -25
- package/dist-cjs/commands/AdminForgetDeviceCommand.js +0 -25
- package/dist-cjs/commands/AdminGetDeviceCommand.js +0 -25
- package/dist-cjs/commands/AdminGetUserCommand.js +0 -26
- package/dist-cjs/commands/AdminInitiateAuthCommand.js +0 -44
- package/dist-cjs/commands/AdminLinkProviderForUserCommand.js +0 -44
- package/dist-cjs/commands/AdminListDevicesCommand.js +0 -25
- package/dist-cjs/commands/AdminListGroupsForUserCommand.js +0 -25
- package/dist-cjs/commands/AdminListUserAuthEventsCommand.js +0 -25
- package/dist-cjs/commands/AdminRemoveUserFromGroupCommand.js +0 -25
- package/dist-cjs/commands/AdminResetUserPasswordCommand.js +0 -53
- package/dist-cjs/commands/AdminRespondToAuthChallengeCommand.js +0 -43
- package/dist-cjs/commands/AdminSetUserMFAPreferenceCommand.js +0 -28
- package/dist-cjs/commands/AdminSetUserPasswordCommand.js +0 -33
- package/dist-cjs/commands/AdminSetUserSettingsCommand.js +0 -27
- package/dist-cjs/commands/AdminUpdateAuthEventFeedbackCommand.js +0 -26
- package/dist-cjs/commands/AdminUpdateDeviceStatusCommand.js +0 -25
- package/dist-cjs/commands/AdminUpdateUserAttributesCommand.js +0 -48
- package/dist-cjs/commands/AdminUserGlobalSignOutCommand.js +0 -27
- package/dist-cjs/commands/AssociateSoftwareTokenCommand.js +0 -33
- package/dist-cjs/commands/ChangePasswordCommand.js +0 -24
- package/dist-cjs/commands/ConfirmDeviceCommand.js +0 -25
- package/dist-cjs/commands/ConfirmForgotPasswordCommand.js +0 -24
- package/dist-cjs/commands/ConfirmSignUpCommand.js +0 -25
- package/dist-cjs/commands/CreateGroupCommand.js +0 -25
- package/dist-cjs/commands/CreateIdentityProviderCommand.js +0 -24
- package/dist-cjs/commands/CreateResourceServerCommand.js +0 -24
- package/dist-cjs/commands/CreateUserImportJobCommand.js +0 -24
- package/dist-cjs/commands/CreateUserPoolClientCommand.js +0 -26
- package/dist-cjs/commands/CreateUserPoolCommand.js +0 -42
- package/dist-cjs/commands/CreateUserPoolDomainCommand.js +0 -24
- package/dist-cjs/commands/DeleteGroupCommand.js +0 -25
- package/dist-cjs/commands/DeleteIdentityProviderCommand.js +0 -24
- package/dist-cjs/commands/DeleteResourceServerCommand.js +0 -24
- package/dist-cjs/commands/DeleteUserAttributesCommand.js +0 -24
- package/dist-cjs/commands/DeleteUserCommand.js +0 -24
- package/dist-cjs/commands/DeleteUserPoolClientCommand.js +0 -24
- package/dist-cjs/commands/DeleteUserPoolCommand.js +0 -24
- package/dist-cjs/commands/DeleteUserPoolDomainCommand.js +0 -24
- package/dist-cjs/commands/DescribeIdentityProviderCommand.js +0 -24
- package/dist-cjs/commands/DescribeResourceServerCommand.js +0 -24
- package/dist-cjs/commands/DescribeRiskConfigurationCommand.js +0 -24
- package/dist-cjs/commands/DescribeUserImportJobCommand.js +0 -24
- package/dist-cjs/commands/DescribeUserPoolClientCommand.js +0 -25
- package/dist-cjs/commands/DescribeUserPoolCommand.js +0 -24
- package/dist-cjs/commands/DescribeUserPoolDomainCommand.js +0 -24
- package/dist-cjs/commands/ForgetDeviceCommand.js +0 -24
- package/dist-cjs/commands/ForgotPasswordCommand.js +0 -48
- package/dist-cjs/commands/GetCSVHeaderCommand.js +0 -25
- package/dist-cjs/commands/GetDeviceCommand.js +0 -24
- package/dist-cjs/commands/GetGroupCommand.js +0 -25
- package/dist-cjs/commands/GetIdentityProviderByIdentifierCommand.js +0 -24
- package/dist-cjs/commands/GetSigningCertificateCommand.js +0 -24
- package/dist-cjs/commands/GetUICustomizationCommand.js +0 -27
- package/dist-cjs/commands/GetUserAttributeVerificationCodeCommand.js +0 -41
- package/dist-cjs/commands/GetUserCommand.js +0 -24
- package/dist-cjs/commands/GetUserPoolMfaConfigCommand.js +0 -24
- package/dist-cjs/commands/GlobalSignOutCommand.js +0 -26
- package/dist-cjs/commands/InitiateAuthCommand.js +0 -41
- package/dist-cjs/commands/ListDevicesCommand.js +0 -24
- package/dist-cjs/commands/ListGroupsCommand.js +0 -25
- package/dist-cjs/commands/ListIdentityProvidersCommand.js +0 -24
- package/dist-cjs/commands/ListResourceServersCommand.js +0 -24
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -27
- package/dist-cjs/commands/ListUserImportJobsCommand.js +0 -24
- package/dist-cjs/commands/ListUserPoolClientsCommand.js +0 -24
- package/dist-cjs/commands/ListUserPoolsCommand.js +0 -24
- package/dist-cjs/commands/ListUsersCommand.js +0 -24
- package/dist-cjs/commands/ListUsersInGroupCommand.js +0 -25
- package/dist-cjs/commands/ResendConfirmationCodeCommand.js +0 -42
- package/dist-cjs/commands/RespondToAuthChallengeCommand.js +0 -41
- package/dist-cjs/commands/RevokeTokenCommand.js +0 -25
- package/dist-cjs/commands/SetRiskConfigurationCommand.js +0 -28
- package/dist-cjs/commands/SetUICustomizationCommand.js +0 -35
- package/dist-cjs/commands/SetUserMFAPreferenceCommand.js +0 -32
- package/dist-cjs/commands/SetUserPoolMfaConfigCommand.js +0 -41
- package/dist-cjs/commands/SetUserSettingsCommand.js +0 -27
- package/dist-cjs/commands/SignUpCommand.js +0 -42
- package/dist-cjs/commands/StartUserImportJobCommand.js +0 -24
- package/dist-cjs/commands/StopUserImportJobCommand.js +0 -24
- package/dist-cjs/commands/TagResourceCommand.js +0 -37
- package/dist-cjs/commands/UntagResourceCommand.js +0 -25
- package/dist-cjs/commands/UpdateAuthEventFeedbackCommand.js +0 -26
- package/dist-cjs/commands/UpdateDeviceStatusCommand.js +0 -24
- package/dist-cjs/commands/UpdateGroupCommand.js +0 -25
- package/dist-cjs/commands/UpdateIdentityProviderCommand.js +0 -24
- package/dist-cjs/commands/UpdateResourceServerCommand.js +0 -28
- package/dist-cjs/commands/UpdateUserAttributesCommand.js +0 -41
- package/dist-cjs/commands/UpdateUserPoolClientCommand.js +0 -31
- package/dist-cjs/commands/UpdateUserPoolCommand.js +0 -43
- package/dist-cjs/commands/UpdateUserPoolDomainCommand.js +0 -44
- package/dist-cjs/commands/VerifySoftwareTokenCommand.js +0 -26
- package/dist-cjs/commands/VerifyUserAttributeCommand.js +0 -24
- package/dist-cjs/commands/index.js +104 -0
- package/dist-cjs/endpoints.js +6 -1
- package/dist-cjs/index.js +4 -113
- package/dist-cjs/models/models_0.js +0 -795
- package/dist-cjs/models/models_1.js +0 -90
- package/dist-cjs/pagination/AdminListGroupsForUserPaginator.js +0 -10
- package/dist-cjs/pagination/AdminListUserAuthEventsPaginator.js +0 -10
- package/dist-cjs/pagination/ListGroupsPaginator.js +0 -10
- package/dist-cjs/pagination/ListIdentityProvidersPaginator.js +0 -10
- package/dist-cjs/pagination/ListResourceServersPaginator.js +0 -10
- package/dist-cjs/pagination/ListUserPoolClientsPaginator.js +0 -10
- package/dist-cjs/pagination/ListUserPoolsPaginator.js +0 -10
- package/dist-cjs/pagination/ListUsersInGroupPaginator.js +0 -10
- package/dist-cjs/pagination/ListUsersPaginator.js +0 -10
- package/dist-cjs/pagination/index.js +13 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -5
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-es/commands/index.js +101 -0
- package/dist-es/endpoints.js +6 -1
- package/dist-es/index.js +4 -113
- package/dist-es/pagination/index.js +10 -0
- package/dist-types/commands/index.d.ts +101 -0
- package/dist-types/index.d.ts +4 -113
- package/dist-types/pagination/index.d.ts +10 -0
- package/dist-types/ts3.4/CognitoIdentityProvider.d.ts +102 -805
- package/dist-types/ts3.4/CognitoIdentityProviderClient.d.ts +24 -95
- package/dist-types/ts3.4/commands/AddCustomAttributesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/AdminAddUserToGroupCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/AdminConfirmSignUpCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/AdminCreateUserCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/AdminDeleteUserAttributesCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/AdminDeleteUserCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/AdminDisableProviderForUserCommand.d.ts +2 -47
- package/dist-types/ts3.4/commands/AdminDisableUserCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/AdminEnableUserCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/AdminForgetDeviceCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/AdminGetDeviceCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/AdminGetUserCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/AdminInitiateAuthCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/AdminLinkProviderForUserCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/AdminListDevicesCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/AdminListGroupsForUserCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/AdminListUserAuthEventsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/AdminRemoveUserFromGroupCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/AdminResetUserPasswordCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/AdminRespondToAuthChallengeCommand.d.ts +2 -39
- package/dist-types/ts3.4/commands/AdminSetUserMFAPreferenceCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/AdminSetUserPasswordCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/AdminSetUserSettingsCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/AdminUpdateAuthEventFeedbackCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/AdminUpdateDeviceStatusCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/AdminUpdateUserAttributesCommand.d.ts +2 -44
- package/dist-types/ts3.4/commands/AdminUserGlobalSignOutCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/AssociateSoftwareTokenCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/ChangePasswordCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ConfirmDeviceCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ConfirmForgotPasswordCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ConfirmSignUpCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/CreateGroupCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/CreateIdentityProviderCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreateResourceServerCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreateUserImportJobCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreateUserPoolClientCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/CreateUserPoolCommand.d.ts +2 -38
- package/dist-types/ts3.4/commands/CreateUserPoolDomainCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteGroupCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteIdentityProviderCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteResourceServerCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteUserAttributesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteUserCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteUserPoolClientCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteUserPoolCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteUserPoolDomainCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeIdentityProviderCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeResourceServerCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeRiskConfigurationCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeUserImportJobCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeUserPoolClientCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeUserPoolCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeUserPoolDomainCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ForgetDeviceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ForgotPasswordCommand.d.ts +2 -44
- package/dist-types/ts3.4/commands/GetCSVHeaderCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetDeviceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetGroupCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetIdentityProviderByIdentifierCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetSigningCertificateCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetUICustomizationCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/GetUserAttributeVerificationCodeCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/GetUserCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetUserPoolMfaConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GlobalSignOutCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/InitiateAuthCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/ListDevicesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListGroupsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListIdentityProvidersCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListResourceServersCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/ListUserImportJobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListUserPoolClientsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListUserPoolsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListUsersInGroupCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ResendConfirmationCodeCommand.d.ts +2 -38
- package/dist-types/ts3.4/commands/RespondToAuthChallengeCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/RevokeTokenCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/SetRiskConfigurationCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/SetUICustomizationCommand.d.ts +2 -31
- package/dist-types/ts3.4/commands/SetUserMFAPreferenceCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/SetUserPoolMfaConfigCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/SetUserSettingsCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/SignUpCommand.d.ts +2 -38
- package/dist-types/ts3.4/commands/StartUserImportJobCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StopUserImportJobCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -33
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/UpdateAuthEventFeedbackCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/UpdateDeviceStatusCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateGroupCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/UpdateIdentityProviderCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateResourceServerCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/UpdateUserAttributesCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/UpdateUserPoolClientCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/UpdateUserPoolCommand.d.ts +2 -39
- package/dist-types/ts3.4/commands/UpdateUserPoolDomainCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/VerifySoftwareTokenCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/VerifyUserAttributeCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/index.d.ts +101 -0
- package/dist-types/ts3.4/index.d.ts +4 -113
- package/dist-types/ts3.4/models/models_0.d.ts +1183 -5804
- package/dist-types/ts3.4/models/models_1.d.ts +134 -604
- package/dist-types/ts3.4/pagination/index.d.ts +10 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -6
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +32 -32
|
@@ -6,35 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
-
/**
|
|
10
|
-
* <p>Lists the users in the Amazon Cognito user pool.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { CognitoIdentityProviderClient, ListUsersCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
|
|
15
|
-
* // const { CognitoIdentityProviderClient, ListUsersCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
|
|
16
|
-
* const client = new CognitoIdentityProviderClient(config);
|
|
17
|
-
* const command = new ListUsersCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link ListUsersCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link ListUsersCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
9
|
class ListUsersCommand extends smithy_client_1.Command {
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
10
|
constructor(input) {
|
|
30
|
-
// Start section: command_constructor
|
|
31
11
|
super();
|
|
32
12
|
this.input = input;
|
|
33
|
-
// End section: command_constructor
|
|
34
13
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
14
|
resolveMiddleware(clientStack, configuration, options) {
|
|
39
15
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
16
|
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
|
|
@@ -6,36 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
-
/**
|
|
10
|
-
* <p>Lists the users in the specified group.</p>
|
|
11
|
-
* <p>Calling this action requires developer credentials.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { CognitoIdentityProviderClient, ListUsersInGroupCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
|
|
16
|
-
* // const { CognitoIdentityProviderClient, ListUsersInGroupCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
|
|
17
|
-
* const client = new CognitoIdentityProviderClient(config);
|
|
18
|
-
* const command = new ListUsersInGroupCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link ListUsersInGroupCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link ListUsersInGroupCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
9
|
class ListUsersInGroupCommand extends smithy_client_1.Command {
|
|
28
|
-
// Start section: command_properties
|
|
29
|
-
// End section: command_properties
|
|
30
10
|
constructor(input) {
|
|
31
|
-
// Start section: command_constructor
|
|
32
11
|
super();
|
|
33
12
|
this.input = input;
|
|
34
|
-
// End section: command_constructor
|
|
35
13
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
14
|
resolveMiddleware(clientStack, configuration, options) {
|
|
40
15
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
16
|
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
|
|
@@ -5,53 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Resends the confirmation (for confirmation of registration) to a specific user in the
|
|
10
|
-
* user pool.</p>
|
|
11
|
-
*
|
|
12
|
-
* <note>
|
|
13
|
-
* <p>This action might generate an SMS text message. Starting June 1, 2021, U.S.
|
|
14
|
-
* telecom carriers require that you register an origination phone number before you can
|
|
15
|
-
* send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito,
|
|
16
|
-
* you must register a phone number with <a href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
|
|
17
|
-
* Cognito will use the the registered number automatically. Otherwise, Cognito users that must
|
|
18
|
-
* receive SMS messages might be unable to sign up, activate their accounts, or sign
|
|
19
|
-
* in.</p>
|
|
20
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In <i>
|
|
21
|
-
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
22
|
-
* mode</a>
|
|
23
|
-
* </i>, you’ll have limitations, such as sending messages
|
|
24
|
-
* to only verified phone numbers. After testing in the sandbox environment, you can
|
|
25
|
-
* move out of the SMS sandbox and into production. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"> SMS message settings for Cognito User Pools</a> in the <i>Amazon
|
|
26
|
-
* Cognito Developer Guide</i>. </p>
|
|
27
|
-
* </note>
|
|
28
|
-
* @example
|
|
29
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
-
* ```javascript
|
|
31
|
-
* import { CognitoIdentityProviderClient, ResendConfirmationCodeCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
|
|
32
|
-
* // const { CognitoIdentityProviderClient, ResendConfirmationCodeCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
|
|
33
|
-
* const client = new CognitoIdentityProviderClient(config);
|
|
34
|
-
* const command = new ResendConfirmationCodeCommand(input);
|
|
35
|
-
* const response = await client.send(command);
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @see {@link ResendConfirmationCodeCommandInput} for command's `input` shape.
|
|
39
|
-
* @see {@link ResendConfirmationCodeCommandOutput} for command's `response` shape.
|
|
40
|
-
* @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
8
|
class ResendConfirmationCodeCommand extends smithy_client_1.Command {
|
|
44
|
-
// Start section: command_properties
|
|
45
|
-
// End section: command_properties
|
|
46
9
|
constructor(input) {
|
|
47
|
-
// Start section: command_constructor
|
|
48
10
|
super();
|
|
49
11
|
this.input = input;
|
|
50
|
-
// End section: command_constructor
|
|
51
12
|
}
|
|
52
|
-
/**
|
|
53
|
-
* @internal
|
|
54
|
-
*/
|
|
55
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
56
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
57
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,52 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Responds to the authentication challenge.</p>
|
|
10
|
-
*
|
|
11
|
-
* <note>
|
|
12
|
-
* <p>This action might generate an SMS text message. Starting June 1, 2021, U.S.
|
|
13
|
-
* telecom carriers require that you register an origination phone number before you can
|
|
14
|
-
* send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito,
|
|
15
|
-
* you must register a phone number with <a href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
|
|
16
|
-
* Cognito will use the the registered number automatically. Otherwise, Cognito users that must
|
|
17
|
-
* receive SMS messages might be unable to sign up, activate their accounts, or sign
|
|
18
|
-
* in.</p>
|
|
19
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In <i>
|
|
20
|
-
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
21
|
-
* mode</a>
|
|
22
|
-
* </i>, you’ll have limitations, such as sending messages
|
|
23
|
-
* to only verified phone numbers. After testing in the sandbox environment, you can
|
|
24
|
-
* move out of the SMS sandbox and into production. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"> SMS message settings for Cognito User Pools</a> in the <i>Amazon
|
|
25
|
-
* Cognito Developer Guide</i>. </p>
|
|
26
|
-
* </note>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { CognitoIdentityProviderClient, RespondToAuthChallengeCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
|
|
31
|
-
* // const { CognitoIdentityProviderClient, RespondToAuthChallengeCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
|
|
32
|
-
* const client = new CognitoIdentityProviderClient(config);
|
|
33
|
-
* const command = new RespondToAuthChallengeCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link RespondToAuthChallengeCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link RespondToAuthChallengeCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
8
|
class RespondToAuthChallengeCommand extends smithy_client_1.Command {
|
|
43
|
-
// Start section: command_properties
|
|
44
|
-
// End section: command_properties
|
|
45
9
|
constructor(input) {
|
|
46
|
-
// Start section: command_constructor
|
|
47
10
|
super();
|
|
48
11
|
this.input = input;
|
|
49
|
-
// End section: command_constructor
|
|
50
12
|
}
|
|
51
|
-
/**
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
54
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
55
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
56
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -6,36 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
-
/**
|
|
10
|
-
* <p>Revokes all of the access tokens generated by the specified refresh token. After the token is revoked, you can not
|
|
11
|
-
* use the revoked token to access Cognito authenticated APIs.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { CognitoIdentityProviderClient, RevokeTokenCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
|
|
16
|
-
* // const { CognitoIdentityProviderClient, RevokeTokenCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
|
|
17
|
-
* const client = new CognitoIdentityProviderClient(config);
|
|
18
|
-
* const command = new RevokeTokenCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link RevokeTokenCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link RevokeTokenCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
9
|
class RevokeTokenCommand extends smithy_client_1.Command {
|
|
28
|
-
// Start section: command_properties
|
|
29
|
-
// End section: command_properties
|
|
30
10
|
constructor(input) {
|
|
31
|
-
// Start section: command_constructor
|
|
32
11
|
super();
|
|
33
12
|
this.input = input;
|
|
34
|
-
// End section: command_constructor
|
|
35
13
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
14
|
resolveMiddleware(clientStack, configuration, options) {
|
|
40
15
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
16
|
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
|
|
@@ -6,39 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
-
/**
|
|
10
|
-
* <p>Configures actions on detected risks. To delete the risk configuration for
|
|
11
|
-
* <code>UserPoolId</code> or <code>ClientId</code>, pass null values for all four
|
|
12
|
-
* configuration types.</p>
|
|
13
|
-
* <p>To enable Amazon Cognito advanced security features, update the user pool to include
|
|
14
|
-
* the <code>UserPoolAddOns</code> key<code>AdvancedSecurityMode</code>.</p>
|
|
15
|
-
* @example
|
|
16
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
17
|
-
* ```javascript
|
|
18
|
-
* import { CognitoIdentityProviderClient, SetRiskConfigurationCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
|
|
19
|
-
* // const { CognitoIdentityProviderClient, SetRiskConfigurationCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
|
|
20
|
-
* const client = new CognitoIdentityProviderClient(config);
|
|
21
|
-
* const command = new SetRiskConfigurationCommand(input);
|
|
22
|
-
* const response = await client.send(command);
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @see {@link SetRiskConfigurationCommandInput} for command's `input` shape.
|
|
26
|
-
* @see {@link SetRiskConfigurationCommandOutput} for command's `response` shape.
|
|
27
|
-
* @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
9
|
class SetRiskConfigurationCommand extends smithy_client_1.Command {
|
|
31
|
-
// Start section: command_properties
|
|
32
|
-
// End section: command_properties
|
|
33
10
|
constructor(input) {
|
|
34
|
-
// Start section: command_constructor
|
|
35
11
|
super();
|
|
36
12
|
this.input = input;
|
|
37
|
-
// End section: command_constructor
|
|
38
13
|
}
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
14
|
resolveMiddleware(clientStack, configuration, options) {
|
|
43
15
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
44
16
|
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
|
|
@@ -6,46 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
-
/**
|
|
10
|
-
* <p>Sets the UI customization information for a user pool's built-in app UI.</p>
|
|
11
|
-
* <p>You can specify app UI customization settings for a single client (with a specific
|
|
12
|
-
* <code>clientId</code>) or for all clients (by setting the <code>clientId</code> to
|
|
13
|
-
* <code>ALL</code>). If you specify <code>ALL</code>, the default configuration will
|
|
14
|
-
* be used for every client that has no UI customization set previously. If you specify UI
|
|
15
|
-
* customization settings for a particular client, it will no longer fall back to the
|
|
16
|
-
* <code>ALL</code> configuration. </p>
|
|
17
|
-
* <note>
|
|
18
|
-
* <p>To use this API, your user pool must have a domain associated with it. Otherwise,
|
|
19
|
-
* there is no place to host the app's pages, and the service will throw an
|
|
20
|
-
* error.</p>
|
|
21
|
-
* </note>
|
|
22
|
-
* @example
|
|
23
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
24
|
-
* ```javascript
|
|
25
|
-
* import { CognitoIdentityProviderClient, SetUICustomizationCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
|
|
26
|
-
* // const { CognitoIdentityProviderClient, SetUICustomizationCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
|
|
27
|
-
* const client = new CognitoIdentityProviderClient(config);
|
|
28
|
-
* const command = new SetUICustomizationCommand(input);
|
|
29
|
-
* const response = await client.send(command);
|
|
30
|
-
* ```
|
|
31
|
-
*
|
|
32
|
-
* @see {@link SetUICustomizationCommandInput} for command's `input` shape.
|
|
33
|
-
* @see {@link SetUICustomizationCommandOutput} for command's `response` shape.
|
|
34
|
-
* @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
|
|
35
|
-
*
|
|
36
|
-
*/
|
|
37
9
|
class SetUICustomizationCommand extends smithy_client_1.Command {
|
|
38
|
-
// Start section: command_properties
|
|
39
|
-
// End section: command_properties
|
|
40
10
|
constructor(input) {
|
|
41
|
-
// Start section: command_constructor
|
|
42
11
|
super();
|
|
43
12
|
this.input = input;
|
|
44
|
-
// End section: command_constructor
|
|
45
13
|
}
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
49
14
|
resolveMiddleware(clientStack, configuration, options) {
|
|
50
15
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
51
16
|
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
|
|
@@ -6,43 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
-
/**
|
|
10
|
-
* <p>Set the user's multi-factor authentication (MFA) method preference, including which
|
|
11
|
-
* MFA factors are enabled and if any are preferred. Only one factor can be set as
|
|
12
|
-
* preferred. The preferred MFA factor will be used to authenticate a user if multiple
|
|
13
|
-
* factors are enabled. If multiple options are enabled and no preference is set, a
|
|
14
|
-
* challenge to choose an MFA option will be returned during sign in. If an MFA type is
|
|
15
|
-
* enabled for a user, the user will be prompted for MFA during all sign in attempts,
|
|
16
|
-
* unless device tracking is turned on and the device has been trusted. If you would like
|
|
17
|
-
* MFA to be applied selectively based on the assessed risk level of sign in attempts,
|
|
18
|
-
* disable MFA for users and turn on Adaptive Authentication for the user pool.</p>
|
|
19
|
-
* @example
|
|
20
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
21
|
-
* ```javascript
|
|
22
|
-
* import { CognitoIdentityProviderClient, SetUserMFAPreferenceCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
|
|
23
|
-
* // const { CognitoIdentityProviderClient, SetUserMFAPreferenceCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
|
|
24
|
-
* const client = new CognitoIdentityProviderClient(config);
|
|
25
|
-
* const command = new SetUserMFAPreferenceCommand(input);
|
|
26
|
-
* const response = await client.send(command);
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* @see {@link SetUserMFAPreferenceCommandInput} for command's `input` shape.
|
|
30
|
-
* @see {@link SetUserMFAPreferenceCommandOutput} for command's `response` shape.
|
|
31
|
-
* @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
9
|
class SetUserMFAPreferenceCommand extends smithy_client_1.Command {
|
|
35
|
-
// Start section: command_properties
|
|
36
|
-
// End section: command_properties
|
|
37
10
|
constructor(input) {
|
|
38
|
-
// Start section: command_constructor
|
|
39
11
|
super();
|
|
40
12
|
this.input = input;
|
|
41
|
-
// End section: command_constructor
|
|
42
13
|
}
|
|
43
|
-
/**
|
|
44
|
-
* @internal
|
|
45
|
-
*/
|
|
46
14
|
resolveMiddleware(clientStack, configuration, options) {
|
|
47
15
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
48
16
|
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
|
|
@@ -6,52 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
-
/**
|
|
10
|
-
* <p>Set the user pool multi-factor authentication (MFA) configuration.</p>
|
|
11
|
-
*
|
|
12
|
-
* <note>
|
|
13
|
-
* <p>This action might generate an SMS text message. Starting June 1, 2021, U.S.
|
|
14
|
-
* telecom carriers require that you register an origination phone number before you can
|
|
15
|
-
* send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito,
|
|
16
|
-
* you must register a phone number with <a href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
|
|
17
|
-
* Cognito will use the the registered number automatically. Otherwise, Cognito users that must
|
|
18
|
-
* receive SMS messages might be unable to sign up, activate their accounts, or sign
|
|
19
|
-
* in.</p>
|
|
20
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In <i>
|
|
21
|
-
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
22
|
-
* mode</a>
|
|
23
|
-
* </i>, you’ll have limitations, such as sending messages
|
|
24
|
-
* to only verified phone numbers. After testing in the sandbox environment, you can
|
|
25
|
-
* move out of the SMS sandbox and into production. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"> SMS message settings for Cognito User Pools</a> in the <i>Amazon
|
|
26
|
-
* Cognito Developer Guide</i>. </p>
|
|
27
|
-
* </note>
|
|
28
|
-
* @example
|
|
29
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
-
* ```javascript
|
|
31
|
-
* import { CognitoIdentityProviderClient, SetUserPoolMfaConfigCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
|
|
32
|
-
* // const { CognitoIdentityProviderClient, SetUserPoolMfaConfigCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
|
|
33
|
-
* const client = new CognitoIdentityProviderClient(config);
|
|
34
|
-
* const command = new SetUserPoolMfaConfigCommand(input);
|
|
35
|
-
* const response = await client.send(command);
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @see {@link SetUserPoolMfaConfigCommandInput} for command's `input` shape.
|
|
39
|
-
* @see {@link SetUserPoolMfaConfigCommandOutput} for command's `response` shape.
|
|
40
|
-
* @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
9
|
class SetUserPoolMfaConfigCommand extends smithy_client_1.Command {
|
|
44
|
-
// Start section: command_properties
|
|
45
|
-
// End section: command_properties
|
|
46
10
|
constructor(input) {
|
|
47
|
-
// Start section: command_constructor
|
|
48
11
|
super();
|
|
49
12
|
this.input = input;
|
|
50
|
-
// End section: command_constructor
|
|
51
13
|
}
|
|
52
|
-
/**
|
|
53
|
-
* @internal
|
|
54
|
-
*/
|
|
55
14
|
resolveMiddleware(clientStack, configuration, options) {
|
|
56
15
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
57
16
|
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
|
|
@@ -5,38 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>
|
|
10
|
-
* <i>This action is no longer supported.</i> You can use it to configure
|
|
11
|
-
* only SMS MFA. You can't use it to configure TOTP software token MFA. To configure either
|
|
12
|
-
* type of MFA, use <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SetUserMFAPreference.html">SetUserMFAPreference</a> instead.</p>
|
|
13
|
-
* @example
|
|
14
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
-
* ```javascript
|
|
16
|
-
* import { CognitoIdentityProviderClient, SetUserSettingsCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
|
|
17
|
-
* // const { CognitoIdentityProviderClient, SetUserSettingsCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
|
|
18
|
-
* const client = new CognitoIdentityProviderClient(config);
|
|
19
|
-
* const command = new SetUserSettingsCommand(input);
|
|
20
|
-
* const response = await client.send(command);
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @see {@link SetUserSettingsCommandInput} for command's `input` shape.
|
|
24
|
-
* @see {@link SetUserSettingsCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
8
|
class SetUserSettingsCommand extends smithy_client_1.Command {
|
|
29
|
-
// Start section: command_properties
|
|
30
|
-
// End section: command_properties
|
|
31
9
|
constructor(input) {
|
|
32
|
-
// Start section: command_constructor
|
|
33
10
|
super();
|
|
34
11
|
this.input = input;
|
|
35
|
-
// End section: command_constructor
|
|
36
12
|
}
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
40
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
41
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
42
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,53 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Registers the user in the specified user pool and creates a user name, password, and
|
|
10
|
-
* user attributes.</p>
|
|
11
|
-
*
|
|
12
|
-
* <note>
|
|
13
|
-
* <p>This action might generate an SMS text message. Starting June 1, 2021, U.S.
|
|
14
|
-
* telecom carriers require that you register an origination phone number before you can
|
|
15
|
-
* send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito,
|
|
16
|
-
* you must register a phone number with <a href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
|
|
17
|
-
* Cognito will use the the registered number automatically. Otherwise, Cognito users that must
|
|
18
|
-
* receive SMS messages might be unable to sign up, activate their accounts, or sign
|
|
19
|
-
* in.</p>
|
|
20
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In <i>
|
|
21
|
-
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
22
|
-
* mode</a>
|
|
23
|
-
* </i>, you’ll have limitations, such as sending messages
|
|
24
|
-
* to only verified phone numbers. After testing in the sandbox environment, you can
|
|
25
|
-
* move out of the SMS sandbox and into production. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"> SMS message settings for Cognito User Pools</a> in the <i>Amazon
|
|
26
|
-
* Cognito Developer Guide</i>. </p>
|
|
27
|
-
* </note>
|
|
28
|
-
* @example
|
|
29
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
-
* ```javascript
|
|
31
|
-
* import { CognitoIdentityProviderClient, SignUpCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
|
|
32
|
-
* // const { CognitoIdentityProviderClient, SignUpCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
|
|
33
|
-
* const client = new CognitoIdentityProviderClient(config);
|
|
34
|
-
* const command = new SignUpCommand(input);
|
|
35
|
-
* const response = await client.send(command);
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @see {@link SignUpCommandInput} for command's `input` shape.
|
|
39
|
-
* @see {@link SignUpCommandOutput} for command's `response` shape.
|
|
40
|
-
* @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
8
|
class SignUpCommand extends smithy_client_1.Command {
|
|
44
|
-
// Start section: command_properties
|
|
45
|
-
// End section: command_properties
|
|
46
9
|
constructor(input) {
|
|
47
|
-
// Start section: command_constructor
|
|
48
10
|
super();
|
|
49
11
|
this.input = input;
|
|
50
|
-
// End section: command_constructor
|
|
51
12
|
}
|
|
52
|
-
/**
|
|
53
|
-
* @internal
|
|
54
|
-
*/
|
|
55
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
56
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
57
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -7,35 +7,11 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const models_1_1 = require("../models/models_1");
|
|
9
9
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
10
|
-
/**
|
|
11
|
-
* <p>Starts the user import.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { CognitoIdentityProviderClient, StartUserImportJobCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
|
|
16
|
-
* // const { CognitoIdentityProviderClient, StartUserImportJobCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
|
|
17
|
-
* const client = new CognitoIdentityProviderClient(config);
|
|
18
|
-
* const command = new StartUserImportJobCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link StartUserImportJobCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link StartUserImportJobCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
10
|
class StartUserImportJobCommand extends smithy_client_1.Command {
|
|
28
|
-
// Start section: command_properties
|
|
29
|
-
// End section: command_properties
|
|
30
11
|
constructor(input) {
|
|
31
|
-
// Start section: command_constructor
|
|
32
12
|
super();
|
|
33
13
|
this.input = input;
|
|
34
|
-
// End section: command_constructor
|
|
35
14
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
15
|
resolveMiddleware(clientStack, configuration, options) {
|
|
40
16
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
17
|
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
|
|
@@ -6,35 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_1_1 = require("../models/models_1");
|
|
8
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
-
/**
|
|
10
|
-
* <p>Stops the user import job.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { CognitoIdentityProviderClient, StopUserImportJobCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
|
|
15
|
-
* // const { CognitoIdentityProviderClient, StopUserImportJobCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
|
|
16
|
-
* const client = new CognitoIdentityProviderClient(config);
|
|
17
|
-
* const command = new StopUserImportJobCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link StopUserImportJobCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link StopUserImportJobCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
9
|
class StopUserImportJobCommand extends smithy_client_1.Command {
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
10
|
constructor(input) {
|
|
30
|
-
// Start section: command_constructor
|
|
31
11
|
super();
|
|
32
12
|
this.input = input;
|
|
33
|
-
// End section: command_constructor
|
|
34
13
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
14
|
resolveMiddleware(clientStack, configuration, options) {
|
|
39
15
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
16
|
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
|
|
@@ -6,48 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_1_1 = require("../models/models_1");
|
|
8
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
-
/**
|
|
10
|
-
* <p>Assigns a set of tags to an Amazon Cognito user pool. A tag is a label that you can
|
|
11
|
-
* use to categorize and manage user pools in different ways, such as by purpose, owner,
|
|
12
|
-
* environment, or other criteria.</p>
|
|
13
|
-
* <p>Each tag consists of a key and value, both of which you define. A key is a general
|
|
14
|
-
* category for more specific values. For example, if you have two versions of a user pool,
|
|
15
|
-
* one for testing and another for production, you might assign an <code>Environment</code>
|
|
16
|
-
* tag key to both user pools. The value of this key might be <code>Test</code> for one
|
|
17
|
-
* user pool and <code>Production</code> for the other.</p>
|
|
18
|
-
* <p>Tags are useful for cost tracking and access control. You can activate your tags so
|
|
19
|
-
* that they appear on the Billing and Cost Management console, where you can track the
|
|
20
|
-
* costs associated with your user pools. In an IAM policy, you can constrain permissions
|
|
21
|
-
* for user pools based on specific tags or tag values.</p>
|
|
22
|
-
* <p>You can use this action up to 5 times per second, per account. A user pool can have as
|
|
23
|
-
* many as 50 tags.</p>
|
|
24
|
-
* @example
|
|
25
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
26
|
-
* ```javascript
|
|
27
|
-
* import { CognitoIdentityProviderClient, TagResourceCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
|
|
28
|
-
* // const { CognitoIdentityProviderClient, TagResourceCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
|
|
29
|
-
* const client = new CognitoIdentityProviderClient(config);
|
|
30
|
-
* const command = new TagResourceCommand(input);
|
|
31
|
-
* const response = await client.send(command);
|
|
32
|
-
* ```
|
|
33
|
-
*
|
|
34
|
-
* @see {@link TagResourceCommandInput} for command's `input` shape.
|
|
35
|
-
* @see {@link TagResourceCommandOutput} for command's `response` shape.
|
|
36
|
-
* @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
|
|
37
|
-
*
|
|
38
|
-
*/
|
|
39
9
|
class TagResourceCommand extends smithy_client_1.Command {
|
|
40
|
-
// Start section: command_properties
|
|
41
|
-
// End section: command_properties
|
|
42
10
|
constructor(input) {
|
|
43
|
-
// Start section: command_constructor
|
|
44
11
|
super();
|
|
45
12
|
this.input = input;
|
|
46
|
-
// End section: command_constructor
|
|
47
13
|
}
|
|
48
|
-
/**
|
|
49
|
-
* @internal
|
|
50
|
-
*/
|
|
51
14
|
resolveMiddleware(clientStack, configuration, options) {
|
|
52
15
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
53
16
|
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
|