From 58004ada2ea68ed5085d29e73f1da7fee2f08723 Mon Sep 17 00:00:00 2001 From: awstools Date: Fri, 21 Oct 2022 20:25:55 +0000 Subject: [PATCH] feat(client-cognito-identity-provider): This release adds a new "DeletionProtection" field to the UserPool in Cognito. Application admins can configure this value with either ACTIVE or INACTIVE value. Setting this field to ACTIVE will prevent a user pool from accidental deletion. --- .../package.json | 2 + .../src/CognitoIdentityProvider.ts | 21 +- .../src/CognitoIdentityProviderClient.ts | 51 +- .../commands/AddCustomAttributesCommand.ts | 13 + .../commands/AdminAddUserToGroupCommand.ts | 13 + .../src/commands/AdminConfirmSignUpCommand.ts | 13 + .../src/commands/AdminCreateUserCommand.ts | 13 + .../AdminDeleteUserAttributesCommand.ts | 13 + .../src/commands/AdminDeleteUserCommand.ts | 13 + .../AdminDisableProviderForUserCommand.ts | 13 + .../src/commands/AdminDisableUserCommand.ts | 18 +- .../src/commands/AdminEnableUserCommand.ts | 13 + .../src/commands/AdminForgetDeviceCommand.ts | 13 + .../src/commands/AdminGetDeviceCommand.ts | 13 + .../src/commands/AdminGetUserCommand.ts | 11 + .../src/commands/AdminInitiateAuthCommand.ts | 13 + .../AdminLinkProviderForUserCommand.ts | 13 + .../src/commands/AdminListDevicesCommand.ts | 13 + .../commands/AdminListGroupsForUserCommand.ts | 13 + .../AdminListUserAuthEventsCommand.ts | 13 + .../AdminRemoveUserFromGroupCommand.ts | 13 + .../commands/AdminResetUserPasswordCommand.ts | 13 + .../AdminRespondToAuthChallengeCommand.ts | 13 + .../AdminSetUserMFAPreferenceCommand.ts | 13 + .../commands/AdminSetUserPasswordCommand.ts | 13 + .../commands/AdminSetUserSettingsCommand.ts | 13 + .../AdminUpdateAuthEventFeedbackCommand.ts | 13 + .../AdminUpdateDeviceStatusCommand.ts | 13 + .../AdminUpdateUserAttributesCommand.ts | 13 + .../commands/AdminUserGlobalSignOutCommand.ts | 13 + .../commands/AssociateSoftwareTokenCommand.ts | 13 + .../src/commands/ChangePasswordCommand.ts | 13 + .../src/commands/ConfirmDeviceCommand.ts | 11 + .../commands/ConfirmForgotPasswordCommand.ts | 13 + .../src/commands/ConfirmSignUpCommand.ts | 11 + .../src/commands/CreateGroupCommand.ts | 11 + .../commands/CreateIdentityProviderCommand.ts | 13 + .../commands/CreateResourceServerCommand.ts | 13 + .../commands/CreateUserImportJobCommand.ts | 13 + .../commands/CreateUserPoolClientCommand.ts | 13 + .../src/commands/CreateUserPoolCommand.ts | 13 + .../commands/CreateUserPoolDomainCommand.ts | 13 + .../src/commands/DeleteGroupCommand.ts | 11 + .../commands/DeleteIdentityProviderCommand.ts | 13 + .../commands/DeleteResourceServerCommand.ts | 13 + .../commands/DeleteUserAttributesCommand.ts | 13 + .../src/commands/DeleteUserCommand.ts | 11 + .../commands/DeleteUserPoolClientCommand.ts | 13 + .../src/commands/DeleteUserPoolCommand.ts | 13 + .../commands/DeleteUserPoolDomainCommand.ts | 13 + .../DescribeIdentityProviderCommand.ts | 13 + .../commands/DescribeResourceServerCommand.ts | 13 + .../DescribeRiskConfigurationCommand.ts | 13 + .../commands/DescribeUserImportJobCommand.ts | 13 + .../commands/DescribeUserPoolClientCommand.ts | 13 + .../src/commands/DescribeUserPoolCommand.ts | 13 + .../commands/DescribeUserPoolDomainCommand.ts | 13 + .../src/commands/ForgetDeviceCommand.ts | 11 + .../src/commands/ForgotPasswordCommand.ts | 13 + .../src/commands/GetCSVHeaderCommand.ts | 11 + .../src/commands/GetDeviceCommand.ts | 11 + .../src/commands/GetGroupCommand.ts | 11 + .../GetIdentityProviderByIdentifierCommand.ts | 13 + .../commands/GetSigningCertificateCommand.ts | 17 +- .../src/commands/GetUICustomizationCommand.ts | 13 + ...GetUserAttributeVerificationCodeCommand.ts | 13 + .../src/commands/GetUserCommand.ts | 11 + .../commands/GetUserPoolMfaConfigCommand.ts | 13 + .../src/commands/GlobalSignOutCommand.ts | 17 +- .../src/commands/InitiateAuthCommand.ts | 11 + .../src/commands/ListDevicesCommand.ts | 11 + .../src/commands/ListGroupsCommand.ts | 11 + .../commands/ListIdentityProvidersCommand.ts | 13 + .../commands/ListResourceServersCommand.ts | 13 + .../commands/ListTagsForResourceCommand.ts | 13 + .../src/commands/ListUserImportJobsCommand.ts | 13 + .../commands/ListUserPoolClientsCommand.ts | 13 + .../src/commands/ListUserPoolsCommand.ts | 11 + .../src/commands/ListUsersCommand.ts | 11 + .../src/commands/ListUsersInGroupCommand.ts | 13 + .../commands/ResendConfirmationCodeCommand.ts | 13 + .../commands/RespondToAuthChallengeCommand.ts | 13 + .../src/commands/RevokeTokenCommand.ts | 17 +- .../commands/SetRiskConfigurationCommand.ts | 13 + .../src/commands/SetUICustomizationCommand.ts | 13 + .../commands/SetUserMFAPreferenceCommand.ts | 13 + .../commands/SetUserPoolMfaConfigCommand.ts | 13 + .../src/commands/SetUserSettingsCommand.ts | 13 + .../src/commands/SignUpCommand.ts | 19 +- .../src/commands/StartUserImportJobCommand.ts | 13 + .../src/commands/StopUserImportJobCommand.ts | 13 + .../src/commands/TagResourceCommand.ts | 11 + .../src/commands/UntagResourceCommand.ts | 11 + .../UpdateAuthEventFeedbackCommand.ts | 13 + .../src/commands/UpdateDeviceStatusCommand.ts | 13 + .../src/commands/UpdateGroupCommand.ts | 11 + .../commands/UpdateIdentityProviderCommand.ts | 13 + .../commands/UpdateResourceServerCommand.ts | 13 + .../commands/UpdateUserAttributesCommand.ts | 13 + .../commands/UpdateUserPoolClientCommand.ts | 13 + .../src/commands/UpdateUserPoolCommand.ts | 13 + .../commands/UpdateUserPoolDomainCommand.ts | 13 + .../commands/VerifySoftwareTokenCommand.ts | 13 + .../commands/VerifyUserAttributeCommand.ts | 13 + .../src/endpoint/EndpointParameters.ts | 31 + .../src/endpoint/endpointResolver.ts | 16 + .../src/endpoint/ruleset.ts | 320 ++ .../src/endpoints.ts | 182 - .../src/models/models_0.ts | 282 +- .../src/models/models_1.ts | 171 +- .../src/protocols/Aws_json1_1.ts | 14 +- .../src/runtimeConfig.shared.ts | 4 +- .../aws-models/cognito-identity-provider.json | 3017 +++++++++++++---- 113 files changed, 4315 insertions(+), 1094 deletions(-) create mode 100644 clients/client-cognito-identity-provider/src/endpoint/EndpointParameters.ts create mode 100644 clients/client-cognito-identity-provider/src/endpoint/endpointResolver.ts create mode 100644 clients/client-cognito-identity-provider/src/endpoint/ruleset.ts delete mode 100644 clients/client-cognito-identity-provider/src/endpoints.ts diff --git a/clients/client-cognito-identity-provider/package.json b/clients/client-cognito-identity-provider/package.json index e9c415df8133..bab29803ebce 100644 --- a/clients/client-cognito-identity-provider/package.json +++ b/clients/client-cognito-identity-provider/package.json @@ -26,6 +26,7 @@ "@aws-sdk/hash-node": "*", "@aws-sdk/invalid-dependency": "*", "@aws-sdk/middleware-content-length": "*", + "@aws-sdk/middleware-endpoint": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", "@aws-sdk/middleware-recursion-detection": "*", @@ -46,6 +47,7 @@ "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", "@aws-sdk/util-defaults-mode-node": "*", + "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@aws-sdk/util-utf8-browser": "*", diff --git a/clients/client-cognito-identity-provider/src/CognitoIdentityProvider.ts b/clients/client-cognito-identity-provider/src/CognitoIdentityProvider.ts index 4457400e033f..c61ecd58083d 100644 --- a/clients/client-cognito-identity-provider/src/CognitoIdentityProvider.ts +++ b/clients/client-cognito-identity-provider/src/CognitoIdentityProvider.ts @@ -753,8 +753,9 @@ export class CognitoIdentityProvider extends CognitoIdentityProviderClient { } /** - *

Disables the specified user.

- *

Calling this action requires developer credentials.

+ *

Deactivates a user and revokes all access tokens for the user. A deactivated user can't sign in, + * but still appears in the responses to GetUser and ListUsers API requests.

+ *

You must make this API request with Amazon Web Services credentials that have cognito-idp:AdminDisableUser permissions.

*/ public adminDisableUser( args: AdminDisableUserCommandInput, @@ -2625,7 +2626,9 @@ export class CognitoIdentityProvider extends CognitoIdentityProviderClient { } /** - *

This method takes a user pool ID, and returns the signing certificate.

+ *

This method takes a user pool ID, and returns the signing certificate. The issued certificate is valid for 10 years from the date of issue.

+ *

Amazon Cognito issues and assigns a new signing certificate annually. This process returns a new value in the response to GetSigningCertificate, + * but doesn't invalidate the original certificate.

*/ public getSigningCertificate( args: GetSigningCertificateCommandInput, @@ -2804,10 +2807,8 @@ export class CognitoIdentityProvider extends CognitoIdentityProviderClient { /** *

Signs out users from all devices. It also invalidates all refresh tokens that Amazon Cognito - * has issued to a user. The user's current access and ID tokens remain valid until their - * expiry. By default, access and ID tokens expire one hour after Amazon Cognito issues them. A user - * can still use a hosted UI cookie to retrieve new tokens for the duration of the cookie - * validity period of 1 hour.

+ * has issued to a user. A user can still use a hosted UI cookie to retrieve new tokens + * for the duration of the 1-hour cookie validity period.

*/ public globalSignOut( args: GlobalSignOutCommandInput, @@ -3295,9 +3296,9 @@ export class CognitoIdentityProvider extends CognitoIdentityProviderClient { } /** - *

Revokes all of the access tokens generated by the specified refresh token. After the - * token is revoked, you can't use the revoked token to access Amazon Cognito authenticated - * APIs.

+ *

Revokes all of the access tokens generated by, and at the same time as, the specified + * refresh token. After a token is revoked, you can't use the revoked token to access + * Amazon Cognito user APIs, or to authorize access to your resource server.

*/ public revokeToken(args: RevokeTokenCommandInput, options?: __HttpHandlerOptions): Promise; public revokeToken(args: RevokeTokenCommandInput, cb: (err: any, data?: RevokeTokenCommandOutput) => void): void; diff --git a/clients/client-cognito-identity-provider/src/CognitoIdentityProviderClient.ts b/clients/client-cognito-identity-provider/src/CognitoIdentityProviderClient.ts index e3f03c6ce0c2..697b8565ef5a 100644 --- a/clients/client-cognito-identity-provider/src/CognitoIdentityProviderClient.ts +++ b/clients/client-cognito-identity-provider/src/CognitoIdentityProviderClient.ts @@ -1,13 +1,7 @@ // smithy-typescript generated code -import { - EndpointsInputConfig, - EndpointsResolvedConfig, - RegionInputConfig, - RegionResolvedConfig, - resolveEndpointsConfig, - resolveRegionConfig, -} from "@aws-sdk/config-resolver"; +import { RegionInputConfig, RegionResolvedConfig, resolveRegionConfig } from "@aws-sdk/config-resolver"; import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length"; +import { EndpointInputConfig, EndpointResolvedConfig, resolveEndpointConfig } from "@aws-sdk/middleware-endpoint"; import { getHostHeaderPlugin, HostHeaderInputConfig, @@ -36,13 +30,13 @@ import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, + EndpointV2 as __EndpointV2, Hash as __Hash, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, - RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent, @@ -317,6 +311,12 @@ import { VerifyUserAttributeCommandInput, VerifyUserAttributeCommandOutput, } from "./commands/VerifyUserAttributeCommand"; +import { + ClientInputEndpointParameters, + ClientResolvedEndpointParameters, + EndpointParameters, + resolveClientEndpointParameters, +} from "./endpoint/EndpointParameters"; import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig"; export type ServiceInputTypes = @@ -634,12 +634,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__ */ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>; - /** - * Fetch related hostname, signing name or signing region with given region. - * @internal - */ - regionInfoProvider?: RegionInfoProvider; - /** * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header * @internal @@ -655,11 +649,12 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__ type CognitoIdentityProviderClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & - EndpointsInputConfig & + EndpointInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & - UserAgentInputConfig; + UserAgentInputConfig & + ClientInputEndpointParameters; /** * The configuration interface of CognitoIdentityProviderClient class constructor that set the region, credentials and other options. */ @@ -668,11 +663,12 @@ export interface CognitoIdentityProviderClientConfig extends CognitoIdentityProv type CognitoIdentityProviderClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required & RegionResolvedConfig & - EndpointsResolvedConfig & + EndpointResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & - UserAgentResolvedConfig; + UserAgentResolvedConfig & + ClientResolvedEndpointParameters; /** * The resolved configuration interface of CognitoIdentityProviderClient class. This is resolved and normalized from the {@link CognitoIdentityProviderClientConfig | constructor configuration interface}. */ @@ -699,14 +695,15 @@ export class CognitoIdentityProviderClient extends __Client< constructor(configuration: CognitoIdentityProviderClientConfig) { const _config_0 = __getRuntimeConfig(configuration); - const _config_1 = resolveRegionConfig(_config_0); - const _config_2 = resolveEndpointsConfig(_config_1); - const _config_3 = resolveRetryConfig(_config_2); - const _config_4 = resolveHostHeaderConfig(_config_3); - const _config_5 = resolveAwsAuthConfig(_config_4); - const _config_6 = resolveUserAgentConfig(_config_5); - super(_config_6); - this.config = _config_6; + const _config_1 = resolveClientEndpointParameters(_config_0); + const _config_2 = resolveRegionConfig(_config_1); + const _config_3 = resolveEndpointConfig(_config_2); + const _config_4 = resolveRetryConfig(_config_3); + const _config_5 = resolveHostHeaderConfig(_config_4); + const _config_6 = resolveAwsAuthConfig(_config_5); + const _config_7 = resolveUserAgentConfig(_config_6); + super(_config_7); + this.config = _config_7; this.middlewareStack.use(getRetryPlugin(this.config)); this.middlewareStack.use(getContentLengthPlugin(this.config)); this.middlewareStack.use(getHostHeaderPlugin(this.config)); diff --git a/clients/client-cognito-identity-provider/src/commands/AddCustomAttributesCommand.ts b/clients/client-cognito-identity-provider/src/commands/AddCustomAttributesCommand.ts index 632a84b4f0c3..68530a82004b 100644 --- a/clients/client-cognito-identity-provider/src/commands/AddCustomAttributesCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AddCustomAttributesCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -57,6 +58,15 @@ export class AddCustomAttributesCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AddCustomAttributesCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class AddCustomAttributesCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AddCustomAttributesCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminAddUserToGroupCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminAddUserToGroupCommand.ts index 1ca127eba104..8f57a004d876 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminAddUserToGroupCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminAddUserToGroupCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -53,6 +54,15 @@ export class AdminAddUserToGroupCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminAddUserToGroupCommandInput) { // Start section: command_constructor super(); @@ -68,6 +78,9 @@ export class AdminAddUserToGroupCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AdminAddUserToGroupCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminConfirmSignUpCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminConfirmSignUpCommand.ts index ab0d432c0608..c9dd1801ffc0 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminConfirmSignUpCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminConfirmSignUpCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -59,6 +60,15 @@ export class AdminConfirmSignUpCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminConfirmSignUpCommandInput) { // Start section: command_constructor super(); @@ -74,6 +84,9 @@ export class AdminConfirmSignUpCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AdminConfirmSignUpCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminCreateUserCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminCreateUserCommand.ts index f597273e2390..40e77e4237b3 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminCreateUserCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminCreateUserCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -87,6 +88,15 @@ export class AdminCreateUserCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminCreateUserCommandInput) { // Start section: command_constructor super(); @@ -102,6 +112,9 @@ export class AdminCreateUserCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AdminCreateUserCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminDeleteUserAttributesCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminDeleteUserAttributesCommand.ts index d265674b247e..92dc00e8c0d1 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminDeleteUserAttributesCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminDeleteUserAttributesCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -59,6 +60,15 @@ export class AdminDeleteUserAttributesCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminDeleteUserAttributesCommandInput) { // Start section: command_constructor super(); @@ -74,6 +84,9 @@ export class AdminDeleteUserAttributesCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AdminDeleteUserAttributesCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminDeleteUserCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminDeleteUserCommand.ts index 04045b9e3a3e..53b257c5da00 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminDeleteUserCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminDeleteUserCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -53,6 +54,15 @@ export class AdminDeleteUserCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminDeleteUserCommandInput) { // Start section: command_constructor super(); @@ -68,6 +78,9 @@ export class AdminDeleteUserCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AdminDeleteUserCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminDisableProviderForUserCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminDisableProviderForUserCommand.ts index 8d6668196bad..7b354c8ef397 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminDisableProviderForUserCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminDisableProviderForUserCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -86,6 +87,15 @@ export class AdminDisableProviderForUserCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminDisableProviderForUserCommandInput) { // Start section: command_constructor super(); @@ -101,6 +111,9 @@ export class AdminDisableProviderForUserCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AdminDisableProviderForUserCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminDisableUserCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminDisableUserCommand.ts index a59d90bf5f27..e84b7eccb2d1 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminDisableUserCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminDisableUserCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -33,8 +34,9 @@ export interface AdminDisableUserCommandInput extends AdminDisableUserRequest {} export interface AdminDisableUserCommandOutput extends AdminDisableUserResponse, __MetadataBearer {} /** - *

Disables the specified user.

- *

Calling this action requires developer credentials.

+ *

Deactivates a user and revokes all access tokens for the user. A deactivated user can't sign in, + * but still appears in the responses to GetUser and ListUsers API requests.

+ *

You must make this API request with Amazon Web Services credentials that have cognito-idp:AdminDisableUser permissions.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript @@ -58,6 +60,15 @@ export class AdminDisableUserCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminDisableUserCommandInput) { // Start section: command_constructor super(); @@ -73,6 +84,9 @@ export class AdminDisableUserCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AdminDisableUserCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminEnableUserCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminEnableUserCommand.ts index c79be565463a..2ab983a42c0b 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminEnableUserCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminEnableUserCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -58,6 +59,15 @@ export class AdminEnableUserCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminEnableUserCommandInput) { // Start section: command_constructor super(); @@ -73,6 +83,9 @@ export class AdminEnableUserCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AdminEnableUserCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminForgetDeviceCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminForgetDeviceCommand.ts index c235211426c6..41af34bdc6c2 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminForgetDeviceCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminForgetDeviceCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -53,6 +54,15 @@ export class AdminForgetDeviceCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminForgetDeviceCommandInput) { // Start section: command_constructor super(); @@ -68,6 +78,9 @@ export class AdminForgetDeviceCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AdminForgetDeviceCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminGetDeviceCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminGetDeviceCommand.ts index 373b4db4dbe5..f6ec3a2f1e9c 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminGetDeviceCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminGetDeviceCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -58,6 +59,15 @@ export class AdminGetDeviceCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminGetDeviceCommandInput) { // Start section: command_constructor super(); @@ -73,6 +83,9 @@ export class AdminGetDeviceCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AdminGetDeviceCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminGetUserCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminGetUserCommand.ts index 3bed5de2759c..c29e59fdd66f 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminGetUserCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminGetUserCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -59,6 +60,15 @@ export class AdminGetUserCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminGetUserCommandInput) { // Start section: command_constructor super(); @@ -74,6 +84,7 @@ export class AdminGetUserCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, AdminGetUserCommand.getEndpointParameterInstructions())); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminInitiateAuthCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminInitiateAuthCommand.ts index f24df3e65fe7..565dd7423072 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminInitiateAuthCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminInitiateAuthCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -77,6 +78,15 @@ export class AdminInitiateAuthCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminInitiateAuthCommandInput) { // Start section: command_constructor super(); @@ -92,6 +102,9 @@ export class AdminInitiateAuthCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AdminInitiateAuthCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminLinkProviderForUserCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminLinkProviderForUserCommand.ts index a34e53d35022..588df2ddc81e 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminLinkProviderForUserCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminLinkProviderForUserCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -75,6 +76,15 @@ export class AdminLinkProviderForUserCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminLinkProviderForUserCommandInput) { // Start section: command_constructor super(); @@ -90,6 +100,9 @@ export class AdminLinkProviderForUserCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AdminLinkProviderForUserCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminListDevicesCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminListDevicesCommand.ts index deccb05fa3b0..ed43af82eafe 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminListDevicesCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminListDevicesCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -58,6 +59,15 @@ export class AdminListDevicesCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminListDevicesCommandInput) { // Start section: command_constructor super(); @@ -73,6 +83,9 @@ export class AdminListDevicesCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AdminListDevicesCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminListGroupsForUserCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminListGroupsForUserCommand.ts index d2fe490894c3..9b8035e30555 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminListGroupsForUserCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminListGroupsForUserCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -58,6 +59,15 @@ export class AdminListGroupsForUserCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminListGroupsForUserCommandInput) { // Start section: command_constructor super(); @@ -73,6 +83,9 @@ export class AdminListGroupsForUserCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AdminListGroupsForUserCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminListUserAuthEventsCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminListUserAuthEventsCommand.ts index 3e379135342b..d9ad7f84795c 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminListUserAuthEventsCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminListUserAuthEventsCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -58,6 +59,15 @@ export class AdminListUserAuthEventsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminListUserAuthEventsCommandInput) { // Start section: command_constructor super(); @@ -73,6 +83,9 @@ export class AdminListUserAuthEventsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AdminListUserAuthEventsCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminRemoveUserFromGroupCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminRemoveUserFromGroupCommand.ts index 953ad02d8795..364f5aae8149 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminRemoveUserFromGroupCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminRemoveUserFromGroupCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -53,6 +54,15 @@ export class AdminRemoveUserFromGroupCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminRemoveUserFromGroupCommandInput) { // Start section: command_constructor super(); @@ -68,6 +78,9 @@ export class AdminRemoveUserFromGroupCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AdminRemoveUserFromGroupCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminResetUserPasswordCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminResetUserPasswordCommand.ts index a0de23461ddc..be522b47bb1f 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminResetUserPasswordCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminResetUserPasswordCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -86,6 +87,15 @@ export class AdminResetUserPasswordCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminResetUserPasswordCommandInput) { // Start section: command_constructor super(); @@ -101,6 +111,9 @@ export class AdminResetUserPasswordCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AdminResetUserPasswordCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminRespondToAuthChallengeCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminRespondToAuthChallengeCommand.ts index 5f1c5245c9d5..e7f8240845b1 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminRespondToAuthChallengeCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminRespondToAuthChallengeCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -79,6 +80,15 @@ export class AdminRespondToAuthChallengeCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminRespondToAuthChallengeCommandInput) { // Start section: command_constructor super(); @@ -94,6 +104,9 @@ export class AdminRespondToAuthChallengeCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AdminRespondToAuthChallengeCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminSetUserMFAPreferenceCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminSetUserMFAPreferenceCommand.ts index ca405eb2118e..48c4ea69016d 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminSetUserMFAPreferenceCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminSetUserMFAPreferenceCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -61,6 +62,15 @@ export class AdminSetUserMFAPreferenceCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminSetUserMFAPreferenceCommandInput) { // Start section: command_constructor super(); @@ -76,6 +86,9 @@ export class AdminSetUserMFAPreferenceCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AdminSetUserMFAPreferenceCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminSetUserPasswordCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminSetUserPasswordCommand.ts index 92ff485b4372..8d834eb3d951 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminSetUserPasswordCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminSetUserPasswordCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -66,6 +67,15 @@ export class AdminSetUserPasswordCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminSetUserPasswordCommandInput) { // Start section: command_constructor super(); @@ -81,6 +91,9 @@ export class AdminSetUserPasswordCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AdminSetUserPasswordCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminSetUserSettingsCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminSetUserSettingsCommand.ts index 7a3ddfa6ac61..0d4eb8bd33c8 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminSetUserSettingsCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminSetUserSettingsCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -60,6 +61,15 @@ export class AdminSetUserSettingsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminSetUserSettingsCommandInput) { // Start section: command_constructor super(); @@ -75,6 +85,9 @@ export class AdminSetUserSettingsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AdminSetUserSettingsCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminUpdateAuthEventFeedbackCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminUpdateAuthEventFeedbackCommand.ts index f5bce5d542a5..e7d1d56ffca6 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminUpdateAuthEventFeedbackCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminUpdateAuthEventFeedbackCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -61,6 +62,15 @@ export class AdminUpdateAuthEventFeedbackCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminUpdateAuthEventFeedbackCommandInput) { // Start section: command_constructor super(); @@ -76,6 +86,9 @@ export class AdminUpdateAuthEventFeedbackCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AdminUpdateAuthEventFeedbackCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminUpdateDeviceStatusCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminUpdateDeviceStatusCommand.ts index 36f6cbd5a03b..ebee20815323 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminUpdateDeviceStatusCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminUpdateDeviceStatusCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -58,6 +59,15 @@ export class AdminUpdateDeviceStatusCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminUpdateDeviceStatusCommandInput) { // Start section: command_constructor super(); @@ -73,6 +83,9 @@ export class AdminUpdateDeviceStatusCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AdminUpdateDeviceStatusCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminUpdateUserAttributesCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminUpdateUserAttributesCommand.ts index 7f8b9b9fd720..5ad4417d1b45 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminUpdateUserAttributesCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminUpdateUserAttributesCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -82,6 +83,15 @@ export class AdminUpdateUserAttributesCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminUpdateUserAttributesCommandInput) { // Start section: command_constructor super(); @@ -97,6 +107,9 @@ export class AdminUpdateUserAttributesCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AdminUpdateUserAttributesCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AdminUserGlobalSignOutCommand.ts b/clients/client-cognito-identity-provider/src/commands/AdminUserGlobalSignOutCommand.ts index 5a1e10f259ce..5b9bcbac8584 100644 --- a/clients/client-cognito-identity-provider/src/commands/AdminUserGlobalSignOutCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AdminUserGlobalSignOutCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -63,6 +64,15 @@ export class AdminUserGlobalSignOutCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AdminUserGlobalSignOutCommandInput) { // Start section: command_constructor super(); @@ -78,6 +88,9 @@ export class AdminUserGlobalSignOutCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AdminUserGlobalSignOutCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/AssociateSoftwareTokenCommand.ts b/clients/client-cognito-identity-provider/src/commands/AssociateSoftwareTokenCommand.ts index 9ac5512267ba..d0f9111d8b94 100644 --- a/clients/client-cognito-identity-provider/src/commands/AssociateSoftwareTokenCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/AssociateSoftwareTokenCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -73,6 +74,15 @@ export class AssociateSoftwareTokenCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AssociateSoftwareTokenCommandInput) { // Start section: command_constructor super(); @@ -88,6 +98,9 @@ export class AssociateSoftwareTokenCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AssociateSoftwareTokenCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/ChangePasswordCommand.ts b/clients/client-cognito-identity-provider/src/commands/ChangePasswordCommand.ts index 44f16de242f1..60adca44564c 100644 --- a/clients/client-cognito-identity-provider/src/commands/ChangePasswordCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/ChangePasswordCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; @@ -56,6 +57,15 @@ export class ChangePasswordCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ChangePasswordCommandInput) { // Start section: command_constructor super(); @@ -71,6 +81,9 @@ export class ChangePasswordCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ChangePasswordCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/ConfirmDeviceCommand.ts b/clients/client-cognito-identity-provider/src/commands/ConfirmDeviceCommand.ts index ced82b22f8ea..bac38fc8a41a 100644 --- a/clients/client-cognito-identity-provider/src/commands/ConfirmDeviceCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/ConfirmDeviceCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -58,6 +59,15 @@ export class ConfirmDeviceCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ConfirmDeviceCommandInput) { // Start section: command_constructor super(); @@ -73,6 +83,7 @@ export class ConfirmDeviceCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, ConfirmDeviceCommand.getEndpointParameterInstructions())); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/ConfirmForgotPasswordCommand.ts b/clients/client-cognito-identity-provider/src/commands/ConfirmForgotPasswordCommand.ts index 340c7b1cab1c..2d00866a656a 100644 --- a/clients/client-cognito-identity-provider/src/commands/ConfirmForgotPasswordCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/ConfirmForgotPasswordCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; @@ -56,6 +57,15 @@ export class ConfirmForgotPasswordCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ConfirmForgotPasswordCommandInput) { // Start section: command_constructor super(); @@ -71,6 +81,9 @@ export class ConfirmForgotPasswordCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ConfirmForgotPasswordCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/ConfirmSignUpCommand.ts b/clients/client-cognito-identity-provider/src/commands/ConfirmSignUpCommand.ts index 8639e2387996..958ef335d655 100644 --- a/clients/client-cognito-identity-provider/src/commands/ConfirmSignUpCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/ConfirmSignUpCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; @@ -56,6 +57,15 @@ export class ConfirmSignUpCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ConfirmSignUpCommandInput) { // Start section: command_constructor super(); @@ -71,6 +81,7 @@ export class ConfirmSignUpCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, ConfirmSignUpCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/CreateGroupCommand.ts b/clients/client-cognito-identity-provider/src/commands/CreateGroupCommand.ts index 44628dc52820..25264c88edfd 100644 --- a/clients/client-cognito-identity-provider/src/commands/CreateGroupCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/CreateGroupCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -58,6 +59,15 @@ export class CreateGroupCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateGroupCommandInput) { // Start section: command_constructor super(); @@ -73,6 +83,7 @@ export class CreateGroupCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, CreateGroupCommand.getEndpointParameterInstructions())); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/CreateIdentityProviderCommand.ts b/clients/client-cognito-identity-provider/src/commands/CreateIdentityProviderCommand.ts index bb62c05217ae..57f7fe497f69 100644 --- a/clients/client-cognito-identity-provider/src/commands/CreateIdentityProviderCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/CreateIdentityProviderCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -57,6 +58,15 @@ export class CreateIdentityProviderCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateIdentityProviderCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class CreateIdentityProviderCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateIdentityProviderCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/CreateResourceServerCommand.ts b/clients/client-cognito-identity-provider/src/commands/CreateResourceServerCommand.ts index 2372fec34921..0b72a6f06c99 100644 --- a/clients/client-cognito-identity-provider/src/commands/CreateResourceServerCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/CreateResourceServerCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -57,6 +58,15 @@ export class CreateResourceServerCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateResourceServerCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class CreateResourceServerCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateResourceServerCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/CreateUserImportJobCommand.ts b/clients/client-cognito-identity-provider/src/commands/CreateUserImportJobCommand.ts index b6b5f0b25a19..a0625853d175 100644 --- a/clients/client-cognito-identity-provider/src/commands/CreateUserImportJobCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/CreateUserImportJobCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -57,6 +58,15 @@ export class CreateUserImportJobCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateUserImportJobCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class CreateUserImportJobCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateUserImportJobCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/CreateUserPoolClientCommand.ts b/clients/client-cognito-identity-provider/src/commands/CreateUserPoolClientCommand.ts index e0cc23584e98..49c576b95523 100644 --- a/clients/client-cognito-identity-provider/src/commands/CreateUserPoolClientCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/CreateUserPoolClientCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -59,6 +60,15 @@ export class CreateUserPoolClientCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateUserPoolClientCommandInput) { // Start section: command_constructor super(); @@ -74,6 +84,9 @@ export class CreateUserPoolClientCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateUserPoolClientCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/CreateUserPoolCommand.ts b/clients/client-cognito-identity-provider/src/commands/CreateUserPoolCommand.ts index de41eb7e5fcc..eea67febc3cb 100644 --- a/clients/client-cognito-identity-provider/src/commands/CreateUserPoolCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/CreateUserPoolCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -76,6 +77,15 @@ export class CreateUserPoolCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateUserPoolCommandInput) { // Start section: command_constructor super(); @@ -91,6 +101,9 @@ export class CreateUserPoolCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateUserPoolCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/CreateUserPoolDomainCommand.ts b/clients/client-cognito-identity-provider/src/commands/CreateUserPoolDomainCommand.ts index 446a7620c6c4..f681e3bbfe7f 100644 --- a/clients/client-cognito-identity-provider/src/commands/CreateUserPoolDomainCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/CreateUserPoolDomainCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -57,6 +58,15 @@ export class CreateUserPoolDomainCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateUserPoolDomainCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class CreateUserPoolDomainCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateUserPoolDomainCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/DeleteGroupCommand.ts b/clients/client-cognito-identity-provider/src/commands/DeleteGroupCommand.ts index 29e3c43fd99c..09edd153fcd9 100644 --- a/clients/client-cognito-identity-provider/src/commands/DeleteGroupCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/DeleteGroupCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -53,6 +54,15 @@ export class DeleteGroupCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: DeleteGroupCommandInput) { // Start section: command_constructor super(); @@ -68,6 +78,7 @@ export class DeleteGroupCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, DeleteGroupCommand.getEndpointParameterInstructions())); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/DeleteIdentityProviderCommand.ts b/clients/client-cognito-identity-provider/src/commands/DeleteIdentityProviderCommand.ts index 538ace4ca8fc..8bab4d6daee2 100644 --- a/clients/client-cognito-identity-provider/src/commands/DeleteIdentityProviderCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/DeleteIdentityProviderCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -52,6 +53,15 @@ export class DeleteIdentityProviderCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: DeleteIdentityProviderCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class DeleteIdentityProviderCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteIdentityProviderCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/DeleteResourceServerCommand.ts b/clients/client-cognito-identity-provider/src/commands/DeleteResourceServerCommand.ts index a208394222b4..f7ed59452b8c 100644 --- a/clients/client-cognito-identity-provider/src/commands/DeleteResourceServerCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/DeleteResourceServerCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -52,6 +53,15 @@ export class DeleteResourceServerCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: DeleteResourceServerCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class DeleteResourceServerCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteResourceServerCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/DeleteUserAttributesCommand.ts b/clients/client-cognito-identity-provider/src/commands/DeleteUserAttributesCommand.ts index 4fbfcd9d3fde..a8fccace19ed 100644 --- a/clients/client-cognito-identity-provider/src/commands/DeleteUserAttributesCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/DeleteUserAttributesCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; @@ -56,6 +57,15 @@ export class DeleteUserAttributesCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: DeleteUserAttributesCommandInput) { // Start section: command_constructor super(); @@ -71,6 +81,9 @@ export class DeleteUserAttributesCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteUserAttributesCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/DeleteUserCommand.ts b/clients/client-cognito-identity-provider/src/commands/DeleteUserCommand.ts index 78760aaec8dd..7f0ccee35409 100644 --- a/clients/client-cognito-identity-provider/src/commands/DeleteUserCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/DeleteUserCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; @@ -51,6 +52,15 @@ export class DeleteUserCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: DeleteUserCommandInput) { // Start section: command_constructor super(); @@ -66,6 +76,7 @@ export class DeleteUserCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, DeleteUserCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/DeleteUserPoolClientCommand.ts b/clients/client-cognito-identity-provider/src/commands/DeleteUserPoolClientCommand.ts index 109eb4da2906..aa1cec46a806 100644 --- a/clients/client-cognito-identity-provider/src/commands/DeleteUserPoolClientCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/DeleteUserPoolClientCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -52,6 +53,15 @@ export class DeleteUserPoolClientCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: DeleteUserPoolClientCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class DeleteUserPoolClientCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteUserPoolClientCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/DeleteUserPoolCommand.ts b/clients/client-cognito-identity-provider/src/commands/DeleteUserPoolCommand.ts index 8162c041fff3..616ee0fb00ee 100644 --- a/clients/client-cognito-identity-provider/src/commands/DeleteUserPoolCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/DeleteUserPoolCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -52,6 +53,15 @@ export class DeleteUserPoolCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: DeleteUserPoolCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class DeleteUserPoolCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteUserPoolCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/DeleteUserPoolDomainCommand.ts b/clients/client-cognito-identity-provider/src/commands/DeleteUserPoolDomainCommand.ts index bf3541b2a78a..2a3bd05ac159 100644 --- a/clients/client-cognito-identity-provider/src/commands/DeleteUserPoolDomainCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/DeleteUserPoolDomainCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -57,6 +58,15 @@ export class DeleteUserPoolDomainCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: DeleteUserPoolDomainCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class DeleteUserPoolDomainCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteUserPoolDomainCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/DescribeIdentityProviderCommand.ts b/clients/client-cognito-identity-provider/src/commands/DescribeIdentityProviderCommand.ts index 8c785badab53..5f3e9d34dc84 100644 --- a/clients/client-cognito-identity-provider/src/commands/DescribeIdentityProviderCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/DescribeIdentityProviderCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -57,6 +58,15 @@ export class DescribeIdentityProviderCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: DescribeIdentityProviderCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class DescribeIdentityProviderCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DescribeIdentityProviderCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/DescribeResourceServerCommand.ts b/clients/client-cognito-identity-provider/src/commands/DescribeResourceServerCommand.ts index c58835fff100..1568b08a24b4 100644 --- a/clients/client-cognito-identity-provider/src/commands/DescribeResourceServerCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/DescribeResourceServerCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -57,6 +58,15 @@ export class DescribeResourceServerCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: DescribeResourceServerCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class DescribeResourceServerCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DescribeResourceServerCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/DescribeRiskConfigurationCommand.ts b/clients/client-cognito-identity-provider/src/commands/DescribeRiskConfigurationCommand.ts index 9b4f4e6c171d..17799653274a 100644 --- a/clients/client-cognito-identity-provider/src/commands/DescribeRiskConfigurationCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/DescribeRiskConfigurationCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -57,6 +58,15 @@ export class DescribeRiskConfigurationCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: DescribeRiskConfigurationCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class DescribeRiskConfigurationCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DescribeRiskConfigurationCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/DescribeUserImportJobCommand.ts b/clients/client-cognito-identity-provider/src/commands/DescribeUserImportJobCommand.ts index d56a52256ede..5a4451c4a7fe 100644 --- a/clients/client-cognito-identity-provider/src/commands/DescribeUserImportJobCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/DescribeUserImportJobCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -57,6 +58,15 @@ export class DescribeUserImportJobCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: DescribeUserImportJobCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class DescribeUserImportJobCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DescribeUserImportJobCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/DescribeUserPoolClientCommand.ts b/clients/client-cognito-identity-provider/src/commands/DescribeUserPoolClientCommand.ts index 14c30a8ecc18..5af844a5f8be 100644 --- a/clients/client-cognito-identity-provider/src/commands/DescribeUserPoolClientCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/DescribeUserPoolClientCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -58,6 +59,15 @@ export class DescribeUserPoolClientCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: DescribeUserPoolClientCommandInput) { // Start section: command_constructor super(); @@ -73,6 +83,9 @@ export class DescribeUserPoolClientCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DescribeUserPoolClientCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/DescribeUserPoolCommand.ts b/clients/client-cognito-identity-provider/src/commands/DescribeUserPoolCommand.ts index a5471dbd18a0..f6c38712bff7 100644 --- a/clients/client-cognito-identity-provider/src/commands/DescribeUserPoolCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/DescribeUserPoolCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -57,6 +58,15 @@ export class DescribeUserPoolCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: DescribeUserPoolCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class DescribeUserPoolCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DescribeUserPoolCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/DescribeUserPoolDomainCommand.ts b/clients/client-cognito-identity-provider/src/commands/DescribeUserPoolDomainCommand.ts index 54216174f57e..8400f71c9109 100644 --- a/clients/client-cognito-identity-provider/src/commands/DescribeUserPoolDomainCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/DescribeUserPoolDomainCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -57,6 +58,15 @@ export class DescribeUserPoolDomainCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: DescribeUserPoolDomainCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class DescribeUserPoolDomainCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DescribeUserPoolDomainCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/ForgetDeviceCommand.ts b/clients/client-cognito-identity-provider/src/commands/ForgetDeviceCommand.ts index 493e1324a158..7eb45c5f9f96 100644 --- a/clients/client-cognito-identity-provider/src/commands/ForgetDeviceCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/ForgetDeviceCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -52,6 +53,15 @@ export class ForgetDeviceCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ForgetDeviceCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,7 @@ export class ForgetDeviceCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, ForgetDeviceCommand.getEndpointParameterInstructions())); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/ForgotPasswordCommand.ts b/clients/client-cognito-identity-provider/src/commands/ForgotPasswordCommand.ts index a7589bc665f8..ccd1af22a11b 100644 --- a/clients/client-cognito-identity-provider/src/commands/ForgotPasswordCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/ForgotPasswordCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; @@ -81,6 +82,15 @@ export class ForgotPasswordCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ForgotPasswordCommandInput) { // Start section: command_constructor super(); @@ -96,6 +106,9 @@ export class ForgotPasswordCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ForgotPasswordCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/GetCSVHeaderCommand.ts b/clients/client-cognito-identity-provider/src/commands/GetCSVHeaderCommand.ts index 282dd952ed21..df6119c960ba 100644 --- a/clients/client-cognito-identity-provider/src/commands/GetCSVHeaderCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/GetCSVHeaderCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -58,6 +59,15 @@ export class GetCSVHeaderCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetCSVHeaderCommandInput) { // Start section: command_constructor super(); @@ -73,6 +83,7 @@ export class GetCSVHeaderCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, GetCSVHeaderCommand.getEndpointParameterInstructions())); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/GetDeviceCommand.ts b/clients/client-cognito-identity-provider/src/commands/GetDeviceCommand.ts index 8b91cdc92683..be9fb969b457 100644 --- a/clients/client-cognito-identity-provider/src/commands/GetDeviceCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/GetDeviceCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -54,6 +55,15 @@ export class GetDeviceCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetDeviceCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,7 @@ export class GetDeviceCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, GetDeviceCommand.getEndpointParameterInstructions())); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/GetGroupCommand.ts b/clients/client-cognito-identity-provider/src/commands/GetGroupCommand.ts index d036269258f0..323dab8fdef9 100644 --- a/clients/client-cognito-identity-provider/src/commands/GetGroupCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/GetGroupCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -55,6 +56,15 @@ export class GetGroupCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetGroupCommandInput) { // Start section: command_constructor super(); @@ -70,6 +80,7 @@ export class GetGroupCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, GetGroupCommand.getEndpointParameterInstructions())); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/GetIdentityProviderByIdentifierCommand.ts b/clients/client-cognito-identity-provider/src/commands/GetIdentityProviderByIdentifierCommand.ts index c7108d6612e2..1e785c704e5c 100644 --- a/clients/client-cognito-identity-provider/src/commands/GetIdentityProviderByIdentifierCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/GetIdentityProviderByIdentifierCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -59,6 +60,15 @@ export class GetIdentityProviderByIdentifierCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetIdentityProviderByIdentifierCommandInput) { // Start section: command_constructor super(); @@ -74,6 +84,9 @@ export class GetIdentityProviderByIdentifierCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetIdentityProviderByIdentifierCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/GetSigningCertificateCommand.ts b/clients/client-cognito-identity-provider/src/commands/GetSigningCertificateCommand.ts index 49bab47c0019..b57dedf2d6f8 100644 --- a/clients/client-cognito-identity-provider/src/commands/GetSigningCertificateCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/GetSigningCertificateCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -33,7 +34,9 @@ export interface GetSigningCertificateCommandInput extends GetSigningCertificate export interface GetSigningCertificateCommandOutput extends GetSigningCertificateResponse, __MetadataBearer {} /** - *

This method takes a user pool ID, and returns the signing certificate.

+ *

This method takes a user pool ID, and returns the signing certificate. The issued certificate is valid for 10 years from the date of issue.

+ *

Amazon Cognito issues and assigns a new signing certificate annually. This process returns a new value in the response to GetSigningCertificate, + * but doesn't invalidate the original certificate.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript @@ -57,6 +60,15 @@ export class GetSigningCertificateCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetSigningCertificateCommandInput) { // Start section: command_constructor super(); @@ -72,6 +84,9 @@ export class GetSigningCertificateCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetSigningCertificateCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/GetUICustomizationCommand.ts b/clients/client-cognito-identity-provider/src/commands/GetUICustomizationCommand.ts index a92dca4bf649..57b8a3892cd1 100644 --- a/clients/client-cognito-identity-provider/src/commands/GetUICustomizationCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/GetUICustomizationCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -61,6 +62,15 @@ export class GetUICustomizationCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetUICustomizationCommandInput) { // Start section: command_constructor super(); @@ -76,6 +86,9 @@ export class GetUICustomizationCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetUICustomizationCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/GetUserAttributeVerificationCodeCommand.ts b/clients/client-cognito-identity-provider/src/commands/GetUserAttributeVerificationCodeCommand.ts index d93956bb62d1..9a19f4879204 100644 --- a/clients/client-cognito-identity-provider/src/commands/GetUserAttributeVerificationCodeCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/GetUserAttributeVerificationCodeCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; @@ -78,6 +79,15 @@ export class GetUserAttributeVerificationCodeCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetUserAttributeVerificationCodeCommandInput) { // Start section: command_constructor super(); @@ -93,6 +103,9 @@ export class GetUserAttributeVerificationCodeCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetUserAttributeVerificationCodeCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/GetUserCommand.ts b/clients/client-cognito-identity-provider/src/commands/GetUserCommand.ts index aed5f687d054..b1f5321cf871 100644 --- a/clients/client-cognito-identity-provider/src/commands/GetUserCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/GetUserCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; @@ -53,6 +54,15 @@ export class GetUserCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetUserCommandInput) { // Start section: command_constructor super(); @@ -68,6 +78,7 @@ export class GetUserCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, GetUserCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/GetUserPoolMfaConfigCommand.ts b/clients/client-cognito-identity-provider/src/commands/GetUserPoolMfaConfigCommand.ts index e4f39888a823..40a7755ff4ee 100644 --- a/clients/client-cognito-identity-provider/src/commands/GetUserPoolMfaConfigCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/GetUserPoolMfaConfigCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -57,6 +58,15 @@ export class GetUserPoolMfaConfigCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetUserPoolMfaConfigCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class GetUserPoolMfaConfigCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetUserPoolMfaConfigCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/GlobalSignOutCommand.ts b/clients/client-cognito-identity-provider/src/commands/GlobalSignOutCommand.ts index acadcdc391ac..c27c15c81bed 100644 --- a/clients/client-cognito-identity-provider/src/commands/GlobalSignOutCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/GlobalSignOutCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -34,10 +35,8 @@ export interface GlobalSignOutCommandOutput extends GlobalSignOutResponse, __Met /** *

Signs out users from all devices. It also invalidates all refresh tokens that Amazon Cognito - * has issued to a user. The user's current access and ID tokens remain valid until their - * expiry. By default, access and ID tokens expire one hour after Amazon Cognito issues them. A user - * can still use a hosted UI cookie to retrieve new tokens for the duration of the cookie - * validity period of 1 hour.

+ * has issued to a user. A user can still use a hosted UI cookie to retrieve new tokens + * for the duration of the 1-hour cookie validity period.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript @@ -61,6 +60,15 @@ export class GlobalSignOutCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GlobalSignOutCommandInput) { // Start section: command_constructor super(); @@ -76,6 +84,7 @@ export class GlobalSignOutCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, GlobalSignOutCommand.getEndpointParameterInstructions())); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/InitiateAuthCommand.ts b/clients/client-cognito-identity-provider/src/commands/InitiateAuthCommand.ts index a900abf6d9af..4b8251d2d876 100644 --- a/clients/client-cognito-identity-provider/src/commands/InitiateAuthCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/InitiateAuthCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; @@ -75,6 +76,15 @@ export class InitiateAuthCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: InitiateAuthCommandInput) { // Start section: command_constructor super(); @@ -90,6 +100,7 @@ export class InitiateAuthCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, InitiateAuthCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/ListDevicesCommand.ts b/clients/client-cognito-identity-provider/src/commands/ListDevicesCommand.ts index 46e32a06c84d..7660c7b896e7 100644 --- a/clients/client-cognito-identity-provider/src/commands/ListDevicesCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/ListDevicesCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -57,6 +58,15 @@ export class ListDevicesCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListDevicesCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,7 @@ export class ListDevicesCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, ListDevicesCommand.getEndpointParameterInstructions())); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/ListGroupsCommand.ts b/clients/client-cognito-identity-provider/src/commands/ListGroupsCommand.ts index eb930329d19b..afc68d009d61 100644 --- a/clients/client-cognito-identity-provider/src/commands/ListGroupsCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/ListGroupsCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -58,6 +59,15 @@ export class ListGroupsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListGroupsCommandInput) { // Start section: command_constructor super(); @@ -73,6 +83,7 @@ export class ListGroupsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, ListGroupsCommand.getEndpointParameterInstructions())); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/ListIdentityProvidersCommand.ts b/clients/client-cognito-identity-provider/src/commands/ListIdentityProvidersCommand.ts index 0add873c84d2..cb1074d57b85 100644 --- a/clients/client-cognito-identity-provider/src/commands/ListIdentityProvidersCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/ListIdentityProvidersCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -57,6 +58,15 @@ export class ListIdentityProvidersCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListIdentityProvidersCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class ListIdentityProvidersCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListIdentityProvidersCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/ListResourceServersCommand.ts b/clients/client-cognito-identity-provider/src/commands/ListResourceServersCommand.ts index a01cc3ec6e98..fa261ec93d94 100644 --- a/clients/client-cognito-identity-provider/src/commands/ListResourceServersCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/ListResourceServersCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -57,6 +58,15 @@ export class ListResourceServersCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListResourceServersCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class ListResourceServersCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListResourceServersCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/ListTagsForResourceCommand.ts b/clients/client-cognito-identity-provider/src/commands/ListTagsForResourceCommand.ts index 41e13857f7c9..81b13065f94a 100644 --- a/clients/client-cognito-identity-provider/src/commands/ListTagsForResourceCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/ListTagsForResourceCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -60,6 +61,15 @@ export class ListTagsForResourceCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListTagsForResourceCommandInput) { // Start section: command_constructor super(); @@ -75,6 +85,9 @@ export class ListTagsForResourceCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListTagsForResourceCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/ListUserImportJobsCommand.ts b/clients/client-cognito-identity-provider/src/commands/ListUserImportJobsCommand.ts index 26f873267773..6d6a3ddeec7f 100644 --- a/clients/client-cognito-identity-provider/src/commands/ListUserImportJobsCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/ListUserImportJobsCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -57,6 +58,15 @@ export class ListUserImportJobsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListUserImportJobsCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class ListUserImportJobsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListUserImportJobsCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/ListUserPoolClientsCommand.ts b/clients/client-cognito-identity-provider/src/commands/ListUserPoolClientsCommand.ts index 26ef51922cee..1e7c47a610e6 100644 --- a/clients/client-cognito-identity-provider/src/commands/ListUserPoolClientsCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/ListUserPoolClientsCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -57,6 +58,15 @@ export class ListUserPoolClientsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListUserPoolClientsCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class ListUserPoolClientsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListUserPoolClientsCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/ListUserPoolsCommand.ts b/clients/client-cognito-identity-provider/src/commands/ListUserPoolsCommand.ts index 1ce8cbd4c9f7..c85df64290fa 100644 --- a/clients/client-cognito-identity-provider/src/commands/ListUserPoolsCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/ListUserPoolsCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -57,6 +58,15 @@ export class ListUserPoolsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListUserPoolsCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,7 @@ export class ListUserPoolsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, ListUserPoolsCommand.getEndpointParameterInstructions())); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/ListUsersCommand.ts b/clients/client-cognito-identity-provider/src/commands/ListUsersCommand.ts index f762658c70b6..f62fb9a1a31c 100644 --- a/clients/client-cognito-identity-provider/src/commands/ListUsersCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/ListUsersCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -54,6 +55,15 @@ export class ListUsersCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListUsersCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,7 @@ export class ListUsersCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, ListUsersCommand.getEndpointParameterInstructions())); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/ListUsersInGroupCommand.ts b/clients/client-cognito-identity-provider/src/commands/ListUsersInGroupCommand.ts index c4f180458028..2ce142573d1d 100644 --- a/clients/client-cognito-identity-provider/src/commands/ListUsersInGroupCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/ListUsersInGroupCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -58,6 +59,15 @@ export class ListUsersInGroupCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListUsersInGroupCommandInput) { // Start section: command_constructor super(); @@ -73,6 +83,9 @@ export class ListUsersInGroupCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListUsersInGroupCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/ResendConfirmationCodeCommand.ts b/clients/client-cognito-identity-provider/src/commands/ResendConfirmationCodeCommand.ts index 4fd9981fdcf8..0e8b121bab30 100644 --- a/clients/client-cognito-identity-provider/src/commands/ResendConfirmationCodeCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/ResendConfirmationCodeCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; @@ -75,6 +76,15 @@ export class ResendConfirmationCodeCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ResendConfirmationCodeCommandInput) { // Start section: command_constructor super(); @@ -90,6 +100,9 @@ export class ResendConfirmationCodeCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ResendConfirmationCodeCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/RespondToAuthChallengeCommand.ts b/clients/client-cognito-identity-provider/src/commands/RespondToAuthChallengeCommand.ts index d389be384c8d..985f2a55bddc 100644 --- a/clients/client-cognito-identity-provider/src/commands/RespondToAuthChallengeCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/RespondToAuthChallengeCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; @@ -74,6 +75,15 @@ export class RespondToAuthChallengeCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: RespondToAuthChallengeCommandInput) { // Start section: command_constructor super(); @@ -89,6 +99,9 @@ export class RespondToAuthChallengeCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, RespondToAuthChallengeCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/RevokeTokenCommand.ts b/clients/client-cognito-identity-provider/src/commands/RevokeTokenCommand.ts index 04cebe79f929..7a88f325d717 100644 --- a/clients/client-cognito-identity-provider/src/commands/RevokeTokenCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/RevokeTokenCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -33,9 +34,9 @@ export interface RevokeTokenCommandInput extends RevokeTokenRequest {} export interface RevokeTokenCommandOutput extends RevokeTokenResponse, __MetadataBearer {} /** - *

Revokes all of the access tokens generated by the specified refresh token. After the - * token is revoked, you can't use the revoked token to access Amazon Cognito authenticated - * APIs.

+ *

Revokes all of the access tokens generated by, and at the same time as, the specified + * refresh token. After a token is revoked, you can't use the revoked token to access + * Amazon Cognito user APIs, or to authorize access to your resource server.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript @@ -59,6 +60,15 @@ export class RevokeTokenCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: RevokeTokenCommandInput) { // Start section: command_constructor super(); @@ -74,6 +84,7 @@ export class RevokeTokenCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, RevokeTokenCommand.getEndpointParameterInstructions())); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/SetRiskConfigurationCommand.ts b/clients/client-cognito-identity-provider/src/commands/SetRiskConfigurationCommand.ts index 6c998facd203..fc2a3e351f54 100644 --- a/clients/client-cognito-identity-provider/src/commands/SetRiskConfigurationCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/SetRiskConfigurationCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -61,6 +62,15 @@ export class SetRiskConfigurationCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: SetRiskConfigurationCommandInput) { // Start section: command_constructor super(); @@ -76,6 +86,9 @@ export class SetRiskConfigurationCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, SetRiskConfigurationCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/SetUICustomizationCommand.ts b/clients/client-cognito-identity-provider/src/commands/SetUICustomizationCommand.ts index feeaa38d7542..820d8d620e19 100644 --- a/clients/client-cognito-identity-provider/src/commands/SetUICustomizationCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/SetUICustomizationCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -69,6 +70,15 @@ export class SetUICustomizationCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: SetUICustomizationCommandInput) { // Start section: command_constructor super(); @@ -84,6 +94,9 @@ export class SetUICustomizationCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, SetUICustomizationCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/SetUserMFAPreferenceCommand.ts b/clients/client-cognito-identity-provider/src/commands/SetUserMFAPreferenceCommand.ts index 4e2c5f005cd5..f5de1c14a2e3 100644 --- a/clients/client-cognito-identity-provider/src/commands/SetUserMFAPreferenceCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/SetUserMFAPreferenceCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -65,6 +66,15 @@ export class SetUserMFAPreferenceCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: SetUserMFAPreferenceCommandInput) { // Start section: command_constructor super(); @@ -80,6 +90,9 @@ export class SetUserMFAPreferenceCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, SetUserMFAPreferenceCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/SetUserPoolMfaConfigCommand.ts b/clients/client-cognito-identity-provider/src/commands/SetUserPoolMfaConfigCommand.ts index 2d1810e27b25..9bba22c5895f 100644 --- a/clients/client-cognito-identity-provider/src/commands/SetUserPoolMfaConfigCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/SetUserPoolMfaConfigCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -75,6 +76,15 @@ export class SetUserPoolMfaConfigCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: SetUserPoolMfaConfigCommandInput) { // Start section: command_constructor super(); @@ -90,6 +100,9 @@ export class SetUserPoolMfaConfigCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, SetUserPoolMfaConfigCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/SetUserSettingsCommand.ts b/clients/client-cognito-identity-provider/src/commands/SetUserSettingsCommand.ts index f0d92a6d0b30..0221d0dc90f1 100644 --- a/clients/client-cognito-identity-provider/src/commands/SetUserSettingsCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/SetUserSettingsCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; @@ -59,6 +60,15 @@ export class SetUserSettingsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: SetUserSettingsCommandInput) { // Start section: command_constructor super(); @@ -74,6 +84,9 @@ export class SetUserSettingsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, SetUserSettingsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/SignUpCommand.ts b/clients/client-cognito-identity-provider/src/commands/SignUpCommand.ts index 8846e2a28933..70b13886c302 100644 --- a/clients/client-cognito-identity-provider/src/commands/SignUpCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/SignUpCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; @@ -17,8 +18,12 @@ import { ServiceInputTypes, ServiceOutputTypes, } from "../CognitoIdentityProviderClient"; -import { SignUpRequest, SignUpRequestFilterSensitiveLog } from "../models/models_0"; -import { SignUpResponse, SignUpResponseFilterSensitiveLog } from "../models/models_1"; +import { + SignUpRequest, + SignUpRequestFilterSensitiveLog, + SignUpResponse, + SignUpResponseFilterSensitiveLog, +} from "../models/models_1"; import { deserializeAws_json1_1SignUpCommand, serializeAws_json1_1SignUpCommand } from "../protocols/Aws_json1_1"; export interface SignUpCommandInput extends SignUpRequest {} @@ -68,6 +73,15 @@ export class SignUpCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: SignUpCommandInput) { // Start section: command_constructor super(); @@ -83,6 +97,7 @@ export class SignUpCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, SignUpCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/StartUserImportJobCommand.ts b/clients/client-cognito-identity-provider/src/commands/StartUserImportJobCommand.ts index b46ee21ffc5d..225b557eefe8 100644 --- a/clients/client-cognito-identity-provider/src/commands/StartUserImportJobCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/StartUserImportJobCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -57,6 +58,15 @@ export class StartUserImportJobCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: StartUserImportJobCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class StartUserImportJobCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, StartUserImportJobCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/StopUserImportJobCommand.ts b/clients/client-cognito-identity-provider/src/commands/StopUserImportJobCommand.ts index fb0edc5c934b..50d547f9f3d5 100644 --- a/clients/client-cognito-identity-provider/src/commands/StopUserImportJobCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/StopUserImportJobCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -57,6 +58,15 @@ export class StopUserImportJobCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: StopUserImportJobCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class StopUserImportJobCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, StopUserImportJobCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/TagResourceCommand.ts b/clients/client-cognito-identity-provider/src/commands/TagResourceCommand.ts index f3135cd0bd80..fa9a7ef10b2e 100644 --- a/clients/client-cognito-identity-provider/src/commands/TagResourceCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/TagResourceCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -70,6 +71,15 @@ export class TagResourceCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: TagResourceCommandInput) { // Start section: command_constructor super(); @@ -85,6 +95,7 @@ export class TagResourceCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, TagResourceCommand.getEndpointParameterInstructions())); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/UntagResourceCommand.ts b/clients/client-cognito-identity-provider/src/commands/UntagResourceCommand.ts index f75c4a6d9032..bf877a43ea9a 100644 --- a/clients/client-cognito-identity-provider/src/commands/UntagResourceCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/UntagResourceCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -58,6 +59,15 @@ export class UntagResourceCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: UntagResourceCommandInput) { // Start section: command_constructor super(); @@ -73,6 +83,7 @@ export class UntagResourceCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, UntagResourceCommand.getEndpointParameterInstructions())); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/UpdateAuthEventFeedbackCommand.ts b/clients/client-cognito-identity-provider/src/commands/UpdateAuthEventFeedbackCommand.ts index 037b5dd83ed2..868ea813f4b4 100644 --- a/clients/client-cognito-identity-provider/src/commands/UpdateAuthEventFeedbackCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/UpdateAuthEventFeedbackCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -59,6 +60,15 @@ export class UpdateAuthEventFeedbackCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: UpdateAuthEventFeedbackCommandInput) { // Start section: command_constructor super(); @@ -74,6 +84,9 @@ export class UpdateAuthEventFeedbackCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateAuthEventFeedbackCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/UpdateDeviceStatusCommand.ts b/clients/client-cognito-identity-provider/src/commands/UpdateDeviceStatusCommand.ts index 2c8cc014bf38..ae7665c45198 100644 --- a/clients/client-cognito-identity-provider/src/commands/UpdateDeviceStatusCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/UpdateDeviceStatusCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -57,6 +58,15 @@ export class UpdateDeviceStatusCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: UpdateDeviceStatusCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class UpdateDeviceStatusCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateDeviceStatusCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/UpdateGroupCommand.ts b/clients/client-cognito-identity-provider/src/commands/UpdateGroupCommand.ts index 94695a52a50e..61a029a76d1e 100644 --- a/clients/client-cognito-identity-provider/src/commands/UpdateGroupCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/UpdateGroupCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -58,6 +59,15 @@ export class UpdateGroupCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: UpdateGroupCommandInput) { // Start section: command_constructor super(); @@ -73,6 +83,7 @@ export class UpdateGroupCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, UpdateGroupCommand.getEndpointParameterInstructions())); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/UpdateIdentityProviderCommand.ts b/clients/client-cognito-identity-provider/src/commands/UpdateIdentityProviderCommand.ts index e5a6fa92f973..58fa1e05848e 100644 --- a/clients/client-cognito-identity-provider/src/commands/UpdateIdentityProviderCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/UpdateIdentityProviderCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -57,6 +58,15 @@ export class UpdateIdentityProviderCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: UpdateIdentityProviderCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class UpdateIdentityProviderCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateIdentityProviderCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/UpdateResourceServerCommand.ts b/clients/client-cognito-identity-provider/src/commands/UpdateResourceServerCommand.ts index ea59234766d7..4ff8e462dc7e 100644 --- a/clients/client-cognito-identity-provider/src/commands/UpdateResourceServerCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/UpdateResourceServerCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -61,6 +62,15 @@ export class UpdateResourceServerCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: UpdateResourceServerCommandInput) { // Start section: command_constructor super(); @@ -76,6 +86,9 @@ export class UpdateResourceServerCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateResourceServerCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/UpdateUserAttributesCommand.ts b/clients/client-cognito-identity-provider/src/commands/UpdateUserAttributesCommand.ts index d418baf607bb..3ab83de77f41 100644 --- a/clients/client-cognito-identity-provider/src/commands/UpdateUserAttributesCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/UpdateUserAttributesCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; @@ -74,6 +75,15 @@ export class UpdateUserAttributesCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: UpdateUserAttributesCommandInput) { // Start section: command_constructor super(); @@ -89,6 +99,9 @@ export class UpdateUserAttributesCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateUserAttributesCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/UpdateUserPoolClientCommand.ts b/clients/client-cognito-identity-provider/src/commands/UpdateUserPoolClientCommand.ts index 931e087ec0e8..7d2dccb6d11f 100644 --- a/clients/client-cognito-identity-provider/src/commands/UpdateUserPoolClientCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/UpdateUserPoolClientCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -64,6 +65,15 @@ export class UpdateUserPoolClientCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: UpdateUserPoolClientCommandInput) { // Start section: command_constructor super(); @@ -79,6 +89,9 @@ export class UpdateUserPoolClientCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateUserPoolClientCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/UpdateUserPoolCommand.ts b/clients/client-cognito-identity-provider/src/commands/UpdateUserPoolCommand.ts index db08e67aa9f5..b2a8da7167f0 100644 --- a/clients/client-cognito-identity-provider/src/commands/UpdateUserPoolCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/UpdateUserPoolCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -78,6 +79,15 @@ export class UpdateUserPoolCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: UpdateUserPoolCommandInput) { // Start section: command_constructor super(); @@ -93,6 +103,9 @@ export class UpdateUserPoolCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateUserPoolCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/UpdateUserPoolDomainCommand.ts b/clients/client-cognito-identity-provider/src/commands/UpdateUserPoolDomainCommand.ts index da1b966376ac..04197675c8d6 100644 --- a/clients/client-cognito-identity-provider/src/commands/UpdateUserPoolDomainCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/UpdateUserPoolDomainCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -75,6 +76,15 @@ export class UpdateUserPoolDomainCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: UpdateUserPoolDomainCommandInput) { // Start section: command_constructor super(); @@ -90,6 +100,9 @@ export class UpdateUserPoolDomainCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateUserPoolDomainCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/VerifySoftwareTokenCommand.ts b/clients/client-cognito-identity-provider/src/commands/VerifySoftwareTokenCommand.ts index 3e51939fd1cd..24799908e343 100644 --- a/clients/client-cognito-identity-provider/src/commands/VerifySoftwareTokenCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/VerifySoftwareTokenCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -59,6 +60,15 @@ export class VerifySoftwareTokenCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: VerifySoftwareTokenCommandInput) { // Start section: command_constructor super(); @@ -74,6 +84,9 @@ export class VerifySoftwareTokenCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, VerifySoftwareTokenCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getAwsAuthPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/commands/VerifyUserAttributeCommand.ts b/clients/client-cognito-identity-provider/src/commands/VerifyUserAttributeCommand.ts index a33302b6c6cc..7d3f51240544 100644 --- a/clients/client-cognito-identity-provider/src/commands/VerifyUserAttributeCommand.ts +++ b/clients/client-cognito-identity-provider/src/commands/VerifyUserAttributeCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; @@ -62,6 +63,15 @@ export class VerifyUserAttributeCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: VerifyUserAttributeCommandInput) { // Start section: command_constructor super(); @@ -77,6 +87,9 @@ export class VerifyUserAttributeCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, VerifyUserAttributeCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cognito-identity-provider/src/endpoint/EndpointParameters.ts b/clients/client-cognito-identity-provider/src/endpoint/EndpointParameters.ts new file mode 100644 index 000000000000..aedac3828eb3 --- /dev/null +++ b/clients/client-cognito-identity-provider/src/endpoint/EndpointParameters.ts @@ -0,0 +1,31 @@ +// smithy-typescript generated code +import { EndpointParameters as __EndpointParameters, Provider } from "@aws-sdk/types"; + +export interface ClientInputEndpointParameters { + region?: string | Provider; + useDualstackEndpoint?: boolean | Provider; + useFipsEndpoint?: boolean | Provider; + endpoint?: string | Provider; +} + +export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & { + defaultSigningName: string; +}; + +export const resolveClientEndpointParameters = ( + options: T & ClientInputEndpointParameters +): T & ClientResolvedEndpointParameters => { + return { + ...options, + useDualstackEndpoint: options.useDualstackEndpoint ?? false, + useFipsEndpoint: options.useFipsEndpoint ?? false, + defaultSigningName: "cognito-idp", + }; +}; + +export interface EndpointParameters extends __EndpointParameters { + Region?: string; + UseDualStack?: boolean; + UseFIPS?: boolean; + Endpoint?: string; +} diff --git a/clients/client-cognito-identity-provider/src/endpoint/endpointResolver.ts b/clients/client-cognito-identity-provider/src/endpoint/endpointResolver.ts new file mode 100644 index 000000000000..4a70bb06b40a --- /dev/null +++ b/clients/client-cognito-identity-provider/src/endpoint/endpointResolver.ts @@ -0,0 +1,16 @@ +// smithy-typescript generated code +import { EndpointV2, Logger } from "@aws-sdk/types"; +import { EndpointParams, resolveEndpoint } from "@aws-sdk/util-endpoints"; + +import { EndpointParameters } from "./EndpointParameters"; +import { ruleSet } from "./ruleset"; + +export const defaultEndpointResolver = ( + endpointParams: EndpointParameters, + context: { logger?: Logger } = {} +): EndpointV2 => { + return resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }); +}; diff --git a/clients/client-cognito-identity-provider/src/endpoint/ruleset.ts b/clients/client-cognito-identity-provider/src/endpoint/ruleset.ts new file mode 100644 index 000000000000..b7b3dc0f06a6 --- /dev/null +++ b/clients/client-cognito-identity-provider/src/endpoint/ruleset.ts @@ -0,0 +1,320 @@ +// smithy-typescript generated code +import { RuleSetObject } from "@aws-sdk/util-endpoints"; + +export const ruleSet: RuleSetObject = { + version: "1.0", + parameters: { + Region: { + builtIn: "AWS::Region", + required: false, + documentation: "The AWS region used to dispatch the request.", + type: "String", + }, + UseDualStack: { + builtIn: "AWS::UseDualStack", + required: true, + default: false, + documentation: + "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", + type: "Boolean", + }, + UseFIPS: { + builtIn: "AWS::UseFIPS", + required: true, + default: false, + documentation: + "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", + type: "Boolean", + }, + Endpoint: { + builtIn: "SDK::Endpoint", + required: false, + documentation: "Override the endpoint used to send this request", + type: "String", + }, + }, + rules: [ + { + conditions: [ + { + fn: "aws.partition", + argv: [ + { + ref: "Region", + }, + ], + assign: "PartitionResult", + }, + ], + type: "tree", + rules: [ + { + conditions: [ + { + fn: "isSet", + argv: [ + { + ref: "Endpoint", + }, + ], + }, + { + fn: "parseURL", + argv: [ + { + ref: "Endpoint", + }, + ], + assign: "url", + }, + ], + type: "tree", + rules: [ + { + conditions: [ + { + fn: "booleanEquals", + argv: [ + { + ref: "UseFIPS", + }, + true, + ], + }, + ], + error: "Invalid Configuration: FIPS and custom endpoint are not supported", + type: "error", + }, + { + conditions: [], + type: "tree", + rules: [ + { + conditions: [ + { + fn: "booleanEquals", + argv: [ + { + ref: "UseDualStack", + }, + true, + ], + }, + ], + error: "Invalid Configuration: Dualstack and custom endpoint are not supported", + type: "error", + }, + { + conditions: [], + endpoint: { + url: { + ref: "Endpoint", + }, + properties: {}, + headers: {}, + }, + type: "endpoint", + }, + ], + }, + ], + }, + { + conditions: [ + { + fn: "booleanEquals", + argv: [ + { + ref: "UseFIPS", + }, + true, + ], + }, + { + fn: "booleanEquals", + argv: [ + { + ref: "UseDualStack", + }, + true, + ], + }, + ], + type: "tree", + rules: [ + { + conditions: [ + { + fn: "booleanEquals", + argv: [ + true, + { + fn: "getAttr", + argv: [ + { + ref: "PartitionResult", + }, + "supportsFIPS", + ], + }, + ], + }, + { + fn: "booleanEquals", + argv: [ + true, + { + fn: "getAttr", + argv: [ + { + ref: "PartitionResult", + }, + "supportsDualStack", + ], + }, + ], + }, + ], + type: "tree", + rules: [ + { + conditions: [], + endpoint: { + url: "https://cognito-idp-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + properties: {}, + headers: {}, + }, + type: "endpoint", + }, + ], + }, + { + conditions: [], + error: "FIPS and DualStack are enabled, but this partition does not support one or both", + type: "error", + }, + ], + }, + { + conditions: [ + { + fn: "booleanEquals", + argv: [ + { + ref: "UseFIPS", + }, + true, + ], + }, + ], + type: "tree", + rules: [ + { + conditions: [ + { + fn: "booleanEquals", + argv: [ + true, + { + fn: "getAttr", + argv: [ + { + ref: "PartitionResult", + }, + "supportsFIPS", + ], + }, + ], + }, + ], + type: "tree", + rules: [ + { + conditions: [], + type: "tree", + rules: [ + { + conditions: [], + endpoint: { + url: "https://cognito-idp-fips.{Region}.{PartitionResult#dnsSuffix}", + properties: {}, + headers: {}, + }, + type: "endpoint", + }, + ], + }, + ], + }, + { + conditions: [], + error: "FIPS is enabled but this partition does not support FIPS", + type: "error", + }, + ], + }, + { + conditions: [ + { + fn: "booleanEquals", + argv: [ + { + ref: "UseDualStack", + }, + true, + ], + }, + ], + type: "tree", + rules: [ + { + conditions: [ + { + fn: "booleanEquals", + argv: [ + true, + { + fn: "getAttr", + argv: [ + { + ref: "PartitionResult", + }, + "supportsDualStack", + ], + }, + ], + }, + ], + type: "tree", + rules: [ + { + conditions: [], + endpoint: { + url: "https://cognito-idp.{Region}.{PartitionResult#dualStackDnsSuffix}", + properties: {}, + headers: {}, + }, + type: "endpoint", + }, + ], + }, + { + conditions: [], + error: "DualStack is enabled but this partition does not support DualStack", + type: "error", + }, + ], + }, + { + conditions: [], + endpoint: { + url: "https://cognito-idp.{Region}.{PartitionResult#dnsSuffix}", + properties: {}, + headers: {}, + }, + type: "endpoint", + }, + ], + }, + ], +}; diff --git a/clients/client-cognito-identity-provider/src/endpoints.ts b/clients/client-cognito-identity-provider/src/endpoints.ts deleted file mode 100644 index d8c81404c634..000000000000 --- a/clients/client-cognito-identity-provider/src/endpoints.ts +++ /dev/null @@ -1,182 +0,0 @@ -// smithy-typescript generated code -import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; - -const regionHash: RegionHash = { - "us-east-1": { - variants: [ - { - hostname: "cognito-idp-fips.us-east-1.amazonaws.com", - tags: ["fips"], - }, - ], - }, - "us-east-2": { - variants: [ - { - hostname: "cognito-idp-fips.us-east-2.amazonaws.com", - tags: ["fips"], - }, - ], - }, - "us-gov-west-1": { - variants: [ - { - hostname: "cognito-idp-fips.us-gov-west-1.amazonaws.com", - tags: ["fips"], - }, - ], - }, - "us-west-1": { - variants: [ - { - hostname: "cognito-idp-fips.us-west-1.amazonaws.com", - tags: ["fips"], - }, - ], - }, - "us-west-2": { - variants: [ - { - hostname: "cognito-idp-fips.us-west-2.amazonaws.com", - tags: ["fips"], - }, - ], - }, -}; - -const partitionHash: PartitionHash = { - aws: { - regions: [ - "af-south-1", - "ap-east-1", - "ap-northeast-1", - "ap-northeast-2", - "ap-northeast-3", - "ap-south-1", - "ap-southeast-1", - "ap-southeast-2", - "ap-southeast-3", - "ca-central-1", - "eu-central-1", - "eu-north-1", - "eu-south-1", - "eu-west-1", - "eu-west-2", - "eu-west-3", - "fips-us-east-1", - "fips-us-east-2", - "fips-us-west-1", - "fips-us-west-2", - "me-central-1", - "me-south-1", - "sa-east-1", - "us-east-1", - "us-east-2", - "us-west-1", - "us-west-2", - ], - regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "cognito-idp.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "cognito-idp-fips.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "cognito-idp-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "cognito-idp.{region}.api.aws", - tags: ["dualstack"], - }, - ], - }, - "aws-cn": { - regions: ["cn-north-1", "cn-northwest-1"], - regionRegex: "^cn\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "cognito-idp.{region}.amazonaws.com.cn", - tags: [], - }, - { - hostname: "cognito-idp-fips.{region}.amazonaws.com.cn", - tags: ["fips"], - }, - { - hostname: "cognito-idp-fips.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack", "fips"], - }, - { - hostname: "cognito-idp.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack"], - }, - ], - }, - "aws-iso": { - regions: ["us-iso-east-1", "us-iso-west-1"], - regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "cognito-idp.{region}.c2s.ic.gov", - tags: [], - }, - { - hostname: "cognito-idp-fips.{region}.c2s.ic.gov", - tags: ["fips"], - }, - ], - }, - "aws-iso-b": { - regions: ["us-isob-east-1"], - regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "cognito-idp.{region}.sc2s.sgov.gov", - tags: [], - }, - { - hostname: "cognito-idp-fips.{region}.sc2s.sgov.gov", - tags: ["fips"], - }, - ], - }, - "aws-us-gov": { - regions: ["fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"], - regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "cognito-idp.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "cognito-idp-fips.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "cognito-idp-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "cognito-idp.{region}.api.aws", - tags: ["dualstack"], - }, - ], - }, -}; - -export const defaultRegionInfoProvider: RegionInfoProvider = async ( - region: string, - options?: RegionInfoProviderOptions -) => - getRegionInfo(region, { - ...options, - signingService: "cognito-idp", - regionHash, - partitionHash, - }); diff --git a/clients/client-cognito-identity-provider/src/models/models_0.ts b/clients/client-cognito-identity-provider/src/models/models_0.ts index a2ee5c341af3..8a70ac63ff0d 100644 --- a/clients/client-cognito-identity-provider/src/models/models_0.ts +++ b/clients/client-cognito-identity-provider/src/models/models_0.ts @@ -2100,7 +2100,9 @@ export interface AdminListUserAuthEventsRequest { Username: string | undefined; /** - *

The maximum number of authentication events to return.

+ *

The maximum number of authentication events to return. Returns 60 events if you set + * MaxResults to 0, or if you don't include a MaxResults + * parameter.

*/ MaxResults?: number; @@ -3980,6 +3982,11 @@ export interface CreateUserImportJobResponse { UserImportJob?: UserImportJobType; } +export enum DeletionProtectionType { + ACTIVE = "ACTIVE", + INACTIVE = "INACTIVE", +} + /** *

The device-remembering configuration for a user pool. A * DescribeUserPool request returns a null value for this object when the user @@ -4082,7 +4089,7 @@ export interface EmailConfigurationType { * default email limit is less than the required delivery volume. To achieve a * higher delivery volume, specify DEVELOPER to use your Amazon SES email * configuration.

- *

To look up the email delivery limit for the default option, see Limits in in the Developer Guide.

+ *

To look up the email delivery limit for the default option, see Limits in the Amazon Cognito Developer Guide.

*

The default FROM address is no-reply@verificationemail.com. * To customize the FROM address, provide the Amazon Resource Name (ARN) of an * Amazon SES verified email address for the SourceArn @@ -4100,8 +4107,8 @@ export interface EmailConfigurationType { *

Before Amazon Cognito can email your users, it requires additional permissions to * call Amazon SES on your behalf. When you update your user pool with this option, * Amazon Cognito creates a service-linked role, which is a type of - * role, in your Amazon Web Services account. This role contains the permissions - * that allow to access Amazon SES and send email messages with your address. For + * role in your Amazon Web Services account. This role contains the permissions + * that allow you to access Amazon SES and send email messages from your email address. For * more information about the service-linked role that Amazon Cognito creates, see * Using Service-Linked Roles for Amazon Cognito in the * Amazon Cognito Developer Guide.

@@ -4491,6 +4498,17 @@ export interface CreateUserPoolRequest { */ Policies?: UserPoolPolicyType; + /** + *

When active, DeletionProtection prevents accidental deletion of your user + * pool. Before you can delete a user pool that you have protected against deletion, you + * must deactivate this feature.

+ *

When you try to delete a protected user pool in a DeleteUserPool API request, + * Amazon Cognito returns an InvalidParameterException error. To delete a protected user pool, + * send a new DeleteUserPool request after you deactivate deletion protection in an + * UpdateUserPool API request.

+ */ + DeletionProtection?: DeletionProtectionType | string; + /** *

The Lambda trigger configuration information for the new user pool.

* @@ -4652,6 +4670,17 @@ export interface UserPoolType { */ Policies?: UserPoolPolicyType; + /** + *

When active, DeletionProtection prevents accidental deletion of your user + * pool. Before you can delete a user pool that you have protected against deletion, you + * must deactivate this feature.

+ *

When you try to delete a protected user pool in a DeleteUserPool API request, + * Amazon Cognito returns an InvalidParameterException error. To delete a protected user pool, + * send a new DeleteUserPool request after you deactivate deletion protection in an + * UpdateUserPool API request.

+ */ + DeletionProtection?: DeletionProtectionType | string; + /** *

The Lambda triggers associated with the user pool.

*/ @@ -4978,6 +5007,8 @@ export interface CreateUserPoolClientRequest { * You can't set RefreshTokenValidity to 0. If you do, Amazon Cognito overrides the * value with the default value of 30 days. Valid range is displayed below * in seconds.

+ *

If you don't specify otherwise in the configuration of your app client, your refresh + * tokens are valid for 30 days.

*/ RefreshTokenValidity?: number; @@ -4991,6 +5022,8 @@ export interface CreateUserPoolClientRequest { * their access token for 10 hours.

*

The default time unit for AccessTokenValidity in an API request is hours. * Valid range is displayed below in seconds.

+ *

If you don't specify otherwise in the configuration of your app client, your access + * tokens are valid for one hour.

*/ AccessTokenValidity?: number; @@ -5004,6 +5037,8 @@ export interface CreateUserPoolClientRequest { * session with their ID token for 10 hours.

*

The default time unit for AccessTokenValidity in an API request is hours. * Valid range is displayed below in seconds.

+ *

If you don't specify otherwise in the configuration of your app client, your ID + * tokens are valid for one hour.

*/ IdTokenValidity?: number; @@ -5030,44 +5065,46 @@ export interface CreateUserPoolClientRequest { WriteAttributes?: string[]; /** - *

The authentication flows that are supported by the user pool clients. Flow names - * without the ALLOW_ prefix are no longer supported, in favor of new names - * with the ALLOW_ prefix.

- * - *

Values with ALLOW_ prefix must be used only along with the - * ALLOW_ prefix.

- *
- *

Valid values include:

- *
- *
ALLOW_ADMIN_USER_PASSWORD_AUTH
- *
- *

Enable admin based user password - * authentication flow ADMIN_USER_PASSWORD_AUTH. This setting replaces - * the ADMIN_NO_SRP_AUTH setting. With this authentication flow, Amazon Cognito - * receives the password in the request instead of using the Secure Remote Password - * (SRP) protocol to verify passwords.

- *
- *
ALLOW_CUSTOM_AUTH
- *
- *

Enable Lambda trigger based authentication.

- *
- *
ALLOW_USER_PASSWORD_AUTH
- *
- *

Enable user password-based - * authentication. In this flow, Amazon Cognito receives the password in the request instead - * of using the SRP protocol to verify passwords.

- *
- *
ALLOW_USER_SRP_AUTH
- *
- *

Enable SRP-based authentication.

- *
- *
ALLOW_REFRESH_TOKEN_AUTH
- *
- *

Enable the authflow that refreshes tokens.

- *
- *
- *

If you don't specify a value for ExplicitAuthFlows, your user client - * supports ALLOW_USER_SRP_AUTH and ALLOW_CUSTOM_AUTH.

+ *

The authentication flows that you want your user pool client to support. For each app client in your user pool, you can sign in + * your users with any combination of one or more flows, including with a user name and Secure Remote Password (SRP), a user name and + * password, or a custom authentication process that you define with Lambda functions.

+ * + *

If you don't specify a value for ExplicitAuthFlows, your user client supports ALLOW_REFRESH_TOKEN_AUTH, ALLOW_USER_SRP_AUTH, and ALLOW_CUSTOM_AUTH.

+ *
+ *

Valid values include:

+ *
    + *
  • + *

    + * ALLOW_ADMIN_USER_PASSWORD_AUTH: Enable admin based user password + * authentication flow ADMIN_USER_PASSWORD_AUTH. This setting replaces + * the ADMIN_NO_SRP_AUTH setting. With this authentication flow, your app + * passes a user name and password to Amazon Cognito in the request, instead of using the Secure + * Remote Password (SRP) protocol to securely transmit the password.

    + *
  • + *
  • + *

    + * ALLOW_CUSTOM_AUTH: Enable Lambda trigger based + * authentication.

    + *
  • + *
  • + *

    + * ALLOW_USER_PASSWORD_AUTH: Enable user password-based + * authentication. In this flow, Amazon Cognito receives the password in the request instead + * of using the SRP protocol to verify passwords.

    + *
  • + *
  • + *

    + * ALLOW_USER_SRP_AUTH: Enable SRP-based authentication.

    + *
  • + *
  • + *

    + * ALLOW_REFRESH_TOKEN_AUTH: Enable authflow to refresh + * tokens.

    + *
  • + *
+ *

In some environments, you will see the values ADMIN_NO_SRP_AUTH, CUSTOM_AUTH_FLOW_ONLY, or USER_PASSWORD_AUTH. + * You can't assign these legacy ExplicitAuthFlows values to user pool clients at the same time as values that begin with ALLOW_, + * like ALLOW_USER_SRP_AUTH.

*/ ExplicitAuthFlows?: (ExplicitAuthFlowsType | string)[]; @@ -5274,6 +5311,8 @@ export interface UserPoolClientType { * You can't set RefreshTokenValidity to 0. If you do, Amazon Cognito overrides the * value with the default value of 30 days. Valid range is displayed below * in seconds.

+ *

If you don't specify otherwise in the configuration of your app client, your refresh + * tokens are valid for 30 days.

*/ RefreshTokenValidity?: number; @@ -5287,6 +5326,8 @@ export interface UserPoolClientType { * their access token for 10 hours.

*

The default time unit for AccessTokenValidity in an API request is hours. * Valid range is displayed below in seconds.

+ *

If you don't specify otherwise in the configuration of your app client, your access + * tokens are valid for one hour.

*/ AccessTokenValidity?: number; @@ -5300,6 +5341,8 @@ export interface UserPoolClientType { * session with their ID token for 10 hours.

*

The default time unit for AccessTokenValidity in an API request is hours. * Valid range is displayed below in seconds.

+ *

If you don't specify otherwise in the configuration of your app client, your ID + * tokens are valid for one hour.

*/ IdTokenValidity?: number; @@ -5320,41 +5363,46 @@ export interface UserPoolClientType { WriteAttributes?: string[]; /** - *

The authentication flows that are supported by the user pool clients. Flow names - * without the ALLOW_ prefix are no longer supported in favor of new names - * with the ALLOW_ prefix. Note that values with ALLOW_ prefix - * must be used only along with values including the ALLOW_ prefix.

- *

Valid values include:

- *
    + *

    The authentication flows that you want your user pool client to support. For each app client in your user pool, you can sign in + * your users with any combination of one or more flows, including with a user name and Secure Remote Password (SRP), a user name and + * password, or a custom authentication process that you define with Lambda functions.

    + * + *

    If you don't specify a value for ExplicitAuthFlows, your user client supports ALLOW_REFRESH_TOKEN_AUTH, ALLOW_USER_SRP_AUTH, and ALLOW_CUSTOM_AUTH.

    + *
    + *

    Valid values include:

    + *
      *
    • - *

      + *

      * ALLOW_ADMIN_USER_PASSWORD_AUTH: Enable admin based user password - * authentication flow ADMIN_USER_PASSWORD_AUTH. This setting replaces - * the ADMIN_NO_SRP_AUTH setting. With this authentication flow, Amazon Cognito - * receives the password in the request instead of using the Secure Remote Password - * (SRP) protocol to verify passwords.

      + * authentication flow ADMIN_USER_PASSWORD_AUTH. This setting replaces + * the ADMIN_NO_SRP_AUTH setting. With this authentication flow, your app + * passes a user name and password to Amazon Cognito in the request, instead of using the Secure + * Remote Password (SRP) protocol to securely transmit the password.

      *
    • *
    • - *

      + *

      * ALLOW_CUSTOM_AUTH: Enable Lambda trigger based - * authentication.

      + * authentication.

      *
    • *
    • - *

      + *

      * ALLOW_USER_PASSWORD_AUTH: Enable user password-based - * authentication. In this flow, Amazon Cognito receives the password in the request instead - * of using the SRP protocol to verify passwords.

      + * authentication. In this flow, Amazon Cognito receives the password in the request instead + * of using the SRP protocol to verify passwords.

      *
    • *
    • - *

      + *

      * ALLOW_USER_SRP_AUTH: Enable SRP-based authentication.

      *
    • *
    • - *

      + *

      * ALLOW_REFRESH_TOKEN_AUTH: Enable authflow to refresh - * tokens.

      + * tokens.

      *
    • *
    + *

    In some environments, you will see the values ADMIN_NO_SRP_AUTH, CUSTOM_AUTH_FLOW_ONLY, or USER_PASSWORD_AUTH. + * You can't assign these legacy ExplicitAuthFlows values to user pool clients at the same time as values that begin with ALLOW_, + * like ALLOW_USER_SRP_AUTH.

    */ ExplicitAuthFlows?: (ExplicitAuthFlowsType | string)[]; @@ -5756,7 +5804,7 @@ export interface DescribeIdentityProviderRequest { export interface DescribeIdentityProviderResponse { /** - *

    The IdP that was deleted.

    + *

    The identity provider details.

    */ IdentityProvider: IdentityProviderType | undefined; } @@ -6244,7 +6292,7 @@ export interface GetIdentityProviderByIdentifierRequest { export interface GetIdentityProviderByIdentifierResponse { /** - *

    The IdP object.

    + *

    The identity provider details.

    */ IdentityProvider: IdentityProviderType | undefined; } @@ -7755,7 +7803,7 @@ export interface SetUserPoolMfaConfigRequest { /** *

    The MFA configuration. If you set the MfaConfiguration value to ‘ON’, only users who - * have set up an MFA factor can sign in. To learn more, see Adding Multi-Factor + * have set up an MFA factor can sign in. To learn more, see Adding Multi-Factor * Authentication (MFA) to a user pool. Valid values include:

    *
      *
    • @@ -7830,95 +7878,6 @@ export interface SetUserSettingsRequest { */ export interface SetUserSettingsResponse {} -/** - *

      Represents the request to register a user.

      - */ -export interface SignUpRequest { - /** - *

      The ID of the client associated with the user pool.

      - */ - ClientId: string | undefined; - - /** - *

      A keyed-hash message authentication code (HMAC) calculated using the secret key of a - * user pool client and username plus the client ID in the message.

      - */ - SecretHash?: string; - - /** - *

      The user name of the user you want to register.

      - */ - Username: string | undefined; - - /** - *

      The password of the user you want to register.

      - */ - Password: string | undefined; - - /** - *

      An array of name-value pairs representing user attributes.

      - *

      For custom attributes, you must prepend the custom: prefix to the - * attribute name.

      - */ - UserAttributes?: AttributeType[]; - - /** - *

      The validation data in the request to register a user.

      - */ - ValidationData?: AttributeType[]; - - /** - *

      The Amazon Pinpoint analytics metadata that contributes to your metrics for - * SignUp calls.

      - */ - AnalyticsMetadata?: AnalyticsMetadataType; - - /** - *

      Contextual data about your user session, such as the device fingerprint, IP address, or location. Amazon Cognito advanced - * security evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito - * when it makes API requests.

      - */ - UserContextData?: UserContextDataType; - - /** - *

      A map of custom key-value pairs that you can provide as input for any custom workflows - * that this action triggers.

      - *

      You create custom workflows by assigning Lambda functions to user pool triggers. - * When you use the SignUp API action, Amazon Cognito invokes any functions that are assigned to the - * following triggers: pre sign-up, custom - * message, and post confirmation. When Amazon Cognito invokes - * any of these functions, it passes a JSON payload, which the function receives as input. - * This payload contains a clientMetadata attribute, which provides the data - * that you assigned to the ClientMetadata parameter in your SignUp request. In your - * function code in Lambda, you can process the clientMetadata value to enhance - * your workflow for your specific needs.

      - * - *

      For more information, see - * Customizing user pool Workflows with Lambda Triggers in the Amazon Cognito Developer Guide.

      - * - * - *

      When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the - * following:

      - *
        - *
      • - *

        Store the ClientMetadata value. This data is available only to Lambda - * triggers that are assigned to a user pool to support custom workflows. If - * your user pool configuration doesn't include triggers, the ClientMetadata - * parameter serves no purpose.

        - *
      • - *
      • - *

        Validate the ClientMetadata value.

        - *
      • - *
      • - *

        Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive - * information.

        - *
      • - *
      - *
      - */ - ClientMetadata?: Record; -} - /** * @internal */ @@ -9631,20 +9590,3 @@ export const SetUserSettingsRequestFilterSensitiveLog = (obj: SetUserSettingsReq export const SetUserSettingsResponseFilterSensitiveLog = (obj: SetUserSettingsResponse): any => ({ ...obj, }); - -/** - * @internal - */ -export const SignUpRequestFilterSensitiveLog = (obj: SignUpRequest): any => ({ - ...obj, - ...(obj.ClientId && { ClientId: SENSITIVE_STRING }), - ...(obj.SecretHash && { SecretHash: SENSITIVE_STRING }), - ...(obj.Username && { Username: SENSITIVE_STRING }), - ...(obj.Password && { Password: SENSITIVE_STRING }), - ...(obj.UserAttributes && { - UserAttributes: obj.UserAttributes.map((item) => AttributeTypeFilterSensitiveLog(item)), - }), - ...(obj.ValidationData && { - ValidationData: obj.ValidationData.map((item) => AttributeTypeFilterSensitiveLog(item)), - }), -}); diff --git a/clients/client-cognito-identity-provider/src/models/models_1.ts b/clients/client-cognito-identity-provider/src/models/models_1.ts index a360fc827aea..27ab87f8e564 100644 --- a/clients/client-cognito-identity-provider/src/models/models_1.ts +++ b/clients/client-cognito-identity-provider/src/models/models_1.ts @@ -6,10 +6,12 @@ import { AccountRecoverySettingType, AdminCreateUserConfigType, AnalyticsConfigurationType, + AnalyticsMetadataType, AttributeType, AttributeTypeFilterSensitiveLog, CodeDeliveryDetailsType, CustomDomainConfigType, + DeletionProtectionType, DeviceConfigurationType, DeviceRememberedStatusType, EmailConfigurationType, @@ -25,6 +27,7 @@ import { SmsConfigurationType, TokenValidityUnitsType, UserAttributeUpdateSettingsType, + UserContextDataType, UserImportJobType, UserPoolAddOnsType, UserPoolClientType, @@ -35,6 +38,95 @@ import { VerifiedAttributeType, } from "./models_0"; +/** + *

      Represents the request to register a user.

      + */ +export interface SignUpRequest { + /** + *

      The ID of the client associated with the user pool.

      + */ + ClientId: string | undefined; + + /** + *

      A keyed-hash message authentication code (HMAC) calculated using the secret key of a + * user pool client and username plus the client ID in the message.

      + */ + SecretHash?: string; + + /** + *

      The user name of the user you want to register.

      + */ + Username: string | undefined; + + /** + *

      The password of the user you want to register.

      + */ + Password: string | undefined; + + /** + *

      An array of name-value pairs representing user attributes.

      + *

      For custom attributes, you must prepend the custom: prefix to the + * attribute name.

      + */ + UserAttributes?: AttributeType[]; + + /** + *

      The validation data in the request to register a user.

      + */ + ValidationData?: AttributeType[]; + + /** + *

      The Amazon Pinpoint analytics metadata that contributes to your metrics for + * SignUp calls.

      + */ + AnalyticsMetadata?: AnalyticsMetadataType; + + /** + *

      Contextual data about your user session, such as the device fingerprint, IP address, or location. Amazon Cognito advanced + * security evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito + * when it makes API requests.

      + */ + UserContextData?: UserContextDataType; + + /** + *

      A map of custom key-value pairs that you can provide as input for any custom workflows + * that this action triggers.

      + *

      You create custom workflows by assigning Lambda functions to user pool triggers. + * When you use the SignUp API action, Amazon Cognito invokes any functions that are assigned to the + * following triggers: pre sign-up, custom + * message, and post confirmation. When Amazon Cognito invokes + * any of these functions, it passes a JSON payload, which the function receives as input. + * This payload contains a clientMetadata attribute, which provides the data + * that you assigned to the ClientMetadata parameter in your SignUp request. In your + * function code in Lambda, you can process the clientMetadata value to enhance + * your workflow for your specific needs.

      + * + *

      For more information, see + * Customizing user pool Workflows with Lambda Triggers in the Amazon Cognito Developer Guide.

      + * + * + *

      When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the + * following:

      + *
        + *
      • + *

        Store the ClientMetadata value. This data is available only to Lambda + * triggers that are assigned to a user pool to support custom workflows. If + * your user pool configuration doesn't include triggers, the ClientMetadata + * parameter serves no purpose.

        + *
      • + *
      • + *

        Validate the ClientMetadata value.

        + *
      • + *
      • + *

        Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive + * information.

        + *
      • + *
      + *
      + */ + ClientMetadata?: Record; +} + /** *

      The response from the server for a registration request.

      */ @@ -260,7 +352,7 @@ export interface UpdateIdentityProviderRequest { export interface UpdateIdentityProviderResponse { /** - *

      The IdP object.

      + *

      The identity provider details.

      */ IdentityProvider: IdentityProviderType | undefined; } @@ -380,6 +472,17 @@ export interface UpdateUserPoolRequest { */ Policies?: UserPoolPolicyType; + /** + *

      When active, DeletionProtection prevents accidental deletion of your user + * pool. Before you can delete a user pool that you have protected against deletion, you + * must deactivate this feature.

      + *

      When you try to delete a protected user pool in a DeleteUserPool API request, + * Amazon Cognito returns an InvalidParameterException error. To delete a protected user pool, + * send a new DeleteUserPool request after you deactivate deletion protection in an + * UpdateUserPool API request.

      + */ + DeletionProtection?: DeletionProtectionType | string; + /** *

      The Lambda configuration information from the request to update the user pool.

      */ @@ -538,6 +641,8 @@ export interface UpdateUserPoolClientRequest { * You can't set RefreshTokenValidity to 0. If you do, Amazon Cognito overrides the * value with the default value of 30 days. Valid range is displayed below * in seconds.

      + *

      If you don't specify otherwise in the configuration of your app client, your refresh + * tokens are valid for 30 days.

      */ RefreshTokenValidity?: number; @@ -551,6 +656,8 @@ export interface UpdateUserPoolClientRequest { * their access token for 10 hours.

      *

      The default time unit for AccessTokenValidity in an API request is hours. * Valid range is displayed below in seconds.

      + *

      If you don't specify otherwise in the configuration of your app client, your access + * tokens are valid for one hour.

      */ AccessTokenValidity?: number; @@ -564,6 +671,8 @@ export interface UpdateUserPoolClientRequest { * session with their ID token for 10 hours.

      *

      The default time unit for AccessTokenValidity in an API request is hours. * Valid range is displayed below in seconds.

      + *

      If you don't specify otherwise in the configuration of your app client, your ID + * tokens are valid for one hour.

      */ IdTokenValidity?: number; @@ -584,41 +693,46 @@ export interface UpdateUserPoolClientRequest { WriteAttributes?: string[]; /** - *

      The authentication flows that are supported by the user pool clients. Flow names - * without the ALLOW_ prefix are no longer supported in favor of new names - * with the ALLOW_ prefix. Note that values with ALLOW_ prefix - * must be used only along with values with the ALLOW_ prefix.

      - *

      Valid values include:

      - *
        + *

        The authentication flows that you want your user pool client to support. For each app client in your user pool, you can sign in + * your users with any combination of one or more flows, including with a user name and Secure Remote Password (SRP), a user name and + * password, or a custom authentication process that you define with Lambda functions.

        + * + *

        If you don't specify a value for ExplicitAuthFlows, your user client supports ALLOW_REFRESH_TOKEN_AUTH, ALLOW_USER_SRP_AUTH, and ALLOW_CUSTOM_AUTH.

        + *
        + *

        Valid values include:

        + *
          *
        • - *

          + *

          * ALLOW_ADMIN_USER_PASSWORD_AUTH: Enable admin based user password - * authentication flow ADMIN_USER_PASSWORD_AUTH. This setting replaces - * the ADMIN_NO_SRP_AUTH setting. With this authentication flow, Amazon Cognito - * receives the password in the request instead of using the Secure Remote Password - * (SRP) protocol to verify passwords.

          + * authentication flow ADMIN_USER_PASSWORD_AUTH. This setting replaces + * the ADMIN_NO_SRP_AUTH setting. With this authentication flow, your app + * passes a user name and password to Amazon Cognito in the request, instead of using the Secure + * Remote Password (SRP) protocol to securely transmit the password.

          *
        • *
        • - *

          + *

          * ALLOW_CUSTOM_AUTH: Enable Lambda trigger based - * authentication.

          + * authentication.

          *
        • *
        • - *

          + *

          * ALLOW_USER_PASSWORD_AUTH: Enable user password-based - * authentication. In this flow, Amazon Cognito receives the password in the request instead - * of using the SRP protocol to verify passwords.

          + * authentication. In this flow, Amazon Cognito receives the password in the request instead + * of using the SRP protocol to verify passwords.

          *
        • *
        • - *

          + *

          * ALLOW_USER_SRP_AUTH: Enable SRP-based authentication.

          *
        • *
        • - *

          + *

          * ALLOW_REFRESH_TOKEN_AUTH: Enable authflow to refresh - * tokens.

          + * tokens.

          *
        • *
        + *

        In some environments, you will see the values ADMIN_NO_SRP_AUTH, CUSTOM_AUTH_FLOW_ONLY, or USER_PASSWORD_AUTH. + * You can't assign these legacy ExplicitAuthFlows values to user pool clients at the same time as values that begin with ALLOW_, + * like ALLOW_USER_SRP_AUTH.

        */ ExplicitAuthFlows?: (ExplicitAuthFlowsType | string)[]; @@ -912,6 +1026,23 @@ export interface VerifyUserAttributeRequest { */ export interface VerifyUserAttributeResponse {} +/** + * @internal + */ +export const SignUpRequestFilterSensitiveLog = (obj: SignUpRequest): any => ({ + ...obj, + ...(obj.ClientId && { ClientId: SENSITIVE_STRING }), + ...(obj.SecretHash && { SecretHash: SENSITIVE_STRING }), + ...(obj.Username && { Username: SENSITIVE_STRING }), + ...(obj.Password && { Password: SENSITIVE_STRING }), + ...(obj.UserAttributes && { + UserAttributes: obj.UserAttributes.map((item) => AttributeTypeFilterSensitiveLog(item)), + }), + ...(obj.ValidationData && { + ValidationData: obj.ValidationData.map((item) => AttributeTypeFilterSensitiveLog(item)), + }), +}); + /** * @internal */ diff --git a/clients/client-cognito-identity-provider/src/protocols/Aws_json1_1.ts b/clients/client-cognito-identity-provider/src/protocols/Aws_json1_1.ts index 7e28797afd66..11f04e98d06c 100644 --- a/clients/client-cognito-identity-provider/src/protocols/Aws_json1_1.ts +++ b/clients/client-cognito-identity-provider/src/protocols/Aws_json1_1.ts @@ -522,7 +522,6 @@ import { SetUserPoolMfaConfigResponse, SetUserSettingsRequest, SetUserSettingsResponse, - SignUpRequest, SmsConfigurationType, SmsMfaConfigType, SMSMfaSettingsType, @@ -564,6 +563,7 @@ import { } from "../models/models_0"; import { EnableSoftwareTokenMFAException, + SignUpRequest, SignUpResponse, StartUserImportJobRequest, StartUserImportJobResponse, @@ -4453,6 +4453,9 @@ const deserializeAws_json1_1DeleteIdentityProviderCommandError = async ( }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { + case "ConcurrentModificationException": + case "com.amazonaws.cognitoidentityprovider#ConcurrentModificationException": + throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context); case "InternalErrorException": case "com.amazonaws.cognitoidentityprovider#InternalErrorException": throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context); @@ -4736,6 +4739,9 @@ const deserializeAws_json1_1DeleteUserPoolClientCommandError = async ( }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { + case "ConcurrentModificationException": + case "com.amazonaws.cognitoidentityprovider#ConcurrentModificationException": + throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context); case "InternalErrorException": case "com.amazonaws.cognitoidentityprovider#InternalErrorException": throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context); @@ -7604,6 +7610,9 @@ const deserializeAws_json1_1UpdateIdentityProviderCommandError = async ( }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { + case "ConcurrentModificationException": + case "com.amazonaws.cognitoidentityprovider#ConcurrentModificationException": + throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context); case "InternalErrorException": case "com.amazonaws.cognitoidentityprovider#InternalErrorException": throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context); @@ -9427,6 +9436,7 @@ const serializeAws_json1_1CreateUserPoolRequest = (input: CreateUserPoolRequest, ...(input.AutoVerifiedAttributes != null && { AutoVerifiedAttributes: serializeAws_json1_1VerifiedAttributesListType(input.AutoVerifiedAttributes, context), }), + ...(input.DeletionProtection != null && { DeletionProtection: input.DeletionProtection }), ...(input.DeviceConfiguration != null && { DeviceConfiguration: serializeAws_json1_1DeviceConfigurationType(input.DeviceConfiguration, context), }), @@ -10603,6 +10613,7 @@ const serializeAws_json1_1UpdateUserPoolRequest = (input: UpdateUserPoolRequest, ...(input.AutoVerifiedAttributes != null && { AutoVerifiedAttributes: serializeAws_json1_1VerifiedAttributesListType(input.AutoVerifiedAttributes, context), }), + ...(input.DeletionProtection != null && { DeletionProtection: input.DeletionProtection }), ...(input.DeviceConfiguration != null && { DeviceConfiguration: serializeAws_json1_1DeviceConfigurationType(input.DeviceConfiguration, context), }), @@ -13161,6 +13172,7 @@ const deserializeAws_json1_1UserPoolType = (output: any, context: __SerdeContext ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate))) : undefined, CustomDomain: __expectString(output.CustomDomain), + DeletionProtection: __expectString(output.DeletionProtection), DeviceConfiguration: output.DeviceConfiguration != null ? deserializeAws_json1_1DeviceConfigurationType(output.DeviceConfiguration, context) diff --git a/clients/client-cognito-identity-provider/src/runtimeConfig.shared.ts b/clients/client-cognito-identity-provider/src/runtimeConfig.shared.ts index 3bf95af2ed52..cf58c33defb4 100644 --- a/clients/client-cognito-identity-provider/src/runtimeConfig.shared.ts +++ b/clients/client-cognito-identity-provider/src/runtimeConfig.shared.ts @@ -3,7 +3,7 @@ import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; import { CognitoIdentityProviderClientConfig } from "./CognitoIdentityProviderClient"; -import { defaultRegionInfoProvider } from "./endpoints"; +import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal @@ -11,8 +11,8 @@ import { defaultRegionInfoProvider } from "./endpoints"; export const getRuntimeConfig = (config: CognitoIdentityProviderClientConfig) => ({ apiVersion: "2016-04-18", disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), - regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider, serviceId: config?.serviceId ?? "Cognito Identity Provider", urlParser: config?.urlParser ?? parseUrl, }); diff --git a/codegen/sdk-codegen/aws-models/cognito-identity-provider.json b/codegen/sdk-codegen/aws-models/cognito-identity-provider.json index 5026bb383b9b..7c8117fee823 100644 --- a/codegen/sdk-codegen/aws-models/cognito-identity-provider.json +++ b/codegen/sdk-codegen/aws-models/cognito-identity-provider.json @@ -1,5 +1,5 @@ { - "smithy": "1.0", + "smithy": "2.0", "metadata": { "suppressions": [ { @@ -34,24 +34,6 @@ }, "com.amazonaws.cognitoidentityprovider#AWSCognitoIdentityProviderService": { "type": "service", - "traits": { - "aws.api#service": { - "sdkId": "Cognito Identity Provider", - "arnNamespace": "cognito-idp", - "cloudFormationName": "Cognito", - "cloudTrailEventSource": "cognitoidentityprovider.amazonaws.com", - "endpointPrefix": "cognito-idp" - }, - "aws.auth#sigv4": { - "name": "cognito-idp" - }, - "aws.protocols#awsJson1_1": {}, - "smithy.api#documentation": "

        Using the Amazon Cognito user pools API, you can create a user pool to manage directories and\n users. You can authenticate a user to obtain tokens related to user identity and access\n policies.

        \n

        This API reference provides information about user pools in Amazon Cognito user pools.

        \n

        For more information, see the Amazon Cognito\n Documentation.

        ", - "smithy.api#title": "Amazon Cognito Identity Provider", - "smithy.api#xmlNamespace": { - "uri": "http://cognito-idp.amazonaws.com/doc/2016-04-18/" - } - }, "version": "2016-04-18", "operations": [ { @@ -357,12 +339,1427 @@ { "target": "com.amazonaws.cognitoidentityprovider#VerifyUserAttribute" } - ] + ], + "traits": { + "aws.api#service": { + "sdkId": "Cognito Identity Provider", + "arnNamespace": "cognito-idp", + "cloudFormationName": "Cognito", + "cloudTrailEventSource": "cognitoidentityprovider.amazonaws.com", + "endpointPrefix": "cognito-idp" + }, + "aws.auth#sigv4": { + "name": "cognito-idp" + }, + "aws.protocols#awsJson1_1": {}, + "smithy.api#documentation": "

        Using the Amazon Cognito user pools API, you can create a user pool to manage directories and\n users. You can authenticate a user to obtain tokens related to user identity and access\n policies.

        \n

        This API reference provides information about user pools in Amazon Cognito user pools.

        \n

        For more information, see the Amazon Cognito\n Documentation.

        ", + "smithy.api#title": "Amazon Cognito Identity Provider", + "smithy.api#xmlNamespace": { + "uri": "http://cognito-idp.amazonaws.com/doc/2016-04-18/" + }, + "smithy.rules#endpointRuleSet": { + "version": "1.0", + "parameters": { + "Region": { + "builtIn": "AWS::Region", + "required": false, + "documentation": "The AWS region used to dispatch the request.", + "type": "String" + }, + "UseDualStack": { + "builtIn": "AWS::UseDualStack", + "required": true, + "default": false, + "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", + "type": "Boolean" + }, + "UseFIPS": { + "builtIn": "AWS::UseFIPS", + "required": true, + "default": false, + "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", + "type": "Boolean" + }, + "Endpoint": { + "builtIn": "SDK::Endpoint", + "required": false, + "documentation": "Override the endpoint used to send this request", + "type": "String" + } + }, + "rules": [ + { + "conditions": [ + { + "fn": "aws.partition", + "argv": [ + { + "ref": "Region" + } + ], + "assign": "PartitionResult" + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Endpoint" + } + ] + }, + { + "fn": "parseURL", + "argv": [ + { + "ref": "Endpoint" + } + ], + "assign": "url" + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://cognito-idp-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://cognito-idp-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://cognito-idp.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ] + }, + { + "conditions": [], + "endpoint": { + "url": "https://cognito-idp.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + "smithy.rules#endpointTests": { + "testCases": [ + { + "documentation": "For region ap-south-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.ap-south-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "ap-south-1", + "UseDualStack": true + } + }, + { + "documentation": "For region ap-south-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.ap-south-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "ap-south-1", + "UseDualStack": false + } + }, + { + "documentation": "For region ap-south-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.ap-south-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "ap-south-1", + "UseDualStack": true + } + }, + { + "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.ap-south-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "ap-south-1", + "UseDualStack": false + } + }, + { + "documentation": "For region eu-south-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.eu-south-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "eu-south-1", + "UseDualStack": true + } + }, + { + "documentation": "For region eu-south-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.eu-south-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "eu-south-1", + "UseDualStack": false + } + }, + { + "documentation": "For region eu-south-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.eu-south-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "eu-south-1", + "UseDualStack": true + } + }, + { + "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.eu-south-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "eu-south-1", + "UseDualStack": false + } + }, + { + "documentation": "For region ca-central-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.ca-central-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "ca-central-1", + "UseDualStack": true + } + }, + { + "documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.ca-central-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "ca-central-1", + "UseDualStack": false + } + }, + { + "documentation": "For region ca-central-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.ca-central-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "ca-central-1", + "UseDualStack": true + } + }, + { + "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.ca-central-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "ca-central-1", + "UseDualStack": false + } + }, + { + "documentation": "For region eu-central-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.eu-central-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "eu-central-1", + "UseDualStack": true + } + }, + { + "documentation": "For region eu-central-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.eu-central-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "eu-central-1", + "UseDualStack": false + } + }, + { + "documentation": "For region eu-central-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.eu-central-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "eu-central-1", + "UseDualStack": true + } + }, + { + "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.eu-central-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "eu-central-1", + "UseDualStack": false + } + }, + { + "documentation": "For region us-west-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.us-west-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "us-west-1", + "UseDualStack": true + } + }, + { + "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.us-west-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "us-west-1", + "UseDualStack": false + } + }, + { + "documentation": "For region us-west-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.us-west-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-west-1", + "UseDualStack": true + } + }, + { + "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.us-west-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-west-1", + "UseDualStack": false + } + }, + { + "documentation": "For region us-west-2 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.us-west-2.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "us-west-2", + "UseDualStack": true + } + }, + { + "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.us-west-2.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "us-west-2", + "UseDualStack": false + } + }, + { + "documentation": "For region us-west-2 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.us-west-2.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-west-2", + "UseDualStack": true + } + }, + { + "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.us-west-2.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-west-2", + "UseDualStack": false + } + }, + { + "documentation": "For region eu-north-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.eu-north-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "eu-north-1", + "UseDualStack": true + } + }, + { + "documentation": "For region eu-north-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.eu-north-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "eu-north-1", + "UseDualStack": false + } + }, + { + "documentation": "For region eu-north-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.eu-north-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "eu-north-1", + "UseDualStack": true + } + }, + { + "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.eu-north-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "eu-north-1", + "UseDualStack": false + } + }, + { + "documentation": "For region eu-west-3 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.eu-west-3.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "eu-west-3", + "UseDualStack": true + } + }, + { + "documentation": "For region eu-west-3 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.eu-west-3.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "eu-west-3", + "UseDualStack": false + } + }, + { + "documentation": "For region eu-west-3 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.eu-west-3.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "eu-west-3", + "UseDualStack": true + } + }, + { + "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.eu-west-3.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "eu-west-3", + "UseDualStack": false + } + }, + { + "documentation": "For region eu-west-2 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.eu-west-2.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "eu-west-2", + "UseDualStack": true + } + }, + { + "documentation": "For region eu-west-2 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.eu-west-2.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "eu-west-2", + "UseDualStack": false + } + }, + { + "documentation": "For region eu-west-2 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.eu-west-2.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "eu-west-2", + "UseDualStack": true + } + }, + { + "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.eu-west-2.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "eu-west-2", + "UseDualStack": false + } + }, + { + "documentation": "For region eu-west-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.eu-west-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "eu-west-1", + "UseDualStack": true + } + }, + { + "documentation": "For region eu-west-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.eu-west-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "eu-west-1", + "UseDualStack": false + } + }, + { + "documentation": "For region eu-west-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.eu-west-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "eu-west-1", + "UseDualStack": true + } + }, + { + "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.eu-west-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "eu-west-1", + "UseDualStack": false + } + }, + { + "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.ap-northeast-2.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "ap-northeast-2", + "UseDualStack": true + } + }, + { + "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.ap-northeast-2.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "ap-northeast-2", + "UseDualStack": false + } + }, + { + "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.ap-northeast-2.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "ap-northeast-2", + "UseDualStack": true + } + }, + { + "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.ap-northeast-2.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "ap-northeast-2", + "UseDualStack": false + } + }, + { + "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.ap-northeast-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "ap-northeast-1", + "UseDualStack": true + } + }, + { + "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.ap-northeast-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "ap-northeast-1", + "UseDualStack": false + } + }, + { + "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.ap-northeast-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "ap-northeast-1", + "UseDualStack": true + } + }, + { + "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.ap-northeast-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "ap-northeast-1", + "UseDualStack": false + } + }, + { + "documentation": "For region me-south-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.me-south-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "me-south-1", + "UseDualStack": true + } + }, + { + "documentation": "For region me-south-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.me-south-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "me-south-1", + "UseDualStack": false + } + }, + { + "documentation": "For region me-south-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.me-south-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "me-south-1", + "UseDualStack": true + } + }, + { + "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.me-south-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "me-south-1", + "UseDualStack": false + } + }, + { + "documentation": "For region sa-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.sa-east-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "sa-east-1", + "UseDualStack": true + } + }, + { + "documentation": "For region sa-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.sa-east-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "sa-east-1", + "UseDualStack": false + } + }, + { + "documentation": "For region sa-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.sa-east-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "sa-east-1", + "UseDualStack": true + } + }, + { + "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.sa-east-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "sa-east-1", + "UseDualStack": false + } + }, + { + "documentation": "For region ap-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.ap-east-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "ap-east-1", + "UseDualStack": true + } + }, + { + "documentation": "For region ap-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.ap-east-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "ap-east-1", + "UseDualStack": false + } + }, + { + "documentation": "For region ap-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.ap-east-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "ap-east-1", + "UseDualStack": true + } + }, + { + "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.ap-east-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "ap-east-1", + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.us-gov-west-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "us-gov-west-1", + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.us-gov-west-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "us-gov-west-1", + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.us-gov-west-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-gov-west-1", + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.us-gov-west-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-gov-west-1", + "UseDualStack": false + } + }, + { + "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.ap-southeast-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "ap-southeast-1", + "UseDualStack": true + } + }, + { + "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.ap-southeast-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "ap-southeast-1", + "UseDualStack": false + } + }, + { + "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.ap-southeast-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "ap-southeast-1", + "UseDualStack": true + } + }, + { + "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.ap-southeast-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "ap-southeast-1", + "UseDualStack": false + } + }, + { + "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.ap-southeast-2.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "ap-southeast-2", + "UseDualStack": true + } + }, + { + "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.ap-southeast-2.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "ap-southeast-2", + "UseDualStack": false + } + }, + { + "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.ap-southeast-2.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "ap-southeast-2", + "UseDualStack": true + } + }, + { + "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.ap-southeast-2.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "ap-southeast-2", + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.us-east-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "us-east-1", + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.us-east-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "us-east-1", + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.us-east-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-east-1", + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.us-east-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-east-1", + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-2 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.us-east-2.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "us-east-2", + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp-fips.us-east-2.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "us-east-2", + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-2 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.us-east-2.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-east-2", + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cognito-idp.us-east-2.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-east-2", + "UseDualStack": false + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-east-1", + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips enabled and dualstack disabled", + "expect": { + "error": "Invalid Configuration: FIPS and custom endpoint are not supported" + }, + "params": { + "UseFIPS": true, + "Region": "us-east-1", + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack enabled", + "expect": { + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" + }, + "params": { + "UseFIPS": false, + "Region": "us-east-1", + "UseDualStack": true, + "Endpoint": "https://example.com" + } + } + ], + "version": "1.0" + } + } }, "com.amazonaws.cognitoidentityprovider#AccessTokenValidityType": { "type": "integer", "traits": { - "smithy.api#box": {}, "smithy.api#range": { "min": 1, "max": 86400 @@ -384,7 +1781,10 @@ } }, "com.amazonaws.cognitoidentityprovider#AccountTakeoverActionNotifyType": { - "type": "boolean" + "type": "boolean", + "traits": { + "smithy.api#default": false + } }, "com.amazonaws.cognitoidentityprovider#AccountTakeoverActionType": { "type": "structure", @@ -392,6 +1792,7 @@ "Notify": { "target": "com.amazonaws.cognitoidentityprovider#AccountTakeoverActionNotifyType", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

        Flag specifying whether to send a notification.

        ", "smithy.api#required": {} } @@ -435,26 +1836,32 @@ } }, "com.amazonaws.cognitoidentityprovider#AccountTakeoverEventActionType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "BLOCK", - "name": "BLOCK" - }, - { - "value": "MFA_IF_CONFIGURED", - "name": "MFA_IF_CONFIGURED" - }, - { - "value": "MFA_REQUIRED", - "name": "MFA_REQUIRED" - }, - { - "value": "NO_ACTION", - "name": "NO_ACTION" + "type": "enum", + "members": { + "BLOCK": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "BLOCK" + } + }, + "MFA_IF_CONFIGURED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "MFA_IF_CONFIGURED" + } + }, + "MFA_REQUIRED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "MFA_REQUIRED" + } + }, + "NO_ACTION": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NO_ACTION" } - ] + } } }, "com.amazonaws.cognitoidentityprovider#AccountTakeoverRiskConfigurationType": { @@ -747,12 +2154,14 @@ "AllowAdminCreateUserOnly": { "target": "com.amazonaws.cognitoidentityprovider#BooleanType", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

        Set to True if only the administrator is allowed to create user profiles.\n Set to False if users can sign themselves up via an app.

        " } }, "UnusedAccountValidityDays": { "target": "com.amazonaws.cognitoidentityprovider#AdminCreateUserUnusedAccountValidityDaysType", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "

        The user account expiration limit, in days, after which a new account that hasn't\n signed in is no longer usable. To reset the account after that time limit, you must call\n AdminCreateUser again, specifying \"RESEND\" for the\n MessageAction parameter. The default value for this parameter is 7.

        \n \n

        If you set a value for TemporaryPasswordValidityDays in\n PasswordPolicy, that value will be used, and\n UnusedAccountValidityDays will be no longer be an available\n parameter for that user pool.

        \n
        " } }, @@ -805,6 +2214,7 @@ "ForceAliasCreation": { "target": "com.amazonaws.cognitoidentityprovider#ForceAliasCreation", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

        This parameter is used only if the phone_number_verified or\n email_verified attribute is set to True. Otherwise, it is\n ignored.

        \n

        If this parameter is set to True and the phone number or email address\n specified in the UserAttributes parameter already exists as an alias with a different\n user, the API call will migrate the alias from the previous user to the newly created\n user. The previous user will no longer be able to log in using that alias.

        \n

        If this parameter is set to False, the API throws an\n AliasExistsException error if the alias already exists. The default\n value is False.

        " } }, @@ -848,6 +2258,7 @@ "com.amazonaws.cognitoidentityprovider#AdminCreateUserUnusedAccountValidityDaysType": { "type": "integer", "traits": { + "smithy.api#default": 0, "smithy.api#range": { "min": 0, "max": 365 @@ -1063,7 +2474,7 @@ } ], "traits": { - "smithy.api#documentation": "

        Disables the specified user.

        \n

        Calling this action requires developer credentials.

        " + "smithy.api#documentation": "

        Deactivates a user and revokes all access tokens for the user. A deactivated user can't sign in, \n but still appears in the responses to GetUser and ListUsers API requests.

        \n

        You must make this API request with Amazon Web Services credentials that have cognito-idp:AdminDisableUser permissions.

        " } }, "com.amazonaws.cognitoidentityprovider#AdminDisableUserRequest": { @@ -1381,6 +2792,7 @@ "Enabled": { "target": "com.amazonaws.cognitoidentityprovider#BooleanType", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

        Indicates that the status is enabled.

        " } }, @@ -1858,7 +3270,7 @@ "MaxResults": { "target": "com.amazonaws.cognitoidentityprovider#QueryLimitType", "traits": { - "smithy.api#documentation": "

        The maximum number of authentication events to return.

        " + "smithy.api#documentation": "

        The maximum number of authentication events to return. Returns 60 events if you set\n MaxResults to 0, or if you don't include a MaxResults\n parameter.

        " } }, "NextToken": { @@ -2329,6 +3741,7 @@ "Permanent": { "target": "com.amazonaws.cognitoidentityprovider#BooleanType", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

        \n True if the password is permanent, False if it is\n temporary.

        " } } @@ -2709,41 +4122,49 @@ } }, "com.amazonaws.cognitoidentityprovider#AdvancedSecurityModeType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "OFF", - "name": "OFF" - }, - { - "value": "AUDIT", - "name": "AUDIT" - }, - { - "value": "ENFORCED", - "name": "ENFORCED" + "type": "enum", + "members": { + "OFF": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "OFF" + } + }, + "AUDIT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AUDIT" } - ] + }, + "ENFORCED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENFORCED" + } + } } }, "com.amazonaws.cognitoidentityprovider#AliasAttributeType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "phone_number", - "name": "PHONE_NUMBER" - }, - { - "value": "email", - "name": "EMAIL" - }, - { - "value": "preferred_username", - "name": "PREFERRED_USERNAME" + "type": "enum", + "members": { + "PHONE_NUMBER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "phone_number" + } + }, + "EMAIL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "email" } - ] + }, + "PREFERRED_USERNAME": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "preferred_username" + } + } } }, "com.amazonaws.cognitoidentityprovider#AliasAttributesListType": { @@ -2798,6 +4219,7 @@ "UserDataShared": { "target": "com.amazonaws.cognitoidentityprovider#BooleanType", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

        If UserDataShared is true, Amazon Cognito includes user data in the\n events that it publishes to Amazon Pinpoint analytics.

        " } } @@ -2900,26 +4322,32 @@ } }, "com.amazonaws.cognitoidentityprovider#AttributeDataType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "String", - "name": "STRING" - }, - { - "value": "Number", - "name": "NUMBER" - }, - { - "value": "DateTime", - "name": "DATETIME" - }, - { - "value": "Boolean", - "name": "BOOLEAN" + "type": "enum", + "members": { + "STRING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "String" } - ] + }, + "NUMBER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Number" + } + }, + "DATETIME": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DateTime" + } + }, + "BOOLEAN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Boolean" + } + } } }, "com.amazonaws.cognitoidentityprovider#AttributeListType": { @@ -3062,38 +4490,50 @@ } }, "com.amazonaws.cognitoidentityprovider#AuthFlowType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "USER_SRP_AUTH", - "name": "USER_SRP_AUTH" - }, - { - "value": "REFRESH_TOKEN_AUTH", - "name": "REFRESH_TOKEN_AUTH" - }, - { - "value": "REFRESH_TOKEN", - "name": "REFRESH_TOKEN" - }, - { - "value": "CUSTOM_AUTH", - "name": "CUSTOM_AUTH" - }, - { - "value": "ADMIN_NO_SRP_AUTH", - "name": "ADMIN_NO_SRP_AUTH" - }, - { - "value": "USER_PASSWORD_AUTH", - "name": "USER_PASSWORD_AUTH" - }, - { - "value": "ADMIN_USER_PASSWORD_AUTH", - "name": "ADMIN_USER_PASSWORD_AUTH" + "type": "enum", + "members": { + "USER_SRP_AUTH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "USER_SRP_AUTH" + } + }, + "REFRESH_TOKEN_AUTH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "REFRESH_TOKEN_AUTH" } - ] + }, + "REFRESH_TOKEN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "REFRESH_TOKEN" + } + }, + "CUSTOM_AUTH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CUSTOM_AUTH" + } + }, + "ADMIN_NO_SRP_AUTH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ADMIN_NO_SRP_AUTH" + } + }, + "USER_PASSWORD_AUTH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "USER_PASSWORD_AUTH" + } + }, + "ADMIN_USER_PASSWORD_AUTH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ADMIN_USER_PASSWORD_AUTH" + } + } } }, "com.amazonaws.cognitoidentityprovider#AuthParametersType": { @@ -3111,7 +4551,6 @@ "com.amazonaws.cognitoidentityprovider#AuthSessionValidityType": { "type": "integer", "traits": { - "smithy.api#box": {}, "smithy.api#range": { "min": 3, "max": 15 @@ -3130,6 +4569,7 @@ "ExpiresIn": { "target": "com.amazonaws.cognitoidentityprovider#IntegerType", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "

        The expiration period of the authentication result in seconds.

        " } }, @@ -3175,7 +4615,10 @@ } }, "com.amazonaws.cognitoidentityprovider#BooleanType": { - "type": "boolean" + "type": "boolean", + "traits": { + "smithy.api#default": false + } }, "com.amazonaws.cognitoidentityprovider#CSSType": { "type": "string" @@ -3196,65 +4639,85 @@ } }, "com.amazonaws.cognitoidentityprovider#ChallengeName": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "Password", - "name": "Password" - }, - { - "value": "Mfa", - "name": "Mfa" + "type": "enum", + "members": { + "Password": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Password" + } + }, + "Mfa": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Mfa" } - ] + } } }, "com.amazonaws.cognitoidentityprovider#ChallengeNameType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "SMS_MFA", - "name": "SMS_MFA" - }, - { - "value": "SOFTWARE_TOKEN_MFA", - "name": "SOFTWARE_TOKEN_MFA" - }, - { - "value": "SELECT_MFA_TYPE", - "name": "SELECT_MFA_TYPE" - }, - { - "value": "MFA_SETUP", - "name": "MFA_SETUP" - }, - { - "value": "PASSWORD_VERIFIER", - "name": "PASSWORD_VERIFIER" - }, - { - "value": "CUSTOM_CHALLENGE", - "name": "CUSTOM_CHALLENGE" - }, - { - "value": "DEVICE_SRP_AUTH", - "name": "DEVICE_SRP_AUTH" - }, - { - "value": "DEVICE_PASSWORD_VERIFIER", - "name": "DEVICE_PASSWORD_VERIFIER" - }, - { - "value": "ADMIN_NO_SRP_AUTH", - "name": "ADMIN_NO_SRP_AUTH" - }, - { - "value": "NEW_PASSWORD_REQUIRED", - "name": "NEW_PASSWORD_REQUIRED" + "type": "enum", + "members": { + "SMS_MFA": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SMS_MFA" + } + }, + "SOFTWARE_TOKEN_MFA": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SOFTWARE_TOKEN_MFA" + } + }, + "SELECT_MFA_TYPE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SELECT_MFA_TYPE" + } + }, + "MFA_SETUP": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "MFA_SETUP" + } + }, + "PASSWORD_VERIFIER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PASSWORD_VERIFIER" + } + }, + "CUSTOM_CHALLENGE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CUSTOM_CHALLENGE" } - ] + }, + "DEVICE_SRP_AUTH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DEVICE_SRP_AUTH" + } + }, + "DEVICE_PASSWORD_VERIFIER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DEVICE_PASSWORD_VERIFIER" + } + }, + "ADMIN_NO_SRP_AUTH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ADMIN_NO_SRP_AUTH" + } + }, + "NEW_PASSWORD_REQUIRED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NEW_PASSWORD_REQUIRED" + } + } } }, "com.amazonaws.cognitoidentityprovider#ChallengeParametersType": { @@ -3267,18 +4730,20 @@ } }, "com.amazonaws.cognitoidentityprovider#ChallengeResponse": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "Success", - "name": "Success" - }, - { - "value": "Failure", - "name": "Failure" + "type": "enum", + "members": { + "Success": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Success" + } + }, + "Failure": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Failure" } - ] + } } }, "com.amazonaws.cognitoidentityprovider#ChallengeResponseListType": { @@ -3547,18 +5012,20 @@ } }, "com.amazonaws.cognitoidentityprovider#CompromisedCredentialsEventActionType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "BLOCK", - "name": "BLOCK" - }, - { - "value": "NO_ACTION", - "name": "NO_ACTION" + "type": "enum", + "members": { + "BLOCK": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "BLOCK" + } + }, + "NO_ACTION": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NO_ACTION" } - ] + } } }, "com.amazonaws.cognitoidentityprovider#CompromisedCredentialsRiskConfigurationType": { @@ -3691,6 +5158,7 @@ "UserConfirmationNecessary": { "target": "com.amazonaws.cognitoidentityprovider#BooleanType", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

        Indicates whether the user confirmation must confirm the device response.

        " } } @@ -3924,6 +5392,7 @@ "ForceAliasCreation": { "target": "com.amazonaws.cognitoidentityprovider#ForceAliasCreation", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

        Boolean to be specified to force user confirmation irrespective of existing alias. By\n default set to False. If this parameter is set to True and the\n phone number/email used for sign up confirmation already exists as an alias with a\n different user, the API call will migrate the alias from the previous user to the newly\n created user being confirmed. If set to False, the API will throw an\n AliasExistsException error.

        " } }, @@ -4437,25 +5906,27 @@ "GenerateSecret": { "target": "com.amazonaws.cognitoidentityprovider#GenerateSecret", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

        Boolean to specify whether you want to generate a secret for the user pool client\n being created.

        " } }, "RefreshTokenValidity": { "target": "com.amazonaws.cognitoidentityprovider#RefreshTokenValidityType", "traits": { - "smithy.api#documentation": "

        The refresh token time limit. After this limit expires, your user can't use \n their refresh token. To specify the time unit for RefreshTokenValidity as \n seconds, minutes, hours, or days, \n set a TokenValidityUnits value in your API request.

        \n

        For example, when you set RefreshTokenValidity as 10 and\n TokenValidityUnits as days, your user can refresh their session\n and retrieve new access and ID tokens for 10 days.

        \n

        The default time unit for RefreshTokenValidity in an API request is days. \n You can't set RefreshTokenValidity to 0. If you do, Amazon Cognito overrides the \n value with the default value of 30 days. Valid range is displayed below \n in seconds.

        " + "smithy.api#default": 0, + "smithy.api#documentation": "

        The refresh token time limit. After this limit expires, your user can't use \n their refresh token. To specify the time unit for RefreshTokenValidity as \n seconds, minutes, hours, or days, \n set a TokenValidityUnits value in your API request.

        \n

        For example, when you set RefreshTokenValidity as 10 and\n TokenValidityUnits as days, your user can refresh their session\n and retrieve new access and ID tokens for 10 days.

        \n

        The default time unit for RefreshTokenValidity in an API request is days. \n You can't set RefreshTokenValidity to 0. If you do, Amazon Cognito overrides the \n value with the default value of 30 days. Valid range is displayed below \n in seconds.

        \n

        If you don't specify otherwise in the configuration of your app client, your refresh\n tokens are valid for 30 days.

        " } }, "AccessTokenValidity": { "target": "com.amazonaws.cognitoidentityprovider#AccessTokenValidityType", "traits": { - "smithy.api#documentation": "

        The access token time limit. After this limit expires, your user can't use \n their access token. To specify the time unit for AccessTokenValidity as \n seconds, minutes, hours, or days, \n set a TokenValidityUnits value in your API request.

        \n

        For example, when you set AccessTokenValidity to 10 and\n TokenValidityUnits to hours, your user can authorize access with\n their access token for 10 hours.

        \n

        The default time unit for AccessTokenValidity in an API request is hours. \n Valid range is displayed below in seconds.

        " + "smithy.api#documentation": "

        The access token time limit. After this limit expires, your user can't use \n their access token. To specify the time unit for AccessTokenValidity as \n seconds, minutes, hours, or days, \n set a TokenValidityUnits value in your API request.

        \n

        For example, when you set AccessTokenValidity to 10 and\n TokenValidityUnits to hours, your user can authorize access with\n their access token for 10 hours.

        \n

        The default time unit for AccessTokenValidity in an API request is hours. \n Valid range is displayed below in seconds.

        \n

        If you don't specify otherwise in the configuration of your app client, your access\n tokens are valid for one hour.

        " } }, "IdTokenValidity": { "target": "com.amazonaws.cognitoidentityprovider#IdTokenValidityType", "traits": { - "smithy.api#documentation": "

        The ID token time limit. After this limit expires, your user can't use \n their ID token. To specify the time unit for IdTokenValidity as \n seconds, minutes, hours, or days, \n set a TokenValidityUnits value in your API request.

        \n

        For example, when you set IdTokenValidity as 10 and\n TokenValidityUnits as hours, your user can authenticate their \n session with their ID token for 10 hours.

        \n

        The default time unit for AccessTokenValidity in an API request is hours. \n Valid range is displayed below in seconds.

        " + "smithy.api#documentation": "

        The ID token time limit. After this limit expires, your user can't use \n their ID token. To specify the time unit for IdTokenValidity as \n seconds, minutes, hours, or days, \n set a TokenValidityUnits value in your API request.

        \n

        For example, when you set IdTokenValidity as 10 and\n TokenValidityUnits as hours, your user can authenticate their \n session with their ID token for 10 hours.

        \n

        The default time unit for AccessTokenValidity in an API request is hours. \n Valid range is displayed below in seconds.

        \n

        If you don't specify otherwise in the configuration of your app client, your ID\n tokens are valid for one hour.

        " } }, "TokenValidityUnits": { @@ -4479,7 +5950,7 @@ "ExplicitAuthFlows": { "target": "com.amazonaws.cognitoidentityprovider#ExplicitAuthFlowsListType", "traits": { - "smithy.api#documentation": "

        The authentication flows that are supported by the user pool clients. Flow names\n without the ALLOW_ prefix are no longer supported, in favor of new names\n with the ALLOW_ prefix.

        \n \n

        Values with ALLOW_ prefix must be used only along with the\n ALLOW_ prefix.

        \n
        \n

        Valid values include:

        \n
        \n
        ALLOW_ADMIN_USER_PASSWORD_AUTH
        \n
        \n

        Enable admin based user password\n authentication flow ADMIN_USER_PASSWORD_AUTH. This setting replaces\n the ADMIN_NO_SRP_AUTH setting. With this authentication flow, Amazon Cognito\n receives the password in the request instead of using the Secure Remote Password\n (SRP) protocol to verify passwords.

        \n
        \n
        ALLOW_CUSTOM_AUTH
        \n
        \n

        Enable Lambda trigger based authentication.

        \n
        \n
        ALLOW_USER_PASSWORD_AUTH
        \n
        \n

        Enable user password-based\n authentication. In this flow, Amazon Cognito receives the password in the request instead\n of using the SRP protocol to verify passwords.

        \n
        \n
        ALLOW_USER_SRP_AUTH
        \n
        \n

        Enable SRP-based authentication.

        \n
        \n
        ALLOW_REFRESH_TOKEN_AUTH
        \n
        \n

        Enable the authflow that refreshes tokens.

        \n
        \n
        \n

        If you don't specify a value for ExplicitAuthFlows, your user client\n supports ALLOW_USER_SRP_AUTH and ALLOW_CUSTOM_AUTH.

        " + "smithy.api#documentation": "

        The authentication flows that you want your user pool client to support. For each app client in your user pool, you can sign in \nyour users with any combination of one or more flows, including with a user name and Secure Remote Password (SRP), a user name and \npassword, or a custom authentication process that you define with Lambda functions.

        \n \n

        If you don't specify a value for ExplicitAuthFlows, your user client supports ALLOW_REFRESH_TOKEN_AUTH, ALLOW_USER_SRP_AUTH, and ALLOW_CUSTOM_AUTH.

        \n
        \n

        Valid values include:

        \n
          \n
        • \n

          \n ALLOW_ADMIN_USER_PASSWORD_AUTH: Enable admin based user password\n authentication flow ADMIN_USER_PASSWORD_AUTH. This setting replaces\n the ADMIN_NO_SRP_AUTH setting. With this authentication flow, your app\n passes a user name and password to Amazon Cognito in the request, instead of using the Secure \n Remote Password (SRP) protocol to securely transmit the password.

          \n
        • \n
        • \n

          \n ALLOW_CUSTOM_AUTH: Enable Lambda trigger based\n authentication.

          \n
        • \n
        • \n

          \n ALLOW_USER_PASSWORD_AUTH: Enable user password-based\n authentication. In this flow, Amazon Cognito receives the password in the request instead\n of using the SRP protocol to verify passwords.

          \n
        • \n
        • \n

          \n ALLOW_USER_SRP_AUTH: Enable SRP-based authentication.

          \n
        • \n
        • \n

          \n ALLOW_REFRESH_TOKEN_AUTH: Enable authflow to refresh\n tokens.

          \n
        • \n
        \n

        In some environments, you will see the values ADMIN_NO_SRP_AUTH, CUSTOM_AUTH_FLOW_ONLY, or USER_PASSWORD_AUTH. \nYou can't assign these legacy ExplicitAuthFlows values to user pool clients at the same time as values that begin with ALLOW_,\nlike ALLOW_USER_SRP_AUTH.

        " } }, "SupportedIdentityProviders": { @@ -4521,6 +5992,7 @@ "AllowedOAuthFlowsUserPoolClient": { "target": "com.amazonaws.cognitoidentityprovider#BooleanType", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

        Set to true if the client is allowed to follow the OAuth protocol when interacting\n with Amazon Cognito user pools.

        " } }, @@ -4654,6 +6126,12 @@ "smithy.api#documentation": "

        The policies associated with the new user pool.

        " } }, + "DeletionProtection": { + "target": "com.amazonaws.cognitoidentityprovider#DeletionProtectionType", + "traits": { + "smithy.api#documentation": "

        When active, DeletionProtection prevents accidental deletion of your user\n pool. Before you can delete a user pool that you have protected against deletion, you\n must deactivate this feature.

        \n

        When you try to delete a protected user pool in a DeleteUserPool API request, \n Amazon Cognito returns an InvalidParameterException error. To delete a protected user pool, \n send a new DeleteUserPool request after you deactivate deletion protection in an \n UpdateUserPool API request.

        " + } + }, "LambdaConfig": { "target": "com.amazonaws.cognitoidentityprovider#LambdaConfigType", "traits": { @@ -4853,14 +6331,14 @@ } }, "com.amazonaws.cognitoidentityprovider#CustomEmailSenderLambdaVersionType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "V1_0", - "name": "V1_0" + "type": "enum", + "members": { + "V1_0": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "V1_0" } - ] + } } }, "com.amazonaws.cognitoidentityprovider#CustomSMSLambdaVersionConfigType": { @@ -4886,32 +6364,34 @@ } }, "com.amazonaws.cognitoidentityprovider#CustomSMSSenderLambdaVersionType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "V1_0", - "name": "V1_0" + "type": "enum", + "members": { + "V1_0": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "V1_0" } - ] + } } }, "com.amazonaws.cognitoidentityprovider#DateType": { "type": "timestamp" }, "com.amazonaws.cognitoidentityprovider#DefaultEmailOptionType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "CONFIRM_WITH_LINK", - "name": "CONFIRM_WITH_LINK" - }, - { - "value": "CONFIRM_WITH_CODE", - "name": "CONFIRM_WITH_CODE" + "type": "enum", + "members": { + "CONFIRM_WITH_LINK": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CONFIRM_WITH_LINK" } - ] + }, + "CONFIRM_WITH_CODE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CONFIRM_WITH_CODE" + } + } } }, "com.amazonaws.cognitoidentityprovider#DeleteGroup": { @@ -4971,6 +6451,9 @@ "target": "smithy.api#Unit" }, "errors": [ + { + "target": "com.amazonaws.cognitoidentityprovider#ConcurrentModificationException" + }, { "target": "com.amazonaws.cognitoidentityprovider#InternalErrorException" }, @@ -5217,6 +6700,9 @@ "target": "smithy.api#Unit" }, "errors": [ + { + "target": "com.amazonaws.cognitoidentityprovider#ConcurrentModificationException" + }, { "target": "com.amazonaws.cognitoidentityprovider#InternalErrorException" }, @@ -5338,6 +6824,23 @@ "smithy.api#documentation": "

        Represents the request to delete a user.

        " } }, + "com.amazonaws.cognitoidentityprovider#DeletionProtectionType": { + "type": "enum", + "members": { + "ACTIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ACTIVE" + } + }, + "INACTIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INACTIVE" + } + } + } + }, "com.amazonaws.cognitoidentityprovider#DeliveryMediumListType": { "type": "list", "member": { @@ -5345,18 +6848,20 @@ } }, "com.amazonaws.cognitoidentityprovider#DeliveryMediumType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "SMS", - "name": "SMS" - }, - { - "value": "EMAIL", - "name": "EMAIL" + "type": "enum", + "members": { + "SMS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SMS" + } + }, + "EMAIL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "EMAIL" } - ] + } } }, "com.amazonaws.cognitoidentityprovider#DescribeIdentityProvider": { @@ -5413,7 +6918,7 @@ "IdentityProvider": { "target": "com.amazonaws.cognitoidentityprovider#IdentityProviderType", "traits": { - "smithy.api#documentation": "

        The IdP that was deleted.

        ", + "smithy.api#documentation": "

        The identity provider details.

        ", "smithy.api#required": {} } } @@ -5796,12 +7301,14 @@ "ChallengeRequiredOnNewDevice": { "target": "com.amazonaws.cognitoidentityprovider#BooleanType", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

        When true, a remembered device can sign in with device authentication instead of SMS\n and time-based one-time password (TOTP) factors for multi-factor authentication\n (MFA).

        \n \n

        Whether or not ChallengeRequiredOnNewDevice is true, users who sign in\n with devices that have not been confirmed or remembered must still provide a second\n factor in a user pool that requires MFA.

        \n
        " } }, "DeviceOnlyRememberedOnUserPrompt": { "target": "com.amazonaws.cognitoidentityprovider#BooleanType", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

        When true, Amazon Cognito doesn't automatically remember a user's device when your app sends a\n \n ConfirmDevice API request. In your app, create a prompt for\n your user to choose whether they want to remember their device. Return the user's choice\n in an \n UpdateDeviceStatus API request.

        \n

        When DeviceOnlyRememberedOnUserPrompt is false, Amazon\n Cognito immediately remembers devices that you register in a ConfirmDevice\n API request.

        " } } @@ -5836,18 +7343,20 @@ } }, "com.amazonaws.cognitoidentityprovider#DeviceRememberedStatusType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "remembered", - "name": "REMEMBERED" - }, - { - "value": "not_remembered", - "name": "NOT_REMEMBERED" + "type": "enum", + "members": { + "REMEMBERED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "remembered" + } + }, + "NOT_REMEMBERED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "not_remembered" } - ] + } } }, "com.amazonaws.cognitoidentityprovider#DeviceSecretVerifierConfigType": { @@ -5965,30 +7474,38 @@ } }, "com.amazonaws.cognitoidentityprovider#DomainStatusType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "CREATING", - "name": "CREATING" - }, - { - "value": "DELETING", - "name": "DELETING" - }, - { - "value": "UPDATING", - "name": "UPDATING" - }, - { - "value": "ACTIVE", - "name": "ACTIVE" - }, - { - "value": "FAILED", - "name": "FAILED" + "type": "enum", + "members": { + "CREATING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CREATING" + } + }, + "DELETING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DELETING" + } + }, + "UPDATING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UPDATING" + } + }, + "ACTIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ACTIVE" + } + }, + "FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FAILED" } - ] + } } }, "com.amazonaws.cognitoidentityprovider#DomainType": { @@ -6047,7 +7564,7 @@ "EmailSendingAccount": { "target": "com.amazonaws.cognitoidentityprovider#EmailSendingAccountType", "traits": { - "smithy.api#documentation": "

        Specifies whether Amazon Cognito uses its built-in functionality to send your users email\n messages, or uses your Amazon Simple Email Service email configuration. Specify one of the following\n values:

        \n
        \n
        COGNITO_DEFAULT
        \n
        \n

        When Amazon Cognito emails your users, it uses its built-in email functionality.\n When you use the default option, Amazon Cognito allows only a limited number of\n emails each day for your user pool. For typical production environments, the\n default email limit is less than the required delivery volume. To achieve a\n higher delivery volume, specify DEVELOPER to use your Amazon SES email\n configuration.

        \n

        To look up the email delivery limit for the default option, see Limits in in the Developer Guide.

        \n

        The default FROM address is no-reply@verificationemail.com.\n To customize the FROM address, provide the Amazon Resource Name (ARN) of an\n Amazon SES verified email address for the SourceArn\n parameter.

        \n \n
        \n
        DEVELOPER
        \n
        \n

        When Amazon Cognito emails your users, it uses your Amazon SES configuration. Amazon Cognito\n calls Amazon SES on your behalf to send email from your verified email address.\n When you use this option, the email delivery limits are the same limits that\n apply to your Amazon SES verified email address in your Amazon Web Services account.

        \n

        If you use this option, provide the ARN of an Amazon SES verified email address\n for the SourceArn parameter.

        \n

        Before Amazon Cognito can email your users, it requires additional permissions to\n call Amazon SES on your behalf. When you update your user pool with this option,\n Amazon Cognito creates a service-linked role, which is a type of\n role, in your Amazon Web Services account. This role contains the permissions\n that allow to access Amazon SES and send email messages with your address. For\n more information about the service-linked role that Amazon Cognito creates, see\n Using Service-Linked Roles for Amazon Cognito in the\n Amazon Cognito Developer Guide.

        \n
        \n
        " + "smithy.api#documentation": "

        Specifies whether Amazon Cognito uses its built-in functionality to send your users email\n messages, or uses your Amazon Simple Email Service email configuration. Specify one of the following\n values:

        \n
        \n
        COGNITO_DEFAULT
        \n
        \n

        When Amazon Cognito emails your users, it uses its built-in email functionality.\n When you use the default option, Amazon Cognito allows only a limited number of\n emails each day for your user pool. For typical production environments, the\n default email limit is less than the required delivery volume. To achieve a\n higher delivery volume, specify DEVELOPER to use your Amazon SES email\n configuration.

        \n

        To look up the email delivery limit for the default option, see Limits in the Amazon Cognito Developer Guide.

        \n

        The default FROM address is no-reply@verificationemail.com.\n To customize the FROM address, provide the Amazon Resource Name (ARN) of an\n Amazon SES verified email address for the SourceArn\n parameter.

        \n \n
        \n
        DEVELOPER
        \n
        \n

        When Amazon Cognito emails your users, it uses your Amazon SES configuration. Amazon Cognito\n calls Amazon SES on your behalf to send email from your verified email address.\n When you use this option, the email delivery limits are the same limits that\n apply to your Amazon SES verified email address in your Amazon Web Services account.

        \n

        If you use this option, provide the ARN of an Amazon SES verified email address\n for the SourceArn parameter.

        \n

        Before Amazon Cognito can email your users, it requires additional permissions to\n call Amazon SES on your behalf. When you update your user pool with this option,\n Amazon Cognito creates a service-linked role, which is a type of\n role in your Amazon Web Services account. This role contains the permissions\n that allow you to access Amazon SES and send email messages from your email address. For\n more information about the service-linked role that Amazon Cognito creates, see\n Using Service-Linked Roles for Amazon Cognito in the\n Amazon Cognito Developer Guide.

        \n
        \n
        " } }, "From": { @@ -6088,18 +7605,20 @@ } }, "com.amazonaws.cognitoidentityprovider#EmailSendingAccountType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "COGNITO_DEFAULT", - "name": "COGNITO_DEFAULT" - }, - { - "value": "DEVELOPER", - "name": "DEVELOPER" + "type": "enum", + "members": { + "COGNITO_DEFAULT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "COGNITO_DEFAULT" } - ] + }, + "DEVELOPER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DEVELOPER" + } + } } }, "com.amazonaws.cognitoidentityprovider#EmailVerificationMessageByLinkType": { @@ -6222,22 +7741,26 @@ } }, "com.amazonaws.cognitoidentityprovider#EventFilterType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "SIGN_IN", - "name": "SIGN_IN" - }, - { - "value": "PASSWORD_CHANGE", - "name": "PASSWORD_CHANGE" - }, - { - "value": "SIGN_UP", - "name": "SIGN_UP" + "type": "enum", + "members": { + "SIGN_IN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SIGN_IN" + } + }, + "PASSWORD_CHANGE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PASSWORD_CHANGE" + } + }, + "SIGN_UP": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SIGN_UP" } - ] + } } }, "com.amazonaws.cognitoidentityprovider#EventFiltersType": { @@ -6257,22 +7780,26 @@ } }, "com.amazonaws.cognitoidentityprovider#EventResponseType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "Pass", - "name": "Pass" - }, - { - "value": "Fail", - "name": "Fail" - }, - { - "value": "InProgress", - "name": "InProgress" + "type": "enum", + "members": { + "Pass": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Pass" + } + }, + "Fail": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Fail" + } + }, + "InProgress": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "InProgress" } - ] + } } }, "com.amazonaws.cognitoidentityprovider#EventRiskType": { @@ -6302,30 +7829,38 @@ } }, "com.amazonaws.cognitoidentityprovider#EventType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "SignIn", - "name": "SignIn" - }, - { - "value": "SignUp", - "name": "SignUp" - }, - { - "value": "ForgotPassword", - "name": "ForgotPassword" - }, - { - "value": "PasswordChange", - "name": "PasswordChange" - }, - { - "value": "ResendCode", - "name": "ResendCode" + "type": "enum", + "members": { + "SignIn": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SignIn" + } + }, + "SignUp": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SignUp" } - ] + }, + "ForgotPassword": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ForgotPassword" + } + }, + "PasswordChange": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PasswordChange" + } + }, + "ResendCode": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ResendCode" + } + } } }, "com.amazonaws.cognitoidentityprovider#ExpiredCodeException": { @@ -6351,57 +7886,73 @@ } }, "com.amazonaws.cognitoidentityprovider#ExplicitAuthFlowsType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "ADMIN_NO_SRP_AUTH", - "name": "ADMIN_NO_SRP_AUTH" - }, - { - "value": "CUSTOM_AUTH_FLOW_ONLY", - "name": "CUSTOM_AUTH_FLOW_ONLY" - }, - { - "value": "USER_PASSWORD_AUTH", - "name": "USER_PASSWORD_AUTH" - }, - { - "value": "ALLOW_ADMIN_USER_PASSWORD_AUTH", - "name": "ALLOW_ADMIN_USER_PASSWORD_AUTH" - }, - { - "value": "ALLOW_CUSTOM_AUTH", - "name": "ALLOW_CUSTOM_AUTH" - }, - { - "value": "ALLOW_USER_PASSWORD_AUTH", - "name": "ALLOW_USER_PASSWORD_AUTH" - }, - { - "value": "ALLOW_USER_SRP_AUTH", - "name": "ALLOW_USER_SRP_AUTH" - }, - { - "value": "ALLOW_REFRESH_TOKEN_AUTH", - "name": "ALLOW_REFRESH_TOKEN_AUTH" + "type": "enum", + "members": { + "ADMIN_NO_SRP_AUTH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ADMIN_NO_SRP_AUTH" + } + }, + "CUSTOM_AUTH_FLOW_ONLY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CUSTOM_AUTH_FLOW_ONLY" + } + }, + "USER_PASSWORD_AUTH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "USER_PASSWORD_AUTH" + } + }, + "ALLOW_ADMIN_USER_PASSWORD_AUTH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ALLOW_ADMIN_USER_PASSWORD_AUTH" + } + }, + "ALLOW_CUSTOM_AUTH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ALLOW_CUSTOM_AUTH" } - ] + }, + "ALLOW_USER_PASSWORD_AUTH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ALLOW_USER_PASSWORD_AUTH" + } + }, + "ALLOW_USER_SRP_AUTH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ALLOW_USER_SRP_AUTH" + } + }, + "ALLOW_REFRESH_TOKEN_AUTH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ALLOW_REFRESH_TOKEN_AUTH" + } + } } }, "com.amazonaws.cognitoidentityprovider#FeedbackValueType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "Valid", - "name": "VALID" - }, - { - "value": "Invalid", - "name": "INVALID" + "type": "enum", + "members": { + "VALID": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Valid" + } + }, + "INVALID": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Invalid" } - ] + } } }, "com.amazonaws.cognitoidentityprovider#ForbiddenException": { @@ -6421,7 +7972,10 @@ } }, "com.amazonaws.cognitoidentityprovider#ForceAliasCreation": { - "type": "boolean" + "type": "boolean", + "traits": { + "smithy.api#default": false + } }, "com.amazonaws.cognitoidentityprovider#ForgetDevice": { "type": "operation", @@ -6610,7 +8164,10 @@ } }, "com.amazonaws.cognitoidentityprovider#GenerateSecret": { - "type": "boolean" + "type": "boolean", + "traits": { + "smithy.api#default": false + } }, "com.amazonaws.cognitoidentityprovider#GetCSVHeader": { "type": "operation", @@ -6869,7 +8426,7 @@ "IdentityProvider": { "target": "com.amazonaws.cognitoidentityprovider#IdentityProviderType", "traits": { - "smithy.api#documentation": "

        The IdP object.

        ", + "smithy.api#documentation": "

        The identity provider details.

        ", "smithy.api#required": {} } } @@ -6895,7 +8452,7 @@ } ], "traits": { - "smithy.api#documentation": "

        This method takes a user pool ID, and returns the signing certificate.

        " + "smithy.api#documentation": "

        This method takes a user pool ID, and returns the signing certificate. The issued certificate is valid for 10 years from the date of issue.

        \n

        Amazon Cognito issues and assigns a new signing certificate annually. This process returns a new value in the response to GetSigningCertificate, \n but doesn't invalidate the original certificate.

        " } }, "com.amazonaws.cognitoidentityprovider#GetSigningCertificateRequest": { @@ -7292,7 +8849,7 @@ } ], "traits": { - "smithy.api#documentation": "

        Signs out users from all devices. It also invalidates all refresh tokens that Amazon Cognito\n has issued to a user. The user's current access and ID tokens remain valid until their\n expiry. By default, access and ID tokens expire one hour after Amazon Cognito issues them. A user\n can still use a hosted UI cookie to retrieve new tokens for the duration of the cookie\n validity period of 1 hour.

        " + "smithy.api#documentation": "

        Signs out users from all devices. It also invalidates all refresh tokens that Amazon Cognito\n has issued to a user. A user can still use a hosted UI cookie to retrieve new tokens \n for the duration of the 1-hour cookie validity period.

        " } }, "com.amazonaws.cognitoidentityprovider#GlobalSignOutRequest": { @@ -7431,7 +8988,6 @@ "com.amazonaws.cognitoidentityprovider#IdTokenValidityType": { "type": "integer", "traits": { - "smithy.api#box": {}, "smithy.api#range": { "min": 1, "max": 86400 @@ -7495,34 +9051,44 @@ } }, "com.amazonaws.cognitoidentityprovider#IdentityProviderTypeType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "SAML", - "name": "SAML" - }, - { - "value": "Facebook", - "name": "Facebook" - }, - { - "value": "Google", - "name": "Google" - }, - { - "value": "LoginWithAmazon", - "name": "LoginWithAmazon" - }, - { - "value": "SignInWithApple", - "name": "SignInWithApple" - }, - { - "value": "OIDC", - "name": "OIDC" + "type": "enum", + "members": { + "SAML": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SAML" + } + }, + "Facebook": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Facebook" + } + }, + "Google": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Google" + } + }, + "LoginWithAmazon": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "LoginWithAmazon" } - ] + }, + "SignInWithApple": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SignInWithApple" + } + }, + "OIDC": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "OIDC" + } + } } }, "com.amazonaws.cognitoidentityprovider#IdpIdentifierType": { @@ -7693,7 +9259,10 @@ } }, "com.amazonaws.cognitoidentityprovider#IntegerType": { - "type": "integer" + "type": "integer", + "traits": { + "smithy.api#default": 0 + } }, "com.amazonaws.cognitoidentityprovider#InternalErrorException": { "type": "structure", @@ -8190,7 +9759,6 @@ "com.amazonaws.cognitoidentityprovider#ListProvidersLimitType": { "type": "integer", "traits": { - "smithy.api#box": {}, "smithy.api#range": { "min": 0, "max": 60 @@ -8235,6 +9803,7 @@ "com.amazonaws.cognitoidentityprovider#ListResourceServersLimitType": { "type": "integer", "traits": { + "smithy.api#default": 0, "smithy.api#range": { "min": 1, "max": 50 @@ -8254,6 +9823,7 @@ "MaxResults": { "target": "com.amazonaws.cognitoidentityprovider#ListResourceServersLimitType", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "

        The maximum number of resource servers to return.

        " } }, @@ -8377,6 +9947,7 @@ "MaxResults": { "target": "com.amazonaws.cognitoidentityprovider#PoolQueryLimitType", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "

        The maximum number of import jobs you want the request to return.

        ", "smithy.api#required": {} } @@ -8460,6 +10031,7 @@ "MaxResults": { "target": "com.amazonaws.cognitoidentityprovider#QueryLimit", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "

        The maximum number of results you want the request to return when listing the user\n pool clients.

        " } }, @@ -8538,6 +10110,7 @@ "MaxResults": { "target": "com.amazonaws.cognitoidentityprovider#PoolQueryLimitType", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "

        The maximum number of results you want the request to return when listing the user\n pools.

        ", "smithy.api#required": {} } @@ -8757,7 +10330,10 @@ } }, "com.amazonaws.cognitoidentityprovider#LongType": { - "type": "long" + "type": "long", + "traits": { + "smithy.api#default": 0 + } }, "com.amazonaws.cognitoidentityprovider#MFAMethodNotFoundException": { "type": "structure", @@ -8802,18 +10378,20 @@ } }, "com.amazonaws.cognitoidentityprovider#MessageActionType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "RESEND", - "name": "RESEND" - }, - { - "value": "SUPPRESS", - "name": "SUPPRESS" + "type": "enum", + "members": { + "RESEND": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "RESEND" + } + }, + "SUPPRESS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SUPPRESS" } - ] + } } }, "com.amazonaws.cognitoidentityprovider#MessageTemplateType": { @@ -8974,22 +10552,26 @@ } }, "com.amazonaws.cognitoidentityprovider#OAuthFlowType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "code", - "name": "code" - }, - { - "value": "implicit", - "name": "implicit" - }, - { - "value": "client_credentials", - "name": "client_credentials" + "type": "enum", + "members": { + "code": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "code" + } + }, + "implicit": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "implicit" + } + }, + "client_credentials": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "client_credentials" } - ] + } } }, "com.amazonaws.cognitoidentityprovider#OAuthFlowsType": { @@ -9025,6 +10607,7 @@ "com.amazonaws.cognitoidentityprovider#PasswordPolicyMinLengthType": { "type": "integer", "traits": { + "smithy.api#default": 0, "smithy.api#range": { "min": 6, "max": 99 @@ -9037,36 +10620,42 @@ "MinimumLength": { "target": "com.amazonaws.cognitoidentityprovider#PasswordPolicyMinLengthType", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "

        The minimum length of the password in the policy that you have set. This value can't\n be less than 6.

        " } }, "RequireUppercase": { "target": "com.amazonaws.cognitoidentityprovider#BooleanType", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

        In the password policy that you have set, refers to whether you have required users to\n use at least one uppercase letter in their password.

        " } }, "RequireLowercase": { "target": "com.amazonaws.cognitoidentityprovider#BooleanType", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

        In the password policy that you have set, refers to whether you have required users to\n use at least one lowercase letter in their password.

        " } }, "RequireNumbers": { "target": "com.amazonaws.cognitoidentityprovider#BooleanType", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

        In the password policy that you have set, refers to whether you have required users to\n use at least one number in their password.

        " } }, "RequireSymbols": { "target": "com.amazonaws.cognitoidentityprovider#BooleanType", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

        In the password policy that you have set, refers to whether you have required users to\n use at least one symbol in their password.

        " } }, "TemporaryPasswordValidityDays": { "target": "com.amazonaws.cognitoidentityprovider#TemporaryPasswordValidityDaysType", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "

        The number of days a temporary password is valid in the password policy. If the user\n doesn't sign in during this time, an administrator must reset their password.

        \n \n

        When you set TemporaryPasswordValidityDays for a user pool, you can\n no longer set a value for the legacy UnusedAccountValidityDays\n parameter in that user pool.

        \n
        " } } @@ -9105,6 +10694,7 @@ "com.amazonaws.cognitoidentityprovider#PoolQueryLimitType": { "type": "integer", "traits": { + "smithy.api#default": 0, "smithy.api#range": { "min": 1, "max": 60 @@ -9123,7 +10713,6 @@ "com.amazonaws.cognitoidentityprovider#PrecedenceType": { "type": "integer", "traits": { - "smithy.api#box": {}, "smithy.api#range": { "min": 0 } @@ -9146,23 +10735,26 @@ } }, "com.amazonaws.cognitoidentityprovider#PreventUserExistenceErrorTypes": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "LEGACY", - "name": "LEGACY" - }, - { - "value": "ENABLED", - "name": "ENABLED" + "type": "enum", + "members": { + "LEGACY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "LEGACY" + } + }, + "ENABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENABLED" } - ] + } } }, "com.amazonaws.cognitoidentityprovider#PriorityType": { "type": "integer", "traits": { + "smithy.api#default": 0, "smithy.api#range": { "min": 1, "max": 2 @@ -9271,6 +10863,7 @@ "com.amazonaws.cognitoidentityprovider#QueryLimit": { "type": "integer", "traits": { + "smithy.api#default": 0, "smithy.api#range": { "min": 1, "max": 60 @@ -9280,7 +10873,6 @@ "com.amazonaws.cognitoidentityprovider#QueryLimitType": { "type": "integer", "traits": { - "smithy.api#box": {}, "smithy.api#range": { "min": 0, "max": 60 @@ -9300,22 +10892,26 @@ } }, "com.amazonaws.cognitoidentityprovider#RecoveryOptionNameType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "verified_email", - "name": "VERIFIED_EMAIL" - }, - { - "value": "verified_phone_number", - "name": "VERIFIED_PHONE_NUMBER" - }, - { - "value": "admin_only", - "name": "ADMIN_ONLY" + "type": "enum", + "members": { + "VERIFIED_EMAIL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "verified_email" + } + }, + "VERIFIED_PHONE_NUMBER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "verified_phone_number" } - ] + }, + "ADMIN_ONLY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "admin_only" + } + } } }, "com.amazonaws.cognitoidentityprovider#RecoveryOptionType": { @@ -9324,6 +10920,7 @@ "Priority": { "target": "com.amazonaws.cognitoidentityprovider#PriorityType", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "

        A positive integer specifying priority of a method with 1 being the highest\n priority.

        ", "smithy.api#required": {} } @@ -9353,6 +10950,7 @@ "com.amazonaws.cognitoidentityprovider#RefreshTokenValidityType": { "type": "integer", "traits": { + "smithy.api#default": 0, "smithy.api#range": { "min": 0, "max": 315360000 @@ -9811,7 +11409,7 @@ } ], "traits": { - "smithy.api#documentation": "

        Revokes all of the access tokens generated by the specified refresh token. After the\n token is revoked, you can't use the revoked token to access Amazon Cognito authenticated\n APIs.

        " + "smithy.api#documentation": "

        Revokes all of the access tokens generated by, and at the same time as, the specified \n refresh token. After a token is revoked, you can't use the revoked token to access \n Amazon Cognito user APIs, or to authorize access to your resource server.

        " } }, "com.amazonaws.cognitoidentityprovider#RevokeTokenRequest": { @@ -9888,22 +11486,26 @@ } }, "com.amazonaws.cognitoidentityprovider#RiskDecisionType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "NoRisk", - "name": "NoRisk" - }, - { - "value": "AccountTakeover", - "name": "AccountTakeover" - }, - { - "value": "Block", - "name": "Block" + "type": "enum", + "members": { + "NoRisk": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NoRisk" + } + }, + "AccountTakeover": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AccountTakeover" + } + }, + "Block": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Block" } - ] + } } }, "com.amazonaws.cognitoidentityprovider#RiskExceptionConfigurationType": { @@ -9927,22 +11529,26 @@ } }, "com.amazonaws.cognitoidentityprovider#RiskLevelType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "Low", - "name": "Low" - }, - { - "value": "Medium", - "name": "Medium" - }, - { - "value": "High", - "name": "High" + "type": "enum", + "members": { + "Low": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Low" + } + }, + "Medium": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Medium" + } + }, + "High": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "High" } - ] + } } }, "com.amazonaws.cognitoidentityprovider#S3BucketType": { @@ -9971,12 +11577,14 @@ "Enabled": { "target": "com.amazonaws.cognitoidentityprovider#BooleanType", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

        Specifies whether SMS text message MFA is activated. If an MFA type is activated for a\n user, the user will be prompted for MFA during all sign-in attempts, unless device\n tracking is turned on and the device has been trusted.

        " } }, "PreferredMfa": { "target": "com.amazonaws.cognitoidentityprovider#BooleanType", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

        Specifies whether SMS is the preferred MFA method.

        " } } @@ -10003,21 +11611,21 @@ "DeveloperOnlyAttribute": { "target": "com.amazonaws.cognitoidentityprovider#BooleanType", "traits": { - "smithy.api#box": {}, + "smithy.api#default": null, "smithy.api#documentation": "\n

        You should use WriteAttributes in the user pool client to control how attributes can\n be mutated for new use cases instead of using\n DeveloperOnlyAttribute.

        \n
        \n

        Specifies whether the attribute type is developer only. This attribute can only be\n modified by an administrator. Users won't be able to modify this attribute using their\n access token. For example, DeveloperOnlyAttribute can be modified using\n AdminUpdateUserAttributes but can't be updated using UpdateUserAttributes.

        " } }, "Mutable": { "target": "com.amazonaws.cognitoidentityprovider#BooleanType", "traits": { - "smithy.api#box": {}, + "smithy.api#default": null, "smithy.api#documentation": "

        Specifies whether the value of the attribute can be changed.

        \n

        For any user pool attribute that is mapped to an IdP attribute, you must set this\n parameter to true. Amazon Cognito updates mapped attributes when users sign in to\n your application through an IdP. If an attribute is immutable, Amazon Cognito throws an error\n when it attempts to update the attribute. For more information, see Specifying Identity Provider Attribute Mappings for Your User\n Pool.

        " } }, "Required": { "target": "com.amazonaws.cognitoidentityprovider#BooleanType", "traits": { - "smithy.api#box": {}, + "smithy.api#default": null, "smithy.api#documentation": "

        Specifies whether a user pool attribute is required. If the attribute is required and\n the user doesn't provide a value, registration or sign-in will fail.

        " } }, @@ -10413,7 +12021,7 @@ "MfaConfiguration": { "target": "com.amazonaws.cognitoidentityprovider#UserPoolMfaType", "traits": { - "smithy.api#documentation": "

        The MFA configuration. If you set the MfaConfiguration value to ‘ON’, only users who\n have set up an MFA factor can sign in. To learn more, see Adding Multi-Factor\n Authentication (MFA) to a user pool. Valid values include:

        \n
          \n
        • \n

          \n OFF MFA won't be used for any users.

          \n
        • \n
        • \n

          \n ON MFA is required for all users to sign in.

          \n
        • \n
        • \n

          \n OPTIONAL MFA will be required only for individual users who have\n an MFA factor activated.

          \n
        • \n
        " + "smithy.api#documentation": "

        The MFA configuration. If you set the MfaConfiguration value to ‘ON’, only users who\n have set up an MFA factor can sign in. To learn more, see Adding Multi-Factor\n Authentication (MFA) to a user pool. Valid values include:

        \n
          \n
        • \n

          \n OFF MFA won't be used for any users.

          \n
        • \n
        • \n

          \n ON MFA is required for all users to sign in.

          \n
        • \n
        • \n

          \n OPTIONAL MFA will be required only for individual users who have\n an MFA factor activated.

          \n
        • \n
        " } } } @@ -10642,6 +12250,7 @@ "UserConfirmed": { "target": "com.amazonaws.cognitoidentityprovider#BooleanType", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

        A response from the server indicating that a user registration has been\n confirmed.

        ", "smithy.api#required": {} } @@ -10762,6 +12371,7 @@ "Enabled": { "target": "com.amazonaws.cognitoidentityprovider#BooleanType", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

        Specifies whether software token MFA is activated.

        " } } @@ -10776,12 +12386,14 @@ "Enabled": { "target": "com.amazonaws.cognitoidentityprovider#BooleanType", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

        Specifies whether software token MFA is activated. If an MFA type is activated for a\n user, the user will be prompted for MFA during all sign-in attempts, unless device\n tracking is turned on and the device has been trusted.

        " } }, "PreferredMfa": { "target": "com.amazonaws.cognitoidentityprovider#BooleanType", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

        Specifies whether software token MFA is the preferred MFA method.

        " } } @@ -10859,18 +12471,20 @@ } }, "com.amazonaws.cognitoidentityprovider#StatusType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "Enabled", - "name": "Enabled" - }, - { - "value": "Disabled", - "name": "Disabled" + "type": "enum", + "members": { + "Enabled": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Enabled" } - ] + }, + "Disabled": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Disabled" + } + } } }, "com.amazonaws.cognitoidentityprovider#StopUserImportJob": { @@ -11043,6 +12657,7 @@ "com.amazonaws.cognitoidentityprovider#TemporaryPasswordValidityDaysType": { "type": "integer", "traits": { + "smithy.api#default": 0, "smithy.api#range": { "min": 0, "max": 365 @@ -11050,26 +12665,32 @@ } }, "com.amazonaws.cognitoidentityprovider#TimeUnitsType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "seconds", - "name": "SECONDS" - }, - { - "value": "minutes", - "name": "MINUTES" - }, - { - "value": "hours", - "name": "HOURS" - }, - { - "value": "days", - "name": "DAYS" + "type": "enum", + "members": { + "SECONDS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "seconds" + } + }, + "MINUTES": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "minutes" + } + }, + "HOURS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "hours" + } + }, + "DAYS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "days" } - ] + } } }, "com.amazonaws.cognitoidentityprovider#TokenModelType": { @@ -11567,6 +13188,9 @@ "target": "com.amazonaws.cognitoidentityprovider#UpdateIdentityProviderResponse" }, "errors": [ + { + "target": "com.amazonaws.cognitoidentityprovider#ConcurrentModificationException" + }, { "target": "com.amazonaws.cognitoidentityprovider#InternalErrorException" }, @@ -11633,7 +13257,7 @@ "IdentityProvider": { "target": "com.amazonaws.cognitoidentityprovider#IdentityProviderType", "traits": { - "smithy.api#documentation": "

        The IdP object.

        ", + "smithy.api#documentation": "

        The identity provider details.

        ", "smithy.api#required": {} } } @@ -11938,19 +13562,20 @@ "RefreshTokenValidity": { "target": "com.amazonaws.cognitoidentityprovider#RefreshTokenValidityType", "traits": { - "smithy.api#documentation": "

        The refresh token time limit. After this limit expires, your user can't use \n their refresh token. To specify the time unit for RefreshTokenValidity as \n seconds, minutes, hours, or days, \n set a TokenValidityUnits value in your API request.

        \n

        For example, when you set RefreshTokenValidity as 10 and\n TokenValidityUnits as days, your user can refresh their session\n and retrieve new access and ID tokens for 10 days.

        \n

        The default time unit for RefreshTokenValidity in an API request is days. \n You can't set RefreshTokenValidity to 0. If you do, Amazon Cognito overrides the \n value with the default value of 30 days. Valid range is displayed below \n in seconds.

        " + "smithy.api#default": 0, + "smithy.api#documentation": "

        The refresh token time limit. After this limit expires, your user can't use \n their refresh token. To specify the time unit for RefreshTokenValidity as \n seconds, minutes, hours, or days, \n set a TokenValidityUnits value in your API request.

        \n

        For example, when you set RefreshTokenValidity as 10 and\n TokenValidityUnits as days, your user can refresh their session\n and retrieve new access and ID tokens for 10 days.

        \n

        The default time unit for RefreshTokenValidity in an API request is days. \n You can't set RefreshTokenValidity to 0. If you do, Amazon Cognito overrides the \n value with the default value of 30 days. Valid range is displayed below \n in seconds.

        \n

        If you don't specify otherwise in the configuration of your app client, your refresh\n tokens are valid for 30 days.

        " } }, "AccessTokenValidity": { "target": "com.amazonaws.cognitoidentityprovider#AccessTokenValidityType", "traits": { - "smithy.api#documentation": "

        The access token time limit. After this limit expires, your user can't use \n their access token. To specify the time unit for AccessTokenValidity as \n seconds, minutes, hours, or days, \n set a TokenValidityUnits value in your API request.

        \n

        For example, when you set AccessTokenValidity to 10 and\n TokenValidityUnits to hours, your user can authorize access with\n their access token for 10 hours.

        \n

        The default time unit for AccessTokenValidity in an API request is hours. \n Valid range is displayed below in seconds.

        " + "smithy.api#documentation": "

        The access token time limit. After this limit expires, your user can't use \n their access token. To specify the time unit for AccessTokenValidity as \n seconds, minutes, hours, or days, \n set a TokenValidityUnits value in your API request.

        \n

        For example, when you set AccessTokenValidity to 10 and\n TokenValidityUnits to hours, your user can authorize access with\n their access token for 10 hours.

        \n

        The default time unit for AccessTokenValidity in an API request is hours. \n Valid range is displayed below in seconds.

        \n

        If you don't specify otherwise in the configuration of your app client, your access\n tokens are valid for one hour.

        " } }, "IdTokenValidity": { "target": "com.amazonaws.cognitoidentityprovider#IdTokenValidityType", "traits": { - "smithy.api#documentation": "

        The ID token time limit. After this limit expires, your user can't use \n their ID token. To specify the time unit for IdTokenValidity as \n seconds, minutes, hours, or days, \n set a TokenValidityUnits value in your API request.

        \n

        For example, when you set IdTokenValidity as 10 and\n TokenValidityUnits as hours, your user can authenticate their \n session with their ID token for 10 hours.

        \n

        The default time unit for AccessTokenValidity in an API request is hours. \n Valid range is displayed below in seconds.

        " + "smithy.api#documentation": "

        The ID token time limit. After this limit expires, your user can't use \n their ID token. To specify the time unit for IdTokenValidity as \n seconds, minutes, hours, or days, \n set a TokenValidityUnits value in your API request.

        \n

        For example, when you set IdTokenValidity as 10 and\n TokenValidityUnits as hours, your user can authenticate their \n session with their ID token for 10 hours.

        \n

        The default time unit for AccessTokenValidity in an API request is hours. \n Valid range is displayed below in seconds.

        \n

        If you don't specify otherwise in the configuration of your app client, your ID\n tokens are valid for one hour.

        " } }, "TokenValidityUnits": { @@ -11974,7 +13599,7 @@ "ExplicitAuthFlows": { "target": "com.amazonaws.cognitoidentityprovider#ExplicitAuthFlowsListType", "traits": { - "smithy.api#documentation": "

        The authentication flows that are supported by the user pool clients. Flow names\n without the ALLOW_ prefix are no longer supported in favor of new names\n with the ALLOW_ prefix. Note that values with ALLOW_ prefix\n must be used only along with values with the ALLOW_ prefix.

        \n

        Valid values include:

        \n
          \n
        • \n

          \n ALLOW_ADMIN_USER_PASSWORD_AUTH: Enable admin based user password\n authentication flow ADMIN_USER_PASSWORD_AUTH. This setting replaces\n the ADMIN_NO_SRP_AUTH setting. With this authentication flow, Amazon Cognito\n receives the password in the request instead of using the Secure Remote Password\n (SRP) protocol to verify passwords.

          \n
        • \n
        • \n

          \n ALLOW_CUSTOM_AUTH: Enable Lambda trigger based\n authentication.

          \n
        • \n
        • \n

          \n ALLOW_USER_PASSWORD_AUTH: Enable user password-based\n authentication. In this flow, Amazon Cognito receives the password in the request instead\n of using the SRP protocol to verify passwords.

          \n
        • \n
        • \n

          \n ALLOW_USER_SRP_AUTH: Enable SRP-based authentication.

          \n
        • \n
        • \n

          \n ALLOW_REFRESH_TOKEN_AUTH: Enable authflow to refresh\n tokens.

          \n
        • \n
        " + "smithy.api#documentation": "

        The authentication flows that you want your user pool client to support. For each app client in your user pool, you can sign in \nyour users with any combination of one or more flows, including with a user name and Secure Remote Password (SRP), a user name and \npassword, or a custom authentication process that you define with Lambda functions.

        \n \n

        If you don't specify a value for ExplicitAuthFlows, your user client supports ALLOW_REFRESH_TOKEN_AUTH, ALLOW_USER_SRP_AUTH, and ALLOW_CUSTOM_AUTH.

        \n
        \n

        Valid values include:

        \n
          \n
        • \n

          \n ALLOW_ADMIN_USER_PASSWORD_AUTH: Enable admin based user password\n authentication flow ADMIN_USER_PASSWORD_AUTH. This setting replaces\n the ADMIN_NO_SRP_AUTH setting. With this authentication flow, your app\n passes a user name and password to Amazon Cognito in the request, instead of using the Secure \n Remote Password (SRP) protocol to securely transmit the password.

          \n
        • \n
        • \n

          \n ALLOW_CUSTOM_AUTH: Enable Lambda trigger based\n authentication.

          \n
        • \n
        • \n

          \n ALLOW_USER_PASSWORD_AUTH: Enable user password-based\n authentication. In this flow, Amazon Cognito receives the password in the request instead\n of using the SRP protocol to verify passwords.

          \n
        • \n
        • \n

          \n ALLOW_USER_SRP_AUTH: Enable SRP-based authentication.

          \n
        • \n
        • \n

          \n ALLOW_REFRESH_TOKEN_AUTH: Enable authflow to refresh\n tokens.

          \n
        • \n
        \n

        In some environments, you will see the values ADMIN_NO_SRP_AUTH, CUSTOM_AUTH_FLOW_ONLY, or USER_PASSWORD_AUTH. \nYou can't assign these legacy ExplicitAuthFlows values to user pool clients at the same time as values that begin with ALLOW_,\nlike ALLOW_USER_SRP_AUTH.

        " } }, "SupportedIdentityProviders": { @@ -12016,6 +13641,7 @@ "AllowedOAuthFlowsUserPoolClient": { "target": "com.amazonaws.cognitoidentityprovider#BooleanType", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

        Set to true if the client is allowed to follow the OAuth protocol when interacting\n with Amazon Cognito user pools.

        " } }, @@ -12156,6 +13782,12 @@ "smithy.api#documentation": "

        A container with the policies you want to update in a user pool.

        " } }, + "DeletionProtection": { + "target": "com.amazonaws.cognitoidentityprovider#DeletionProtectionType", + "traits": { + "smithy.api#documentation": "

        When active, DeletionProtection prevents accidental deletion of your user\n pool. Before you can delete a user pool that you have protected against deletion, you\n must deactivate this feature.

        \n

        When you try to delete a protected user pool in a DeleteUserPool API request, \n Amazon Cognito returns an InvalidParameterException error. To delete a protected user pool, \n send a new DeleteUserPool request after you deactivate deletion protection in an \n UpdateUserPool API request.

        " + } + }, "LambdaConfig": { "target": "com.amazonaws.cognitoidentityprovider#LambdaConfigType", "traits": { @@ -12344,42 +13976,56 @@ } }, "com.amazonaws.cognitoidentityprovider#UserImportJobStatusType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "Created", - "name": "Created" - }, - { - "value": "Pending", - "name": "Pending" - }, - { - "value": "InProgress", - "name": "InProgress" - }, - { - "value": "Stopping", - "name": "Stopping" - }, - { - "value": "Expired", - "name": "Expired" - }, - { - "value": "Stopped", - "name": "Stopped" - }, - { - "value": "Failed", - "name": "Failed" - }, - { - "value": "Succeeded", - "name": "Succeeded" + "type": "enum", + "members": { + "Created": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Created" + } + }, + "Pending": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Pending" + } + }, + "InProgress": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "InProgress" + } + }, + "Stopping": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Stopping" + } + }, + "Expired": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Expired" + } + }, + "Stopped": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Stopped" + } + }, + "Failed": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Failed" } - ] + }, + "Succeeded": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Succeeded" + } + } } }, "com.amazonaws.cognitoidentityprovider#UserImportJobType": { @@ -12442,18 +14088,21 @@ "ImportedUsers": { "target": "com.amazonaws.cognitoidentityprovider#LongType", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "

        The number of users that were successfully imported.

        " } }, "SkippedUsers": { "target": "com.amazonaws.cognitoidentityprovider#LongType", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "

        The number of users that were skipped.

        " } }, "FailedUsers": { "target": "com.amazonaws.cognitoidentityprovider#LongType", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "

        The number of users that couldn't be imported.

        " } }, @@ -12636,19 +14285,20 @@ "RefreshTokenValidity": { "target": "com.amazonaws.cognitoidentityprovider#RefreshTokenValidityType", "traits": { - "smithy.api#documentation": "

        The refresh token time limit. After this limit expires, your user can't use \n their refresh token. To specify the time unit for RefreshTokenValidity as \n seconds, minutes, hours, or days, \n set a TokenValidityUnits value in your API request.

        \n

        For example, when you set RefreshTokenValidity as 10 and\n TokenValidityUnits as days, your user can refresh their session\n and retrieve new access and ID tokens for 10 days.

        \n

        The default time unit for RefreshTokenValidity in an API request is days. \n You can't set RefreshTokenValidity to 0. If you do, Amazon Cognito overrides the \n value with the default value of 30 days. Valid range is displayed below \n in seconds.

        " + "smithy.api#default": 0, + "smithy.api#documentation": "

        The refresh token time limit. After this limit expires, your user can't use \n their refresh token. To specify the time unit for RefreshTokenValidity as \n seconds, minutes, hours, or days, \n set a TokenValidityUnits value in your API request.

        \n

        For example, when you set RefreshTokenValidity as 10 and\n TokenValidityUnits as days, your user can refresh their session\n and retrieve new access and ID tokens for 10 days.

        \n

        The default time unit for RefreshTokenValidity in an API request is days. \n You can't set RefreshTokenValidity to 0. If you do, Amazon Cognito overrides the \n value with the default value of 30 days. Valid range is displayed below \n in seconds.

        \n

        If you don't specify otherwise in the configuration of your app client, your refresh\n tokens are valid for 30 days.

        " } }, "AccessTokenValidity": { "target": "com.amazonaws.cognitoidentityprovider#AccessTokenValidityType", "traits": { - "smithy.api#documentation": "

        The access token time limit. After this limit expires, your user can't use \n their access token. To specify the time unit for AccessTokenValidity as \n seconds, minutes, hours, or days, \n set a TokenValidityUnits value in your API request.

        \n

        For example, when you set AccessTokenValidity to 10 and\n TokenValidityUnits to hours, your user can authorize access with\n their access token for 10 hours.

        \n

        The default time unit for AccessTokenValidity in an API request is hours. \n Valid range is displayed below in seconds.

        " + "smithy.api#documentation": "

        The access token time limit. After this limit expires, your user can't use \n their access token. To specify the time unit for AccessTokenValidity as \n seconds, minutes, hours, or days, \n set a TokenValidityUnits value in your API request.

        \n

        For example, when you set AccessTokenValidity to 10 and\n TokenValidityUnits to hours, your user can authorize access with\n their access token for 10 hours.

        \n

        The default time unit for AccessTokenValidity in an API request is hours. \n Valid range is displayed below in seconds.

        \n

        If you don't specify otherwise in the configuration of your app client, your access\n tokens are valid for one hour.

        " } }, "IdTokenValidity": { "target": "com.amazonaws.cognitoidentityprovider#IdTokenValidityType", "traits": { - "smithy.api#documentation": "

        The ID token time limit. After this limit expires, your user can't use \n their ID token. To specify the time unit for IdTokenValidity as \n seconds, minutes, hours, or days, \n set a TokenValidityUnits value in your API request.

        \n

        For example, when you set IdTokenValidity as 10 and\n TokenValidityUnits as hours, your user can authenticate their \n session with their ID token for 10 hours.

        \n

        The default time unit for AccessTokenValidity in an API request is hours. \n Valid range is displayed below in seconds.

        " + "smithy.api#documentation": "

        The ID token time limit. After this limit expires, your user can't use \n their ID token. To specify the time unit for IdTokenValidity as \n seconds, minutes, hours, or days, \n set a TokenValidityUnits value in your API request.

        \n

        For example, when you set IdTokenValidity as 10 and\n TokenValidityUnits as hours, your user can authenticate their \n session with their ID token for 10 hours.

        \n

        The default time unit for AccessTokenValidity in an API request is hours. \n Valid range is displayed below in seconds.

        \n

        If you don't specify otherwise in the configuration of your app client, your ID\n tokens are valid for one hour.

        " } }, "TokenValidityUnits": { @@ -12672,7 +14322,7 @@ "ExplicitAuthFlows": { "target": "com.amazonaws.cognitoidentityprovider#ExplicitAuthFlowsListType", "traits": { - "smithy.api#documentation": "

        The authentication flows that are supported by the user pool clients. Flow names\n without the ALLOW_ prefix are no longer supported in favor of new names\n with the ALLOW_ prefix. Note that values with ALLOW_ prefix\n must be used only along with values including the ALLOW_ prefix.

        \n

        Valid values include:

        \n
          \n
        • \n

          \n ALLOW_ADMIN_USER_PASSWORD_AUTH: Enable admin based user password\n authentication flow ADMIN_USER_PASSWORD_AUTH. This setting replaces\n the ADMIN_NO_SRP_AUTH setting. With this authentication flow, Amazon Cognito\n receives the password in the request instead of using the Secure Remote Password\n (SRP) protocol to verify passwords.

          \n
        • \n
        • \n

          \n ALLOW_CUSTOM_AUTH: Enable Lambda trigger based\n authentication.

          \n
        • \n
        • \n

          \n ALLOW_USER_PASSWORD_AUTH: Enable user password-based\n authentication. In this flow, Amazon Cognito receives the password in the request instead\n of using the SRP protocol to verify passwords.

          \n
        • \n
        • \n

          \n ALLOW_USER_SRP_AUTH: Enable SRP-based authentication.

          \n
        • \n
        • \n

          \n ALLOW_REFRESH_TOKEN_AUTH: Enable authflow to refresh\n tokens.

          \n
        • \n
        " + "smithy.api#documentation": "

        The authentication flows that you want your user pool client to support. For each app client in your user pool, you can sign in \nyour users with any combination of one or more flows, including with a user name and Secure Remote Password (SRP), a user name and \npassword, or a custom authentication process that you define with Lambda functions.

        \n \n

        If you don't specify a value for ExplicitAuthFlows, your user client supports ALLOW_REFRESH_TOKEN_AUTH, ALLOW_USER_SRP_AUTH, and ALLOW_CUSTOM_AUTH.

        \n
        \n

        Valid values include:

        \n
          \n
        • \n

          \n ALLOW_ADMIN_USER_PASSWORD_AUTH: Enable admin based user password\n authentication flow ADMIN_USER_PASSWORD_AUTH. This setting replaces\n the ADMIN_NO_SRP_AUTH setting. With this authentication flow, your app\n passes a user name and password to Amazon Cognito in the request, instead of using the Secure \n Remote Password (SRP) protocol to securely transmit the password.

          \n
        • \n
        • \n

          \n ALLOW_CUSTOM_AUTH: Enable Lambda trigger based\n authentication.

          \n
        • \n
        • \n

          \n ALLOW_USER_PASSWORD_AUTH: Enable user password-based\n authentication. In this flow, Amazon Cognito receives the password in the request instead\n of using the SRP protocol to verify passwords.

          \n
        • \n
        • \n

          \n ALLOW_USER_SRP_AUTH: Enable SRP-based authentication.

          \n
        • \n
        • \n

          \n ALLOW_REFRESH_TOKEN_AUTH: Enable authflow to refresh\n tokens.

          \n
        • \n
        \n

        In some environments, you will see the values ADMIN_NO_SRP_AUTH, CUSTOM_AUTH_FLOW_ONLY, or USER_PASSWORD_AUTH. \nYou can't assign these legacy ExplicitAuthFlows values to user pool clients at the same time as values that begin with ALLOW_,\nlike ALLOW_USER_SRP_AUTH.

        " } }, "SupportedIdentityProviders": { @@ -12714,7 +14364,7 @@ "AllowedOAuthFlowsUserPoolClient": { "target": "com.amazonaws.cognitoidentityprovider#BooleanType", "traits": { - "smithy.api#box": {}, + "smithy.api#default": null, "smithy.api#documentation": "

        Set to true if the client is allowed to follow the OAuth protocol when interacting\n with Amazon Cognito user pools.

        " } }, @@ -12814,22 +14464,26 @@ } }, "com.amazonaws.cognitoidentityprovider#UserPoolMfaType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "OFF", - "name": "OFF" - }, - { - "value": "ON", - "name": "ON" - }, - { - "value": "OPTIONAL", - "name": "OPTIONAL" + "type": "enum", + "members": { + "OFF": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "OFF" + } + }, + "ON": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ON" + } + }, + "OPTIONAL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "OPTIONAL" } - ] + } } }, "com.amazonaws.cognitoidentityprovider#UserPoolNameType": { @@ -12905,6 +14559,12 @@ "smithy.api#documentation": "

        The policies associated with the user pool.

        " } }, + "DeletionProtection": { + "target": "com.amazonaws.cognitoidentityprovider#DeletionProtectionType", + "traits": { + "smithy.api#documentation": "

        When active, DeletionProtection prevents accidental deletion of your user\n pool. Before you can delete a user pool that you have protected against deletion, you\n must deactivate this feature.

        \n

        When you try to delete a protected user pool in a DeleteUserPool API request, \n Amazon Cognito returns an InvalidParameterException error. To delete a protected user pool, \n send a new DeleteUserPool request after you deactivate deletion protection in an \n UpdateUserPool API request.

        " + } + }, "LambdaConfig": { "target": "com.amazonaws.cognitoidentityprovider#LambdaConfigType", "traits": { @@ -13004,6 +14664,7 @@ "EstimatedNumberOfUsers": { "target": "com.amazonaws.cognitoidentityprovider#IntegerType", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "

        A number estimating the size of the user pool.

        " } }, @@ -13085,38 +14746,50 @@ } }, "com.amazonaws.cognitoidentityprovider#UserStatusType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "UNCONFIRMED", - "name": "UNCONFIRMED" - }, - { - "value": "CONFIRMED", - "name": "CONFIRMED" - }, - { - "value": "ARCHIVED", - "name": "ARCHIVED" - }, - { - "value": "COMPROMISED", - "name": "COMPROMISED" - }, - { - "value": "UNKNOWN", - "name": "UNKNOWN" - }, - { - "value": "RESET_REQUIRED", - "name": "RESET_REQUIRED" - }, - { - "value": "FORCE_CHANGE_PASSWORD", - "name": "FORCE_CHANGE_PASSWORD" + "type": "enum", + "members": { + "UNCONFIRMED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UNCONFIRMED" + } + }, + "CONFIRMED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CONFIRMED" + } + }, + "ARCHIVED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ARCHIVED" + } + }, + "COMPROMISED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "COMPROMISED" + } + }, + "UNKNOWN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UNKNOWN" + } + }, + "RESET_REQUIRED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "RESET_REQUIRED" + } + }, + "FORCE_CHANGE_PASSWORD": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FORCE_CHANGE_PASSWORD" } - ] + } } }, "com.amazonaws.cognitoidentityprovider#UserType": { @@ -13149,6 +14822,7 @@ "Enabled": { "target": "com.amazonaws.cognitoidentityprovider#BooleanType", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

        Specifies whether the user is enabled.

        " } }, @@ -13170,18 +14844,20 @@ } }, "com.amazonaws.cognitoidentityprovider#UsernameAttributeType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "phone_number", - "name": "PHONE_NUMBER" - }, - { - "value": "email", - "name": "EMAIL" + "type": "enum", + "members": { + "PHONE_NUMBER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "phone_number" + } + }, + "EMAIL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "email" } - ] + } } }, "com.amazonaws.cognitoidentityprovider#UsernameAttributesListType": { @@ -13283,18 +14959,20 @@ } }, "com.amazonaws.cognitoidentityprovider#VerifiedAttributeType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "phone_number", - "name": "PHONE_NUMBER" - }, - { - "value": "email", - "name": "EMAIL" + "type": "enum", + "members": { + "PHONE_NUMBER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "phone_number" + } + }, + "EMAIL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "email" } - ] + } } }, "com.amazonaws.cognitoidentityprovider#VerifiedAttributesListType": { @@ -13404,18 +15082,20 @@ } }, "com.amazonaws.cognitoidentityprovider#VerifySoftwareTokenResponseType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "SUCCESS", - "name": "SUCCESS" - }, - { - "value": "ERROR", - "name": "ERROR" + "type": "enum", + "members": { + "SUCCESS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SUCCESS" } - ] + }, + "ERROR": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ERROR" + } + } } }, "com.amazonaws.cognitoidentityprovider#VerifyUserAttribute": { @@ -13510,10 +15190,7 @@ } }, "com.amazonaws.cognitoidentityprovider#WrappedBooleanType": { - "type": "boolean", - "traits": { - "smithy.api#box": {} - } + "type": "boolean" } } }