diff --git a/clients/client-cloudfront/package.json b/clients/client-cloudfront/package.json index d9e7343807eb2..276c8b849861a 100644 --- a/clients/client-cloudfront/package.json +++ b/clients/client-cloudfront/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-cloudfront/src/CloudFrontClient.ts b/clients/client-cloudfront/src/CloudFrontClient.ts index 2a2b01d97c381..6ab384777cf4c 100644 --- a/clients/client-cloudfront/src/CloudFrontClient.ts +++ b/clients/client-cloudfront/src/CloudFrontClient.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, @@ -41,13 +35,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, @@ -337,6 +331,12 @@ import { UpdateStreamingDistributionCommandInput, UpdateStreamingDistributionCommandOutput, } from "./commands/UpdateStreamingDistributionCommand"; +import { + ClientInputEndpointParameters, + ClientResolvedEndpointParameters, + EndpointParameters, + resolveClientEndpointParameters, +} from "./endpoint/EndpointParameters"; import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig"; export type ServiceInputTypes = @@ -648,12 +648,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 @@ -669,11 +663,12 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__ type CloudFrontClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & - EndpointsInputConfig & + EndpointInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & - UserAgentInputConfig; + UserAgentInputConfig & + ClientInputEndpointParameters; /** * The configuration interface of CloudFrontClient class constructor that set the region, credentials and other options. */ @@ -682,11 +677,12 @@ export interface CloudFrontClientConfig extends CloudFrontClientConfigType {} type CloudFrontClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required & RegionResolvedConfig & - EndpointsResolvedConfig & + EndpointResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & - UserAgentResolvedConfig; + UserAgentResolvedConfig & + ClientResolvedEndpointParameters; /** * The resolved configuration interface of CloudFrontClient class. This is resolved and normalized from the {@link CloudFrontClientConfig | constructor configuration interface}. */ @@ -711,14 +707,15 @@ export class CloudFrontClient extends __Client< constructor(configuration: CloudFrontClientConfig) { 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-cloudfront/src/commands/AssociateAliasCommand.ts b/clients/client-cloudfront/src/commands/AssociateAliasCommand.ts index 9fbeff09b23da..f50e3e3c19287 100644 --- a/clients/client-cloudfront/src/commands/AssociateAliasCommand.ts +++ b/clients/client-cloudfront/src/commands/AssociateAliasCommand.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"; @@ -57,6 +58,15 @@ export class AssociateAliasCommand 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: AssociateAliasCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class AssociateAliasCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AssociateAliasCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/CreateCachePolicyCommand.ts b/clients/client-cloudfront/src/commands/CreateCachePolicyCommand.ts index 269d5bc6c6416..4c9b142aef30d 100644 --- a/clients/client-cloudfront/src/commands/CreateCachePolicyCommand.ts +++ b/clients/client-cloudfront/src/commands/CreateCachePolicyCommand.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"; @@ -72,6 +73,15 @@ export class CreateCachePolicyCommand 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: CreateCachePolicyCommandInput) { // Start section: command_constructor super(); @@ -87,6 +97,9 @@ export class CreateCachePolicyCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateCachePolicyCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/CreateCloudFrontOriginAccessIdentityCommand.ts b/clients/client-cloudfront/src/commands/CreateCloudFrontOriginAccessIdentityCommand.ts index c494c114aae8b..90d2c5a018eea 100644 --- a/clients/client-cloudfront/src/commands/CreateCloudFrontOriginAccessIdentityCommand.ts +++ b/clients/client-cloudfront/src/commands/CreateCloudFrontOriginAccessIdentityCommand.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"; @@ -57,6 +58,15 @@ export class CreateCloudFrontOriginAccessIdentityCommand 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: CreateCloudFrontOriginAccessIdentityCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class CreateCloudFrontOriginAccessIdentityCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateCloudFrontOriginAccessIdentityCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/CreateDistributionCommand.ts b/clients/client-cloudfront/src/commands/CreateDistributionCommand.ts index 3d468fa8183b2..e9fdd9428bc74 100644 --- a/clients/client-cloudfront/src/commands/CreateDistributionCommand.ts +++ b/clients/client-cloudfront/src/commands/CreateDistributionCommand.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"; @@ -64,6 +65,15 @@ export class CreateDistributionCommand 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: CreateDistributionCommandInput) { // Start section: command_constructor super(); @@ -79,6 +89,9 @@ export class CreateDistributionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateDistributionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/CreateDistributionWithTagsCommand.ts b/clients/client-cloudfront/src/commands/CreateDistributionWithTagsCommand.ts index ac25752e74b83..04cd3a4cac4f0 100644 --- a/clients/client-cloudfront/src/commands/CreateDistributionWithTagsCommand.ts +++ b/clients/client-cloudfront/src/commands/CreateDistributionWithTagsCommand.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"; @@ -52,6 +53,15 @@ export class CreateDistributionWithTagsCommand 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: CreateDistributionWithTagsCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class CreateDistributionWithTagsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateDistributionWithTagsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/CreateFieldLevelEncryptionConfigCommand.ts b/clients/client-cloudfront/src/commands/CreateFieldLevelEncryptionConfigCommand.ts index 289eec5313c62..4a04f04f24190 100644 --- a/clients/client-cloudfront/src/commands/CreateFieldLevelEncryptionConfigCommand.ts +++ b/clients/client-cloudfront/src/commands/CreateFieldLevelEncryptionConfigCommand.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"; @@ -54,6 +55,15 @@ export class CreateFieldLevelEncryptionConfigCommand 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: CreateFieldLevelEncryptionConfigCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class CreateFieldLevelEncryptionConfigCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateFieldLevelEncryptionConfigCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/CreateFieldLevelEncryptionProfileCommand.ts b/clients/client-cloudfront/src/commands/CreateFieldLevelEncryptionProfileCommand.ts index 29988835e4810..3e11d041484c1 100644 --- a/clients/client-cloudfront/src/commands/CreateFieldLevelEncryptionProfileCommand.ts +++ b/clients/client-cloudfront/src/commands/CreateFieldLevelEncryptionProfileCommand.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"; @@ -54,6 +55,15 @@ export class CreateFieldLevelEncryptionProfileCommand 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: CreateFieldLevelEncryptionProfileCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class CreateFieldLevelEncryptionProfileCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateFieldLevelEncryptionProfileCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/CreateFunctionCommand.ts b/clients/client-cloudfront/src/commands/CreateFunctionCommand.ts index 0c44d4bc31eaa..646a0bd7ab9f1 100644 --- a/clients/client-cloudfront/src/commands/CreateFunctionCommand.ts +++ b/clients/client-cloudfront/src/commands/CreateFunctionCommand.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 CreateFunctionCommand 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: CreateFunctionCommandInput) { // Start section: command_constructor super(); @@ -77,6 +87,9 @@ export class CreateFunctionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateFunctionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/CreateInvalidationCommand.ts b/clients/client-cloudfront/src/commands/CreateInvalidationCommand.ts index b3b8c6d48ba76..319c00fd934b9 100644 --- a/clients/client-cloudfront/src/commands/CreateInvalidationCommand.ts +++ b/clients/client-cloudfront/src/commands/CreateInvalidationCommand.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"; @@ -52,6 +53,15 @@ export class CreateInvalidationCommand 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: CreateInvalidationCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class CreateInvalidationCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateInvalidationCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/CreateKeyGroupCommand.ts b/clients/client-cloudfront/src/commands/CreateKeyGroupCommand.ts index 2eb32991d539b..85f4333cb1c2e 100644 --- a/clients/client-cloudfront/src/commands/CreateKeyGroupCommand.ts +++ b/clients/client-cloudfront/src/commands/CreateKeyGroupCommand.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 CreateKeyGroupCommand 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: CreateKeyGroupCommandInput) { // Start section: command_constructor super(); @@ -74,6 +84,9 @@ export class CreateKeyGroupCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateKeyGroupCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/CreateMonitoringSubscriptionCommand.ts b/clients/client-cloudfront/src/commands/CreateMonitoringSubscriptionCommand.ts index 8271a2378746d..0b6e0ea4b2cda 100644 --- a/clients/client-cloudfront/src/commands/CreateMonitoringSubscriptionCommand.ts +++ b/clients/client-cloudfront/src/commands/CreateMonitoringSubscriptionCommand.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"; @@ -57,6 +58,15 @@ export class CreateMonitoringSubscriptionCommand 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: CreateMonitoringSubscriptionCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class CreateMonitoringSubscriptionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateMonitoringSubscriptionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/CreateOriginAccessControlCommand.ts b/clients/client-cloudfront/src/commands/CreateOriginAccessControlCommand.ts index fc64a297553ee..4d8fc8d1001a0 100644 --- a/clients/client-cloudfront/src/commands/CreateOriginAccessControlCommand.ts +++ b/clients/client-cloudfront/src/commands/CreateOriginAccessControlCommand.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"; @@ -58,6 +59,15 @@ export class CreateOriginAccessControlCommand 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: CreateOriginAccessControlCommandInput) { // Start section: command_constructor super(); @@ -73,6 +83,9 @@ export class CreateOriginAccessControlCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateOriginAccessControlCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/CreateOriginRequestPolicyCommand.ts b/clients/client-cloudfront/src/commands/CreateOriginRequestPolicyCommand.ts index 563b6d2cc398d..38e42222a2709 100644 --- a/clients/client-cloudfront/src/commands/CreateOriginRequestPolicyCommand.ts +++ b/clients/client-cloudfront/src/commands/CreateOriginRequestPolicyCommand.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"; @@ -76,6 +77,15 @@ export class CreateOriginRequestPolicyCommand 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: CreateOriginRequestPolicyCommandInput) { // Start section: command_constructor super(); @@ -91,6 +101,9 @@ export class CreateOriginRequestPolicyCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateOriginRequestPolicyCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/CreatePublicKeyCommand.ts b/clients/client-cloudfront/src/commands/CreatePublicKeyCommand.ts index 60589eb7c1efc..b819c2aceefd2 100644 --- a/clients/client-cloudfront/src/commands/CreatePublicKeyCommand.ts +++ b/clients/client-cloudfront/src/commands/CreatePublicKeyCommand.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"; @@ -52,6 +53,15 @@ export class CreatePublicKeyCommand 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: CreatePublicKeyCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class CreatePublicKeyCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreatePublicKeyCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/CreateRealtimeLogConfigCommand.ts b/clients/client-cloudfront/src/commands/CreateRealtimeLogConfigCommand.ts index df5e3cb8f030a..f6ac3c4af4002 100644 --- a/clients/client-cloudfront/src/commands/CreateRealtimeLogConfigCommand.ts +++ b/clients/client-cloudfront/src/commands/CreateRealtimeLogConfigCommand.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"; @@ -55,6 +56,15 @@ export class CreateRealtimeLogConfigCommand 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: CreateRealtimeLogConfigCommandInput) { // Start section: command_constructor super(); @@ -70,6 +80,9 @@ export class CreateRealtimeLogConfigCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateRealtimeLogConfigCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/CreateResponseHeadersPolicyCommand.ts b/clients/client-cloudfront/src/commands/CreateResponseHeadersPolicyCommand.ts index d61f3a8b547c3..d2eba1cbc1cb3 100644 --- a/clients/client-cloudfront/src/commands/CreateResponseHeadersPolicyCommand.ts +++ b/clients/client-cloudfront/src/commands/CreateResponseHeadersPolicyCommand.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 CreateResponseHeadersPolicyCommand 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: CreateResponseHeadersPolicyCommandInput) { // Start section: command_constructor super(); @@ -74,6 +84,9 @@ export class CreateResponseHeadersPolicyCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateResponseHeadersPolicyCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/CreateStreamingDistributionCommand.ts b/clients/client-cloudfront/src/commands/CreateStreamingDistributionCommand.ts index 5b0e89be93ce6..67b1c5257b059 100644 --- a/clients/client-cloudfront/src/commands/CreateStreamingDistributionCommand.ts +++ b/clients/client-cloudfront/src/commands/CreateStreamingDistributionCommand.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"; @@ -54,6 +55,15 @@ export class CreateStreamingDistributionCommand 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: CreateStreamingDistributionCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class CreateStreamingDistributionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateStreamingDistributionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/CreateStreamingDistributionWithTagsCommand.ts b/clients/client-cloudfront/src/commands/CreateStreamingDistributionWithTagsCommand.ts index 47de4ee0069ae..68d5f4857cf08 100644 --- a/clients/client-cloudfront/src/commands/CreateStreamingDistributionWithTagsCommand.ts +++ b/clients/client-cloudfront/src/commands/CreateStreamingDistributionWithTagsCommand.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 CreateStreamingDistributionWithTagsCommand 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: CreateStreamingDistributionWithTagsCommandInput) { // Start section: command_constructor super(); @@ -71,6 +81,9 @@ export class CreateStreamingDistributionWithTagsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateStreamingDistributionWithTagsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/DeleteCachePolicyCommand.ts b/clients/client-cloudfront/src/commands/DeleteCachePolicyCommand.ts index 60bbf5956ae5a..21ca1fc18cde5 100644 --- a/clients/client-cloudfront/src/commands/DeleteCachePolicyCommand.ts +++ b/clients/client-cloudfront/src/commands/DeleteCachePolicyCommand.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 DeleteCachePolicyCommand 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: DeleteCachePolicyCommandInput) { // Start section: command_constructor super(); @@ -68,6 +78,9 @@ export class DeleteCachePolicyCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteCachePolicyCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/DeleteCloudFrontOriginAccessIdentityCommand.ts b/clients/client-cloudfront/src/commands/DeleteCloudFrontOriginAccessIdentityCommand.ts index d00594d12b1f5..a046139f19620 100644 --- a/clients/client-cloudfront/src/commands/DeleteCloudFrontOriginAccessIdentityCommand.ts +++ b/clients/client-cloudfront/src/commands/DeleteCloudFrontOriginAccessIdentityCommand.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"; @@ -50,6 +51,15 @@ export class DeleteCloudFrontOriginAccessIdentityCommand 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: DeleteCloudFrontOriginAccessIdentityCommandInput) { // Start section: command_constructor super(); @@ -65,6 +75,9 @@ export class DeleteCloudFrontOriginAccessIdentityCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteCloudFrontOriginAccessIdentityCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/DeleteDistributionCommand.ts b/clients/client-cloudfront/src/commands/DeleteDistributionCommand.ts index 1f0dba9390718..a06628690f952 100644 --- a/clients/client-cloudfront/src/commands/DeleteDistributionCommand.ts +++ b/clients/client-cloudfront/src/commands/DeleteDistributionCommand.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"; @@ -47,6 +48,15 @@ export class DeleteDistributionCommand 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: DeleteDistributionCommandInput) { // Start section: command_constructor super(); @@ -62,6 +72,9 @@ export class DeleteDistributionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteDistributionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/DeleteFieldLevelEncryptionConfigCommand.ts b/clients/client-cloudfront/src/commands/DeleteFieldLevelEncryptionConfigCommand.ts index 1c961aec418d1..3754727d9d2ed 100644 --- a/clients/client-cloudfront/src/commands/DeleteFieldLevelEncryptionConfigCommand.ts +++ b/clients/client-cloudfront/src/commands/DeleteFieldLevelEncryptionConfigCommand.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"; @@ -50,6 +51,15 @@ export class DeleteFieldLevelEncryptionConfigCommand 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: DeleteFieldLevelEncryptionConfigCommandInput) { // Start section: command_constructor super(); @@ -65,6 +75,9 @@ export class DeleteFieldLevelEncryptionConfigCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteFieldLevelEncryptionConfigCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/DeleteFieldLevelEncryptionProfileCommand.ts b/clients/client-cloudfront/src/commands/DeleteFieldLevelEncryptionProfileCommand.ts index 8f9b303a31a50..6837d97d6d68a 100644 --- a/clients/client-cloudfront/src/commands/DeleteFieldLevelEncryptionProfileCommand.ts +++ b/clients/client-cloudfront/src/commands/DeleteFieldLevelEncryptionProfileCommand.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"; @@ -50,6 +51,15 @@ export class DeleteFieldLevelEncryptionProfileCommand 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: DeleteFieldLevelEncryptionProfileCommandInput) { // Start section: command_constructor super(); @@ -65,6 +75,9 @@ export class DeleteFieldLevelEncryptionProfileCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteFieldLevelEncryptionProfileCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/DeleteFunctionCommand.ts b/clients/client-cloudfront/src/commands/DeleteFunctionCommand.ts index 36e9c339fce7d..71087e2b862fa 100644 --- a/clients/client-cloudfront/src/commands/DeleteFunctionCommand.ts +++ b/clients/client-cloudfront/src/commands/DeleteFunctionCommand.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 DeleteFunctionCommand 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: DeleteFunctionCommandInput) { // Start section: command_constructor super(); @@ -68,6 +78,9 @@ export class DeleteFunctionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteFunctionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/DeleteKeyGroupCommand.ts b/clients/client-cloudfront/src/commands/DeleteKeyGroupCommand.ts index a7f1f46ff8300..f5ce1cfd0a26a 100644 --- a/clients/client-cloudfront/src/commands/DeleteKeyGroupCommand.ts +++ b/clients/client-cloudfront/src/commands/DeleteKeyGroupCommand.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 DeleteKeyGroupCommand 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: DeleteKeyGroupCommandInput) { // Start section: command_constructor super(); @@ -68,6 +78,9 @@ export class DeleteKeyGroupCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteKeyGroupCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/DeleteMonitoringSubscriptionCommand.ts b/clients/client-cloudfront/src/commands/DeleteMonitoringSubscriptionCommand.ts index a3b15878d1cc2..20ef9d80bc290 100644 --- a/clients/client-cloudfront/src/commands/DeleteMonitoringSubscriptionCommand.ts +++ b/clients/client-cloudfront/src/commands/DeleteMonitoringSubscriptionCommand.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"; @@ -54,6 +55,15 @@ export class DeleteMonitoringSubscriptionCommand 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: DeleteMonitoringSubscriptionCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class DeleteMonitoringSubscriptionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteMonitoringSubscriptionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/DeleteOriginAccessControlCommand.ts b/clients/client-cloudfront/src/commands/DeleteOriginAccessControlCommand.ts index 9eedecd20dc9e..079cb8c25691b 100644 --- a/clients/client-cloudfront/src/commands/DeleteOriginAccessControlCommand.ts +++ b/clients/client-cloudfront/src/commands/DeleteOriginAccessControlCommand.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 DeleteOriginAccessControlCommand 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: DeleteOriginAccessControlCommandInput) { // Start section: command_constructor super(); @@ -68,6 +78,9 @@ export class DeleteOriginAccessControlCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteOriginAccessControlCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/DeleteOriginRequestPolicyCommand.ts b/clients/client-cloudfront/src/commands/DeleteOriginRequestPolicyCommand.ts index c05e61a27e52a..e5ee59f9923ea 100644 --- a/clients/client-cloudfront/src/commands/DeleteOriginRequestPolicyCommand.ts +++ b/clients/client-cloudfront/src/commands/DeleteOriginRequestPolicyCommand.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 DeleteOriginRequestPolicyCommand 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: DeleteOriginRequestPolicyCommandInput) { // Start section: command_constructor super(); @@ -71,6 +81,9 @@ export class DeleteOriginRequestPolicyCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteOriginRequestPolicyCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/DeletePublicKeyCommand.ts b/clients/client-cloudfront/src/commands/DeletePublicKeyCommand.ts index 4af442e1942ad..3d89f4ef6d0a9 100644 --- a/clients/client-cloudfront/src/commands/DeletePublicKeyCommand.ts +++ b/clients/client-cloudfront/src/commands/DeletePublicKeyCommand.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"; @@ -47,6 +48,15 @@ export class DeletePublicKeyCommand 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: DeletePublicKeyCommandInput) { // Start section: command_constructor super(); @@ -62,6 +72,9 @@ export class DeletePublicKeyCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeletePublicKeyCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/DeleteRealtimeLogConfigCommand.ts b/clients/client-cloudfront/src/commands/DeleteRealtimeLogConfigCommand.ts index 46512d5b6072a..33d5942e10d52 100644 --- a/clients/client-cloudfront/src/commands/DeleteRealtimeLogConfigCommand.ts +++ b/clients/client-cloudfront/src/commands/DeleteRealtimeLogConfigCommand.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 DeleteRealtimeLogConfigCommand 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: DeleteRealtimeLogConfigCommandInput) { // Start section: command_constructor super(); @@ -68,6 +78,9 @@ export class DeleteRealtimeLogConfigCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteRealtimeLogConfigCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/DeleteResponseHeadersPolicyCommand.ts b/clients/client-cloudfront/src/commands/DeleteResponseHeadersPolicyCommand.ts index 48dbff2e2adc7..15d70f3ae28d8 100644 --- a/clients/client-cloudfront/src/commands/DeleteResponseHeadersPolicyCommand.ts +++ b/clients/client-cloudfront/src/commands/DeleteResponseHeadersPolicyCommand.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 DeleteResponseHeadersPolicyCommand 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: DeleteResponseHeadersPolicyCommandInput) { // Start section: command_constructor super(); @@ -71,6 +81,9 @@ export class DeleteResponseHeadersPolicyCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteResponseHeadersPolicyCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/DeleteStreamingDistributionCommand.ts b/clients/client-cloudfront/src/commands/DeleteStreamingDistributionCommand.ts index ade69740810db..37a4b7e67756c 100644 --- a/clients/client-cloudfront/src/commands/DeleteStreamingDistributionCommand.ts +++ b/clients/client-cloudfront/src/commands/DeleteStreamingDistributionCommand.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"; @@ -97,6 +98,15 @@ export class DeleteStreamingDistributionCommand 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: DeleteStreamingDistributionCommandInput) { // Start section: command_constructor super(); @@ -112,6 +122,9 @@ export class DeleteStreamingDistributionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteStreamingDistributionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/DescribeFunctionCommand.ts b/clients/client-cloudfront/src/commands/DescribeFunctionCommand.ts index e6a0d80c0bb82..8af97053c15ea 100644 --- a/clients/client-cloudfront/src/commands/DescribeFunctionCommand.ts +++ b/clients/client-cloudfront/src/commands/DescribeFunctionCommand.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 DescribeFunctionCommand 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: DescribeFunctionCommandInput) { // Start section: command_constructor super(); @@ -71,6 +81,9 @@ export class DescribeFunctionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DescribeFunctionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetCachePolicyCommand.ts b/clients/client-cloudfront/src/commands/GetCachePolicyCommand.ts index cf5fefe5c0e33..09ce54527a0a1 100644 --- a/clients/client-cloudfront/src/commands/GetCachePolicyCommand.ts +++ b/clients/client-cloudfront/src/commands/GetCachePolicyCommand.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"; @@ -65,6 +66,15 @@ export class GetCachePolicyCommand 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: GetCachePolicyCommandInput) { // Start section: command_constructor super(); @@ -80,6 +90,9 @@ export class GetCachePolicyCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetCachePolicyCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetCachePolicyConfigCommand.ts b/clients/client-cloudfront/src/commands/GetCachePolicyConfigCommand.ts index 14e15513c2dfc..6bf618dfa528e 100644 --- a/clients/client-cloudfront/src/commands/GetCachePolicyConfigCommand.ts +++ b/clients/client-cloudfront/src/commands/GetCachePolicyConfigCommand.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"; @@ -57,6 +58,15 @@ export class GetCachePolicyConfigCommand 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: GetCachePolicyConfigCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class GetCachePolicyConfigCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetCachePolicyConfigCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetCloudFrontOriginAccessIdentityCommand.ts b/clients/client-cloudfront/src/commands/GetCloudFrontOriginAccessIdentityCommand.ts index 1dc2219a665f5..96f9b08d872ba 100644 --- a/clients/client-cloudfront/src/commands/GetCloudFrontOriginAccessIdentityCommand.ts +++ b/clients/client-cloudfront/src/commands/GetCloudFrontOriginAccessIdentityCommand.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"; @@ -54,6 +55,15 @@ export class GetCloudFrontOriginAccessIdentityCommand 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: GetCloudFrontOriginAccessIdentityCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class GetCloudFrontOriginAccessIdentityCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetCloudFrontOriginAccessIdentityCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetCloudFrontOriginAccessIdentityConfigCommand.ts b/clients/client-cloudfront/src/commands/GetCloudFrontOriginAccessIdentityConfigCommand.ts index e9248f9825f88..228356ab62aed 100644 --- a/clients/client-cloudfront/src/commands/GetCloudFrontOriginAccessIdentityConfigCommand.ts +++ b/clients/client-cloudfront/src/commands/GetCloudFrontOriginAccessIdentityConfigCommand.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"; @@ -55,6 +56,15 @@ export class GetCloudFrontOriginAccessIdentityConfigCommand 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: GetCloudFrontOriginAccessIdentityConfigCommandInput) { // Start section: command_constructor super(); @@ -73,6 +83,12 @@ export class GetCloudFrontOriginAccessIdentityConfigCommand extends $Command< GetCloudFrontOriginAccessIdentityConfigCommandOutput > { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin( + configuration, + GetCloudFrontOriginAccessIdentityConfigCommand.getEndpointParameterInstructions() + ) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetDistributionCommand.ts b/clients/client-cloudfront/src/commands/GetDistributionCommand.ts index 47e4999a9cec0..2c2991a396ad0 100644 --- a/clients/client-cloudfront/src/commands/GetDistributionCommand.ts +++ b/clients/client-cloudfront/src/commands/GetDistributionCommand.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"; @@ -52,6 +53,15 @@ export class GetDistributionCommand 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: GetDistributionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetDistributionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetDistributionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetDistributionConfigCommand.ts b/clients/client-cloudfront/src/commands/GetDistributionConfigCommand.ts index b57e368315dac..916e4735e6b69 100644 --- a/clients/client-cloudfront/src/commands/GetDistributionConfigCommand.ts +++ b/clients/client-cloudfront/src/commands/GetDistributionConfigCommand.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"; @@ -52,6 +53,15 @@ export class GetDistributionConfigCommand 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: GetDistributionConfigCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetDistributionConfigCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetDistributionConfigCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetFieldLevelEncryptionCommand.ts b/clients/client-cloudfront/src/commands/GetFieldLevelEncryptionCommand.ts index 4115de8e5ec6c..a132b523a1472 100644 --- a/clients/client-cloudfront/src/commands/GetFieldLevelEncryptionCommand.ts +++ b/clients/client-cloudfront/src/commands/GetFieldLevelEncryptionCommand.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"; @@ -52,6 +53,15 @@ export class GetFieldLevelEncryptionCommand 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: GetFieldLevelEncryptionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetFieldLevelEncryptionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetFieldLevelEncryptionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetFieldLevelEncryptionConfigCommand.ts b/clients/client-cloudfront/src/commands/GetFieldLevelEncryptionConfigCommand.ts index 9f79601c6512e..de53a7d8cdbb7 100644 --- a/clients/client-cloudfront/src/commands/GetFieldLevelEncryptionConfigCommand.ts +++ b/clients/client-cloudfront/src/commands/GetFieldLevelEncryptionConfigCommand.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"; @@ -54,6 +55,15 @@ export class GetFieldLevelEncryptionConfigCommand 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: GetFieldLevelEncryptionConfigCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class GetFieldLevelEncryptionConfigCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetFieldLevelEncryptionConfigCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetFieldLevelEncryptionProfileCommand.ts b/clients/client-cloudfront/src/commands/GetFieldLevelEncryptionProfileCommand.ts index 833a251fa7e76..dbdd321ceae14 100644 --- a/clients/client-cloudfront/src/commands/GetFieldLevelEncryptionProfileCommand.ts +++ b/clients/client-cloudfront/src/commands/GetFieldLevelEncryptionProfileCommand.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"; @@ -54,6 +55,15 @@ export class GetFieldLevelEncryptionProfileCommand 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: GetFieldLevelEncryptionProfileCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class GetFieldLevelEncryptionProfileCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetFieldLevelEncryptionProfileCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetFieldLevelEncryptionProfileConfigCommand.ts b/clients/client-cloudfront/src/commands/GetFieldLevelEncryptionProfileConfigCommand.ts index 60e661a0bfc10..7d7f0976a5262 100644 --- a/clients/client-cloudfront/src/commands/GetFieldLevelEncryptionProfileConfigCommand.ts +++ b/clients/client-cloudfront/src/commands/GetFieldLevelEncryptionProfileConfigCommand.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"; @@ -54,6 +55,15 @@ export class GetFieldLevelEncryptionProfileConfigCommand 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: GetFieldLevelEncryptionProfileConfigCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class GetFieldLevelEncryptionProfileConfigCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetFieldLevelEncryptionProfileConfigCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetFunctionCommand.ts b/clients/client-cloudfront/src/commands/GetFunctionCommand.ts index f5833ee4446fd..cf98d1b773339 100644 --- a/clients/client-cloudfront/src/commands/GetFunctionCommand.ts +++ b/clients/client-cloudfront/src/commands/GetFunctionCommand.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"; @@ -55,6 +56,15 @@ export class GetFunctionCommand 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: GetFunctionCommandInput) { // Start section: command_constructor super(); @@ -70,6 +80,7 @@ export class GetFunctionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, GetFunctionCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetInvalidationCommand.ts b/clients/client-cloudfront/src/commands/GetInvalidationCommand.ts index 24f63bafed283..16313ed0a6612 100644 --- a/clients/client-cloudfront/src/commands/GetInvalidationCommand.ts +++ b/clients/client-cloudfront/src/commands/GetInvalidationCommand.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"; @@ -52,6 +53,15 @@ export class GetInvalidationCommand 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: GetInvalidationCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetInvalidationCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetInvalidationCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetKeyGroupCommand.ts b/clients/client-cloudfront/src/commands/GetKeyGroupCommand.ts index 9b7b2b933fe53..d258abaf7ff80 100644 --- a/clients/client-cloudfront/src/commands/GetKeyGroupCommand.ts +++ b/clients/client-cloudfront/src/commands/GetKeyGroupCommand.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"; @@ -57,6 +58,15 @@ export class GetKeyGroupCommand 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: GetKeyGroupCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,7 @@ export class GetKeyGroupCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, GetKeyGroupCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetKeyGroupConfigCommand.ts b/clients/client-cloudfront/src/commands/GetKeyGroupConfigCommand.ts index 3a1f0bdab4c6d..de610616bfbec 100644 --- a/clients/client-cloudfront/src/commands/GetKeyGroupConfigCommand.ts +++ b/clients/client-cloudfront/src/commands/GetKeyGroupConfigCommand.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"; @@ -57,6 +58,15 @@ export class GetKeyGroupConfigCommand 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: GetKeyGroupConfigCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class GetKeyGroupConfigCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetKeyGroupConfigCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetMonitoringSubscriptionCommand.ts b/clients/client-cloudfront/src/commands/GetMonitoringSubscriptionCommand.ts index 800f3e021f305..115668a83f865 100644 --- a/clients/client-cloudfront/src/commands/GetMonitoringSubscriptionCommand.ts +++ b/clients/client-cloudfront/src/commands/GetMonitoringSubscriptionCommand.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 GetMonitoringSubscriptionCommand 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: GetMonitoringSubscriptionCommandInput) { // Start section: command_constructor super(); @@ -68,6 +78,9 @@ export class GetMonitoringSubscriptionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetMonitoringSubscriptionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetOriginAccessControlCommand.ts b/clients/client-cloudfront/src/commands/GetOriginAccessControlCommand.ts index 4c0a9a7fb0502..0dbcade424af8 100644 --- a/clients/client-cloudfront/src/commands/GetOriginAccessControlCommand.ts +++ b/clients/client-cloudfront/src/commands/GetOriginAccessControlCommand.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"; @@ -52,6 +53,15 @@ export class GetOriginAccessControlCommand 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: GetOriginAccessControlCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetOriginAccessControlCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetOriginAccessControlCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetOriginAccessControlConfigCommand.ts b/clients/client-cloudfront/src/commands/GetOriginAccessControlConfigCommand.ts index 21e50381dfff2..58cf2b8d19af1 100644 --- a/clients/client-cloudfront/src/commands/GetOriginAccessControlConfigCommand.ts +++ b/clients/client-cloudfront/src/commands/GetOriginAccessControlConfigCommand.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"; @@ -54,6 +55,15 @@ export class GetOriginAccessControlConfigCommand 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: GetOriginAccessControlConfigCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class GetOriginAccessControlConfigCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetOriginAccessControlConfigCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetOriginRequestPolicyCommand.ts b/clients/client-cloudfront/src/commands/GetOriginRequestPolicyCommand.ts index bc7dc4f9fb944..af86f8123ec1c 100644 --- a/clients/client-cloudfront/src/commands/GetOriginRequestPolicyCommand.ts +++ b/clients/client-cloudfront/src/commands/GetOriginRequestPolicyCommand.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"; @@ -65,6 +66,15 @@ export class GetOriginRequestPolicyCommand 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: GetOriginRequestPolicyCommandInput) { // Start section: command_constructor super(); @@ -80,6 +90,9 @@ export class GetOriginRequestPolicyCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetOriginRequestPolicyCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetOriginRequestPolicyConfigCommand.ts b/clients/client-cloudfront/src/commands/GetOriginRequestPolicyConfigCommand.ts index eb20323c6e941..1ffc822de49b9 100644 --- a/clients/client-cloudfront/src/commands/GetOriginRequestPolicyConfigCommand.ts +++ b/clients/client-cloudfront/src/commands/GetOriginRequestPolicyConfigCommand.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"; @@ -60,6 +61,15 @@ export class GetOriginRequestPolicyConfigCommand 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: GetOriginRequestPolicyConfigCommandInput) { // Start section: command_constructor super(); @@ -75,6 +85,9 @@ export class GetOriginRequestPolicyConfigCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetOriginRequestPolicyConfigCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetPublicKeyCommand.ts b/clients/client-cloudfront/src/commands/GetPublicKeyCommand.ts index 6e44668e76a44..b1a9a0dd4559b 100644 --- a/clients/client-cloudfront/src/commands/GetPublicKeyCommand.ts +++ b/clients/client-cloudfront/src/commands/GetPublicKeyCommand.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"; @@ -52,6 +53,15 @@ export class GetPublicKeyCommand 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: GetPublicKeyCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,7 @@ export class GetPublicKeyCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, GetPublicKeyCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetPublicKeyConfigCommand.ts b/clients/client-cloudfront/src/commands/GetPublicKeyConfigCommand.ts index 729086a5c8d40..2a6ac3413454d 100644 --- a/clients/client-cloudfront/src/commands/GetPublicKeyConfigCommand.ts +++ b/clients/client-cloudfront/src/commands/GetPublicKeyConfigCommand.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"; @@ -52,6 +53,15 @@ export class GetPublicKeyConfigCommand 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: GetPublicKeyConfigCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetPublicKeyConfigCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetPublicKeyConfigCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetRealtimeLogConfigCommand.ts b/clients/client-cloudfront/src/commands/GetRealtimeLogConfigCommand.ts index 1543ed5033bf2..59c551429db46 100644 --- a/clients/client-cloudfront/src/commands/GetRealtimeLogConfigCommand.ts +++ b/clients/client-cloudfront/src/commands/GetRealtimeLogConfigCommand.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"; @@ -55,6 +56,15 @@ export class GetRealtimeLogConfigCommand 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: GetRealtimeLogConfigCommandInput) { // Start section: command_constructor super(); @@ -70,6 +80,9 @@ export class GetRealtimeLogConfigCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetRealtimeLogConfigCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetResponseHeadersPolicyCommand.ts b/clients/client-cloudfront/src/commands/GetResponseHeadersPolicyCommand.ts index cefa07e9afd58..80a4fa8699f0c 100644 --- a/clients/client-cloudfront/src/commands/GetResponseHeadersPolicyCommand.ts +++ b/clients/client-cloudfront/src/commands/GetResponseHeadersPolicyCommand.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 GetResponseHeadersPolicyCommand 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: GetResponseHeadersPolicyCommandInput) { // Start section: command_constructor super(); @@ -74,6 +84,9 @@ export class GetResponseHeadersPolicyCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetResponseHeadersPolicyCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetResponseHeadersPolicyConfigCommand.ts b/clients/client-cloudfront/src/commands/GetResponseHeadersPolicyConfigCommand.ts index 84cf6d1cdc870..fd194111e56d3 100644 --- a/clients/client-cloudfront/src/commands/GetResponseHeadersPolicyConfigCommand.ts +++ b/clients/client-cloudfront/src/commands/GetResponseHeadersPolicyConfigCommand.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"; @@ -60,6 +61,15 @@ export class GetResponseHeadersPolicyConfigCommand 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: GetResponseHeadersPolicyConfigCommandInput) { // Start section: command_constructor super(); @@ -75,6 +85,9 @@ export class GetResponseHeadersPolicyConfigCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetResponseHeadersPolicyConfigCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetStreamingDistributionCommand.ts b/clients/client-cloudfront/src/commands/GetStreamingDistributionCommand.ts index 76357deb83789..083a70a698ec5 100644 --- a/clients/client-cloudfront/src/commands/GetStreamingDistributionCommand.ts +++ b/clients/client-cloudfront/src/commands/GetStreamingDistributionCommand.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"; @@ -52,6 +53,15 @@ export class GetStreamingDistributionCommand 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: GetStreamingDistributionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetStreamingDistributionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetStreamingDistributionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/GetStreamingDistributionConfigCommand.ts b/clients/client-cloudfront/src/commands/GetStreamingDistributionConfigCommand.ts index 78861aa4ef38e..0ee2513dd8f75 100644 --- a/clients/client-cloudfront/src/commands/GetStreamingDistributionConfigCommand.ts +++ b/clients/client-cloudfront/src/commands/GetStreamingDistributionConfigCommand.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"; @@ -54,6 +55,15 @@ export class GetStreamingDistributionConfigCommand 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: GetStreamingDistributionConfigCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class GetStreamingDistributionConfigCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetStreamingDistributionConfigCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/ListCachePoliciesCommand.ts b/clients/client-cloudfront/src/commands/ListCachePoliciesCommand.ts index c16b7c7ac81b8..c36b850a714ee 100644 --- a/clients/client-cloudfront/src/commands/ListCachePoliciesCommand.ts +++ b/clients/client-cloudfront/src/commands/ListCachePoliciesCommand.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 ListCachePoliciesCommand 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: ListCachePoliciesCommandInput) { // Start section: command_constructor super(); @@ -74,6 +84,9 @@ export class ListCachePoliciesCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListCachePoliciesCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/ListCloudFrontOriginAccessIdentitiesCommand.ts b/clients/client-cloudfront/src/commands/ListCloudFrontOriginAccessIdentitiesCommand.ts index 9197c90f9f9c7..7118b32520115 100644 --- a/clients/client-cloudfront/src/commands/ListCloudFrontOriginAccessIdentitiesCommand.ts +++ b/clients/client-cloudfront/src/commands/ListCloudFrontOriginAccessIdentitiesCommand.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"; @@ -54,6 +55,15 @@ export class ListCloudFrontOriginAccessIdentitiesCommand 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: ListCloudFrontOriginAccessIdentitiesCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class ListCloudFrontOriginAccessIdentitiesCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListCloudFrontOriginAccessIdentitiesCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/ListConflictingAliasesCommand.ts b/clients/client-cloudfront/src/commands/ListConflictingAliasesCommand.ts index 11d84bbdde37e..97b0d4218ed3a 100644 --- a/clients/client-cloudfront/src/commands/ListConflictingAliasesCommand.ts +++ b/clients/client-cloudfront/src/commands/ListConflictingAliasesCommand.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 ListConflictingAliasesCommand 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: ListConflictingAliasesCommandInput) { // Start section: command_constructor super(); @@ -89,6 +99,9 @@ export class ListConflictingAliasesCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListConflictingAliasesCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/ListDistributionsByCachePolicyIdCommand.ts b/clients/client-cloudfront/src/commands/ListDistributionsByCachePolicyIdCommand.ts index 79b0d6df4a509..a441dd923aaf7 100644 --- a/clients/client-cloudfront/src/commands/ListDistributionsByCachePolicyIdCommand.ts +++ b/clients/client-cloudfront/src/commands/ListDistributionsByCachePolicyIdCommand.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"; @@ -60,6 +61,15 @@ export class ListDistributionsByCachePolicyIdCommand 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: ListDistributionsByCachePolicyIdCommandInput) { // Start section: command_constructor super(); @@ -75,6 +85,9 @@ export class ListDistributionsByCachePolicyIdCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListDistributionsByCachePolicyIdCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/ListDistributionsByKeyGroupCommand.ts b/clients/client-cloudfront/src/commands/ListDistributionsByKeyGroupCommand.ts index 1a467e37be56e..68f94694a854e 100644 --- a/clients/client-cloudfront/src/commands/ListDistributionsByKeyGroupCommand.ts +++ b/clients/client-cloudfront/src/commands/ListDistributionsByKeyGroupCommand.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"; @@ -58,6 +59,15 @@ export class ListDistributionsByKeyGroupCommand 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: ListDistributionsByKeyGroupCommandInput) { // Start section: command_constructor super(); @@ -73,6 +83,9 @@ export class ListDistributionsByKeyGroupCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListDistributionsByKeyGroupCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/ListDistributionsByOriginRequestPolicyIdCommand.ts b/clients/client-cloudfront/src/commands/ListDistributionsByOriginRequestPolicyIdCommand.ts index a707fbb1f283c..2a77292d0cce4 100644 --- a/clients/client-cloudfront/src/commands/ListDistributionsByOriginRequestPolicyIdCommand.ts +++ b/clients/client-cloudfront/src/commands/ListDistributionsByOriginRequestPolicyIdCommand.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"; @@ -61,6 +62,15 @@ export class ListDistributionsByOriginRequestPolicyIdCommand 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: ListDistributionsByOriginRequestPolicyIdCommandInput) { // Start section: command_constructor super(); @@ -79,6 +89,12 @@ export class ListDistributionsByOriginRequestPolicyIdCommand extends $Command< ListDistributionsByOriginRequestPolicyIdCommandOutput > { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin( + configuration, + ListDistributionsByOriginRequestPolicyIdCommand.getEndpointParameterInstructions() + ) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/ListDistributionsByRealtimeLogConfigCommand.ts b/clients/client-cloudfront/src/commands/ListDistributionsByRealtimeLogConfigCommand.ts index 689c4fb550fc6..f65ceffeca29a 100644 --- a/clients/client-cloudfront/src/commands/ListDistributionsByRealtimeLogConfigCommand.ts +++ b/clients/client-cloudfront/src/commands/ListDistributionsByRealtimeLogConfigCommand.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"; @@ -63,6 +64,15 @@ export class ListDistributionsByRealtimeLogConfigCommand 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: ListDistributionsByRealtimeLogConfigCommandInput) { // Start section: command_constructor super(); @@ -78,6 +88,9 @@ export class ListDistributionsByRealtimeLogConfigCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListDistributionsByRealtimeLogConfigCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/ListDistributionsByResponseHeadersPolicyIdCommand.ts b/clients/client-cloudfront/src/commands/ListDistributionsByResponseHeadersPolicyIdCommand.ts index c73ffb6ce09b9..f1f434cf2b137 100644 --- a/clients/client-cloudfront/src/commands/ListDistributionsByResponseHeadersPolicyIdCommand.ts +++ b/clients/client-cloudfront/src/commands/ListDistributionsByResponseHeadersPolicyIdCommand.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"; @@ -61,6 +62,15 @@ export class ListDistributionsByResponseHeadersPolicyIdCommand 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: ListDistributionsByResponseHeadersPolicyIdCommandInput) { // Start section: command_constructor super(); @@ -79,6 +89,12 @@ export class ListDistributionsByResponseHeadersPolicyIdCommand extends $Command< ListDistributionsByResponseHeadersPolicyIdCommandOutput > { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin( + configuration, + ListDistributionsByResponseHeadersPolicyIdCommand.getEndpointParameterInstructions() + ) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/ListDistributionsByWebACLIdCommand.ts b/clients/client-cloudfront/src/commands/ListDistributionsByWebACLIdCommand.ts index 6588854e427bb..e0a5744b98e2f 100644 --- a/clients/client-cloudfront/src/commands/ListDistributionsByWebACLIdCommand.ts +++ b/clients/client-cloudfront/src/commands/ListDistributionsByWebACLIdCommand.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"; @@ -52,6 +53,15 @@ export class ListDistributionsByWebACLIdCommand 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: ListDistributionsByWebACLIdCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class ListDistributionsByWebACLIdCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListDistributionsByWebACLIdCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/ListDistributionsCommand.ts b/clients/client-cloudfront/src/commands/ListDistributionsCommand.ts index 5444ca6f6a164..3f62515f73a2b 100644 --- a/clients/client-cloudfront/src/commands/ListDistributionsCommand.ts +++ b/clients/client-cloudfront/src/commands/ListDistributionsCommand.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"; @@ -52,6 +53,15 @@ export class ListDistributionsCommand 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: ListDistributionsCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class ListDistributionsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListDistributionsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/ListFieldLevelEncryptionConfigsCommand.ts b/clients/client-cloudfront/src/commands/ListFieldLevelEncryptionConfigsCommand.ts index eeb56be43b51b..a4bd510348db2 100644 --- a/clients/client-cloudfront/src/commands/ListFieldLevelEncryptionConfigsCommand.ts +++ b/clients/client-cloudfront/src/commands/ListFieldLevelEncryptionConfigsCommand.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"; @@ -54,6 +55,15 @@ export class ListFieldLevelEncryptionConfigsCommand 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: ListFieldLevelEncryptionConfigsCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class ListFieldLevelEncryptionConfigsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListFieldLevelEncryptionConfigsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/ListFieldLevelEncryptionProfilesCommand.ts b/clients/client-cloudfront/src/commands/ListFieldLevelEncryptionProfilesCommand.ts index 30657fa1e2e1e..2adf4ad9e196e 100644 --- a/clients/client-cloudfront/src/commands/ListFieldLevelEncryptionProfilesCommand.ts +++ b/clients/client-cloudfront/src/commands/ListFieldLevelEncryptionProfilesCommand.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"; @@ -54,6 +55,15 @@ export class ListFieldLevelEncryptionProfilesCommand 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: ListFieldLevelEncryptionProfilesCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class ListFieldLevelEncryptionProfilesCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListFieldLevelEncryptionProfilesCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/ListFunctionsCommand.ts b/clients/client-cloudfront/src/commands/ListFunctionsCommand.ts index ea38976af9b59..518867d1d52d8 100644 --- a/clients/client-cloudfront/src/commands/ListFunctionsCommand.ts +++ b/clients/client-cloudfront/src/commands/ListFunctionsCommand.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 ListFunctionsCommand 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: ListFunctionsCommandInput) { // Start section: command_constructor super(); @@ -74,6 +84,7 @@ export class ListFunctionsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, ListFunctionsCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/ListInvalidationsCommand.ts b/clients/client-cloudfront/src/commands/ListInvalidationsCommand.ts index b794710ce7f63..61da1722ad85d 100644 --- a/clients/client-cloudfront/src/commands/ListInvalidationsCommand.ts +++ b/clients/client-cloudfront/src/commands/ListInvalidationsCommand.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"; @@ -52,6 +53,15 @@ export class ListInvalidationsCommand 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: ListInvalidationsCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class ListInvalidationsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListInvalidationsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/ListKeyGroupsCommand.ts b/clients/client-cloudfront/src/commands/ListKeyGroupsCommand.ts index 3650579b57152..97c4d6a8de803 100644 --- a/clients/client-cloudfront/src/commands/ListKeyGroupsCommand.ts +++ b/clients/client-cloudfront/src/commands/ListKeyGroupsCommand.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"; @@ -57,6 +58,15 @@ export class ListKeyGroupsCommand 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: ListKeyGroupsCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,7 @@ export class ListKeyGroupsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, ListKeyGroupsCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/ListOriginAccessControlsCommand.ts b/clients/client-cloudfront/src/commands/ListOriginAccessControlsCommand.ts index 592d822d465ef..808ac5aaff11b 100644 --- a/clients/client-cloudfront/src/commands/ListOriginAccessControlsCommand.ts +++ b/clients/client-cloudfront/src/commands/ListOriginAccessControlsCommand.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"; @@ -57,6 +58,15 @@ export class ListOriginAccessControlsCommand 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: ListOriginAccessControlsCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class ListOriginAccessControlsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListOriginAccessControlsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/ListOriginRequestPoliciesCommand.ts b/clients/client-cloudfront/src/commands/ListOriginRequestPoliciesCommand.ts index c69ff0e39df5c..f7129a0a724af 100644 --- a/clients/client-cloudfront/src/commands/ListOriginRequestPoliciesCommand.ts +++ b/clients/client-cloudfront/src/commands/ListOriginRequestPoliciesCommand.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 ListOriginRequestPoliciesCommand 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: ListOriginRequestPoliciesCommandInput) { // Start section: command_constructor super(); @@ -74,6 +84,9 @@ export class ListOriginRequestPoliciesCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListOriginRequestPoliciesCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/ListPublicKeysCommand.ts b/clients/client-cloudfront/src/commands/ListPublicKeysCommand.ts index 1537f4cd62f3b..34fde61bf4ad4 100644 --- a/clients/client-cloudfront/src/commands/ListPublicKeysCommand.ts +++ b/clients/client-cloudfront/src/commands/ListPublicKeysCommand.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"; @@ -52,6 +53,15 @@ export class ListPublicKeysCommand 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: ListPublicKeysCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class ListPublicKeysCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListPublicKeysCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/ListRealtimeLogConfigsCommand.ts b/clients/client-cloudfront/src/commands/ListRealtimeLogConfigsCommand.ts index fe0d1a1d48e3c..6026338bca1b1 100644 --- a/clients/client-cloudfront/src/commands/ListRealtimeLogConfigsCommand.ts +++ b/clients/client-cloudfront/src/commands/ListRealtimeLogConfigsCommand.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"; @@ -57,6 +58,15 @@ export class ListRealtimeLogConfigsCommand 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: ListRealtimeLogConfigsCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class ListRealtimeLogConfigsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListRealtimeLogConfigsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/ListResponseHeadersPoliciesCommand.ts b/clients/client-cloudfront/src/commands/ListResponseHeadersPoliciesCommand.ts index e8cf90a0b8df8..9c49fce8271fb 100644 --- a/clients/client-cloudfront/src/commands/ListResponseHeadersPoliciesCommand.ts +++ b/clients/client-cloudfront/src/commands/ListResponseHeadersPoliciesCommand.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 ListResponseHeadersPoliciesCommand 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: ListResponseHeadersPoliciesCommandInput) { // Start section: command_constructor super(); @@ -74,6 +84,9 @@ export class ListResponseHeadersPoliciesCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListResponseHeadersPoliciesCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/ListStreamingDistributionsCommand.ts b/clients/client-cloudfront/src/commands/ListStreamingDistributionsCommand.ts index aae670ee28954..d23a7eecaeb7b 100644 --- a/clients/client-cloudfront/src/commands/ListStreamingDistributionsCommand.ts +++ b/clients/client-cloudfront/src/commands/ListStreamingDistributionsCommand.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"; @@ -52,6 +53,15 @@ export class ListStreamingDistributionsCommand 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: ListStreamingDistributionsCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class ListStreamingDistributionsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListStreamingDistributionsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/ListTagsForResourceCommand.ts b/clients/client-cloudfront/src/commands/ListTagsForResourceCommand.ts index 5ff7f2beea5cc..cd2a74d570903 100644 --- a/clients/client-cloudfront/src/commands/ListTagsForResourceCommand.ts +++ b/clients/client-cloudfront/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 { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; @@ -52,6 +53,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(); @@ -67,6 +77,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()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/PublishFunctionCommand.ts b/clients/client-cloudfront/src/commands/PublishFunctionCommand.ts index 4a3a8e6b17fd5..6dd8626b34f0f 100644 --- a/clients/client-cloudfront/src/commands/PublishFunctionCommand.ts +++ b/clients/client-cloudfront/src/commands/PublishFunctionCommand.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"; @@ -60,6 +61,15 @@ export class PublishFunctionCommand 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: PublishFunctionCommandInput) { // Start section: command_constructor super(); @@ -75,6 +85,9 @@ export class PublishFunctionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, PublishFunctionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/TagResourceCommand.ts b/clients/client-cloudfront/src/commands/TagResourceCommand.ts index a28d28d145e02..9197ed54439ef 100644 --- a/clients/client-cloudfront/src/commands/TagResourceCommand.ts +++ b/clients/client-cloudfront/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 { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; @@ -47,6 +48,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(); @@ -62,6 +72,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())); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/TestFunctionCommand.ts b/clients/client-cloudfront/src/commands/TestFunctionCommand.ts index 91c7dfbaaa2e2..fd5b838c65f82 100644 --- a/clients/client-cloudfront/src/commands/TestFunctionCommand.ts +++ b/clients/client-cloudfront/src/commands/TestFunctionCommand.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"; @@ -61,6 +62,15 @@ export class TestFunctionCommand 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: TestFunctionCommandInput) { // Start section: command_constructor super(); @@ -76,6 +86,7 @@ export class TestFunctionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, TestFunctionCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/UntagResourceCommand.ts b/clients/client-cloudfront/src/commands/UntagResourceCommand.ts index 6bd427f63820f..84302f8488cd3 100644 --- a/clients/client-cloudfront/src/commands/UntagResourceCommand.ts +++ b/clients/client-cloudfront/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 { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; @@ -47,6 +48,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(); @@ -62,6 +72,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())); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/UpdateCachePolicyCommand.ts b/clients/client-cloudfront/src/commands/UpdateCachePolicyCommand.ts index bf8daba6feea1..c91ef114dc776 100644 --- a/clients/client-cloudfront/src/commands/UpdateCachePolicyCommand.ts +++ b/clients/client-cloudfront/src/commands/UpdateCachePolicyCommand.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"; @@ -69,6 +70,15 @@ export class UpdateCachePolicyCommand 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: UpdateCachePolicyCommandInput) { // Start section: command_constructor super(); @@ -84,6 +94,9 @@ export class UpdateCachePolicyCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateCachePolicyCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/UpdateCloudFrontOriginAccessIdentityCommand.ts b/clients/client-cloudfront/src/commands/UpdateCloudFrontOriginAccessIdentityCommand.ts index 4be013f9784f7..2731edced8ec7 100644 --- a/clients/client-cloudfront/src/commands/UpdateCloudFrontOriginAccessIdentityCommand.ts +++ b/clients/client-cloudfront/src/commands/UpdateCloudFrontOriginAccessIdentityCommand.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"; @@ -54,6 +55,15 @@ export class UpdateCloudFrontOriginAccessIdentityCommand 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: UpdateCloudFrontOriginAccessIdentityCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class UpdateCloudFrontOriginAccessIdentityCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateCloudFrontOriginAccessIdentityCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/UpdateDistributionCommand.ts b/clients/client-cloudfront/src/commands/UpdateDistributionCommand.ts index e6fcae289389d..e0f220480cc3c 100644 --- a/clients/client-cloudfront/src/commands/UpdateDistributionCommand.ts +++ b/clients/client-cloudfront/src/commands/UpdateDistributionCommand.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"; @@ -130,6 +131,15 @@ export class UpdateDistributionCommand 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: UpdateDistributionCommandInput) { // Start section: command_constructor super(); @@ -145,6 +155,9 @@ export class UpdateDistributionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateDistributionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/UpdateFieldLevelEncryptionConfigCommand.ts b/clients/client-cloudfront/src/commands/UpdateFieldLevelEncryptionConfigCommand.ts index 1122d2c40dc91..df9507ee15d94 100644 --- a/clients/client-cloudfront/src/commands/UpdateFieldLevelEncryptionConfigCommand.ts +++ b/clients/client-cloudfront/src/commands/UpdateFieldLevelEncryptionConfigCommand.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"; @@ -54,6 +55,15 @@ export class UpdateFieldLevelEncryptionConfigCommand 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: UpdateFieldLevelEncryptionConfigCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class UpdateFieldLevelEncryptionConfigCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateFieldLevelEncryptionConfigCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/UpdateFieldLevelEncryptionProfileCommand.ts b/clients/client-cloudfront/src/commands/UpdateFieldLevelEncryptionProfileCommand.ts index 02e2f0a9a65d9..990bf174f2dc8 100644 --- a/clients/client-cloudfront/src/commands/UpdateFieldLevelEncryptionProfileCommand.ts +++ b/clients/client-cloudfront/src/commands/UpdateFieldLevelEncryptionProfileCommand.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"; @@ -54,6 +55,15 @@ export class UpdateFieldLevelEncryptionProfileCommand 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: UpdateFieldLevelEncryptionProfileCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class UpdateFieldLevelEncryptionProfileCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateFieldLevelEncryptionProfileCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/UpdateFunctionCommand.ts b/clients/client-cloudfront/src/commands/UpdateFunctionCommand.ts index dcf5d49cf7a03..b6be8fb6f3096 100644 --- a/clients/client-cloudfront/src/commands/UpdateFunctionCommand.ts +++ b/clients/client-cloudfront/src/commands/UpdateFunctionCommand.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"; @@ -57,6 +58,15 @@ export class UpdateFunctionCommand 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: UpdateFunctionCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class UpdateFunctionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateFunctionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/UpdateKeyGroupCommand.ts b/clients/client-cloudfront/src/commands/UpdateKeyGroupCommand.ts index 1860c324fde76..3525a5e110db4 100644 --- a/clients/client-cloudfront/src/commands/UpdateKeyGroupCommand.ts +++ b/clients/client-cloudfront/src/commands/UpdateKeyGroupCommand.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"; @@ -69,6 +70,15 @@ export class UpdateKeyGroupCommand 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: UpdateKeyGroupCommandInput) { // Start section: command_constructor super(); @@ -84,6 +94,9 @@ export class UpdateKeyGroupCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateKeyGroupCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/UpdateOriginAccessControlCommand.ts b/clients/client-cloudfront/src/commands/UpdateOriginAccessControlCommand.ts index bacd8e2a19e4b..8c1d404dad198 100644 --- a/clients/client-cloudfront/src/commands/UpdateOriginAccessControlCommand.ts +++ b/clients/client-cloudfront/src/commands/UpdateOriginAccessControlCommand.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"; @@ -52,6 +53,15 @@ export class UpdateOriginAccessControlCommand 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: UpdateOriginAccessControlCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class UpdateOriginAccessControlCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateOriginAccessControlCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/UpdateOriginRequestPolicyCommand.ts b/clients/client-cloudfront/src/commands/UpdateOriginRequestPolicyCommand.ts index ff2fd68ed926f..666b386fd89b7 100644 --- a/clients/client-cloudfront/src/commands/UpdateOriginRequestPolicyCommand.ts +++ b/clients/client-cloudfront/src/commands/UpdateOriginRequestPolicyCommand.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"; @@ -69,6 +70,15 @@ export class UpdateOriginRequestPolicyCommand 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: UpdateOriginRequestPolicyCommandInput) { // Start section: command_constructor super(); @@ -84,6 +94,9 @@ export class UpdateOriginRequestPolicyCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateOriginRequestPolicyCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/UpdatePublicKeyCommand.ts b/clients/client-cloudfront/src/commands/UpdatePublicKeyCommand.ts index 323c97d634f07..14a760fc21e01 100644 --- a/clients/client-cloudfront/src/commands/UpdatePublicKeyCommand.ts +++ b/clients/client-cloudfront/src/commands/UpdatePublicKeyCommand.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"; @@ -52,6 +53,15 @@ export class UpdatePublicKeyCommand 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: UpdatePublicKeyCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class UpdatePublicKeyCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdatePublicKeyCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/UpdateRealtimeLogConfigCommand.ts b/clients/client-cloudfront/src/commands/UpdateRealtimeLogConfigCommand.ts index 72322009682b7..f23d413bd2750 100644 --- a/clients/client-cloudfront/src/commands/UpdateRealtimeLogConfigCommand.ts +++ b/clients/client-cloudfront/src/commands/UpdateRealtimeLogConfigCommand.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"; @@ -72,6 +73,15 @@ export class UpdateRealtimeLogConfigCommand 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: UpdateRealtimeLogConfigCommandInput) { // Start section: command_constructor super(); @@ -87,6 +97,9 @@ export class UpdateRealtimeLogConfigCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateRealtimeLogConfigCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/UpdateResponseHeadersPolicyCommand.ts b/clients/client-cloudfront/src/commands/UpdateResponseHeadersPolicyCommand.ts index 87ae29e38de4a..3e7bc57652f4c 100644 --- a/clients/client-cloudfront/src/commands/UpdateResponseHeadersPolicyCommand.ts +++ b/clients/client-cloudfront/src/commands/UpdateResponseHeadersPolicyCommand.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"; @@ -70,6 +71,15 @@ export class UpdateResponseHeadersPolicyCommand 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: UpdateResponseHeadersPolicyCommandInput) { // Start section: command_constructor super(); @@ -85,6 +95,9 @@ export class UpdateResponseHeadersPolicyCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateResponseHeadersPolicyCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/commands/UpdateStreamingDistributionCommand.ts b/clients/client-cloudfront/src/commands/UpdateStreamingDistributionCommand.ts index 742701c82cc74..5e5c76800fda4 100644 --- a/clients/client-cloudfront/src/commands/UpdateStreamingDistributionCommand.ts +++ b/clients/client-cloudfront/src/commands/UpdateStreamingDistributionCommand.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"; @@ -52,6 +53,15 @@ export class UpdateStreamingDistributionCommand 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: UpdateStreamingDistributionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class UpdateStreamingDistributionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateStreamingDistributionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-cloudfront/src/endpoint/EndpointParameters.ts b/clients/client-cloudfront/src/endpoint/EndpointParameters.ts new file mode 100644 index 0000000000000..3b8bdfd7c2f0c --- /dev/null +++ b/clients/client-cloudfront/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: "cloudfront", + }; +}; + +export interface EndpointParameters extends __EndpointParameters { + Region?: string; + UseDualStack?: boolean; + UseFIPS?: boolean; + Endpoint?: string; +} diff --git a/clients/client-cloudfront/src/endpoint/endpointResolver.ts b/clients/client-cloudfront/src/endpoint/endpointResolver.ts new file mode 100644 index 0000000000000..4a70bb06b40a8 --- /dev/null +++ b/clients/client-cloudfront/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-cloudfront/src/endpoint/ruleset.ts b/clients/client-cloudfront/src/endpoint/ruleset.ts new file mode 100644 index 0000000000000..c45d3ddeca36c --- /dev/null +++ b/clients/client-cloudfront/src/endpoint/ruleset.ts @@ -0,0 +1,866 @@ +// 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: "stringEquals", + argv: [ + { + fn: "getAttr", + argv: [ + { + ref: "PartitionResult", + }, + "name", + ], + }, + "aws", + ], + }, + ], + type: "tree", + rules: [ + { + 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://cloudfront-fips.{Region}.api.aws", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "cloudfront", + signingRegion: "us-east-1", + }, + ], + }, + 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: [], + endpoint: { + url: "https://cloudfront-fips.{Region}.amazonaws.com", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "cloudfront", + signingRegion: "us-east-1", + }, + ], + }, + 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://cloudfront.{Region}.api.aws", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "cloudfront", + signingRegion: "us-east-1", + }, + ], + }, + headers: {}, + }, + type: "endpoint", + }, + ], + }, + { + conditions: [], + error: "DualStack is enabled but this partition does not support DualStack", + type: "error", + }, + ], + }, + { + conditions: [], + endpoint: { + url: "https://cloudfront.amazonaws.com", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "cloudfront", + signingRegion: "us-east-1", + }, + ], + }, + headers: {}, + }, + type: "endpoint", + }, + ], + }, + { + conditions: [ + { + fn: "stringEquals", + argv: [ + { + fn: "getAttr", + argv: [ + { + ref: "PartitionResult", + }, + "name", + ], + }, + "aws-cn", + ], + }, + ], + type: "tree", + rules: [ + { + 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://cloudfront-fips.{Region}.api.amazonwebservices.com.cn", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "cloudfront", + signingRegion: "cn-northwest-1", + }, + ], + }, + 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: [], + endpoint: { + url: "https://cloudfront-fips.{Region}.amazonaws.com.cn", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "cloudfront", + signingRegion: "cn-northwest-1", + }, + ], + }, + 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://cloudfront.{Region}.api.amazonwebservices.com.cn", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "cloudfront", + signingRegion: "cn-northwest-1", + }, + ], + }, + headers: {}, + }, + type: "endpoint", + }, + ], + }, + { + conditions: [], + error: "DualStack is enabled but this partition does not support DualStack", + type: "error", + }, + ], + }, + { + conditions: [], + endpoint: { + url: "https://cloudfront.cn-northwest-1.amazonaws.com.cn", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "cloudfront", + signingRegion: "cn-northwest-1", + }, + ], + }, + 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://cloudfront-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://cloudfront-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://cloudfront.{Region}.{PartitionResult#dualStackDnsSuffix}", + properties: {}, + headers: {}, + }, + type: "endpoint", + }, + ], + }, + { + conditions: [], + error: "DualStack is enabled but this partition does not support DualStack", + type: "error", + }, + ], + }, + { + conditions: [], + type: "tree", + rules: [ + { + conditions: [ + { + fn: "stringEquals", + argv: [ + { + ref: "Region", + }, + "aws-global", + ], + }, + ], + endpoint: { + url: "https://cloudfront.amazonaws.com", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "cloudfront", + signingRegion: "us-east-1", + }, + ], + }, + headers: {}, + }, + type: "endpoint", + }, + { + conditions: [ + { + fn: "stringEquals", + argv: [ + { + ref: "Region", + }, + "aws-cn-global", + ], + }, + ], + endpoint: { + url: "https://cloudfront.cn-northwest-1.amazonaws.com.cn", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "cloudfront", + signingRegion: "cn-northwest-1", + }, + ], + }, + headers: {}, + }, + type: "endpoint", + }, + { + conditions: [], + endpoint: { + url: "https://cloudfront.{Region}.{PartitionResult#dnsSuffix}", + properties: {}, + headers: {}, + }, + type: "endpoint", + }, + ], + }, + ], + }, + ], +}; diff --git a/clients/client-cloudfront/src/endpoints.ts b/clients/client-cloudfront/src/endpoints.ts deleted file mode 100644 index f2dbaa318adfe..0000000000000 --- a/clients/client-cloudfront/src/endpoints.ts +++ /dev/null @@ -1,159 +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 = { - "aws-cn-global": { - variants: [ - { - hostname: "cloudfront.cn-northwest-1.amazonaws.com.cn", - tags: [], - }, - ], - signingRegion: "cn-northwest-1", - }, - "aws-global": { - variants: [ - { - hostname: "cloudfront.amazonaws.com", - tags: [], - }, - ], - signingRegion: "us-east-1", - }, -}; - -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", - "aws-global", - "ca-central-1", - "eu-central-1", - "eu-north-1", - "eu-south-1", - "eu-west-1", - "eu-west-2", - "eu-west-3", - "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: "cloudfront.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "cloudfront-fips.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "cloudfront-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "cloudfront.{region}.api.aws", - tags: ["dualstack"], - }, - ], - endpoint: "aws-global", - }, - "aws-cn": { - regions: ["aws-cn-global", "cn-north-1", "cn-northwest-1"], - regionRegex: "^cn\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "cloudfront.{region}.amazonaws.com.cn", - tags: [], - }, - { - hostname: "cloudfront-fips.{region}.amazonaws.com.cn", - tags: ["fips"], - }, - { - hostname: "cloudfront-fips.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack", "fips"], - }, - { - hostname: "cloudfront.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack"], - }, - ], - endpoint: "aws-cn-global", - }, - "aws-iso": { - regions: ["us-iso-east-1", "us-iso-west-1"], - regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "cloudfront.{region}.c2s.ic.gov", - tags: [], - }, - { - hostname: "cloudfront-fips.{region}.c2s.ic.gov", - tags: ["fips"], - }, - ], - }, - "aws-iso-b": { - regions: ["us-isob-east-1"], - regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "cloudfront.{region}.sc2s.sgov.gov", - tags: [], - }, - { - hostname: "cloudfront-fips.{region}.sc2s.sgov.gov", - tags: ["fips"], - }, - ], - }, - "aws-us-gov": { - regions: ["us-gov-east-1", "us-gov-west-1"], - regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "cloudfront.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "cloudfront-fips.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "cloudfront-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "cloudfront.{region}.api.aws", - tags: ["dualstack"], - }, - ], - }, -}; - -export const defaultRegionInfoProvider: RegionInfoProvider = async ( - region: string, - options?: RegionInfoProviderOptions -) => - getRegionInfo(region, { - ...options, - signingService: "cloudfront", - regionHash, - partitionHash, - }); diff --git a/clients/client-cloudfront/src/runtimeConfig.shared.ts b/clients/client-cloudfront/src/runtimeConfig.shared.ts index 5ec895abe10fc..184a99d32461b 100644 --- a/clients/client-cloudfront/src/runtimeConfig.shared.ts +++ b/clients/client-cloudfront/src/runtimeConfig.shared.ts @@ -3,7 +3,7 @@ import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; import { CloudFrontClientConfig } from "./CloudFrontClient"; -import { defaultRegionInfoProvider } from "./endpoints"; +import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal @@ -11,8 +11,8 @@ import { defaultRegionInfoProvider } from "./endpoints"; export const getRuntimeConfig = (config: CloudFrontClientConfig) => ({ apiVersion: "2020-05-31", disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), - regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider, serviceId: config?.serviceId ?? "CloudFront", urlParser: config?.urlParser ?? parseUrl, }); diff --git a/clients/client-route-53/package.json b/clients/client-route-53/package.json index 058d041936d1b..f0c6b14d3494d 100644 --- a/clients/client-route-53/package.json +++ b/clients/client-route-53/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": "*", @@ -47,6 +48,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-route-53/src/Route53Client.ts b/clients/client-route-53/src/Route53Client.ts index f59ae0698bca2..8c5300feb05d2 100644 --- a/clients/client-route-53/src/Route53Client.ts +++ b/clients/client-route-53/src/Route53Client.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, @@ -41,13 +35,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, @@ -270,6 +264,12 @@ import { UpdateTrafficPolicyInstanceCommandInput, UpdateTrafficPolicyInstanceCommandOutput, } from "./commands/UpdateTrafficPolicyInstanceCommand"; +import { + ClientInputEndpointParameters, + ClientResolvedEndpointParameters, + EndpointParameters, + resolveClientEndpointParameters, +} from "./endpoint/EndpointParameters"; import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig"; export type ServiceInputTypes = @@ -525,12 +525,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 @@ -546,11 +540,12 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__ type Route53ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & - EndpointsInputConfig & + EndpointInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & - UserAgentInputConfig; + UserAgentInputConfig & + ClientInputEndpointParameters; /** * The configuration interface of Route53Client class constructor that set the region, credentials and other options. */ @@ -559,11 +554,12 @@ export interface Route53ClientConfig extends Route53ClientConfigType {} type Route53ClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required & RegionResolvedConfig & - EndpointsResolvedConfig & + EndpointResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & - UserAgentResolvedConfig; + UserAgentResolvedConfig & + ClientResolvedEndpointParameters; /** * The resolved configuration interface of Route53Client class. This is resolved and normalized from the {@link Route53ClientConfig | constructor configuration interface}. */ @@ -586,14 +582,15 @@ export class Route53Client extends __Client< constructor(configuration: Route53ClientConfig) { 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-route-53/src/commands/ActivateKeySigningKeyCommand.ts b/clients/client-route-53/src/commands/ActivateKeySigningKeyCommand.ts index 4ae20a486fb8d..142ba25fe9966 100644 --- a/clients/client-route-53/src/commands/ActivateKeySigningKeyCommand.ts +++ b/clients/client-route-53/src/commands/ActivateKeySigningKeyCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -54,6 +55,15 @@ export class ActivateKeySigningKeyCommand 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: ActivateKeySigningKeyCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class ActivateKeySigningKeyCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ActivateKeySigningKeyCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/AssociateVPCWithHostedZoneCommand.ts b/clients/client-route-53/src/commands/AssociateVPCWithHostedZoneCommand.ts index b58baf238b2a4..8e2df150d79c6 100644 --- a/clients/client-route-53/src/commands/AssociateVPCWithHostedZoneCommand.ts +++ b/clients/client-route-53/src/commands/AssociateVPCWithHostedZoneCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -86,6 +87,15 @@ export class AssociateVPCWithHostedZoneCommand 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: AssociateVPCWithHostedZoneCommandInput) { // Start section: command_constructor super(); @@ -101,6 +111,9 @@ export class AssociateVPCWithHostedZoneCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AssociateVPCWithHostedZoneCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/ChangeCidrCollectionCommand.ts b/clients/client-route-53/src/commands/ChangeCidrCollectionCommand.ts index 02091915adafd..a69c284b93d80 100644 --- a/clients/client-route-53/src/commands/ChangeCidrCollectionCommand.ts +++ b/clients/client-route-53/src/commands/ChangeCidrCollectionCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -78,6 +79,15 @@ export class ChangeCidrCollectionCommand 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: ChangeCidrCollectionCommandInput) { // Start section: command_constructor super(); @@ -93,6 +103,9 @@ export class ChangeCidrCollectionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ChangeCidrCollectionCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/ChangeResourceRecordSetsCommand.ts b/clients/client-route-53/src/commands/ChangeResourceRecordSetsCommand.ts index e7f598d079a92..46f6949ea17ad 100644 --- a/clients/client-route-53/src/commands/ChangeResourceRecordSetsCommand.ts +++ b/clients/client-route-53/src/commands/ChangeResourceRecordSetsCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getChangeResourceRecordSetsPlugin, getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -144,6 +145,15 @@ export class ChangeResourceRecordSetsCommand 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: ChangeResourceRecordSetsCommandInput) { // Start section: command_constructor super(); @@ -159,6 +169,9 @@ export class ChangeResourceRecordSetsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ChangeResourceRecordSetsCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getChangeResourceRecordSetsPlugin(configuration)); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); diff --git a/clients/client-route-53/src/commands/ChangeTagsForResourceCommand.ts b/clients/client-route-53/src/commands/ChangeTagsForResourceCommand.ts index e5d7b6c06913e..99dea3714e307 100644 --- a/clients/client-route-53/src/commands/ChangeTagsForResourceCommand.ts +++ b/clients/client-route-53/src/commands/ChangeTagsForResourceCommand.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"; @@ -54,6 +55,15 @@ export class ChangeTagsForResourceCommand 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: ChangeTagsForResourceCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class ChangeTagsForResourceCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ChangeTagsForResourceCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/CreateCidrCollectionCommand.ts b/clients/client-route-53/src/commands/CreateCidrCollectionCommand.ts index c79864ac96bcd..e27e97180eee7 100644 --- a/clients/client-route-53/src/commands/CreateCidrCollectionCommand.ts +++ b/clients/client-route-53/src/commands/CreateCidrCollectionCommand.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"; @@ -54,6 +55,15 @@ export class CreateCidrCollectionCommand 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: CreateCidrCollectionCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class CreateCidrCollectionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateCidrCollectionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/CreateHealthCheckCommand.ts b/clients/client-route-53/src/commands/CreateHealthCheckCommand.ts index cbc90b833e6dd..4416f5870c12c 100644 --- a/clients/client-route-53/src/commands/CreateHealthCheckCommand.ts +++ b/clients/client-route-53/src/commands/CreateHealthCheckCommand.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"; @@ -86,6 +87,15 @@ export class CreateHealthCheckCommand 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: CreateHealthCheckCommandInput) { // Start section: command_constructor super(); @@ -101,6 +111,9 @@ export class CreateHealthCheckCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateHealthCheckCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/CreateHostedZoneCommand.ts b/clients/client-route-53/src/commands/CreateHostedZoneCommand.ts index 246d10fbc7a79..68f9d5dd116de 100644 --- a/clients/client-route-53/src/commands/CreateHostedZoneCommand.ts +++ b/clients/client-route-53/src/commands/CreateHostedZoneCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -115,6 +116,15 @@ export class CreateHostedZoneCommand 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: CreateHostedZoneCommandInput) { // Start section: command_constructor super(); @@ -130,6 +140,9 @@ export class CreateHostedZoneCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateHostedZoneCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/CreateKeySigningKeyCommand.ts b/clients/client-route-53/src/commands/CreateKeySigningKeyCommand.ts index 2e43826e214af..ccca3e9ec2f45 100644 --- a/clients/client-route-53/src/commands/CreateKeySigningKeyCommand.ts +++ b/clients/client-route-53/src/commands/CreateKeySigningKeyCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -54,6 +55,15 @@ export class CreateKeySigningKeyCommand 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: CreateKeySigningKeyCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class CreateKeySigningKeyCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateKeySigningKeyCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/CreateQueryLoggingConfigCommand.ts b/clients/client-route-53/src/commands/CreateQueryLoggingConfigCommand.ts index 38457e4bc8cdc..10485d0d55c6c 100644 --- a/clients/client-route-53/src/commands/CreateQueryLoggingConfigCommand.ts +++ b/clients/client-route-53/src/commands/CreateQueryLoggingConfigCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -220,6 +221,15 @@ export class CreateQueryLoggingConfigCommand 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: CreateQueryLoggingConfigCommandInput) { // Start section: command_constructor super(); @@ -235,6 +245,9 @@ export class CreateQueryLoggingConfigCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateQueryLoggingConfigCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/CreateReusableDelegationSetCommand.ts b/clients/client-route-53/src/commands/CreateReusableDelegationSetCommand.ts index b6a391af9c2ba..351b6eb03b17a 100644 --- a/clients/client-route-53/src/commands/CreateReusableDelegationSetCommand.ts +++ b/clients/client-route-53/src/commands/CreateReusableDelegationSetCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -112,6 +113,15 @@ export class CreateReusableDelegationSetCommand 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: CreateReusableDelegationSetCommandInput) { // Start section: command_constructor super(); @@ -127,6 +137,9 @@ export class CreateReusableDelegationSetCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateReusableDelegationSetCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/CreateTrafficPolicyCommand.ts b/clients/client-route-53/src/commands/CreateTrafficPolicyCommand.ts index 73d24eadfaa38..de07728e66020 100644 --- a/clients/client-route-53/src/commands/CreateTrafficPolicyCommand.ts +++ b/clients/client-route-53/src/commands/CreateTrafficPolicyCommand.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"; @@ -54,6 +55,15 @@ export class CreateTrafficPolicyCommand 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: CreateTrafficPolicyCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class CreateTrafficPolicyCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateTrafficPolicyCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/CreateTrafficPolicyInstanceCommand.ts b/clients/client-route-53/src/commands/CreateTrafficPolicyInstanceCommand.ts index 277d449c422be..4a6d066d86c4e 100644 --- a/clients/client-route-53/src/commands/CreateTrafficPolicyInstanceCommand.ts +++ b/clients/client-route-53/src/commands/CreateTrafficPolicyInstanceCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -60,6 +61,15 @@ export class CreateTrafficPolicyInstanceCommand 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: CreateTrafficPolicyInstanceCommandInput) { // Start section: command_constructor super(); @@ -75,6 +85,9 @@ export class CreateTrafficPolicyInstanceCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateTrafficPolicyInstanceCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/CreateTrafficPolicyVersionCommand.ts b/clients/client-route-53/src/commands/CreateTrafficPolicyVersionCommand.ts index 739136f6b23fc..b67b33daf1120 100644 --- a/clients/client-route-53/src/commands/CreateTrafficPolicyVersionCommand.ts +++ b/clients/client-route-53/src/commands/CreateTrafficPolicyVersionCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -59,6 +60,15 @@ export class CreateTrafficPolicyVersionCommand 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: CreateTrafficPolicyVersionCommandInput) { // Start section: command_constructor super(); @@ -74,6 +84,9 @@ export class CreateTrafficPolicyVersionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateTrafficPolicyVersionCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/CreateVPCAssociationAuthorizationCommand.ts b/clients/client-route-53/src/commands/CreateVPCAssociationAuthorizationCommand.ts index 3fd5a22533e83..6c7260311448b 100644 --- a/clients/client-route-53/src/commands/CreateVPCAssociationAuthorizationCommand.ts +++ b/clients/client-route-53/src/commands/CreateVPCAssociationAuthorizationCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -65,6 +66,15 @@ export class CreateVPCAssociationAuthorizationCommand 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: CreateVPCAssociationAuthorizationCommandInput) { // Start section: command_constructor super(); @@ -80,6 +90,9 @@ export class CreateVPCAssociationAuthorizationCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateVPCAssociationAuthorizationCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/DeactivateKeySigningKeyCommand.ts b/clients/client-route-53/src/commands/DeactivateKeySigningKeyCommand.ts index ff7b92e87e797..51194f44036ad 100644 --- a/clients/client-route-53/src/commands/DeactivateKeySigningKeyCommand.ts +++ b/clients/client-route-53/src/commands/DeactivateKeySigningKeyCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -54,6 +55,15 @@ export class DeactivateKeySigningKeyCommand 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: DeactivateKeySigningKeyCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class DeactivateKeySigningKeyCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeactivateKeySigningKeyCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/DeleteCidrCollectionCommand.ts b/clients/client-route-53/src/commands/DeleteCidrCollectionCommand.ts index 890a8e26e177c..608aa88fb3e3e 100644 --- a/clients/client-route-53/src/commands/DeleteCidrCollectionCommand.ts +++ b/clients/client-route-53/src/commands/DeleteCidrCollectionCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -54,6 +55,15 @@ export class DeleteCidrCollectionCommand 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: DeleteCidrCollectionCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class DeleteCidrCollectionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteCidrCollectionCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/DeleteHealthCheckCommand.ts b/clients/client-route-53/src/commands/DeleteHealthCheckCommand.ts index 08ed32768f993..3166cec545768 100644 --- a/clients/client-route-53/src/commands/DeleteHealthCheckCommand.ts +++ b/clients/client-route-53/src/commands/DeleteHealthCheckCommand.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"; @@ -66,6 +67,15 @@ export class DeleteHealthCheckCommand 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: DeleteHealthCheckCommandInput) { // Start section: command_constructor super(); @@ -81,6 +91,9 @@ export class DeleteHealthCheckCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteHealthCheckCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/DeleteHostedZoneCommand.ts b/clients/client-route-53/src/commands/DeleteHostedZoneCommand.ts index ad583f1669bd0..f63f37054ba1c 100644 --- a/clients/client-route-53/src/commands/DeleteHostedZoneCommand.ts +++ b/clients/client-route-53/src/commands/DeleteHostedZoneCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -94,6 +95,15 @@ export class DeleteHostedZoneCommand 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: DeleteHostedZoneCommandInput) { // Start section: command_constructor super(); @@ -109,6 +119,9 @@ export class DeleteHostedZoneCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteHostedZoneCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/DeleteKeySigningKeyCommand.ts b/clients/client-route-53/src/commands/DeleteKeySigningKeyCommand.ts index 48e21ae02727d..cf8a6a8fa056b 100644 --- a/clients/client-route-53/src/commands/DeleteKeySigningKeyCommand.ts +++ b/clients/client-route-53/src/commands/DeleteKeySigningKeyCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -58,6 +59,15 @@ export class DeleteKeySigningKeyCommand 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: DeleteKeySigningKeyCommandInput) { // Start section: command_constructor super(); @@ -73,6 +83,9 @@ export class DeleteKeySigningKeyCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteKeySigningKeyCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/DeleteQueryLoggingConfigCommand.ts b/clients/client-route-53/src/commands/DeleteQueryLoggingConfigCommand.ts index 35e18c4c39b62..e8d623b2551f2 100644 --- a/clients/client-route-53/src/commands/DeleteQueryLoggingConfigCommand.ts +++ b/clients/client-route-53/src/commands/DeleteQueryLoggingConfigCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -56,6 +57,15 @@ export class DeleteQueryLoggingConfigCommand 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: DeleteQueryLoggingConfigCommandInput) { // Start section: command_constructor super(); @@ -71,6 +81,9 @@ export class DeleteQueryLoggingConfigCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteQueryLoggingConfigCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/DeleteReusableDelegationSetCommand.ts b/clients/client-route-53/src/commands/DeleteReusableDelegationSetCommand.ts index be032f347fbc6..c00ad9ec39734 100644 --- a/clients/client-route-53/src/commands/DeleteReusableDelegationSetCommand.ts +++ b/clients/client-route-53/src/commands/DeleteReusableDelegationSetCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -62,6 +63,15 @@ export class DeleteReusableDelegationSetCommand 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: DeleteReusableDelegationSetCommandInput) { // Start section: command_constructor super(); @@ -77,6 +87,9 @@ export class DeleteReusableDelegationSetCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteReusableDelegationSetCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/DeleteTrafficPolicyCommand.ts b/clients/client-route-53/src/commands/DeleteTrafficPolicyCommand.ts index b2c817d9bffd4..13a26d5d6ddd6 100644 --- a/clients/client-route-53/src/commands/DeleteTrafficPolicyCommand.ts +++ b/clients/client-route-53/src/commands/DeleteTrafficPolicyCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -68,6 +69,15 @@ export class DeleteTrafficPolicyCommand 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: DeleteTrafficPolicyCommandInput) { // Start section: command_constructor super(); @@ -83,6 +93,9 @@ export class DeleteTrafficPolicyCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteTrafficPolicyCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/DeleteTrafficPolicyInstanceCommand.ts b/clients/client-route-53/src/commands/DeleteTrafficPolicyInstanceCommand.ts index bfc668fbb9cf6..f096886908be8 100644 --- a/clients/client-route-53/src/commands/DeleteTrafficPolicyInstanceCommand.ts +++ b/clients/client-route-53/src/commands/DeleteTrafficPolicyInstanceCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -60,6 +61,15 @@ export class DeleteTrafficPolicyInstanceCommand 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: DeleteTrafficPolicyInstanceCommandInput) { // Start section: command_constructor super(); @@ -75,6 +85,9 @@ export class DeleteTrafficPolicyInstanceCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteTrafficPolicyInstanceCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/DeleteVPCAssociationAuthorizationCommand.ts b/clients/client-route-53/src/commands/DeleteVPCAssociationAuthorizationCommand.ts index 0ad7220cfdc0e..77e31bd5ec466 100644 --- a/clients/client-route-53/src/commands/DeleteVPCAssociationAuthorizationCommand.ts +++ b/clients/client-route-53/src/commands/DeleteVPCAssociationAuthorizationCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -66,6 +67,15 @@ export class DeleteVPCAssociationAuthorizationCommand 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: DeleteVPCAssociationAuthorizationCommandInput) { // Start section: command_constructor super(); @@ -81,6 +91,9 @@ export class DeleteVPCAssociationAuthorizationCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteVPCAssociationAuthorizationCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/DisableHostedZoneDNSSECCommand.ts b/clients/client-route-53/src/commands/DisableHostedZoneDNSSECCommand.ts index 684e892073016..f972e2fb2c6bb 100644 --- a/clients/client-route-53/src/commands/DisableHostedZoneDNSSECCommand.ts +++ b/clients/client-route-53/src/commands/DisableHostedZoneDNSSECCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -54,6 +55,15 @@ export class DisableHostedZoneDNSSECCommand 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: DisableHostedZoneDNSSECCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class DisableHostedZoneDNSSECCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DisableHostedZoneDNSSECCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/DisassociateVPCFromHostedZoneCommand.ts b/clients/client-route-53/src/commands/DisassociateVPCFromHostedZoneCommand.ts index 9de0aac4169f8..33930e3dcfe93 100644 --- a/clients/client-route-53/src/commands/DisassociateVPCFromHostedZoneCommand.ts +++ b/clients/client-route-53/src/commands/DisassociateVPCFromHostedZoneCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -103,6 +104,15 @@ export class DisassociateVPCFromHostedZoneCommand 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: DisassociateVPCFromHostedZoneCommandInput) { // Start section: command_constructor super(); @@ -118,6 +128,9 @@ export class DisassociateVPCFromHostedZoneCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DisassociateVPCFromHostedZoneCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/EnableHostedZoneDNSSECCommand.ts b/clients/client-route-53/src/commands/EnableHostedZoneDNSSECCommand.ts index df2b6615ccacb..7075f0b0d0051 100644 --- a/clients/client-route-53/src/commands/EnableHostedZoneDNSSECCommand.ts +++ b/clients/client-route-53/src/commands/EnableHostedZoneDNSSECCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -53,6 +54,15 @@ export class EnableHostedZoneDNSSECCommand 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: EnableHostedZoneDNSSECCommandInput) { // Start section: command_constructor super(); @@ -68,6 +78,9 @@ export class EnableHostedZoneDNSSECCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, EnableHostedZoneDNSSECCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/GetAccountLimitCommand.ts b/clients/client-route-53/src/commands/GetAccountLimitCommand.ts index 78ed4c7ac1e27..798bbcc6e6f3e 100644 --- a/clients/client-route-53/src/commands/GetAccountLimitCommand.ts +++ b/clients/client-route-53/src/commands/GetAccountLimitCommand.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"; @@ -60,6 +61,15 @@ export class GetAccountLimitCommand 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: GetAccountLimitCommandInput) { // Start section: command_constructor super(); @@ -75,6 +85,9 @@ export class GetAccountLimitCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetAccountLimitCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/GetChangeCommand.ts b/clients/client-route-53/src/commands/GetChangeCommand.ts index 7deb4b31cc0e6..a22ad85a8533d 100644 --- a/clients/client-route-53/src/commands/GetChangeCommand.ts +++ b/clients/client-route-53/src/commands/GetChangeCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -64,6 +65,15 @@ export class GetChangeCommand 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: GetChangeCommandInput) { // Start section: command_constructor super(); @@ -79,6 +89,7 @@ export class GetChangeCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, GetChangeCommand.getEndpointParameterInstructions())); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/GetCheckerIpRangesCommand.ts b/clients/client-route-53/src/commands/GetCheckerIpRangesCommand.ts index bff7f3f9dcf1c..4830d4c9100b0 100644 --- a/clients/client-route-53/src/commands/GetCheckerIpRangesCommand.ts +++ b/clients/client-route-53/src/commands/GetCheckerIpRangesCommand.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"; @@ -61,6 +62,15 @@ export class GetCheckerIpRangesCommand 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: GetCheckerIpRangesCommandInput) { // Start section: command_constructor super(); @@ -76,6 +86,9 @@ export class GetCheckerIpRangesCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetCheckerIpRangesCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/GetDNSSECCommand.ts b/clients/client-route-53/src/commands/GetDNSSECCommand.ts index 659ad7dbb6e62..50d127b193ea2 100644 --- a/clients/client-route-53/src/commands/GetDNSSECCommand.ts +++ b/clients/client-route-53/src/commands/GetDNSSECCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -51,6 +52,15 @@ export class GetDNSSECCommand 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: GetDNSSECCommandInput) { // Start section: command_constructor super(); @@ -66,6 +76,7 @@ export class GetDNSSECCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, GetDNSSECCommand.getEndpointParameterInstructions())); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/GetGeoLocationCommand.ts b/clients/client-route-53/src/commands/GetGeoLocationCommand.ts index 6cf9e132800f6..2ddb46ee15598 100644 --- a/clients/client-route-53/src/commands/GetGeoLocationCommand.ts +++ b/clients/client-route-53/src/commands/GetGeoLocationCommand.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"; @@ -77,6 +78,15 @@ export class GetGeoLocationCommand 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: GetGeoLocationCommandInput) { // Start section: command_constructor super(); @@ -92,6 +102,9 @@ export class GetGeoLocationCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetGeoLocationCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/GetHealthCheckCommand.ts b/clients/client-route-53/src/commands/GetHealthCheckCommand.ts index a05097486c00e..b5a07612486ea 100644 --- a/clients/client-route-53/src/commands/GetHealthCheckCommand.ts +++ b/clients/client-route-53/src/commands/GetHealthCheckCommand.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"; @@ -52,6 +53,15 @@ export class GetHealthCheckCommand 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: GetHealthCheckCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetHealthCheckCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetHealthCheckCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/GetHealthCheckCountCommand.ts b/clients/client-route-53/src/commands/GetHealthCheckCountCommand.ts index f69ba2bb792d9..bf101667953be 100644 --- a/clients/client-route-53/src/commands/GetHealthCheckCountCommand.ts +++ b/clients/client-route-53/src/commands/GetHealthCheckCountCommand.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"; @@ -52,6 +53,15 @@ export class GetHealthCheckCountCommand 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: GetHealthCheckCountCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetHealthCheckCountCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetHealthCheckCountCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/GetHealthCheckLastFailureReasonCommand.ts b/clients/client-route-53/src/commands/GetHealthCheckLastFailureReasonCommand.ts index 4b3b23d2a54f0..b3b53dab373ba 100644 --- a/clients/client-route-53/src/commands/GetHealthCheckLastFailureReasonCommand.ts +++ b/clients/client-route-53/src/commands/GetHealthCheckLastFailureReasonCommand.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"; @@ -54,6 +55,15 @@ export class GetHealthCheckLastFailureReasonCommand 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: GetHealthCheckLastFailureReasonCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class GetHealthCheckLastFailureReasonCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetHealthCheckLastFailureReasonCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/GetHealthCheckStatusCommand.ts b/clients/client-route-53/src/commands/GetHealthCheckStatusCommand.ts index 349b4ff578b5e..6e6a72eb21792 100644 --- a/clients/client-route-53/src/commands/GetHealthCheckStatusCommand.ts +++ b/clients/client-route-53/src/commands/GetHealthCheckStatusCommand.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"; @@ -57,6 +58,15 @@ export class GetHealthCheckStatusCommand 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: GetHealthCheckStatusCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class GetHealthCheckStatusCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetHealthCheckStatusCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/GetHostedZoneCommand.ts b/clients/client-route-53/src/commands/GetHostedZoneCommand.ts index 4da5b4711ed29..4b8ebbf3538d1 100644 --- a/clients/client-route-53/src/commands/GetHostedZoneCommand.ts +++ b/clients/client-route-53/src/commands/GetHostedZoneCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -54,6 +55,15 @@ export class GetHostedZoneCommand 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: GetHostedZoneCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,7 @@ export class GetHostedZoneCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, GetHostedZoneCommand.getEndpointParameterInstructions())); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/GetHostedZoneCountCommand.ts b/clients/client-route-53/src/commands/GetHostedZoneCountCommand.ts index ca71036b3f780..1bb93a6b06f07 100644 --- a/clients/client-route-53/src/commands/GetHostedZoneCountCommand.ts +++ b/clients/client-route-53/src/commands/GetHostedZoneCountCommand.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"; @@ -52,6 +53,15 @@ export class GetHostedZoneCountCommand 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: GetHostedZoneCountCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetHostedZoneCountCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetHostedZoneCountCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/GetHostedZoneLimitCommand.ts b/clients/client-route-53/src/commands/GetHostedZoneLimitCommand.ts index 325651335a0ee..8e15030998cf8 100644 --- a/clients/client-route-53/src/commands/GetHostedZoneLimitCommand.ts +++ b/clients/client-route-53/src/commands/GetHostedZoneLimitCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -57,6 +58,15 @@ export class GetHostedZoneLimitCommand 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: GetHostedZoneLimitCommandInput) { // Start section: command_constructor super(); @@ -72,6 +82,9 @@ export class GetHostedZoneLimitCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetHostedZoneLimitCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/GetQueryLoggingConfigCommand.ts b/clients/client-route-53/src/commands/GetQueryLoggingConfigCommand.ts index f54adc186ae3b..710c82cc9cd10 100644 --- a/clients/client-route-53/src/commands/GetQueryLoggingConfigCommand.ts +++ b/clients/client-route-53/src/commands/GetQueryLoggingConfigCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -55,6 +56,15 @@ export class GetQueryLoggingConfigCommand 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: GetQueryLoggingConfigCommandInput) { // Start section: command_constructor super(); @@ -70,6 +80,9 @@ export class GetQueryLoggingConfigCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetQueryLoggingConfigCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/GetReusableDelegationSetCommand.ts b/clients/client-route-53/src/commands/GetReusableDelegationSetCommand.ts index f1e7e61891b08..3389618cc3e6d 100644 --- a/clients/client-route-53/src/commands/GetReusableDelegationSetCommand.ts +++ b/clients/client-route-53/src/commands/GetReusableDelegationSetCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -54,6 +55,15 @@ export class GetReusableDelegationSetCommand 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: GetReusableDelegationSetCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class GetReusableDelegationSetCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetReusableDelegationSetCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/GetReusableDelegationSetLimitCommand.ts b/clients/client-route-53/src/commands/GetReusableDelegationSetLimitCommand.ts index 2182914db297a..23367ff659ccd 100644 --- a/clients/client-route-53/src/commands/GetReusableDelegationSetLimitCommand.ts +++ b/clients/client-route-53/src/commands/GetReusableDelegationSetLimitCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -59,6 +60,15 @@ export class GetReusableDelegationSetLimitCommand 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: GetReusableDelegationSetLimitCommandInput) { // Start section: command_constructor super(); @@ -74,6 +84,9 @@ export class GetReusableDelegationSetLimitCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetReusableDelegationSetLimitCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/GetTrafficPolicyCommand.ts b/clients/client-route-53/src/commands/GetTrafficPolicyCommand.ts index c2f530957b983..d72b41257c7dd 100644 --- a/clients/client-route-53/src/commands/GetTrafficPolicyCommand.ts +++ b/clients/client-route-53/src/commands/GetTrafficPolicyCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -55,6 +56,15 @@ export class GetTrafficPolicyCommand 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: GetTrafficPolicyCommandInput) { // Start section: command_constructor super(); @@ -70,6 +80,9 @@ export class GetTrafficPolicyCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetTrafficPolicyCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/GetTrafficPolicyInstanceCommand.ts b/clients/client-route-53/src/commands/GetTrafficPolicyInstanceCommand.ts index 39ed8bac8e44d..92420a336669c 100644 --- a/clients/client-route-53/src/commands/GetTrafficPolicyInstanceCommand.ts +++ b/clients/client-route-53/src/commands/GetTrafficPolicyInstanceCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -64,6 +65,15 @@ export class GetTrafficPolicyInstanceCommand 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: GetTrafficPolicyInstanceCommandInput) { // Start section: command_constructor super(); @@ -79,6 +89,9 @@ export class GetTrafficPolicyInstanceCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetTrafficPolicyInstanceCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/GetTrafficPolicyInstanceCountCommand.ts b/clients/client-route-53/src/commands/GetTrafficPolicyInstanceCountCommand.ts index 87b8bfa6eec9a..7a97ea2b514ce 100644 --- a/clients/client-route-53/src/commands/GetTrafficPolicyInstanceCountCommand.ts +++ b/clients/client-route-53/src/commands/GetTrafficPolicyInstanceCountCommand.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"; @@ -55,6 +56,15 @@ export class GetTrafficPolicyInstanceCountCommand 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: GetTrafficPolicyInstanceCountCommandInput) { // Start section: command_constructor super(); @@ -70,6 +80,9 @@ export class GetTrafficPolicyInstanceCountCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetTrafficPolicyInstanceCountCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/ListCidrBlocksCommand.ts b/clients/client-route-53/src/commands/ListCidrBlocksCommand.ts index 9056edaaddf7a..c1bf144b7ae50 100644 --- a/clients/client-route-53/src/commands/ListCidrBlocksCommand.ts +++ b/clients/client-route-53/src/commands/ListCidrBlocksCommand.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"; @@ -52,6 +53,15 @@ export class ListCidrBlocksCommand 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: ListCidrBlocksCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class ListCidrBlocksCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListCidrBlocksCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/ListCidrCollectionsCommand.ts b/clients/client-route-53/src/commands/ListCidrCollectionsCommand.ts index 5a9a23de9f6a2..88e82d756e551 100644 --- a/clients/client-route-53/src/commands/ListCidrCollectionsCommand.ts +++ b/clients/client-route-53/src/commands/ListCidrCollectionsCommand.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 ListCidrCollectionsCommand 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: ListCidrCollectionsCommandInput) { // Start section: command_constructor super(); @@ -68,6 +78,9 @@ export class ListCidrCollectionsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListCidrCollectionsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/ListCidrLocationsCommand.ts b/clients/client-route-53/src/commands/ListCidrLocationsCommand.ts index d8e4fbf806196..ca33e5f6e59d2 100644 --- a/clients/client-route-53/src/commands/ListCidrLocationsCommand.ts +++ b/clients/client-route-53/src/commands/ListCidrLocationsCommand.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 ListCidrLocationsCommand 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: ListCidrLocationsCommandInput) { // Start section: command_constructor super(); @@ -68,6 +78,9 @@ export class ListCidrLocationsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListCidrLocationsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/ListGeoLocationsCommand.ts b/clients/client-route-53/src/commands/ListGeoLocationsCommand.ts index f269a9be684ef..67e44c1979f64 100644 --- a/clients/client-route-53/src/commands/ListGeoLocationsCommand.ts +++ b/clients/client-route-53/src/commands/ListGeoLocationsCommand.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"; @@ -60,6 +61,15 @@ export class ListGeoLocationsCommand 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: ListGeoLocationsCommandInput) { // Start section: command_constructor super(); @@ -75,6 +85,9 @@ export class ListGeoLocationsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListGeoLocationsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/ListHealthChecksCommand.ts b/clients/client-route-53/src/commands/ListHealthChecksCommand.ts index 85d297f666c90..ac6aba78869aa 100644 --- a/clients/client-route-53/src/commands/ListHealthChecksCommand.ts +++ b/clients/client-route-53/src/commands/ListHealthChecksCommand.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"; @@ -52,6 +53,15 @@ export class ListHealthChecksCommand 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: ListHealthChecksCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class ListHealthChecksCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListHealthChecksCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/ListHostedZonesByNameCommand.ts b/clients/client-route-53/src/commands/ListHostedZonesByNameCommand.ts index b105bf4d04a65..c3e0416000b3a 100644 --- a/clients/client-route-53/src/commands/ListHostedZonesByNameCommand.ts +++ b/clients/client-route-53/src/commands/ListHostedZonesByNameCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -108,6 +109,15 @@ export class ListHostedZonesByNameCommand 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: ListHostedZonesByNameCommandInput) { // Start section: command_constructor super(); @@ -123,6 +133,9 @@ export class ListHostedZonesByNameCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListHostedZonesByNameCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/ListHostedZonesByVPCCommand.ts b/clients/client-route-53/src/commands/ListHostedZonesByVPCCommand.ts index f462472b10eca..c776d525a6dbf 100644 --- a/clients/client-route-53/src/commands/ListHostedZonesByVPCCommand.ts +++ b/clients/client-route-53/src/commands/ListHostedZonesByVPCCommand.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"; @@ -91,6 +92,15 @@ export class ListHostedZonesByVPCCommand 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: ListHostedZonesByVPCCommandInput) { // Start section: command_constructor super(); @@ -106,6 +116,9 @@ export class ListHostedZonesByVPCCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListHostedZonesByVPCCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/ListHostedZonesCommand.ts b/clients/client-route-53/src/commands/ListHostedZonesCommand.ts index f64f77bf23dfc..87dcba36087e1 100644 --- a/clients/client-route-53/src/commands/ListHostedZonesCommand.ts +++ b/clients/client-route-53/src/commands/ListHostedZonesCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -58,6 +59,15 @@ export class ListHostedZonesCommand 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: ListHostedZonesCommandInput) { // Start section: command_constructor super(); @@ -73,6 +83,9 @@ export class ListHostedZonesCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListHostedZonesCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/ListQueryLoggingConfigsCommand.ts b/clients/client-route-53/src/commands/ListQueryLoggingConfigsCommand.ts index b3971dbc28b6b..d2a58f9b5e55c 100644 --- a/clients/client-route-53/src/commands/ListQueryLoggingConfigsCommand.ts +++ b/clients/client-route-53/src/commands/ListQueryLoggingConfigsCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -58,6 +59,15 @@ export class ListQueryLoggingConfigsCommand 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: ListQueryLoggingConfigsCommandInput) { // Start section: command_constructor super(); @@ -73,6 +83,9 @@ export class ListQueryLoggingConfigsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListQueryLoggingConfigsCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/ListResourceRecordSetsCommand.ts b/clients/client-route-53/src/commands/ListResourceRecordSetsCommand.ts index 48b9ac2c5edd3..226eba69d0431 100644 --- a/clients/client-route-53/src/commands/ListResourceRecordSetsCommand.ts +++ b/clients/client-route-53/src/commands/ListResourceRecordSetsCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -123,6 +124,15 @@ export class ListResourceRecordSetsCommand 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: ListResourceRecordSetsCommandInput) { // Start section: command_constructor super(); @@ -138,6 +148,9 @@ export class ListResourceRecordSetsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListResourceRecordSetsCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/ListReusableDelegationSetsCommand.ts b/clients/client-route-53/src/commands/ListReusableDelegationSetsCommand.ts index bfd38c577ba27..f5100aa33366b 100644 --- a/clients/client-route-53/src/commands/ListReusableDelegationSetsCommand.ts +++ b/clients/client-route-53/src/commands/ListReusableDelegationSetsCommand.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 ListReusableDelegationSetsCommand 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: ListReusableDelegationSetsCommandInput) { // Start section: command_constructor super(); @@ -68,6 +78,9 @@ export class ListReusableDelegationSetsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListReusableDelegationSetsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/ListTagsForResourceCommand.ts b/clients/client-route-53/src/commands/ListTagsForResourceCommand.ts index 83826d8ef4d0c..f93d9cdfea80b 100644 --- a/clients/client-route-53/src/commands/ListTagsForResourceCommand.ts +++ b/clients/client-route-53/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 { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; @@ -54,6 +55,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(); @@ -69,6 +79,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()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/ListTagsForResourcesCommand.ts b/clients/client-route-53/src/commands/ListTagsForResourcesCommand.ts index a0e1aacbdf6e2..a5a4abb72f6d2 100644 --- a/clients/client-route-53/src/commands/ListTagsForResourcesCommand.ts +++ b/clients/client-route-53/src/commands/ListTagsForResourcesCommand.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"; @@ -54,6 +55,15 @@ export class ListTagsForResourcesCommand 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: ListTagsForResourcesCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class ListTagsForResourcesCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListTagsForResourcesCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/ListTrafficPoliciesCommand.ts b/clients/client-route-53/src/commands/ListTrafficPoliciesCommand.ts index e8ad7dc670514..0f5bf6a30e0b8 100644 --- a/clients/client-route-53/src/commands/ListTrafficPoliciesCommand.ts +++ b/clients/client-route-53/src/commands/ListTrafficPoliciesCommand.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 ListTrafficPoliciesCommand 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: ListTrafficPoliciesCommandInput) { // Start section: command_constructor super(); @@ -71,6 +81,9 @@ export class ListTrafficPoliciesCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListTrafficPoliciesCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/ListTrafficPolicyInstancesByHostedZoneCommand.ts b/clients/client-route-53/src/commands/ListTrafficPolicyInstancesByHostedZoneCommand.ts index aa1bef6fb1002..11df8cecb2dd3 100644 --- a/clients/client-route-53/src/commands/ListTrafficPolicyInstancesByHostedZoneCommand.ts +++ b/clients/client-route-53/src/commands/ListTrafficPolicyInstancesByHostedZoneCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -67,6 +68,15 @@ export class ListTrafficPolicyInstancesByHostedZoneCommand 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: ListTrafficPolicyInstancesByHostedZoneCommandInput) { // Start section: command_constructor super(); @@ -82,6 +92,9 @@ export class ListTrafficPolicyInstancesByHostedZoneCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListTrafficPolicyInstancesByHostedZoneCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/ListTrafficPolicyInstancesByPolicyCommand.ts b/clients/client-route-53/src/commands/ListTrafficPolicyInstancesByPolicyCommand.ts index edf77738b5984..da6f81557aa50 100644 --- a/clients/client-route-53/src/commands/ListTrafficPolicyInstancesByPolicyCommand.ts +++ b/clients/client-route-53/src/commands/ListTrafficPolicyInstancesByPolicyCommand.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"; @@ -65,6 +66,15 @@ export class ListTrafficPolicyInstancesByPolicyCommand 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: ListTrafficPolicyInstancesByPolicyCommandInput) { // Start section: command_constructor super(); @@ -80,6 +90,9 @@ export class ListTrafficPolicyInstancesByPolicyCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListTrafficPolicyInstancesByPolicyCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/ListTrafficPolicyInstancesCommand.ts b/clients/client-route-53/src/commands/ListTrafficPolicyInstancesCommand.ts index 619b787705ce2..ba47feabf891b 100644 --- a/clients/client-route-53/src/commands/ListTrafficPolicyInstancesCommand.ts +++ b/clients/client-route-53/src/commands/ListTrafficPolicyInstancesCommand.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 ListTrafficPolicyInstancesCommand 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: ListTrafficPolicyInstancesCommandInput) { // Start section: command_constructor super(); @@ -77,6 +87,9 @@ export class ListTrafficPolicyInstancesCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListTrafficPolicyInstancesCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/ListTrafficPolicyVersionsCommand.ts b/clients/client-route-53/src/commands/ListTrafficPolicyVersionsCommand.ts index 8cd94330884eb..e3819d6fce40c 100644 --- a/clients/client-route-53/src/commands/ListTrafficPolicyVersionsCommand.ts +++ b/clients/client-route-53/src/commands/ListTrafficPolicyVersionsCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -55,6 +56,15 @@ export class ListTrafficPolicyVersionsCommand 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: ListTrafficPolicyVersionsCommandInput) { // Start section: command_constructor super(); @@ -70,6 +80,9 @@ export class ListTrafficPolicyVersionsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListTrafficPolicyVersionsCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/ListVPCAssociationAuthorizationsCommand.ts b/clients/client-route-53/src/commands/ListVPCAssociationAuthorizationsCommand.ts index fb5c148799049..54444f6252f7e 100644 --- a/clients/client-route-53/src/commands/ListVPCAssociationAuthorizationsCommand.ts +++ b/clients/client-route-53/src/commands/ListVPCAssociationAuthorizationsCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -59,6 +60,15 @@ export class ListVPCAssociationAuthorizationsCommand 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: ListVPCAssociationAuthorizationsCommandInput) { // Start section: command_constructor super(); @@ -74,6 +84,9 @@ export class ListVPCAssociationAuthorizationsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListVPCAssociationAuthorizationsCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/TestDNSAnswerCommand.ts b/clients/client-route-53/src/commands/TestDNSAnswerCommand.ts index 4d7b4e4f84250..5eaefa0349852 100644 --- a/clients/client-route-53/src/commands/TestDNSAnswerCommand.ts +++ b/clients/client-route-53/src/commands/TestDNSAnswerCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -56,6 +57,15 @@ export class TestDNSAnswerCommand 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: TestDNSAnswerCommandInput) { // Start section: command_constructor super(); @@ -71,6 +81,7 @@ export class TestDNSAnswerCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, TestDNSAnswerCommand.getEndpointParameterInstructions())); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/UpdateHealthCheckCommand.ts b/clients/client-route-53/src/commands/UpdateHealthCheckCommand.ts index d4149bb159df5..322c587305b6c 100644 --- a/clients/client-route-53/src/commands/UpdateHealthCheckCommand.ts +++ b/clients/client-route-53/src/commands/UpdateHealthCheckCommand.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"; @@ -55,6 +56,15 @@ export class UpdateHealthCheckCommand 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: UpdateHealthCheckCommandInput) { // Start section: command_constructor super(); @@ -70,6 +80,9 @@ export class UpdateHealthCheckCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateHealthCheckCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/UpdateHostedZoneCommentCommand.ts b/clients/client-route-53/src/commands/UpdateHostedZoneCommentCommand.ts index 0f02c55438aa1..14165baba82c4 100644 --- a/clients/client-route-53/src/commands/UpdateHostedZoneCommentCommand.ts +++ b/clients/client-route-53/src/commands/UpdateHostedZoneCommentCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -53,6 +54,15 @@ export class UpdateHostedZoneCommentCommand 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: UpdateHostedZoneCommentCommandInput) { // Start section: command_constructor super(); @@ -68,6 +78,9 @@ export class UpdateHostedZoneCommentCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateHostedZoneCommentCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/UpdateTrafficPolicyCommentCommand.ts b/clients/client-route-53/src/commands/UpdateTrafficPolicyCommentCommand.ts index 0f84f70b219c8..e6a78cd9c5230 100644 --- a/clients/client-route-53/src/commands/UpdateTrafficPolicyCommentCommand.ts +++ b/clients/client-route-53/src/commands/UpdateTrafficPolicyCommentCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -53,6 +54,15 @@ export class UpdateTrafficPolicyCommentCommand 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: UpdateTrafficPolicyCommentCommandInput) { // Start section: command_constructor super(); @@ -68,6 +78,9 @@ export class UpdateTrafficPolicyCommentCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateTrafficPolicyCommentCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/commands/UpdateTrafficPolicyInstanceCommand.ts b/clients/client-route-53/src/commands/UpdateTrafficPolicyInstanceCommand.ts index 647f9f50e50cc..d328e351164ae 100644 --- a/clients/client-route-53/src/commands/UpdateTrafficPolicyInstanceCommand.ts +++ b/clients/client-route-53/src/commands/UpdateTrafficPolicyInstanceCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getIdNormalizerPlugin } from "@aws-sdk/middleware-sdk-route53"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; @@ -77,6 +78,15 @@ export class UpdateTrafficPolicyInstanceCommand 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: UpdateTrafficPolicyInstanceCommandInput) { // Start section: command_constructor super(); @@ -92,6 +102,9 @@ export class UpdateTrafficPolicyInstanceCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateTrafficPolicyInstanceCommand.getEndpointParameterInstructions()) + ); this.middlewareStack.use(getIdNormalizerPlugin(configuration)); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-route-53/src/endpoint/EndpointParameters.ts b/clients/client-route-53/src/endpoint/EndpointParameters.ts new file mode 100644 index 0000000000000..5a1ba983f7baa --- /dev/null +++ b/clients/client-route-53/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: "route53", + }; +}; + +export interface EndpointParameters extends __EndpointParameters { + Region?: string; + UseDualStack?: boolean; + UseFIPS?: boolean; + Endpoint?: string; +} diff --git a/clients/client-route-53/src/endpoint/endpointResolver.ts b/clients/client-route-53/src/endpoint/endpointResolver.ts new file mode 100644 index 0000000000000..4a70bb06b40a8 --- /dev/null +++ b/clients/client-route-53/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-route-53/src/endpoint/ruleset.ts b/clients/client-route-53/src/endpoint/ruleset.ts new file mode 100644 index 0000000000000..e3744625285bb --- /dev/null +++ b/clients/client-route-53/src/endpoint/ruleset.ts @@ -0,0 +1,1442 @@ +// 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: "stringEquals", + argv: [ + { + fn: "getAttr", + argv: [ + { + ref: "PartitionResult", + }, + "name", + ], + }, + "aws", + ], + }, + ], + type: "tree", + rules: [ + { + 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://route-53-fips.{Region}.api.aws", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "route53", + signingRegion: "us-east-1", + }, + ], + }, + 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: [], + endpoint: { + url: "https://route53-fips.amazonaws.com", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "route53", + signingRegion: "us-east-1", + }, + ], + }, + 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://route-53.{Region}.api.aws", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "route53", + signingRegion: "us-east-1", + }, + ], + }, + headers: {}, + }, + type: "endpoint", + }, + ], + }, + { + conditions: [], + error: "DualStack is enabled but this partition does not support DualStack", + type: "error", + }, + ], + }, + { + conditions: [], + endpoint: { + url: "https://route53.amazonaws.com", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "route53", + signingRegion: "us-east-1", + }, + ], + }, + headers: {}, + }, + type: "endpoint", + }, + ], + }, + { + conditions: [ + { + fn: "stringEquals", + argv: [ + { + fn: "getAttr", + argv: [ + { + ref: "PartitionResult", + }, + "name", + ], + }, + "aws-cn", + ], + }, + ], + type: "tree", + rules: [ + { + 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://route-53-fips.{Region}.api.amazonwebservices.com.cn", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "route53", + signingRegion: "cn-northwest-1", + }, + ], + }, + 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: [], + endpoint: { + url: "https://route-53-fips.{Region}.amazonaws.com.cn", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "route53", + signingRegion: "cn-northwest-1", + }, + ], + }, + 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://route-53.{Region}.api.amazonwebservices.com.cn", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "route53", + signingRegion: "cn-northwest-1", + }, + ], + }, + headers: {}, + }, + type: "endpoint", + }, + ], + }, + { + conditions: [], + error: "DualStack is enabled but this partition does not support DualStack", + type: "error", + }, + ], + }, + { + conditions: [], + endpoint: { + url: "https://route53.amazonaws.com.cn", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "route53", + signingRegion: "cn-northwest-1", + }, + ], + }, + headers: {}, + }, + type: "endpoint", + }, + ], + }, + { + conditions: [ + { + fn: "stringEquals", + argv: [ + { + fn: "getAttr", + argv: [ + { + ref: "PartitionResult", + }, + "name", + ], + }, + "aws-us-gov", + ], + }, + ], + type: "tree", + rules: [ + { + 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://route-53-fips.{Region}.api.aws", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "route53", + signingRegion: "us-gov-west-1", + }, + ], + }, + 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: [], + endpoint: { + url: "https://route53.us-gov.amazonaws.com", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "route53", + signingRegion: "us-gov-west-1", + }, + ], + }, + 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://route-53.{Region}.api.aws", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "route53", + signingRegion: "us-gov-west-1", + }, + ], + }, + headers: {}, + }, + type: "endpoint", + }, + ], + }, + { + conditions: [], + error: "DualStack is enabled but this partition does not support DualStack", + type: "error", + }, + ], + }, + { + conditions: [], + endpoint: { + url: "https://route53.us-gov.amazonaws.com", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "route53", + signingRegion: "us-gov-west-1", + }, + ], + }, + headers: {}, + }, + type: "endpoint", + }, + ], + }, + { + conditions: [ + { + fn: "stringEquals", + argv: [ + { + fn: "getAttr", + argv: [ + { + ref: "PartitionResult", + }, + "name", + ], + }, + "aws-iso", + ], + }, + ], + type: "tree", + rules: [ + { + 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: [], + endpoint: { + url: "https://route-53-fips.{Region}.c2s.ic.gov", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "route53", + signingRegion: "us-iso-east-1", + }, + ], + }, + headers: {}, + }, + type: "endpoint", + }, + ], + }, + { + conditions: [], + error: "FIPS is enabled but this partition does not support FIPS", + type: "error", + }, + ], + }, + { + conditions: [], + endpoint: { + url: "https://route53.c2s.ic.gov", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "route53", + signingRegion: "us-iso-east-1", + }, + ], + }, + headers: {}, + }, + type: "endpoint", + }, + ], + }, + { + conditions: [ + { + fn: "stringEquals", + argv: [ + { + fn: "getAttr", + argv: [ + { + ref: "PartitionResult", + }, + "name", + ], + }, + "aws-iso-b", + ], + }, + ], + type: "tree", + rules: [ + { + 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: [], + endpoint: { + url: "https://route-53-fips.{Region}.sc2s.sgov.gov", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "route53", + signingRegion: "us-isob-east-1", + }, + ], + }, + headers: {}, + }, + type: "endpoint", + }, + ], + }, + { + conditions: [], + error: "FIPS is enabled but this partition does not support FIPS", + type: "error", + }, + ], + }, + { + conditions: [], + endpoint: { + url: "https://route53.sc2s.sgov.gov", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "route53", + signingRegion: "us-isob-east-1", + }, + ], + }, + 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://route53-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: [ + { + fn: "stringEquals", + argv: [ + { + ref: "Region", + }, + "aws-global", + ], + }, + ], + endpoint: { + url: "https://route53-fips.amazonaws.com", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "route53", + signingRegion: "us-east-1", + }, + ], + }, + headers: {}, + }, + type: "endpoint", + }, + { + conditions: [ + { + fn: "stringEquals", + argv: [ + { + ref: "Region", + }, + "aws-us-gov-global", + ], + }, + ], + endpoint: { + url: "https://route53.us-gov.amazonaws.com", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "route53", + signingRegion: "us-gov-west-1", + }, + ], + }, + headers: {}, + }, + type: "endpoint", + }, + { + conditions: [], + endpoint: { + url: "https://route53-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://route53.{Region}.{PartitionResult#dualStackDnsSuffix}", + properties: {}, + headers: {}, + }, + type: "endpoint", + }, + ], + }, + { + conditions: [], + error: "DualStack is enabled but this partition does not support DualStack", + type: "error", + }, + ], + }, + { + conditions: [], + type: "tree", + rules: [ + { + conditions: [ + { + fn: "stringEquals", + argv: [ + { + ref: "Region", + }, + "aws-global", + ], + }, + ], + endpoint: { + url: "https://route53.amazonaws.com", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "route53", + signingRegion: "us-east-1", + }, + ], + }, + headers: {}, + }, + type: "endpoint", + }, + { + conditions: [ + { + fn: "stringEquals", + argv: [ + { + ref: "Region", + }, + "aws-cn-global", + ], + }, + ], + endpoint: { + url: "https://route53.amazonaws.com.cn", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "route53", + signingRegion: "cn-northwest-1", + }, + ], + }, + headers: {}, + }, + type: "endpoint", + }, + { + conditions: [ + { + fn: "stringEquals", + argv: [ + { + ref: "Region", + }, + "aws-us-gov-global", + ], + }, + ], + endpoint: { + url: "https://route53.us-gov.amazonaws.com", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "route53", + signingRegion: "us-gov-west-1", + }, + ], + }, + headers: {}, + }, + type: "endpoint", + }, + { + conditions: [ + { + fn: "stringEquals", + argv: [ + { + ref: "Region", + }, + "aws-iso-global", + ], + }, + ], + endpoint: { + url: "https://route53.c2s.ic.gov", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "route53", + signingRegion: "us-iso-east-1", + }, + ], + }, + headers: {}, + }, + type: "endpoint", + }, + { + conditions: [ + { + fn: "stringEquals", + argv: [ + { + ref: "Region", + }, + "aws-iso-b-global", + ], + }, + ], + endpoint: { + url: "https://route53.sc2s.sgov.gov", + properties: { + authSchemes: [ + { + name: "sigv4", + signingName: "route53", + signingRegion: "us-isob-east-1", + }, + ], + }, + headers: {}, + }, + type: "endpoint", + }, + { + conditions: [], + endpoint: { + url: "https://route53.{Region}.{PartitionResult#dnsSuffix}", + properties: {}, + headers: {}, + }, + type: "endpoint", + }, + ], + }, + ], + }, + ], +}; diff --git a/clients/client-route-53/src/endpoints.ts b/clients/client-route-53/src/endpoints.ts deleted file mode 100644 index f2d22b3cbe60e..0000000000000 --- a/clients/client-route-53/src/endpoints.ts +++ /dev/null @@ -1,198 +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 = { - "aws-cn-global": { - variants: [ - { - hostname: "route53.amazonaws.com.cn", - tags: [], - }, - ], - signingRegion: "cn-northwest-1", - }, - "aws-global": { - variants: [ - { - hostname: "route53.amazonaws.com", - tags: [], - }, - { - hostname: "route53-fips.amazonaws.com", - tags: ["fips"], - }, - ], - signingRegion: "us-east-1", - }, - "aws-iso-b-global": { - variants: [ - { - hostname: "route53.sc2s.sgov.gov", - tags: [], - }, - ], - signingRegion: "us-isob-east-1", - }, - "aws-iso-global": { - variants: [ - { - hostname: "route53.c2s.ic.gov", - tags: [], - }, - ], - signingRegion: "us-iso-east-1", - }, - "aws-us-gov-global": { - variants: [ - { - hostname: "route53.us-gov.amazonaws.com", - tags: [], - }, - { - hostname: "route53.us-gov.amazonaws.com", - tags: ["fips"], - }, - ], - signingRegion: "us-gov-west-1", - }, -}; - -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", - "aws-global", - "ca-central-1", - "eu-central-1", - "eu-north-1", - "eu-south-1", - "eu-west-1", - "eu-west-2", - "eu-west-3", - "fips-aws-global", - "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: "route53.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "route53-fips.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "route53-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "route53.{region}.api.aws", - tags: ["dualstack"], - }, - ], - endpoint: "aws-global", - }, - "aws-cn": { - regions: ["aws-cn-global", "cn-north-1", "cn-northwest-1"], - regionRegex: "^cn\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "route53.{region}.amazonaws.com.cn", - tags: [], - }, - { - hostname: "route53-fips.{region}.amazonaws.com.cn", - tags: ["fips"], - }, - { - hostname: "route53-fips.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack", "fips"], - }, - { - hostname: "route53.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack"], - }, - ], - endpoint: "aws-cn-global", - }, - "aws-iso": { - regions: ["aws-iso-global", "us-iso-east-1", "us-iso-west-1"], - regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "route53.{region}.c2s.ic.gov", - tags: [], - }, - { - hostname: "route53-fips.{region}.c2s.ic.gov", - tags: ["fips"], - }, - ], - endpoint: "aws-iso-global", - }, - "aws-iso-b": { - regions: ["aws-iso-b-global", "us-isob-east-1"], - regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "route53.{region}.sc2s.sgov.gov", - tags: [], - }, - { - hostname: "route53-fips.{region}.sc2s.sgov.gov", - tags: ["fips"], - }, - ], - endpoint: "aws-iso-b-global", - }, - "aws-us-gov": { - regions: ["aws-us-gov-global", "fips-aws-us-gov-global", "us-gov-east-1", "us-gov-west-1"], - regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "route53.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "route53-fips.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "route53-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "route53.{region}.api.aws", - tags: ["dualstack"], - }, - ], - endpoint: "aws-us-gov-global", - }, -}; - -export const defaultRegionInfoProvider: RegionInfoProvider = async ( - region: string, - options?: RegionInfoProviderOptions -) => - getRegionInfo(region, { - ...options, - signingService: "route53", - regionHash, - partitionHash, - }); diff --git a/clients/client-route-53/src/runtimeConfig.shared.ts b/clients/client-route-53/src/runtimeConfig.shared.ts index 88e61543cadb4..6ab63a84a730a 100644 --- a/clients/client-route-53/src/runtimeConfig.shared.ts +++ b/clients/client-route-53/src/runtimeConfig.shared.ts @@ -2,7 +2,7 @@ import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; -import { defaultRegionInfoProvider } from "./endpoints"; +import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { Route53ClientConfig } from "./Route53Client"; /** @@ -11,8 +11,8 @@ import { Route53ClientConfig } from "./Route53Client"; export const getRuntimeConfig = (config: Route53ClientConfig) => ({ apiVersion: "2013-04-01", disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), - regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider, serviceId: config?.serviceId ?? "Route 53", urlParser: config?.urlParser ?? parseUrl, }); diff --git a/codegen/sdk-codegen/aws-models/cloudfront.json b/codegen/sdk-codegen/aws-models/cloudfront.json index db836235950d8..6e7971b2b426a 100644 --- a/codegen/sdk-codegen/aws-models/cloudfront.json +++ b/codegen/sdk-codegen/aws-models/cloudfront.json @@ -1,5 +1,5 @@ { - "smithy": "1.0", + "smithy": "2.0", "metadata": { "suppressions": [ { @@ -981,24 +981,6 @@ }, "com.amazonaws.cloudfront#Cloudfront2020_05_31": { "type": "service", - "traits": { - "aws.api#service": { - "sdkId": "CloudFront", - "arnNamespace": "cloudfront", - "cloudFormationName": "CloudFront", - "cloudTrailEventSource": "cloudfront.amazonaws.com", - "endpointPrefix": "cloudfront" - }, - "aws.auth#sigv4": { - "name": "cloudfront" - }, - "aws.protocols#restXml": {}, - "smithy.api#documentation": "Amazon CloudFront\n\t\t

This is the Amazon CloudFront API Reference. This guide\n is for developers who need detailed information about \n\t\t\tCloudFront API actions, data types, and errors. For detailed information about CloudFront features, see the Amazon CloudFront Developer Guide.

", - "smithy.api#title": "Amazon CloudFront", - "smithy.api#xmlNamespace": { - "uri": "http://cloudfront.amazonaws.com/doc/2020-05-31/" - } - }, "version": "2020-05-31", "operations": [ { @@ -1295,7 +1277,973 @@ { "target": "com.amazonaws.cloudfront#UpdateStreamingDistribution" } - ] + ], + "traits": { + "aws.api#service": { + "sdkId": "CloudFront", + "arnNamespace": "cloudfront", + "cloudFormationName": "CloudFront", + "cloudTrailEventSource": "cloudfront.amazonaws.com", + "endpointPrefix": "cloudfront" + }, + "aws.auth#sigv4": { + "name": "cloudfront" + }, + "aws.protocols#restXml": {}, + "smithy.api#documentation": "Amazon CloudFront\n\t\t

This is the Amazon CloudFront API Reference. This guide\n is for developers who need detailed information about \n\t\t\tCloudFront API actions, data types, and errors. For detailed information about CloudFront features, see the Amazon CloudFront Developer Guide.

", + "smithy.api#title": "Amazon CloudFront", + "smithy.api#xmlNamespace": { + "uri": "http://cloudfront.amazonaws.com/doc/2020-05-31/" + }, + "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": "stringEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "name" + ] + }, + "aws" + ] + } + ], + "type": "tree", + "rules": [ + { + "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://cloudfront-fips.{Region}.api.aws", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "cloudfront", + "signingRegion": "us-east-1" + } + ] + }, + "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": [], + "endpoint": { + "url": "https://cloudfront-fips.{Region}.amazonaws.com", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "cloudfront", + "signingRegion": "us-east-1" + } + ] + }, + "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://cloudfront.{Region}.api.aws", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "cloudfront", + "signingRegion": "us-east-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ] + }, + { + "conditions": [], + "endpoint": { + "url": "https://cloudfront.amazonaws.com", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "cloudfront", + "signingRegion": "us-east-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "name" + ] + }, + "aws-cn" + ] + } + ], + "type": "tree", + "rules": [ + { + "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://cloudfront-fips.{Region}.api.amazonwebservices.com.cn", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "cloudfront", + "signingRegion": "cn-northwest-1" + } + ] + }, + "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": [], + "endpoint": { + "url": "https://cloudfront-fips.{Region}.amazonaws.com.cn", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "cloudfront", + "signingRegion": "cn-northwest-1" + } + ] + }, + "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://cloudfront.{Region}.api.amazonwebservices.com.cn", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "cloudfront", + "signingRegion": "cn-northwest-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ] + }, + { + "conditions": [], + "endpoint": { + "url": "https://cloudfront.cn-northwest-1.amazonaws.com.cn", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "cloudfront", + "signingRegion": "cn-northwest-1" + } + ] + }, + "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://cloudfront-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://cloudfront-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://cloudfront.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ] + }, + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "aws-global" + ] + } + ], + "endpoint": { + "url": "https://cloudfront.amazonaws.com", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "cloudfront", + "signingRegion": "us-east-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "aws-cn-global" + ] + } + ], + "endpoint": { + "url": "https://cloudfront.cn-northwest-1.amazonaws.com.cn", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "cloudfront", + "signingRegion": "cn-northwest-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [], + "endpoint": { + "url": "https://cloudfront.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + } + ] + }, + "smithy.rules#endpointTests": { + "testCases": [ + { + "documentation": "For region aws-cn-global with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "cloudfront", + "signingRegion": "cn-northwest-1" + } + ] + }, + "url": "https://cloudfront.cn-northwest-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "aws-cn-global", + "UseDualStack": false, + "UseFIPS": false + } + }, + { + "documentation": "For region aws-global with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "cloudfront", + "signingRegion": "us-east-1" + } + ] + }, + "url": "https://cloudfront.amazonaws.com" + } + }, + "params": { + "Region": "aws-global", + "UseDualStack": false, + "UseFIPS": false + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "Region": "us-east-1", + "UseDualStack": false, + "UseFIPS": 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": { + "Region": "us-east-1", + "UseDualStack": false, + "UseFIPS": true, + "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": { + "Region": "us-east-1", + "UseDualStack": true, + "UseFIPS": false, + "Endpoint": "https://example.com" + } + } + ], + "version": "1.0" + } + } }, "com.amazonaws.cloudfront#CommentType": { "type": "string", @@ -12266,10 +13214,9 @@ "com.amazonaws.cloudfront#SamplingRate": { "type": "double", "traits": { - "smithy.api#box": {}, "smithy.api#range": { - "min": 0.0, - "max": 100.0 + "min": 0, + "max": 100 } } }, @@ -15270,10 +16217,7 @@ } }, "com.amazonaws.cloudfront#boolean": { - "type": "boolean", - "traits": { - "smithy.api#box": {} - } + "type": "boolean" }, "com.amazonaws.cloudfront#distributionIdString": { "type": "string", @@ -15285,25 +16229,18 @@ } }, "com.amazonaws.cloudfront#integer": { - "type": "integer", - "traits": { - "smithy.api#box": {} - } + "type": "integer" }, "com.amazonaws.cloudfront#listConflictingAliasesMaxItemsInteger": { "type": "integer", "traits": { - "smithy.api#box": {}, "smithy.api#range": { "max": 100 } } }, "com.amazonaws.cloudfront#long": { - "type": "long", - "traits": { - "smithy.api#box": {} - } + "type": "long" }, "com.amazonaws.cloudfront#sensitiveStringType": { "type": "string", @@ -15318,4 +16255,4 @@ "type": "timestamp" } } -} +} \ No newline at end of file diff --git a/codegen/sdk-codegen/aws-models/route-53.json b/codegen/sdk-codegen/aws-models/route-53.json index 77bbdd4b0886f..5feafb5b3f6f6 100644 --- a/codegen/sdk-codegen/aws-models/route-53.json +++ b/codegen/sdk-codegen/aws-models/route-53.json @@ -1,5 +1,5 @@ { - "smithy": "1.0", + "smithy": "2.0", "metadata": { "suppressions": [ { @@ -44,24 +44,6 @@ }, "com.amazonaws.route53#AWSDnsV20130401": { "type": "service", - "traits": { - "aws.api#service": { - "sdkId": "Route 53", - "arnNamespace": "route53", - "cloudFormationName": "Route53", - "cloudTrailEventSource": "route53.amazonaws.com", - "endpointPrefix": "route53" - }, - "aws.auth#sigv4": { - "name": "route53" - }, - "aws.protocols#restXml": {}, - "smithy.api#documentation": "

Amazon Route 53 is a highly available and scalable Domain Name System (DNS) web\n\t\t\tservice.

", - "smithy.api#title": "Amazon Route 53", - "smithy.api#xmlNamespace": { - "uri": "https://route53.amazonaws.com/doc/2013-04-01/" - } - }, "version": "2013-04-01", "operations": [ { @@ -274,7 +256,1615 @@ { "target": "com.amazonaws.route53#UpdateTrafficPolicyInstance" } - ] + ], + "traits": { + "aws.api#service": { + "sdkId": "Route 53", + "arnNamespace": "route53", + "cloudFormationName": "Route53", + "cloudTrailEventSource": "route53.amazonaws.com", + "endpointPrefix": "route53" + }, + "aws.auth#sigv4": { + "name": "route53" + }, + "aws.protocols#restXml": {}, + "smithy.api#documentation": "

Amazon Route 53 is a highly available and scalable Domain Name System (DNS) web\n\t\t\tservice.

", + "smithy.api#title": "Amazon Route 53", + "smithy.api#xmlNamespace": { + "uri": "https://route53.amazonaws.com/doc/2013-04-01/" + }, + "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": "stringEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "name" + ] + }, + "aws" + ] + } + ], + "type": "tree", + "rules": [ + { + "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://route-53-fips.{Region}.api.aws", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "us-east-1" + } + ] + }, + "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": [], + "endpoint": { + "url": "https://route53-fips.amazonaws.com", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "us-east-1" + } + ] + }, + "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://route-53.{Region}.api.aws", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "us-east-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ] + }, + { + "conditions": [], + "endpoint": { + "url": "https://route53.amazonaws.com", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "us-east-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "name" + ] + }, + "aws-cn" + ] + } + ], + "type": "tree", + "rules": [ + { + "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://route-53-fips.{Region}.api.amazonwebservices.com.cn", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "cn-northwest-1" + } + ] + }, + "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": [], + "endpoint": { + "url": "https://route-53-fips.{Region}.amazonaws.com.cn", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "cn-northwest-1" + } + ] + }, + "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://route-53.{Region}.api.amazonwebservices.com.cn", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "cn-northwest-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ] + }, + { + "conditions": [], + "endpoint": { + "url": "https://route53.amazonaws.com.cn", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "cn-northwest-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "name" + ] + }, + "aws-us-gov" + ] + } + ], + "type": "tree", + "rules": [ + { + "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://route-53-fips.{Region}.api.aws", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "us-gov-west-1" + } + ] + }, + "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": [], + "endpoint": { + "url": "https://route53.us-gov.amazonaws.com", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "us-gov-west-1" + } + ] + }, + "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://route-53.{Region}.api.aws", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "us-gov-west-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ] + }, + { + "conditions": [], + "endpoint": { + "url": "https://route53.us-gov.amazonaws.com", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "us-gov-west-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "name" + ] + }, + "aws-iso" + ] + } + ], + "type": "tree", + "rules": [ + { + "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": [], + "endpoint": { + "url": "https://route-53-fips.{Region}.c2s.ic.gov", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "us-iso-east-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ] + }, + { + "conditions": [], + "endpoint": { + "url": "https://route53.c2s.ic.gov", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "us-iso-east-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "name" + ] + }, + "aws-iso-b" + ] + } + ], + "type": "tree", + "rules": [ + { + "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": [], + "endpoint": { + "url": "https://route-53-fips.{Region}.sc2s.sgov.gov", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "us-isob-east-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ] + }, + { + "conditions": [], + "endpoint": { + "url": "https://route53.sc2s.sgov.gov", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "us-isob-east-1" + } + ] + }, + "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://route53-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": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "aws-global" + ] + } + ], + "endpoint": { + "url": "https://route53-fips.amazonaws.com", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "us-east-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "aws-us-gov-global" + ] + } + ], + "endpoint": { + "url": "https://route53.us-gov.amazonaws.com", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "us-gov-west-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [], + "endpoint": { + "url": "https://route53-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://route53.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ] + }, + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "aws-global" + ] + } + ], + "endpoint": { + "url": "https://route53.amazonaws.com", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "us-east-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "aws-cn-global" + ] + } + ], + "endpoint": { + "url": "https://route53.amazonaws.com.cn", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "cn-northwest-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "aws-us-gov-global" + ] + } + ], + "endpoint": { + "url": "https://route53.us-gov.amazonaws.com", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "us-gov-west-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "aws-iso-global" + ] + } + ], + "endpoint": { + "url": "https://route53.c2s.ic.gov", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "us-iso-east-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "aws-iso-b-global" + ] + } + ], + "endpoint": { + "url": "https://route53.sc2s.sgov.gov", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "us-isob-east-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [], + "endpoint": { + "url": "https://route53.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + } + ] + }, + "smithy.rules#endpointTests": { + "testCases": [ + { + "documentation": "For region aws-cn-global with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "cn-northwest-1" + } + ] + }, + "url": "https://route53.amazonaws.com.cn" + } + }, + "params": { + "Region": "aws-cn-global", + "UseDualStack": false, + "UseFIPS": false + } + }, + { + "documentation": "For region aws-global with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "us-east-1" + } + ] + }, + "url": "https://route53.amazonaws.com" + } + }, + "params": { + "Region": "aws-global", + "UseDualStack": false, + "UseFIPS": false + } + }, + { + "documentation": "For region aws-iso-global with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "us-iso-east-1" + } + ] + }, + "url": "https://route53.c2s.ic.gov" + } + }, + "params": { + "Region": "aws-iso-global", + "UseDualStack": false, + "UseFIPS": false + } + }, + { + "documentation": "For region aws-iso-b-global with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "us-isob-east-1" + } + ] + }, + "url": "https://route53.sc2s.sgov.gov" + } + }, + "params": { + "Region": "aws-iso-b-global", + "UseDualStack": false, + "UseFIPS": false + } + }, + { + "documentation": "For region aws-us-gov-global with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "us-gov-west-1" + } + ] + }, + "url": "https://route53.us-gov.amazonaws.com" + } + }, + "params": { + "Region": "aws-us-gov-global", + "UseDualStack": false, + "UseFIPS": false + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "Region": "us-east-1", + "UseDualStack": false, + "UseFIPS": 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": { + "Region": "us-east-1", + "UseDualStack": false, + "UseFIPS": true, + "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": { + "Region": "us-east-1", + "UseDualStack": true, + "UseFIPS": false, + "Endpoint": "https://example.com" + } + } + ], + "version": "1.0" + } + } }, "com.amazonaws.route53#AccountLimit": { "type": "structure", @@ -289,6 +1879,7 @@ "Value": { "target": "com.amazonaws.route53#LimitValue", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "

The current value for the limit that is specified by Type.

", "smithy.api#required": {} } @@ -426,7 +2017,10 @@ } }, "com.amazonaws.route53#AliasHealthEnabled": { - "type": "boolean" + "type": "boolean", + "traits": { + "smithy.api#default": false + } }, "com.amazonaws.route53#AliasTarget": { "type": "structure", @@ -448,6 +2042,7 @@ "EvaluateTargetHealth": { "target": "com.amazonaws.route53#AliasHealthEnabled", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

\n Applies only to alias, failover alias, geolocation alias, latency alias, and\n\t\t\t\tweighted alias resource record sets: When\n\t\t\t\tEvaluateTargetHealth is true, an alias resource record set\n\t\t\tinherits the health of the referenced Amazon Web Services resource, such as an ELB load\n\t\t\tbalancer or another resource record set in the hosted zone.

\n\t\t

Note the following:

\n\t\t
\n
CloudFront distributions
\n
\n\t\t\t\t\t

You can't set EvaluateTargetHealth to true when\n\t\t\t\t\t\tthe alias target is a CloudFront distribution.

\n\t\t\t\t
\n
Elastic Beanstalk environments that have regionalized subdomains
\n
\n\t\t\t\t\t

If you specify an Elastic Beanstalk environment in DNSName\n\t\t\t\t\t\tand the environment contains an ELB load balancer, Elastic Load Balancing\n\t\t\t\t\t\troutes queries only to the healthy Amazon EC2 instances that are registered\n\t\t\t\t\t\twith the load balancer. (An environment automatically contains an ELB load\n\t\t\t\t\t\tbalancer if it includes more than one Amazon EC2 instance.) If you set\n\t\t\t\t\t\t\tEvaluateTargetHealth to true and either no\n\t\t\t\t\t\tAmazon EC2 instances are healthy or the load balancer itself is unhealthy,\n\t\t\t\t\t\tRoute 53 routes queries to other available resources that are healthy, if\n\t\t\t\t\t\tany.

\n\t\t\t\t\t

If the environment contains a single Amazon EC2 instance, there are no\n\t\t\t\t\t\tspecial requirements.

\n\t\t\t\t
\n
ELB load balancers
\n
\n\t\t\t\t\t

Health checking behavior depends on the type of load balancer:

\n\t\t\t\t\t
    \n
  • \n\t\t\t\t\t\t\t

    \n Classic Load Balancers: If you\n\t\t\t\t\t\t\t\tspecify an ELB Classic Load Balancer in DNSName,\n\t\t\t\t\t\t\t\tElastic Load Balancing routes queries only to the healthy Amazon EC2\n\t\t\t\t\t\t\t\tinstances that are registered with the load balancer. If you set\n\t\t\t\t\t\t\t\t\tEvaluateTargetHealth to true and\n\t\t\t\t\t\t\t\teither no EC2 instances are healthy or the load balancer itself is\n\t\t\t\t\t\t\t\tunhealthy, Route 53 routes queries to other resources.

    \n\t\t\t\t\t\t
  • \n
  • \n\t\t\t\t\t\t\t

    \n Application and Network Load\n\t\t\t\t\t\t\t\t\tBalancers: If you specify an ELB Application or\n\t\t\t\t\t\t\t\tNetwork Load Balancer and you set EvaluateTargetHealth\n\t\t\t\t\t\t\t\tto true, Route 53 routes queries to the load balancer\n\t\t\t\t\t\t\t\tbased on the health of the target groups that are associated with\n\t\t\t\t\t\t\t\tthe load balancer:

    \n\t\t\t\t\t\t\t
      \n
    • \n\t\t\t\t\t\t\t\t\t

      For an Application or Network Load Balancer to be\n\t\t\t\t\t\t\t\t\t\tconsidered healthy, every target group that contains targets\n\t\t\t\t\t\t\t\t\t\tmust contain at least one healthy target. If any target\n\t\t\t\t\t\t\t\t\t\tgroup contains only unhealthy targets, the load balancer is\n\t\t\t\t\t\t\t\t\t\tconsidered unhealthy, and Route 53 routes queries to other\n\t\t\t\t\t\t\t\t\t\tresources.

      \n\t\t\t\t\t\t\t\t
    • \n
    • \n\t\t\t\t\t\t\t\t\t

      A target group that has no registered targets is\n\t\t\t\t\t\t\t\t\t\tconsidered unhealthy.

      \n\t\t\t\t\t\t\t\t
    • \n
    \n\t\t\t\t\t\t
  • \n
\n\t\t\t\t\t \n\t\t\t\t\t\t

When you create a load balancer, you configure settings for Elastic\n\t\t\t\t\t\t\tLoad Balancing health checks; they're not Route 53 health checks, but\n\t\t\t\t\t\t\tthey perform a similar function. Do not create Route 53 health checks\n\t\t\t\t\t\t\tfor the EC2 instances that you register with an ELB load balancer.\n\t\t\t\t\t\t

\n\t\t\t\t\t
\n\t\t\t\t
\n
S3 buckets
\n
\n\t\t\t\t\t

There are no special requirements for setting\n\t\t\t\t\t\t\tEvaluateTargetHealth to true when the alias\n\t\t\t\t\t\ttarget is an S3 bucket.

\n\t\t\t\t
\n
Other records in the same hosted zone
\n
\n\t\t\t\t\t

If the Amazon Web Services resource that you specify in\n\t\t\t\t\t\t\tDNSName is a record or a group of records (for example, a\n\t\t\t\t\t\tgroup of weighted records) but is not another alias record, we recommend\n\t\t\t\t\t\tthat you associate a health check with all of the records in the alias\n\t\t\t\t\t\ttarget. For more information, see What Happens When You Omit Health Checks? in the\n\t\t\t\t\t\t\tAmazon Route 53 Developer Guide.

\n\t\t\t\t
\n
\n\t\t

For more information and examples, see Amazon Route 53 Health Checks\n\t\t\t\tand DNS Failover in the Amazon Route 53 Developer\n\t\t\tGuide.

", "smithy.api#required": {} } @@ -1417,7 +3012,6 @@ "com.amazonaws.route53#CollectionVersion": { "type": "long", "traits": { - "smithy.api#box": {}, "smithy.api#range": { "min": 1 } @@ -3241,10 +4835,7 @@ } }, "com.amazonaws.route53#Disabled": { - "type": "boolean", - "traits": { - "smithy.api#box": {} - } + "type": "boolean" }, "com.amazonaws.route53#DisassociateVPCComment": { "type": "string" @@ -3398,10 +4989,7 @@ } }, "com.amazonaws.route53#EnableSNI": { - "type": "boolean", - "traits": { - "smithy.api#box": {} - } + "type": "boolean" }, "com.amazonaws.route53#ErrorMessage": { "type": "string" @@ -3418,7 +5006,6 @@ "com.amazonaws.route53#EvaluationPeriods": { "type": "integer", "traits": { - "smithy.api#box": {}, "smithy.api#range": { "min": 1 } @@ -3427,7 +5014,6 @@ "com.amazonaws.route53#FailureThreshold": { "type": "integer", "traits": { - "smithy.api#box": {}, "smithy.api#range": { "min": 1, "max": 10 @@ -3627,6 +5213,7 @@ "Count": { "target": "com.amazonaws.route53#UsageCount", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "

The current number of entities that you have created of the specified type. For\n\t\t\texample, if you specified MAX_HEALTH_CHECKS_BY_OWNER for the value of\n\t\t\t\tType in the request, the value of Count is the current\n\t\t\tnumber of health checks that you have created using the current account.

", "smithy.api#required": {} } @@ -4221,6 +5808,7 @@ "Count": { "target": "com.amazonaws.route53#UsageCount", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "

The current number of entities that you have created of the specified type. For\n\t\t\texample, if you specified MAX_RRSETS_BY_ZONE for the value of\n\t\t\t\tType in the request, the value of Count is the current\n\t\t\tnumber of records that you have created in the specified hosted zone.

", "smithy.api#required": {} } @@ -4413,6 +6001,7 @@ "Count": { "target": "com.amazonaws.route53#UsageCount", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "

The current number of hosted zones that you can associate with the specified reusable\n\t\t\tdelegation set.

", "smithy.api#required": {} } @@ -4794,10 +6383,7 @@ } }, "com.amazonaws.route53#HealthCheckCount": { - "type": "long", - "traits": { - "smithy.api#box": {} - } + "type": "long" }, "com.amazonaws.route53#HealthCheckId": { "type": "string", @@ -4969,7 +6555,6 @@ "com.amazonaws.route53#HealthCheckVersion": { "type": "long", "traits": { - "smithy.api#box": {}, "smithy.api#range": { "min": 1 } @@ -5000,7 +6585,6 @@ "com.amazonaws.route53#HealthThreshold": { "type": "integer", "traits": { - "smithy.api#box": {}, "smithy.api#range": { "min": 0, "max": 256 @@ -5082,6 +6666,7 @@ "PrivateZone": { "target": "com.amazonaws.route53#IsPrivateZone", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

A value that indicates whether this is a private hosted zone.

" } } @@ -5091,10 +6676,7 @@ } }, "com.amazonaws.route53#HostedZoneCount": { - "type": "long", - "traits": { - "smithy.api#box": {} - } + "type": "long" }, "com.amazonaws.route53#HostedZoneLimit": { "type": "structure", @@ -5109,6 +6691,7 @@ "Value": { "target": "com.amazonaws.route53#LimitValue", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "

The current value for the limit that is specified by Type.

", "smithy.api#required": {} } @@ -5221,10 +6804,7 @@ } }, "com.amazonaws.route53#HostedZoneRRSetCount": { - "type": "long", - "traits": { - "smithy.api#box": {} - } + "type": "long" }, "com.amazonaws.route53#HostedZoneSummaries": { "type": "list", @@ -5492,14 +7072,14 @@ } }, "com.amazonaws.route53#Inverted": { + "type": "boolean" + }, + "com.amazonaws.route53#IsPrivateZone": { "type": "boolean", "traits": { - "smithy.api#box": {} + "smithy.api#default": false } }, - "com.amazonaws.route53#IsPrivateZone": { - "type": "boolean" - }, "com.amazonaws.route53#KeySigningKey": { "type": "structure", "members": { @@ -5518,6 +7098,7 @@ "Flag": { "target": "com.amazonaws.route53#SigningKeyInteger", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "

An integer that specifies how the key is used. For key-signing key (KSK), this value\n\t\t\tis always 257.

" } }, @@ -5530,6 +7111,7 @@ "SigningAlgorithmType": { "target": "com.amazonaws.route53#SigningKeyInteger", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "

An integer used to represent the signing algorithm. This value must follow the\n\t\t\tguidelines provided by RFC-8624 Section 3.1.

" } }, @@ -5542,12 +7124,14 @@ "DigestAlgorithmType": { "target": "com.amazonaws.route53#SigningKeyInteger", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "

An integer used to represent the delegation signer digest algorithm. This value must\n\t\t\tfollow the guidelines provided by RFC-8624 Section\n\t\t\t3.3.

" } }, "KeyTag": { "target": "com.amazonaws.route53#SigningKeyTag", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "

An integer used to identify the DNSSEC record for the domain name. The process used to\n\t\t\tcalculate the value is described in RFC-4034 Appendix B.

" } }, @@ -5679,6 +7263,7 @@ "com.amazonaws.route53#LimitValue": { "type": "long", "traits": { + "smithy.api#default": 0, "smithy.api#range": { "min": 1 } @@ -6014,6 +7599,7 @@ "IsTruncated": { "target": "com.amazonaws.route53#PageTruncated", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

A value that indicates whether more locations remain to be listed after the last\n\t\t\tlocation in this response. If so, the value of IsTruncated is\n\t\t\t\ttrue. To get more values, submit another request and include the values\n\t\t\tof NextContinentCode, NextCountryCode, and\n\t\t\t\tNextSubdivisionCode in the startcontinentcode,\n\t\t\t\tstartcountrycode, and startsubdivisioncode, as\n\t\t\tapplicable.

", "smithy.api#required": {} } @@ -6121,6 +7707,7 @@ "IsTruncated": { "target": "com.amazonaws.route53#PageTruncated", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

A flag that indicates whether there are more health checks to be listed. If the\n\t\t\tresponse was truncated, you can get the next group of health checks by submitting\n\t\t\tanother ListHealthChecks request and specifying the value of\n\t\t\t\tNextMarker in the marker parameter.

", "smithy.api#required": {} } @@ -6256,6 +7843,7 @@ "IsTruncated": { "target": "com.amazonaws.route53#PageTruncated", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

A flag that indicates whether there are more hosted zones to be listed. If the\n\t\t\tresponse was truncated, you can get the next group of maxitems hosted zones\n\t\t\tby calling ListHostedZonesByName again and specifying the values of\n\t\t\t\tNextDNSName and NextHostedZoneId elements in the\n\t\t\t\tdnsname and hostedzoneid parameters.

", "smithy.api#required": {} } @@ -6421,6 +8009,7 @@ "IsTruncated": { "target": "com.amazonaws.route53#PageTruncated", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

A flag indicating whether there are more hosted zones to be listed. If the response\n\t\t\twas truncated, you can get more hosted zones by submitting another\n\t\t\t\tListHostedZones request and specifying the value of\n\t\t\t\tNextMarker in the marker parameter.

", "smithy.api#required": {} } @@ -6600,6 +8189,7 @@ "IsTruncated": { "target": "com.amazonaws.route53#PageTruncated", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

A flag that indicates whether more resource record sets remain to be listed. If your\n\t\t\tresults were truncated, you can make a follow-up pagination request by using the\n\t\t\t\tNextRecordName element.

", "smithy.api#required": {} } @@ -6698,6 +8288,7 @@ "IsTruncated": { "target": "com.amazonaws.route53#PageTruncated", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

A flag that indicates whether there are more reusable delegation sets to be\n\t\t\tlisted.

", "smithy.api#required": {} } @@ -6922,6 +8513,7 @@ "IsTruncated": { "target": "com.amazonaws.route53#PageTruncated", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

A flag that indicates whether there are more traffic policies to be listed. If the\n\t\t\tresponse was truncated, you can get the next group of traffic policies by submitting\n\t\t\tanother ListTrafficPolicies request and specifying the value of\n\t\t\t\tTrafficPolicyIdMarker in the TrafficPolicyIdMarker request\n\t\t\tparameter.

", "smithy.api#required": {} } @@ -7060,6 +8652,7 @@ "IsTruncated": { "target": "com.amazonaws.route53#PageTruncated", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

A flag that indicates whether there are more traffic policy instances to be listed. If\n\t\t\tthe response was truncated, you can get the next group of traffic policy instances by\n\t\t\tsubmitting another ListTrafficPolicyInstancesByHostedZone request and\n\t\t\tspecifying the values of HostedZoneIdMarker,\n\t\t\t\tTrafficPolicyInstanceNameMarker, and\n\t\t\t\tTrafficPolicyInstanceTypeMarker in the corresponding request\n\t\t\tparameters.

", "smithy.api#required": {} } @@ -7187,6 +8780,7 @@ "IsTruncated": { "target": "com.amazonaws.route53#PageTruncated", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

A flag that indicates whether there are more traffic policy instances to be listed. If\n\t\t\tthe response was truncated, you can get the next group of traffic policy instances by\n\t\t\tcalling ListTrafficPolicyInstancesByPolicy again and specifying the values\n\t\t\tof the HostedZoneIdMarker, TrafficPolicyInstanceNameMarker,\n\t\t\tand TrafficPolicyInstanceTypeMarker elements in the corresponding request\n\t\t\tparameters.

", "smithy.api#required": {} } @@ -7270,6 +8864,7 @@ "IsTruncated": { "target": "com.amazonaws.route53#PageTruncated", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

A flag that indicates whether there are more traffic policy instances to be listed. If\n\t\t\tthe response was truncated, you can get more traffic policy instances by calling\n\t\t\t\tListTrafficPolicyInstances again and specifying the values of the\n\t\t\t\tHostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and\n\t\t\t\tTrafficPolicyInstanceTypeMarker in the corresponding request\n\t\t\tparameters.

", "smithy.api#required": {} } @@ -7354,6 +8949,7 @@ "IsTruncated": { "target": "com.amazonaws.route53#PageTruncated", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "

A flag that indicates whether there are more traffic policies to be listed. If the\n\t\t\tresponse was truncated, you can get the next group of traffic policies by submitting\n\t\t\tanother ListTrafficPolicyVersions request and specifying the value of\n\t\t\t\tNextMarker in the marker parameter.

", "smithy.api#required": {} } @@ -7484,10 +9080,7 @@ } }, "com.amazonaws.route53#MeasureLatency": { - "type": "boolean", - "traits": { - "smithy.api#box": {} - } + "type": "boolean" }, "com.amazonaws.route53#Message": { "type": "string", @@ -7733,7 +9326,10 @@ } }, "com.amazonaws.route53#PageTruncated": { - "type": "boolean" + "type": "boolean", + "traits": { + "smithy.api#default": false + } }, "com.amazonaws.route53#PaginationToken": { "type": "string", @@ -7747,7 +9343,6 @@ "com.amazonaws.route53#Period": { "type": "integer", "traits": { - "smithy.api#box": {}, "smithy.api#range": { "min": 60 } @@ -7756,7 +9351,6 @@ "com.amazonaws.route53#Port": { "type": "integer", "traits": { - "smithy.api#box": {}, "smithy.api#range": { "min": 1, "max": 65535 @@ -7942,7 +9536,6 @@ "com.amazonaws.route53#RequestInterval": { "type": "integer", "traits": { - "smithy.api#box": {}, "smithy.api#range": { "min": 10, "max": 30 @@ -8149,10 +9742,7 @@ } }, "com.amazonaws.route53#ResourceRecordSetMultiValueAnswer": { - "type": "boolean", - "traits": { - "smithy.api#box": {} - } + "type": "boolean" }, "com.amazonaws.route53#ResourceRecordSetRegion": { "type": "string", @@ -8264,7 +9854,6 @@ "com.amazonaws.route53#ResourceRecordSetWeight": { "type": "long", "traits": { - "smithy.api#box": {}, "smithy.api#range": { "min": 0, "max": 255 @@ -8351,6 +9940,7 @@ "Value": { "target": "com.amazonaws.route53#LimitValue", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "

The current value for the MAX_ZONES_BY_REUSABLE_DELEGATION_SET\n\t\t\tlimit.

", "smithy.api#required": {} } @@ -8408,7 +9998,10 @@ } }, "com.amazonaws.route53#SigningKeyInteger": { - "type": "integer" + "type": "integer", + "traits": { + "smithy.api#default": 0 + } }, "com.amazonaws.route53#SigningKeyName": { "type": "string", @@ -8443,6 +10036,7 @@ "com.amazonaws.route53#SigningKeyTag": { "type": "integer", "traits": { + "smithy.api#default": 0, "smithy.api#range": { "min": 0, "max": 65536 @@ -8511,7 +10105,6 @@ "com.amazonaws.route53#TTL": { "type": "long", "traits": { - "smithy.api#box": {}, "smithy.api#range": { "min": 0, "max": 2147483647 @@ -8754,10 +10347,7 @@ } }, "com.amazonaws.route53#Threshold": { - "type": "double", - "traits": { - "smithy.api#box": {} - } + "type": "double" }, "com.amazonaws.route53#ThrottlingException": { "type": "structure", @@ -9084,10 +10674,7 @@ } }, "com.amazonaws.route53#TrafficPolicyInstanceCount": { - "type": "integer", - "traits": { - "smithy.api#box": {} - } + "type": "integer" }, "com.amazonaws.route53#TrafficPolicyInstanceId": { "type": "string", @@ -9174,7 +10761,6 @@ "com.amazonaws.route53#TrafficPolicyVersion": { "type": "integer", "traits": { - "smithy.api#box": {}, "smithy.api#range": { "min": 1, "max": 1000 @@ -9582,6 +11168,7 @@ "com.amazonaws.route53#UsageCount": { "type": "long", "traits": { + "smithy.api#default": 0, "smithy.api#range": { "min": 0 } @@ -9789,4 +11376,4 @@ } } } -} +} \ No newline at end of file diff --git a/codegen/sdk-codegen/aws-models/s3-control.json b/codegen/sdk-codegen/aws-models/s3-control.json index 4f8a950b4c6ce..be29389a97f7a 100644 --- a/codegen/sdk-codegen/aws-models/s3-control.json +++ b/codegen/sdk-codegen/aws-models/s3-control.json @@ -2592,8 +2592,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -2644,8 +2648,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -2696,8 +2704,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -2747,8 +2759,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -2798,8 +2814,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -2849,8 +2869,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -2902,8 +2926,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -2956,8 +2984,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -3007,8 +3039,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -3060,8 +3096,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -3114,8 +3154,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -3165,8 +3209,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -3218,8 +3266,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -3612,8 +3664,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -3725,8 +3781,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -3828,8 +3888,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -4027,8 +4091,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -4069,8 +4137,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -4110,8 +4182,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -4151,8 +4227,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -4192,8 +4272,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -4246,8 +4330,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -4288,8 +4376,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -4329,8 +4421,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -4370,8 +4466,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -4411,8 +4511,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -4465,8 +4569,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -4507,8 +4615,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -4548,8 +4660,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -4589,8 +4705,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -4630,8 +4750,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -5419,8 +5543,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -5684,8 +5812,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -5735,8 +5867,12 @@ "expect": { "endpoint": { "headers": { - "x-amz-account-id": ["123456789012"], - "x-amz-outpost-id": ["op-01234567890123456"] + "x-amz-account-id": [ + "123456789012" + ], + "x-amz-outpost-id": [ + "op-01234567890123456" + ] }, "properties": { "authSchemes": [ @@ -14199,4 +14335,4 @@ } } } -} +} \ No newline at end of file diff --git a/codegen/sdk-codegen/aws-models/s3.json b/codegen/sdk-codegen/aws-models/s3.json index f9f7531fb21ab..df00d01967978 100644 --- a/codegen/sdk-codegen/aws-models/s3.json +++ b/codegen/sdk-codegen/aws-models/s3.json @@ -10900,7 +10900,9 @@ "authSchemes": [ { "name": "sigv4a", - "signingRegionSet": ["*"], + "signingRegionSet": [ + "*" + ], "signingName": "s3", "disableDoubleEncoding": true } @@ -21585,7 +21587,12 @@ "traits": { "aws.protocols#httpChecksum": { "requestValidationModeMember": "ChecksumMode", - "responseAlgorithms": ["CRC32", "CRC32C", "SHA256", "SHA1"] + "responseAlgorithms": [ + "CRC32", + "CRC32C", + "SHA256", + "SHA1" + ] }, "smithy.api#documentation": "

Retrieves objects from Amazon S3. To use GET, you must have READ\n access to the object. If you grant READ access to the anonymous user, you can\n return the object without using an authorization header.

\n\n

An Amazon S3 bucket has no directory hierarchy such as you would find in a typical computer\n file system. You can, however, create a logical hierarchy by using object key names that\n imply a folder structure. For example, instead of naming an object sample.jpg,\n you can name it photos/2006/February/sample.jpg.

\n\n

To get an object from such a logical hierarchy, specify the full key name for the object\n in the GET operation. For a virtual hosted-style request example, if you have\n the object photos/2006/February/sample.jpg, specify the resource as\n /photos/2006/February/sample.jpg. For a path-style request example, if you\n have the object photos/2006/February/sample.jpg in the bucket named\n examplebucket, specify the resource as\n /examplebucket/photos/2006/February/sample.jpg. For more information about\n request types, see HTTP Host Header Bucket Specification.

\n\n

For more information about returning the ACL of an object, see GetObjectAcl.

\n\n

If the object you are retrieving is stored in the S3 Glacier or\n S3 Glacier Deep Archive storage class, or S3 Intelligent-Tiering Archive or\n S3 Intelligent-Tiering Deep Archive tiers, before you can retrieve the object you must first restore a\n copy using RestoreObject. Otherwise, this action returns an\n InvalidObjectStateError error. For information about restoring archived\n objects, see Restoring Archived\n Objects.

\n\n

Encryption request headers, like x-amz-server-side-encryption, should not\n be sent for GET requests if your object uses server-side encryption with KMS keys (SSE-KMS) \n or server-side encryption with Amazon S3–managed encryption keys (SSE-S3). If your\n object does use these types of keys, you’ll get an HTTP 400 BadRequest error.

\n

If you encrypt an object by using server-side encryption with customer-provided\n encryption keys (SSE-C) when you store the object in Amazon S3, then when you GET the object,\n you must use the following headers:

\n
    \n
  • \n

    x-amz-server-side-encryption-customer-algorithm

    \n
  • \n
  • \n

    x-amz-server-side-encryption-customer-key

    \n
  • \n
  • \n

    x-amz-server-side-encryption-customer-key-MD5

    \n
  • \n
\n

For more information about SSE-C, see Server-Side Encryption (Using\n Customer-Provided Encryption Keys).

\n\n

Assuming you have the relevant permission to read object tags, the response also returns the\n x-amz-tagging-count header that provides the count of number of tags\n associated with the object. You can use GetObjectTagging to retrieve\n the tag set associated with an object.

\n\n

\n Permissions\n

\n

You need the relevant read object (or version) permission for this operation. For more\n information, see Specifying Permissions\n in a Policy. If the object you request does not exist, the error Amazon S3 returns\n depends on whether you also have the s3:ListBucket permission.

\n
    \n
  • \n

    If you have the s3:ListBucket permission on the bucket, Amazon S3 will\n return an HTTP status code 404 (\"no such key\") error.

    \n
  • \n
  • \n

    If you don’t have the s3:ListBucket permission, Amazon S3 will return an\n HTTP status code 403 (\"access denied\") error.

    \n
  • \n
\n\n\n

\n Versioning\n

\n

By default, the GET action returns the current version of an object. To return a\n different version, use the versionId subresource.

\n\n \n
    \n
  • \n

    \n If you supply a versionId, you need the s3:GetObjectVersion permission to\n access a specific version of an object. If you request a specific version, you do not need to have\n the s3:GetObject permission.\n

    \n
  • \n
  • \n

    If the current version of the object is a delete marker, Amazon S3 behaves as if the\n object was deleted and includes x-amz-delete-marker: true in the\n response.

    \n
  • \n
\n
\n\n\n

For more information about versioning, see PutBucketVersioning.

\n\n

\n Overriding Response Header Values\n

\n

There are times when you want to override certain response header values in a GET\n response. For example, you might override the Content-Disposition response\n header value in your GET request.

\n\n

You can override values for a set of response headers using the following query\n parameters. These response header values are sent only on a successful request, that is,\n when status code 200 OK is returned. The set of headers you can override using these\n parameters is a subset of the headers that Amazon S3 accepts when you create an object. The\n response headers that you can override for the GET response are Content-Type,\n Content-Language, Expires, Cache-Control,\n Content-Disposition, and Content-Encoding. To override these\n header values in the GET response, you use the following request parameters.

\n\n \n

You must sign the request, either using an Authorization header or a presigned URL,\n when using these parameters. They cannot be used with an unsigned (anonymous)\n request.

\n
\n
    \n
  • \n

    \n response-content-type\n

    \n
  • \n
  • \n

    \n response-content-language\n

    \n
  • \n
  • \n

    \n response-expires\n

    \n
  • \n
  • \n

    \n response-cache-control\n

    \n
  • \n
  • \n

    \n response-content-disposition\n

    \n
  • \n
  • \n

    \n response-content-encoding\n

    \n
  • \n
\n\n

\n Additional Considerations about Request Headers\n

\n\n

If both of the If-Match and If-Unmodified-Since headers are\n present in the request as follows: If-Match condition evaluates to\n true, and; If-Unmodified-Since condition evaluates to\n false; then, S3 returns 200 OK and the data requested.

\n\n

If both of the If-None-Match and If-Modified-Since headers are\n present in the request as follows: If-None-Match condition evaluates to\n false, and; If-Modified-Since condition evaluates to\n true; then, S3 returns 304 Not Modified response code.

\n\n

For more information about conditional requests, see RFC 7232.

\n\n

The following operations are related to GetObject:

\n ", "smithy.api#http": { @@ -31329,7 +31336,9 @@ }, "traits": { "aws.auth#unsignedPayload": {}, - "smithy.api#auth": ["aws.auth#sigv4"], + "smithy.api#auth": [ + "aws.auth#sigv4" + ], "smithy.api#documentation": "

Passes transformed\n objects to a GetObject operation when using Object Lambda access points. For information about\n Object Lambda access points, see Transforming objects with\n Object Lambda access points in the Amazon S3 User Guide.

\n

This operation supports metadata that can be returned by GetObject, in addition to\n RequestRoute, RequestToken, StatusCode,\n ErrorCode, and ErrorMessage. The GetObject\n response metadata is supported so that the WriteGetObjectResponse caller,\n typically an Lambda function, can provide the same metadata when it internally invokes\n GetObject. When WriteGetObjectResponse is called by a\n customer-owned Lambda function, the metadata returned to the end user\n GetObject call might differ from what Amazon S3 would normally return.

\n

You can include any number of metadata headers. When including a metadata header, it should be\n prefaced with x-amz-meta. For example, x-amz-meta-my-custom-header: MyCustomValue.\n The primary use case for this is to forward GetObject metadata.

\n

Amazon Web Services provides some prebuilt Lambda functions that you can use with S3 Object Lambda to detect and redact\n personally identifiable information (PII) and decompress S3 objects. These Lambda functions\n are available in the Amazon Web Services Serverless Application Repository, and can be selected through the Amazon Web Services Management Console when you create your\n Object Lambda access point.

\n

Example 1: PII Access Control - This Lambda function uses Amazon Comprehend, a natural language processing (NLP) service using machine learning to find insights and relationships in text. It automatically detects personally identifiable information (PII) such as names, addresses, dates, credit card numbers, and social security numbers from documents in your Amazon S3 bucket.

\n

Example 2: PII Redaction - This Lambda function uses Amazon Comprehend, a natural language processing (NLP) service using machine learning to find insights and relationships in text. It automatically redacts personally identifiable information (PII) such as names, addresses, dates, credit card numbers, and social security numbers from documents in your Amazon S3 bucket.

\n

Example 3: Decompression - The Lambda function S3ObjectLambdaDecompression, is equipped to decompress objects stored in S3 in one of six compressed file formats including bzip2, gzip, snappy, zlib, zstandard and ZIP.

\n

For information on how to view and use these functions, see Using Amazon Web Services built Lambda functions in the Amazon S3 User Guide.

", "smithy.api#endpoint": { "hostPrefix": "{RequestRoute}." @@ -31648,4 +31657,4 @@ } } } -} +} \ No newline at end of file