From b2be11f328f5ff02e63b18b2006ff81d67092944 Mon Sep 17 00:00:00 2001 From: awstools Date: Mon, 17 Oct 2022 18:22:18 +0000 Subject: [PATCH] feat(client-greengrass): This change allows customers to specify FunctionRuntimeOverride in FunctionDefinitionVersion. This configuration can be used if the runtime on the device is different from the AWS Lambda runtime specified for that function. --- clients/client-greengrass/package.json | 1 + .../client-greengrass/src/GreengrassClient.ts | 51 +- .../commands/AssociateRoleToGroupCommand.ts | 13 + .../AssociateServiceRoleToAccountCommand.ts | 13 + .../CreateConnectorDefinitionCommand.ts | 13 + ...CreateConnectorDefinitionVersionCommand.ts | 13 + .../commands/CreateCoreDefinitionCommand.ts | 13 + .../CreateCoreDefinitionVersionCommand.ts | 13 + .../src/commands/CreateDeploymentCommand.ts | 13 + .../commands/CreateDeviceDefinitionCommand.ts | 13 + .../CreateDeviceDefinitionVersionCommand.ts | 13 + .../CreateFunctionDefinitionCommand.ts | 13 + .../CreateFunctionDefinitionVersionCommand.ts | 13 + .../CreateGroupCertificateAuthorityCommand.ts | 13 + .../src/commands/CreateGroupCommand.ts | 11 + .../src/commands/CreateGroupVersionCommand.ts | 13 + .../commands/CreateLoggerDefinitionCommand.ts | 13 + .../CreateLoggerDefinitionVersionCommand.ts | 13 + .../CreateResourceDefinitionCommand.ts | 13 + .../CreateResourceDefinitionVersionCommand.ts | 13 + .../CreateSoftwareUpdateJobCommand.ts | 13 + .../CreateSubscriptionDefinitionCommand.ts | 13 + ...ateSubscriptionDefinitionVersionCommand.ts | 13 + .../DeleteConnectorDefinitionCommand.ts | 13 + .../commands/DeleteCoreDefinitionCommand.ts | 13 + .../commands/DeleteDeviceDefinitionCommand.ts | 13 + .../DeleteFunctionDefinitionCommand.ts | 13 + .../src/commands/DeleteGroupCommand.ts | 11 + .../commands/DeleteLoggerDefinitionCommand.ts | 13 + .../DeleteResourceDefinitionCommand.ts | 13 + .../DeleteSubscriptionDefinitionCommand.ts | 13 + .../DisassociateRoleFromGroupCommand.ts | 13 + ...sassociateServiceRoleFromAccountCommand.ts | 13 + .../src/commands/GetAssociatedRoleCommand.ts | 13 + .../GetBulkDeploymentStatusCommand.ts | 13 + .../commands/GetConnectivityInfoCommand.ts | 13 + .../commands/GetConnectorDefinitionCommand.ts | 13 + .../GetConnectorDefinitionVersionCommand.ts | 13 + .../src/commands/GetCoreDefinitionCommand.ts | 13 + .../GetCoreDefinitionVersionCommand.ts | 13 + .../commands/GetDeploymentStatusCommand.ts | 13 + .../commands/GetDeviceDefinitionCommand.ts | 13 + .../GetDeviceDefinitionVersionCommand.ts | 13 + .../commands/GetFunctionDefinitionCommand.ts | 13 + .../GetFunctionDefinitionVersionCommand.ts | 13 + .../GetGroupCertificateAuthorityCommand.ts | 13 + ...GetGroupCertificateConfigurationCommand.ts | 13 + .../src/commands/GetGroupCommand.ts | 11 + .../src/commands/GetGroupVersionCommand.ts | 13 + .../commands/GetLoggerDefinitionCommand.ts | 13 + .../GetLoggerDefinitionVersionCommand.ts | 13 + .../commands/GetResourceDefinitionCommand.ts | 13 + .../GetResourceDefinitionVersionCommand.ts | 13 + .../GetServiceRoleForAccountCommand.ts | 13 + .../GetSubscriptionDefinitionCommand.ts | 13 + ...GetSubscriptionDefinitionVersionCommand.ts | 13 + .../GetThingRuntimeConfigurationCommand.ts | 13 + ...istBulkDeploymentDetailedReportsCommand.ts | 13 + .../commands/ListBulkDeploymentsCommand.ts | 13 + .../ListConnectorDefinitionVersionsCommand.ts | 13 + .../ListConnectorDefinitionsCommand.ts | 13 + .../ListCoreDefinitionVersionsCommand.ts | 13 + .../commands/ListCoreDefinitionsCommand.ts | 13 + .../src/commands/ListDeploymentsCommand.ts | 13 + .../ListDeviceDefinitionVersionsCommand.ts | 13 + .../commands/ListDeviceDefinitionsCommand.ts | 13 + .../ListFunctionDefinitionVersionsCommand.ts | 13 + .../ListFunctionDefinitionsCommand.ts | 13 + .../ListGroupCertificateAuthoritiesCommand.ts | 13 + .../src/commands/ListGroupVersionsCommand.ts | 13 + .../src/commands/ListGroupsCommand.ts | 11 + .../ListLoggerDefinitionVersionsCommand.ts | 13 + .../commands/ListLoggerDefinitionsCommand.ts | 13 + .../ListResourceDefinitionVersionsCommand.ts | 13 + .../ListResourceDefinitionsCommand.ts | 13 + ...stSubscriptionDefinitionVersionsCommand.ts | 13 + .../ListSubscriptionDefinitionsCommand.ts | 13 + .../commands/ListTagsForResourceCommand.ts | 13 + .../src/commands/ResetDeploymentsCommand.ts | 13 + .../commands/StartBulkDeploymentCommand.ts | 13 + .../src/commands/StopBulkDeploymentCommand.ts | 13 + .../src/commands/TagResourceCommand.ts | 11 + .../src/commands/UntagResourceCommand.ts | 11 + .../commands/UpdateConnectivityInfoCommand.ts | 13 + .../UpdateConnectorDefinitionCommand.ts | 13 + .../commands/UpdateCoreDefinitionCommand.ts | 13 + .../commands/UpdateDeviceDefinitionCommand.ts | 13 + .../UpdateFunctionDefinitionCommand.ts | 13 + ...ateGroupCertificateConfigurationCommand.ts | 13 + .../src/commands/UpdateGroupCommand.ts | 11 + .../commands/UpdateLoggerDefinitionCommand.ts | 13 + .../UpdateResourceDefinitionCommand.ts | 13 + .../UpdateSubscriptionDefinitionCommand.ts | 13 + .../UpdateThingRuntimeConfigurationCommand.ts | 13 + .../src/endpoint/EndpointParameters.ts | 31 + .../src/endpoint/endpointResolver.ts | 16 + .../client-greengrass/src/endpoint/ruleset.ts | 364 ++++ clients/client-greengrass/src/endpoints.ts | 184 -- .../client-greengrass/src/models/models_0.ts | 5 + .../src/protocols/Aws_restJson1.ts | 2 + .../src/runtimeConfig.shared.ts | 4 +- .../sdk-codegen/aws-models/greengrass.json | 1929 ++++++++++++++--- 102 files changed, 3314 insertions(+), 455 deletions(-) create mode 100644 clients/client-greengrass/src/endpoint/EndpointParameters.ts create mode 100644 clients/client-greengrass/src/endpoint/endpointResolver.ts create mode 100644 clients/client-greengrass/src/endpoint/ruleset.ts delete mode 100644 clients/client-greengrass/src/endpoints.ts diff --git a/clients/client-greengrass/package.json b/clients/client-greengrass/package.json index a76494e8bea13..62c33dcc8b429 100644 --- a/clients/client-greengrass/package.json +++ b/clients/client-greengrass/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": "*", diff --git a/clients/client-greengrass/src/GreengrassClient.ts b/clients/client-greengrass/src/GreengrassClient.ts index 6566359219bbd..f02e3e8742d26 100644 --- a/clients/client-greengrass/src/GreengrassClient.ts +++ b/clients/client-greengrass/src/GreengrassClient.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, @@ -373,6 +367,12 @@ import { UpdateThingRuntimeConfigurationCommandInput, UpdateThingRuntimeConfigurationCommandOutput, } from "./commands/UpdateThingRuntimeConfigurationCommand"; +import { + ClientInputEndpointParameters, + ClientResolvedEndpointParameters, + EndpointParameters, + resolveClientEndpointParameters, +} from "./endpoint/EndpointParameters"; import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig"; export type ServiceInputTypes = @@ -672,12 +672,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 @@ -693,11 +687,12 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__ type GreengrassClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & - EndpointsInputConfig & + EndpointInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & - UserAgentInputConfig; + UserAgentInputConfig & + ClientInputEndpointParameters; /** * The configuration interface of GreengrassClient class constructor that set the region, credentials and other options. */ @@ -706,11 +701,12 @@ export interface GreengrassClientConfig extends GreengrassClientConfigType {} type GreengrassClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required & RegionResolvedConfig & - EndpointsResolvedConfig & + EndpointResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & - UserAgentResolvedConfig; + UserAgentResolvedConfig & + ClientResolvedEndpointParameters; /** * The resolved configuration interface of GreengrassClient class. This is resolved and normalized from the {@link GreengrassClientConfig | constructor configuration interface}. */ @@ -732,14 +728,15 @@ export class GreengrassClient extends __Client< constructor(configuration: GreengrassClientConfig) { 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-greengrass/src/commands/AssociateRoleToGroupCommand.ts b/clients/client-greengrass/src/commands/AssociateRoleToGroupCommand.ts index 36332d1d9cb44..1edde0e91fb68 100644 --- a/clients/client-greengrass/src/commands/AssociateRoleToGroupCommand.ts +++ b/clients/client-greengrass/src/commands/AssociateRoleToGroupCommand.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 AssociateRoleToGroupCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AssociateRoleToGroupCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class AssociateRoleToGroupCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AssociateRoleToGroupCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/AssociateServiceRoleToAccountCommand.ts b/clients/client-greengrass/src/commands/AssociateServiceRoleToAccountCommand.ts index 031a6c31efc06..a2c342add3f20 100644 --- a/clients/client-greengrass/src/commands/AssociateServiceRoleToAccountCommand.ts +++ b/clients/client-greengrass/src/commands/AssociateServiceRoleToAccountCommand.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 AssociateServiceRoleToAccountCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: AssociateServiceRoleToAccountCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class AssociateServiceRoleToAccountCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, AssociateServiceRoleToAccountCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/CreateConnectorDefinitionCommand.ts b/clients/client-greengrass/src/commands/CreateConnectorDefinitionCommand.ts index 77ed749c88cb0..14cfd6ff8711f 100644 --- a/clients/client-greengrass/src/commands/CreateConnectorDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/CreateConnectorDefinitionCommand.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 CreateConnectorDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateConnectorDefinitionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class CreateConnectorDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateConnectorDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/CreateConnectorDefinitionVersionCommand.ts b/clients/client-greengrass/src/commands/CreateConnectorDefinitionVersionCommand.ts index d7e6d7529f231..3c616ee74cf81 100644 --- a/clients/client-greengrass/src/commands/CreateConnectorDefinitionVersionCommand.ts +++ b/clients/client-greengrass/src/commands/CreateConnectorDefinitionVersionCommand.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 CreateConnectorDefinitionVersionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateConnectorDefinitionVersionCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class CreateConnectorDefinitionVersionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateConnectorDefinitionVersionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/CreateCoreDefinitionCommand.ts b/clients/client-greengrass/src/commands/CreateCoreDefinitionCommand.ts index 9390b9cd7e6c7..c52f84bc92844 100644 --- a/clients/client-greengrass/src/commands/CreateCoreDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/CreateCoreDefinitionCommand.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 CreateCoreDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateCoreDefinitionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class CreateCoreDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateCoreDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/CreateCoreDefinitionVersionCommand.ts b/clients/client-greengrass/src/commands/CreateCoreDefinitionVersionCommand.ts index 9aa140faad0e2..ae1c6b8df169f 100644 --- a/clients/client-greengrass/src/commands/CreateCoreDefinitionVersionCommand.ts +++ b/clients/client-greengrass/src/commands/CreateCoreDefinitionVersionCommand.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 CreateCoreDefinitionVersionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateCoreDefinitionVersionCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class CreateCoreDefinitionVersionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateCoreDefinitionVersionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/CreateDeploymentCommand.ts b/clients/client-greengrass/src/commands/CreateDeploymentCommand.ts index 33ae647c17e2e..6ccf42a1a2d68 100644 --- a/clients/client-greengrass/src/commands/CreateDeploymentCommand.ts +++ b/clients/client-greengrass/src/commands/CreateDeploymentCommand.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 CreateDeploymentCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateDeploymentCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class CreateDeploymentCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateDeploymentCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/CreateDeviceDefinitionCommand.ts b/clients/client-greengrass/src/commands/CreateDeviceDefinitionCommand.ts index 654eea029e5f1..194dea863fd89 100644 --- a/clients/client-greengrass/src/commands/CreateDeviceDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/CreateDeviceDefinitionCommand.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 CreateDeviceDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateDeviceDefinitionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class CreateDeviceDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateDeviceDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/CreateDeviceDefinitionVersionCommand.ts b/clients/client-greengrass/src/commands/CreateDeviceDefinitionVersionCommand.ts index df7f903f278be..cc3f04ba5ec5f 100644 --- a/clients/client-greengrass/src/commands/CreateDeviceDefinitionVersionCommand.ts +++ b/clients/client-greengrass/src/commands/CreateDeviceDefinitionVersionCommand.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 CreateDeviceDefinitionVersionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateDeviceDefinitionVersionCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class CreateDeviceDefinitionVersionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateDeviceDefinitionVersionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/CreateFunctionDefinitionCommand.ts b/clients/client-greengrass/src/commands/CreateFunctionDefinitionCommand.ts index f67f24d9d67a0..6e1f754b69054 100644 --- a/clients/client-greengrass/src/commands/CreateFunctionDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/CreateFunctionDefinitionCommand.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 CreateFunctionDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateFunctionDefinitionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class CreateFunctionDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateFunctionDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/CreateFunctionDefinitionVersionCommand.ts b/clients/client-greengrass/src/commands/CreateFunctionDefinitionVersionCommand.ts index 69db7c01a3a79..c1c173ee9b739 100644 --- a/clients/client-greengrass/src/commands/CreateFunctionDefinitionVersionCommand.ts +++ b/clients/client-greengrass/src/commands/CreateFunctionDefinitionVersionCommand.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 CreateFunctionDefinitionVersionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateFunctionDefinitionVersionCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class CreateFunctionDefinitionVersionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateFunctionDefinitionVersionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/CreateGroupCertificateAuthorityCommand.ts b/clients/client-greengrass/src/commands/CreateGroupCertificateAuthorityCommand.ts index 15c87ca5b3c5e..91e2e61d20cac 100644 --- a/clients/client-greengrass/src/commands/CreateGroupCertificateAuthorityCommand.ts +++ b/clients/client-greengrass/src/commands/CreateGroupCertificateAuthorityCommand.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 CreateGroupCertificateAuthorityCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateGroupCertificateAuthorityCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class CreateGroupCertificateAuthorityCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateGroupCertificateAuthorityCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/CreateGroupCommand.ts b/clients/client-greengrass/src/commands/CreateGroupCommand.ts index b9e92cf9b4d43..e9830c9461f8a 100644 --- a/clients/client-greengrass/src/commands/CreateGroupCommand.ts +++ b/clients/client-greengrass/src/commands/CreateGroupCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { 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 CreateGroupCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateGroupCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,7 @@ export class CreateGroupCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, CreateGroupCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/CreateGroupVersionCommand.ts b/clients/client-greengrass/src/commands/CreateGroupVersionCommand.ts index 386e1b129d609..291229eb66ac0 100644 --- a/clients/client-greengrass/src/commands/CreateGroupVersionCommand.ts +++ b/clients/client-greengrass/src/commands/CreateGroupVersionCommand.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 CreateGroupVersionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateGroupVersionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class CreateGroupVersionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateGroupVersionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/CreateLoggerDefinitionCommand.ts b/clients/client-greengrass/src/commands/CreateLoggerDefinitionCommand.ts index 90a0ac754efb9..aacc60d3beb67 100644 --- a/clients/client-greengrass/src/commands/CreateLoggerDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/CreateLoggerDefinitionCommand.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 CreateLoggerDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateLoggerDefinitionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class CreateLoggerDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateLoggerDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/CreateLoggerDefinitionVersionCommand.ts b/clients/client-greengrass/src/commands/CreateLoggerDefinitionVersionCommand.ts index ca992e366fc26..5dcb35064deb1 100644 --- a/clients/client-greengrass/src/commands/CreateLoggerDefinitionVersionCommand.ts +++ b/clients/client-greengrass/src/commands/CreateLoggerDefinitionVersionCommand.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 CreateLoggerDefinitionVersionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateLoggerDefinitionVersionCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class CreateLoggerDefinitionVersionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateLoggerDefinitionVersionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/CreateResourceDefinitionCommand.ts b/clients/client-greengrass/src/commands/CreateResourceDefinitionCommand.ts index eb737dc8a82bf..2e3b87ff687eb 100644 --- a/clients/client-greengrass/src/commands/CreateResourceDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/CreateResourceDefinitionCommand.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 CreateResourceDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateResourceDefinitionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class CreateResourceDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateResourceDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/CreateResourceDefinitionVersionCommand.ts b/clients/client-greengrass/src/commands/CreateResourceDefinitionVersionCommand.ts index 91c5f2815cefb..e4ff1f6c3586e 100644 --- a/clients/client-greengrass/src/commands/CreateResourceDefinitionVersionCommand.ts +++ b/clients/client-greengrass/src/commands/CreateResourceDefinitionVersionCommand.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 CreateResourceDefinitionVersionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateResourceDefinitionVersionCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class CreateResourceDefinitionVersionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateResourceDefinitionVersionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/CreateSoftwareUpdateJobCommand.ts b/clients/client-greengrass/src/commands/CreateSoftwareUpdateJobCommand.ts index 86720b93e071c..8adb8d94c88fe 100644 --- a/clients/client-greengrass/src/commands/CreateSoftwareUpdateJobCommand.ts +++ b/clients/client-greengrass/src/commands/CreateSoftwareUpdateJobCommand.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 CreateSoftwareUpdateJobCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateSoftwareUpdateJobCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class CreateSoftwareUpdateJobCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateSoftwareUpdateJobCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/CreateSubscriptionDefinitionCommand.ts b/clients/client-greengrass/src/commands/CreateSubscriptionDefinitionCommand.ts index b3d04bf4b9f18..02ea9f633245a 100644 --- a/clients/client-greengrass/src/commands/CreateSubscriptionDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/CreateSubscriptionDefinitionCommand.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 CreateSubscriptionDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateSubscriptionDefinitionCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class CreateSubscriptionDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateSubscriptionDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/CreateSubscriptionDefinitionVersionCommand.ts b/clients/client-greengrass/src/commands/CreateSubscriptionDefinitionVersionCommand.ts index fb32a154a1558..7725ecc248ac2 100644 --- a/clients/client-greengrass/src/commands/CreateSubscriptionDefinitionVersionCommand.ts +++ b/clients/client-greengrass/src/commands/CreateSubscriptionDefinitionVersionCommand.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 CreateSubscriptionDefinitionVersionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: CreateSubscriptionDefinitionVersionCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class CreateSubscriptionDefinitionVersionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateSubscriptionDefinitionVersionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/DeleteConnectorDefinitionCommand.ts b/clients/client-greengrass/src/commands/DeleteConnectorDefinitionCommand.ts index 9601d71890767..4ba9ced3af7cd 100644 --- a/clients/client-greengrass/src/commands/DeleteConnectorDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/DeleteConnectorDefinitionCommand.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 DeleteConnectorDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: DeleteConnectorDefinitionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class DeleteConnectorDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteConnectorDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/DeleteCoreDefinitionCommand.ts b/clients/client-greengrass/src/commands/DeleteCoreDefinitionCommand.ts index 1d5b615927750..426ade21355a7 100644 --- a/clients/client-greengrass/src/commands/DeleteCoreDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/DeleteCoreDefinitionCommand.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 DeleteCoreDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: DeleteCoreDefinitionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class DeleteCoreDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteCoreDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/DeleteDeviceDefinitionCommand.ts b/clients/client-greengrass/src/commands/DeleteDeviceDefinitionCommand.ts index aa8bfa075e3b4..25e2f96f69cb1 100644 --- a/clients/client-greengrass/src/commands/DeleteDeviceDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/DeleteDeviceDefinitionCommand.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 DeleteDeviceDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: DeleteDeviceDefinitionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class DeleteDeviceDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteDeviceDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/DeleteFunctionDefinitionCommand.ts b/clients/client-greengrass/src/commands/DeleteFunctionDefinitionCommand.ts index 00a3e99facd38..407d898c57af4 100644 --- a/clients/client-greengrass/src/commands/DeleteFunctionDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/DeleteFunctionDefinitionCommand.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 DeleteFunctionDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: DeleteFunctionDefinitionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class DeleteFunctionDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteFunctionDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/DeleteGroupCommand.ts b/clients/client-greengrass/src/commands/DeleteGroupCommand.ts index 3dc2a991a0ffb..3962f2adc21cf 100644 --- a/clients/client-greengrass/src/commands/DeleteGroupCommand.ts +++ b/clients/client-greengrass/src/commands/DeleteGroupCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { 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 DeleteGroupCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: DeleteGroupCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,7 @@ export class DeleteGroupCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, DeleteGroupCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/DeleteLoggerDefinitionCommand.ts b/clients/client-greengrass/src/commands/DeleteLoggerDefinitionCommand.ts index 216ff659be5b8..c78f8e9f3e5a4 100644 --- a/clients/client-greengrass/src/commands/DeleteLoggerDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/DeleteLoggerDefinitionCommand.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 DeleteLoggerDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: DeleteLoggerDefinitionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class DeleteLoggerDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteLoggerDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/DeleteResourceDefinitionCommand.ts b/clients/client-greengrass/src/commands/DeleteResourceDefinitionCommand.ts index 8734bab90447d..963ec753cc2e5 100644 --- a/clients/client-greengrass/src/commands/DeleteResourceDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/DeleteResourceDefinitionCommand.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 DeleteResourceDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: DeleteResourceDefinitionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class DeleteResourceDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteResourceDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/DeleteSubscriptionDefinitionCommand.ts b/clients/client-greengrass/src/commands/DeleteSubscriptionDefinitionCommand.ts index f9753e99c058a..5e2969751da3f 100644 --- a/clients/client-greengrass/src/commands/DeleteSubscriptionDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/DeleteSubscriptionDefinitionCommand.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 DeleteSubscriptionDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: DeleteSubscriptionDefinitionCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class DeleteSubscriptionDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteSubscriptionDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/DisassociateRoleFromGroupCommand.ts b/clients/client-greengrass/src/commands/DisassociateRoleFromGroupCommand.ts index 17961635cc756..b014ac935c287 100644 --- a/clients/client-greengrass/src/commands/DisassociateRoleFromGroupCommand.ts +++ b/clients/client-greengrass/src/commands/DisassociateRoleFromGroupCommand.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 DisassociateRoleFromGroupCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: DisassociateRoleFromGroupCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class DisassociateRoleFromGroupCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DisassociateRoleFromGroupCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/DisassociateServiceRoleFromAccountCommand.ts b/clients/client-greengrass/src/commands/DisassociateServiceRoleFromAccountCommand.ts index 74af73c6c9429..c6f5bfb269b39 100644 --- a/clients/client-greengrass/src/commands/DisassociateServiceRoleFromAccountCommand.ts +++ b/clients/client-greengrass/src/commands/DisassociateServiceRoleFromAccountCommand.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 DisassociateServiceRoleFromAccountCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: DisassociateServiceRoleFromAccountCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class DisassociateServiceRoleFromAccountCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DisassociateServiceRoleFromAccountCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/GetAssociatedRoleCommand.ts b/clients/client-greengrass/src/commands/GetAssociatedRoleCommand.ts index 86e466f57f506..90175346d359e 100644 --- a/clients/client-greengrass/src/commands/GetAssociatedRoleCommand.ts +++ b/clients/client-greengrass/src/commands/GetAssociatedRoleCommand.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 GetAssociatedRoleCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetAssociatedRoleCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetAssociatedRoleCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetAssociatedRoleCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/GetBulkDeploymentStatusCommand.ts b/clients/client-greengrass/src/commands/GetBulkDeploymentStatusCommand.ts index 62044af192f3c..aa52f66a742b6 100644 --- a/clients/client-greengrass/src/commands/GetBulkDeploymentStatusCommand.ts +++ b/clients/client-greengrass/src/commands/GetBulkDeploymentStatusCommand.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 GetBulkDeploymentStatusCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetBulkDeploymentStatusCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetBulkDeploymentStatusCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetBulkDeploymentStatusCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/GetConnectivityInfoCommand.ts b/clients/client-greengrass/src/commands/GetConnectivityInfoCommand.ts index ee163805c2113..0821f2ce32a77 100644 --- a/clients/client-greengrass/src/commands/GetConnectivityInfoCommand.ts +++ b/clients/client-greengrass/src/commands/GetConnectivityInfoCommand.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 GetConnectivityInfoCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetConnectivityInfoCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetConnectivityInfoCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetConnectivityInfoCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/GetConnectorDefinitionCommand.ts b/clients/client-greengrass/src/commands/GetConnectorDefinitionCommand.ts index b16697cd851a2..6a8fc3c261751 100644 --- a/clients/client-greengrass/src/commands/GetConnectorDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/GetConnectorDefinitionCommand.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 GetConnectorDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetConnectorDefinitionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetConnectorDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetConnectorDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/GetConnectorDefinitionVersionCommand.ts b/clients/client-greengrass/src/commands/GetConnectorDefinitionVersionCommand.ts index f979365b64fef..abdda89d84933 100644 --- a/clients/client-greengrass/src/commands/GetConnectorDefinitionVersionCommand.ts +++ b/clients/client-greengrass/src/commands/GetConnectorDefinitionVersionCommand.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 GetConnectorDefinitionVersionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetConnectorDefinitionVersionCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class GetConnectorDefinitionVersionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetConnectorDefinitionVersionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/GetCoreDefinitionCommand.ts b/clients/client-greengrass/src/commands/GetCoreDefinitionCommand.ts index 7362c4c899eb4..5a7eadc4fc776 100644 --- a/clients/client-greengrass/src/commands/GetCoreDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/GetCoreDefinitionCommand.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 GetCoreDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetCoreDefinitionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetCoreDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetCoreDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/GetCoreDefinitionVersionCommand.ts b/clients/client-greengrass/src/commands/GetCoreDefinitionVersionCommand.ts index 0d68f92585429..6c9dc2cf6af51 100644 --- a/clients/client-greengrass/src/commands/GetCoreDefinitionVersionCommand.ts +++ b/clients/client-greengrass/src/commands/GetCoreDefinitionVersionCommand.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 GetCoreDefinitionVersionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetCoreDefinitionVersionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetCoreDefinitionVersionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetCoreDefinitionVersionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/GetDeploymentStatusCommand.ts b/clients/client-greengrass/src/commands/GetDeploymentStatusCommand.ts index f937975f33df1..464bcd1b01b74 100644 --- a/clients/client-greengrass/src/commands/GetDeploymentStatusCommand.ts +++ b/clients/client-greengrass/src/commands/GetDeploymentStatusCommand.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 GetDeploymentStatusCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetDeploymentStatusCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetDeploymentStatusCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetDeploymentStatusCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/GetDeviceDefinitionCommand.ts b/clients/client-greengrass/src/commands/GetDeviceDefinitionCommand.ts index 8175768aef332..fcf5fc5828e87 100644 --- a/clients/client-greengrass/src/commands/GetDeviceDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/GetDeviceDefinitionCommand.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 GetDeviceDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetDeviceDefinitionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetDeviceDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetDeviceDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/GetDeviceDefinitionVersionCommand.ts b/clients/client-greengrass/src/commands/GetDeviceDefinitionVersionCommand.ts index 9556a67cfd7db..60023c7869fd1 100644 --- a/clients/client-greengrass/src/commands/GetDeviceDefinitionVersionCommand.ts +++ b/clients/client-greengrass/src/commands/GetDeviceDefinitionVersionCommand.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 GetDeviceDefinitionVersionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetDeviceDefinitionVersionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetDeviceDefinitionVersionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetDeviceDefinitionVersionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/GetFunctionDefinitionCommand.ts b/clients/client-greengrass/src/commands/GetFunctionDefinitionCommand.ts index be942ba947655..a4792fd1666cd 100644 --- a/clients/client-greengrass/src/commands/GetFunctionDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/GetFunctionDefinitionCommand.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 GetFunctionDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetFunctionDefinitionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetFunctionDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetFunctionDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/GetFunctionDefinitionVersionCommand.ts b/clients/client-greengrass/src/commands/GetFunctionDefinitionVersionCommand.ts index c92f1760d0e7a..0f56938c7da2f 100644 --- a/clients/client-greengrass/src/commands/GetFunctionDefinitionVersionCommand.ts +++ b/clients/client-greengrass/src/commands/GetFunctionDefinitionVersionCommand.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 GetFunctionDefinitionVersionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetFunctionDefinitionVersionCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class GetFunctionDefinitionVersionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetFunctionDefinitionVersionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/GetGroupCertificateAuthorityCommand.ts b/clients/client-greengrass/src/commands/GetGroupCertificateAuthorityCommand.ts index 9b47d07f4a994..039136036dd3d 100644 --- a/clients/client-greengrass/src/commands/GetGroupCertificateAuthorityCommand.ts +++ b/clients/client-greengrass/src/commands/GetGroupCertificateAuthorityCommand.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 GetGroupCertificateAuthorityCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetGroupCertificateAuthorityCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class GetGroupCertificateAuthorityCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetGroupCertificateAuthorityCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/GetGroupCertificateConfigurationCommand.ts b/clients/client-greengrass/src/commands/GetGroupCertificateConfigurationCommand.ts index 5d4b1fa48fe13..b97a4d02b313b 100644 --- a/clients/client-greengrass/src/commands/GetGroupCertificateConfigurationCommand.ts +++ b/clients/client-greengrass/src/commands/GetGroupCertificateConfigurationCommand.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 GetGroupCertificateConfigurationCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetGroupCertificateConfigurationCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class GetGroupCertificateConfigurationCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetGroupCertificateConfigurationCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/GetGroupCommand.ts b/clients/client-greengrass/src/commands/GetGroupCommand.ts index 26b54b8389899..6d65b84e386f5 100644 --- a/clients/client-greengrass/src/commands/GetGroupCommand.ts +++ b/clients/client-greengrass/src/commands/GetGroupCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { 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 GetGroupCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetGroupCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,7 @@ export class GetGroupCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, GetGroupCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/GetGroupVersionCommand.ts b/clients/client-greengrass/src/commands/GetGroupVersionCommand.ts index 095d2eb7f4b75..44ec5db720bf6 100644 --- a/clients/client-greengrass/src/commands/GetGroupVersionCommand.ts +++ b/clients/client-greengrass/src/commands/GetGroupVersionCommand.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 GetGroupVersionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetGroupVersionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetGroupVersionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetGroupVersionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/GetLoggerDefinitionCommand.ts b/clients/client-greengrass/src/commands/GetLoggerDefinitionCommand.ts index f13af6f6638c9..25d7db54f2fee 100644 --- a/clients/client-greengrass/src/commands/GetLoggerDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/GetLoggerDefinitionCommand.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 GetLoggerDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetLoggerDefinitionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetLoggerDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetLoggerDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/GetLoggerDefinitionVersionCommand.ts b/clients/client-greengrass/src/commands/GetLoggerDefinitionVersionCommand.ts index 5aba8a8ac11d9..bfe4c8bae0faf 100644 --- a/clients/client-greengrass/src/commands/GetLoggerDefinitionVersionCommand.ts +++ b/clients/client-greengrass/src/commands/GetLoggerDefinitionVersionCommand.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 GetLoggerDefinitionVersionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetLoggerDefinitionVersionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetLoggerDefinitionVersionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetLoggerDefinitionVersionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/GetResourceDefinitionCommand.ts b/clients/client-greengrass/src/commands/GetResourceDefinitionCommand.ts index 3144892d275ce..f1ba4b0223f62 100644 --- a/clients/client-greengrass/src/commands/GetResourceDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/GetResourceDefinitionCommand.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 GetResourceDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetResourceDefinitionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetResourceDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetResourceDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/GetResourceDefinitionVersionCommand.ts b/clients/client-greengrass/src/commands/GetResourceDefinitionVersionCommand.ts index fe45b936b7718..c2993508218f7 100644 --- a/clients/client-greengrass/src/commands/GetResourceDefinitionVersionCommand.ts +++ b/clients/client-greengrass/src/commands/GetResourceDefinitionVersionCommand.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 GetResourceDefinitionVersionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetResourceDefinitionVersionCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class GetResourceDefinitionVersionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetResourceDefinitionVersionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/GetServiceRoleForAccountCommand.ts b/clients/client-greengrass/src/commands/GetServiceRoleForAccountCommand.ts index 19443c85f12e7..bb9297607f1a6 100644 --- a/clients/client-greengrass/src/commands/GetServiceRoleForAccountCommand.ts +++ b/clients/client-greengrass/src/commands/GetServiceRoleForAccountCommand.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 GetServiceRoleForAccountCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetServiceRoleForAccountCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetServiceRoleForAccountCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetServiceRoleForAccountCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/GetSubscriptionDefinitionCommand.ts b/clients/client-greengrass/src/commands/GetSubscriptionDefinitionCommand.ts index 96aa033e30c25..fea6199b18fab 100644 --- a/clients/client-greengrass/src/commands/GetSubscriptionDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/GetSubscriptionDefinitionCommand.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 GetSubscriptionDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetSubscriptionDefinitionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class GetSubscriptionDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetSubscriptionDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/GetSubscriptionDefinitionVersionCommand.ts b/clients/client-greengrass/src/commands/GetSubscriptionDefinitionVersionCommand.ts index ad4c6e74d77d8..d1fe03ea8f8f4 100644 --- a/clients/client-greengrass/src/commands/GetSubscriptionDefinitionVersionCommand.ts +++ b/clients/client-greengrass/src/commands/GetSubscriptionDefinitionVersionCommand.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 GetSubscriptionDefinitionVersionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetSubscriptionDefinitionVersionCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class GetSubscriptionDefinitionVersionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetSubscriptionDefinitionVersionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/GetThingRuntimeConfigurationCommand.ts b/clients/client-greengrass/src/commands/GetThingRuntimeConfigurationCommand.ts index 9614faf0faa92..62704ca9e5d83 100644 --- a/clients/client-greengrass/src/commands/GetThingRuntimeConfigurationCommand.ts +++ b/clients/client-greengrass/src/commands/GetThingRuntimeConfigurationCommand.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 GetThingRuntimeConfigurationCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: GetThingRuntimeConfigurationCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class GetThingRuntimeConfigurationCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetThingRuntimeConfigurationCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/ListBulkDeploymentDetailedReportsCommand.ts b/clients/client-greengrass/src/commands/ListBulkDeploymentDetailedReportsCommand.ts index 690fd5ade33cd..ab546ca97eb20 100644 --- a/clients/client-greengrass/src/commands/ListBulkDeploymentDetailedReportsCommand.ts +++ b/clients/client-greengrass/src/commands/ListBulkDeploymentDetailedReportsCommand.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 ListBulkDeploymentDetailedReportsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListBulkDeploymentDetailedReportsCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class ListBulkDeploymentDetailedReportsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListBulkDeploymentDetailedReportsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/ListBulkDeploymentsCommand.ts b/clients/client-greengrass/src/commands/ListBulkDeploymentsCommand.ts index d6300e0afb661..3c0902ddd5f20 100644 --- a/clients/client-greengrass/src/commands/ListBulkDeploymentsCommand.ts +++ b/clients/client-greengrass/src/commands/ListBulkDeploymentsCommand.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 ListBulkDeploymentsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListBulkDeploymentsCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class ListBulkDeploymentsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListBulkDeploymentsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/ListConnectorDefinitionVersionsCommand.ts b/clients/client-greengrass/src/commands/ListConnectorDefinitionVersionsCommand.ts index f031bb4b0adaf..5698938727c06 100644 --- a/clients/client-greengrass/src/commands/ListConnectorDefinitionVersionsCommand.ts +++ b/clients/client-greengrass/src/commands/ListConnectorDefinitionVersionsCommand.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 ListConnectorDefinitionVersionsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListConnectorDefinitionVersionsCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class ListConnectorDefinitionVersionsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListConnectorDefinitionVersionsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/ListConnectorDefinitionsCommand.ts b/clients/client-greengrass/src/commands/ListConnectorDefinitionsCommand.ts index e4fed3f767434..dec72f63cf925 100644 --- a/clients/client-greengrass/src/commands/ListConnectorDefinitionsCommand.ts +++ b/clients/client-greengrass/src/commands/ListConnectorDefinitionsCommand.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 ListConnectorDefinitionsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListConnectorDefinitionsCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class ListConnectorDefinitionsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListConnectorDefinitionsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/ListCoreDefinitionVersionsCommand.ts b/clients/client-greengrass/src/commands/ListCoreDefinitionVersionsCommand.ts index 153f4f4bf33b8..90208779ce97d 100644 --- a/clients/client-greengrass/src/commands/ListCoreDefinitionVersionsCommand.ts +++ b/clients/client-greengrass/src/commands/ListCoreDefinitionVersionsCommand.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 ListCoreDefinitionVersionsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListCoreDefinitionVersionsCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class ListCoreDefinitionVersionsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListCoreDefinitionVersionsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/ListCoreDefinitionsCommand.ts b/clients/client-greengrass/src/commands/ListCoreDefinitionsCommand.ts index b7852f1a084f1..6fe26a9dbc92b 100644 --- a/clients/client-greengrass/src/commands/ListCoreDefinitionsCommand.ts +++ b/clients/client-greengrass/src/commands/ListCoreDefinitionsCommand.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 ListCoreDefinitionsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListCoreDefinitionsCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class ListCoreDefinitionsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListCoreDefinitionsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/ListDeploymentsCommand.ts b/clients/client-greengrass/src/commands/ListDeploymentsCommand.ts index 1097776266385..486508a44b746 100644 --- a/clients/client-greengrass/src/commands/ListDeploymentsCommand.ts +++ b/clients/client-greengrass/src/commands/ListDeploymentsCommand.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 ListDeploymentsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListDeploymentsCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class ListDeploymentsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListDeploymentsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/ListDeviceDefinitionVersionsCommand.ts b/clients/client-greengrass/src/commands/ListDeviceDefinitionVersionsCommand.ts index 509d43298d758..977f15f1d0e22 100644 --- a/clients/client-greengrass/src/commands/ListDeviceDefinitionVersionsCommand.ts +++ b/clients/client-greengrass/src/commands/ListDeviceDefinitionVersionsCommand.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 ListDeviceDefinitionVersionsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListDeviceDefinitionVersionsCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class ListDeviceDefinitionVersionsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListDeviceDefinitionVersionsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/ListDeviceDefinitionsCommand.ts b/clients/client-greengrass/src/commands/ListDeviceDefinitionsCommand.ts index e1b40f94c58f3..4040e4dc9da47 100644 --- a/clients/client-greengrass/src/commands/ListDeviceDefinitionsCommand.ts +++ b/clients/client-greengrass/src/commands/ListDeviceDefinitionsCommand.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 ListDeviceDefinitionsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListDeviceDefinitionsCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class ListDeviceDefinitionsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListDeviceDefinitionsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/ListFunctionDefinitionVersionsCommand.ts b/clients/client-greengrass/src/commands/ListFunctionDefinitionVersionsCommand.ts index c98617eea32e3..f81dac9270374 100644 --- a/clients/client-greengrass/src/commands/ListFunctionDefinitionVersionsCommand.ts +++ b/clients/client-greengrass/src/commands/ListFunctionDefinitionVersionsCommand.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 ListFunctionDefinitionVersionsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListFunctionDefinitionVersionsCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class ListFunctionDefinitionVersionsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListFunctionDefinitionVersionsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/ListFunctionDefinitionsCommand.ts b/clients/client-greengrass/src/commands/ListFunctionDefinitionsCommand.ts index 23e08ce9fd770..a67c6d6086b68 100644 --- a/clients/client-greengrass/src/commands/ListFunctionDefinitionsCommand.ts +++ b/clients/client-greengrass/src/commands/ListFunctionDefinitionsCommand.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 ListFunctionDefinitionsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListFunctionDefinitionsCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class ListFunctionDefinitionsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListFunctionDefinitionsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/ListGroupCertificateAuthoritiesCommand.ts b/clients/client-greengrass/src/commands/ListGroupCertificateAuthoritiesCommand.ts index df21b32191aab..caaa9c9e50a23 100644 --- a/clients/client-greengrass/src/commands/ListGroupCertificateAuthoritiesCommand.ts +++ b/clients/client-greengrass/src/commands/ListGroupCertificateAuthoritiesCommand.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 ListGroupCertificateAuthoritiesCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListGroupCertificateAuthoritiesCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class ListGroupCertificateAuthoritiesCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListGroupCertificateAuthoritiesCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/ListGroupVersionsCommand.ts b/clients/client-greengrass/src/commands/ListGroupVersionsCommand.ts index d57cf62dc2d11..b972bb18b8f7b 100644 --- a/clients/client-greengrass/src/commands/ListGroupVersionsCommand.ts +++ b/clients/client-greengrass/src/commands/ListGroupVersionsCommand.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 ListGroupVersionsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListGroupVersionsCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class ListGroupVersionsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListGroupVersionsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/ListGroupsCommand.ts b/clients/client-greengrass/src/commands/ListGroupsCommand.ts index cdce005f9d3c5..72fc8b327e7f5 100644 --- a/clients/client-greengrass/src/commands/ListGroupsCommand.ts +++ b/clients/client-greengrass/src/commands/ListGroupsCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { 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 ListGroupsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListGroupsCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,7 @@ export class ListGroupsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, ListGroupsCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/ListLoggerDefinitionVersionsCommand.ts b/clients/client-greengrass/src/commands/ListLoggerDefinitionVersionsCommand.ts index f7189bc724d99..8f07784ae11e6 100644 --- a/clients/client-greengrass/src/commands/ListLoggerDefinitionVersionsCommand.ts +++ b/clients/client-greengrass/src/commands/ListLoggerDefinitionVersionsCommand.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 ListLoggerDefinitionVersionsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListLoggerDefinitionVersionsCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class ListLoggerDefinitionVersionsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListLoggerDefinitionVersionsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/ListLoggerDefinitionsCommand.ts b/clients/client-greengrass/src/commands/ListLoggerDefinitionsCommand.ts index 6c22ff7a09c78..18cccd08a423e 100644 --- a/clients/client-greengrass/src/commands/ListLoggerDefinitionsCommand.ts +++ b/clients/client-greengrass/src/commands/ListLoggerDefinitionsCommand.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 ListLoggerDefinitionsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListLoggerDefinitionsCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class ListLoggerDefinitionsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListLoggerDefinitionsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/ListResourceDefinitionVersionsCommand.ts b/clients/client-greengrass/src/commands/ListResourceDefinitionVersionsCommand.ts index 85c16bba762f2..27379c35e479f 100644 --- a/clients/client-greengrass/src/commands/ListResourceDefinitionVersionsCommand.ts +++ b/clients/client-greengrass/src/commands/ListResourceDefinitionVersionsCommand.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 ListResourceDefinitionVersionsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListResourceDefinitionVersionsCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class ListResourceDefinitionVersionsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListResourceDefinitionVersionsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/ListResourceDefinitionsCommand.ts b/clients/client-greengrass/src/commands/ListResourceDefinitionsCommand.ts index eecf1a717876b..57479b848268a 100644 --- a/clients/client-greengrass/src/commands/ListResourceDefinitionsCommand.ts +++ b/clients/client-greengrass/src/commands/ListResourceDefinitionsCommand.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 ListResourceDefinitionsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListResourceDefinitionsCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class ListResourceDefinitionsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListResourceDefinitionsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/ListSubscriptionDefinitionVersionsCommand.ts b/clients/client-greengrass/src/commands/ListSubscriptionDefinitionVersionsCommand.ts index eb14804cb7fc8..4c8d74c8fa5dd 100644 --- a/clients/client-greengrass/src/commands/ListSubscriptionDefinitionVersionsCommand.ts +++ b/clients/client-greengrass/src/commands/ListSubscriptionDefinitionVersionsCommand.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 ListSubscriptionDefinitionVersionsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListSubscriptionDefinitionVersionsCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class ListSubscriptionDefinitionVersionsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListSubscriptionDefinitionVersionsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/ListSubscriptionDefinitionsCommand.ts b/clients/client-greengrass/src/commands/ListSubscriptionDefinitionsCommand.ts index ad98d894782e0..74d8063be3686 100644 --- a/clients/client-greengrass/src/commands/ListSubscriptionDefinitionsCommand.ts +++ b/clients/client-greengrass/src/commands/ListSubscriptionDefinitionsCommand.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 ListSubscriptionDefinitionsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ListSubscriptionDefinitionsCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class ListSubscriptionDefinitionsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListSubscriptionDefinitionsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/ListTagsForResourceCommand.ts b/clients/client-greengrass/src/commands/ListTagsForResourceCommand.ts index d43c1c068958e..1cfd3f4bc8e91 100644 --- a/clients/client-greengrass/src/commands/ListTagsForResourceCommand.ts +++ b/clients/client-greengrass/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-greengrass/src/commands/ResetDeploymentsCommand.ts b/clients/client-greengrass/src/commands/ResetDeploymentsCommand.ts index 4979806cbcb21..89f1fb8b38d7f 100644 --- a/clients/client-greengrass/src/commands/ResetDeploymentsCommand.ts +++ b/clients/client-greengrass/src/commands/ResetDeploymentsCommand.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 ResetDeploymentsCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: ResetDeploymentsCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class ResetDeploymentsCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ResetDeploymentsCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/StartBulkDeploymentCommand.ts b/clients/client-greengrass/src/commands/StartBulkDeploymentCommand.ts index d417146856f47..06525054de58b 100644 --- a/clients/client-greengrass/src/commands/StartBulkDeploymentCommand.ts +++ b/clients/client-greengrass/src/commands/StartBulkDeploymentCommand.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 StartBulkDeploymentCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: StartBulkDeploymentCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class StartBulkDeploymentCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, StartBulkDeploymentCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/StopBulkDeploymentCommand.ts b/clients/client-greengrass/src/commands/StopBulkDeploymentCommand.ts index e2cb79cbab1e1..256f9094b4048 100644 --- a/clients/client-greengrass/src/commands/StopBulkDeploymentCommand.ts +++ b/clients/client-greengrass/src/commands/StopBulkDeploymentCommand.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 StopBulkDeploymentCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: StopBulkDeploymentCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class StopBulkDeploymentCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, StopBulkDeploymentCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/TagResourceCommand.ts b/clients/client-greengrass/src/commands/TagResourceCommand.ts index ce6420123aee0..52ac4b76449dc 100644 --- a/clients/client-greengrass/src/commands/TagResourceCommand.ts +++ b/clients/client-greengrass/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-greengrass/src/commands/UntagResourceCommand.ts b/clients/client-greengrass/src/commands/UntagResourceCommand.ts index e3a80a06fd761..7a5e48b920544 100644 --- a/clients/client-greengrass/src/commands/UntagResourceCommand.ts +++ b/clients/client-greengrass/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-greengrass/src/commands/UpdateConnectivityInfoCommand.ts b/clients/client-greengrass/src/commands/UpdateConnectivityInfoCommand.ts index e0d89b250894d..2d677ed0e82f1 100644 --- a/clients/client-greengrass/src/commands/UpdateConnectivityInfoCommand.ts +++ b/clients/client-greengrass/src/commands/UpdateConnectivityInfoCommand.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 UpdateConnectivityInfoCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: UpdateConnectivityInfoCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class UpdateConnectivityInfoCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateConnectivityInfoCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/UpdateConnectorDefinitionCommand.ts b/clients/client-greengrass/src/commands/UpdateConnectorDefinitionCommand.ts index 6fd845fa9f676..99dbb17bac2d4 100644 --- a/clients/client-greengrass/src/commands/UpdateConnectorDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/UpdateConnectorDefinitionCommand.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 UpdateConnectorDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: UpdateConnectorDefinitionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class UpdateConnectorDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateConnectorDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/UpdateCoreDefinitionCommand.ts b/clients/client-greengrass/src/commands/UpdateCoreDefinitionCommand.ts index 494a46bc06cec..58e9c489539e5 100644 --- a/clients/client-greengrass/src/commands/UpdateCoreDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/UpdateCoreDefinitionCommand.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 UpdateCoreDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: UpdateCoreDefinitionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class UpdateCoreDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateCoreDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/UpdateDeviceDefinitionCommand.ts b/clients/client-greengrass/src/commands/UpdateDeviceDefinitionCommand.ts index 3670a80190a85..840cd38a947e3 100644 --- a/clients/client-greengrass/src/commands/UpdateDeviceDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/UpdateDeviceDefinitionCommand.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 UpdateDeviceDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: UpdateDeviceDefinitionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class UpdateDeviceDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateDeviceDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/UpdateFunctionDefinitionCommand.ts b/clients/client-greengrass/src/commands/UpdateFunctionDefinitionCommand.ts index 7247a834e16f5..d230eaceb3e76 100644 --- a/clients/client-greengrass/src/commands/UpdateFunctionDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/UpdateFunctionDefinitionCommand.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 UpdateFunctionDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: UpdateFunctionDefinitionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class UpdateFunctionDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateFunctionDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/UpdateGroupCertificateConfigurationCommand.ts b/clients/client-greengrass/src/commands/UpdateGroupCertificateConfigurationCommand.ts index 28c6acc3640d0..f2449f1fc44c2 100644 --- a/clients/client-greengrass/src/commands/UpdateGroupCertificateConfigurationCommand.ts +++ b/clients/client-greengrass/src/commands/UpdateGroupCertificateConfigurationCommand.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 UpdateGroupCertificateConfigurationCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: UpdateGroupCertificateConfigurationCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class UpdateGroupCertificateConfigurationCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateGroupCertificateConfigurationCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/UpdateGroupCommand.ts b/clients/client-greengrass/src/commands/UpdateGroupCommand.ts index ccedf2b26647e..235a8b98353c3 100644 --- a/clients/client-greengrass/src/commands/UpdateGroupCommand.ts +++ b/clients/client-greengrass/src/commands/UpdateGroupCommand.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { 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 UpdateGroupCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: UpdateGroupCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,7 @@ export class UpdateGroupCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, UpdateGroupCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/UpdateLoggerDefinitionCommand.ts b/clients/client-greengrass/src/commands/UpdateLoggerDefinitionCommand.ts index ef72910036cf1..3371fbae50f3c 100644 --- a/clients/client-greengrass/src/commands/UpdateLoggerDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/UpdateLoggerDefinitionCommand.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 UpdateLoggerDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: UpdateLoggerDefinitionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class UpdateLoggerDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateLoggerDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/UpdateResourceDefinitionCommand.ts b/clients/client-greengrass/src/commands/UpdateResourceDefinitionCommand.ts index e52e6d7449262..c83ec4aee1c17 100644 --- a/clients/client-greengrass/src/commands/UpdateResourceDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/UpdateResourceDefinitionCommand.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 UpdateResourceDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: UpdateResourceDefinitionCommandInput) { // Start section: command_constructor super(); @@ -67,6 +77,9 @@ export class UpdateResourceDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateResourceDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/UpdateSubscriptionDefinitionCommand.ts b/clients/client-greengrass/src/commands/UpdateSubscriptionDefinitionCommand.ts index 60c4f0410c45c..686884cc9ff9e 100644 --- a/clients/client-greengrass/src/commands/UpdateSubscriptionDefinitionCommand.ts +++ b/clients/client-greengrass/src/commands/UpdateSubscriptionDefinitionCommand.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 UpdateSubscriptionDefinitionCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: UpdateSubscriptionDefinitionCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class UpdateSubscriptionDefinitionCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateSubscriptionDefinitionCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/commands/UpdateThingRuntimeConfigurationCommand.ts b/clients/client-greengrass/src/commands/UpdateThingRuntimeConfigurationCommand.ts index 14fdc88df7747..88de50ec49055 100644 --- a/clients/client-greengrass/src/commands/UpdateThingRuntimeConfigurationCommand.ts +++ b/clients/client-greengrass/src/commands/UpdateThingRuntimeConfigurationCommand.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 UpdateThingRuntimeConfigurationCommand extends $Command< // Start section: command_properties // End section: command_properties + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "Endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(readonly input: UpdateThingRuntimeConfigurationCommandInput) { // Start section: command_constructor super(); @@ -69,6 +79,9 @@ export class UpdateThingRuntimeConfigurationCommand extends $Command< options?: __HttpHandlerOptions ): Handler { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateThingRuntimeConfigurationCommand.getEndpointParameterInstructions()) + ); const stack = clientStack.concat(this.middlewareStack); diff --git a/clients/client-greengrass/src/endpoint/EndpointParameters.ts b/clients/client-greengrass/src/endpoint/EndpointParameters.ts new file mode 100644 index 0000000000000..233fdbc3a9e22 --- /dev/null +++ b/clients/client-greengrass/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: "greengrass", + }; +}; + +export interface EndpointParameters extends __EndpointParameters { + Region: string; + UseDualStack?: boolean; + UseFIPS?: boolean; + Endpoint?: string; +} diff --git a/clients/client-greengrass/src/endpoint/endpointResolver.ts b/clients/client-greengrass/src/endpoint/endpointResolver.ts new file mode 100644 index 0000000000000..34538a4ce53aa --- /dev/null +++ b/clients/client-greengrass/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 "../endpoint/EndpointParameters"; +import { ruleSet } from "../endpoint/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-greengrass/src/endpoint/ruleset.ts b/clients/client-greengrass/src/endpoint/ruleset.ts new file mode 100644 index 0000000000000..9c9da7428e8d4 --- /dev/null +++ b/clients/client-greengrass/src/endpoint/ruleset.ts @@ -0,0 +1,364 @@ +// smithy-typescript generated code +import { RuleSetObject } from "@aws-sdk/util-endpoints"; + +export const ruleSet: RuleSetObject = { + version: "1.0", + parameters: { + Region: { + builtIn: "AWS::Region", + required: true, + documentation: "The AWS region used to dispatch the request.", + type: "String", + }, + UseDualStack: { + builtIn: "AWS::UseDualStack", + required: true, + default: false, + documentation: + "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", + type: "Boolean", + }, + UseFIPS: { + builtIn: "AWS::UseFIPS", + required: true, + default: false, + documentation: + "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", + type: "Boolean", + }, + Endpoint: { + builtIn: "SDK::Endpoint", + required: false, + documentation: "Override the endpoint used to send this request", + type: "String", + }, + }, + rules: [ + { + conditions: [ + { + fn: "aws.partition", + argv: [ + { + ref: "Region", + }, + ], + assign: "PartitionResult", + }, + ], + type: "tree", + rules: [ + { + conditions: [ + { + fn: "isSet", + argv: [ + { + ref: "Endpoint", + }, + ], + }, + { + fn: "parseURL", + argv: [ + { + ref: "Endpoint", + }, + ], + assign: "url", + }, + ], + type: "tree", + rules: [ + { + conditions: [ + { + fn: "booleanEquals", + argv: [ + { + ref: "UseFIPS", + }, + true, + ], + }, + ], + error: "Invalid Configuration: FIPS and custom endpoint are not supported", + type: "error", + }, + { + conditions: [], + type: "tree", + rules: [ + { + conditions: [ + { + fn: "booleanEquals", + argv: [ + { + ref: "UseDualStack", + }, + true, + ], + }, + ], + error: "Invalid Configuration: Dualstack and custom endpoint are not supported", + type: "error", + }, + { + conditions: [], + endpoint: { + url: { + ref: "Endpoint", + }, + properties: {}, + headers: {}, + }, + type: "endpoint", + }, + ], + }, + ], + }, + { + conditions: [ + { + fn: "booleanEquals", + argv: [ + { + ref: "UseFIPS", + }, + true, + ], + }, + { + fn: "booleanEquals", + argv: [ + { + ref: "UseDualStack", + }, + true, + ], + }, + ], + type: "tree", + rules: [ + { + conditions: [ + { + fn: "booleanEquals", + argv: [ + true, + { + fn: "getAttr", + argv: [ + { + ref: "PartitionResult", + }, + "supportsFIPS", + ], + }, + ], + }, + { + fn: "booleanEquals", + argv: [ + true, + { + fn: "getAttr", + argv: [ + { + ref: "PartitionResult", + }, + "supportsDualStack", + ], + }, + ], + }, + ], + type: "tree", + rules: [ + { + conditions: [], + endpoint: { + url: "https://greengrass-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://greengrass-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://greengrass.{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", + }, + "dataplane-us-gov-west-1", + ], + }, + ], + endpoint: { + url: "https://greengrass-ats.iot.us-gov-west-1.amazonaws.com", + properties: {}, + headers: {}, + }, + type: "endpoint", + }, + { + conditions: [ + { + fn: "stringEquals", + argv: [ + { + ref: "Region", + }, + "dataplane-us-gov-east-1", + ], + }, + ], + endpoint: { + url: "https://greengrass-ats.iot.us-gov-east-1.amazonaws.com", + properties: {}, + headers: {}, + }, + type: "endpoint", + }, + { + conditions: [], + endpoint: { + url: "https://greengrass.{Region}.{PartitionResult#dnsSuffix}", + properties: {}, + headers: {}, + }, + type: "endpoint", + }, + ], + }, + ], + }, + ], +}; diff --git a/clients/client-greengrass/src/endpoints.ts b/clients/client-greengrass/src/endpoints.ts deleted file mode 100644 index 67abfd3043a18..0000000000000 --- a/clients/client-greengrass/src/endpoints.ts +++ /dev/null @@ -1,184 +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 = { - "dataplane-us-gov-east-1": { - variants: [ - { - hostname: "greengrass-ats.iot.us-gov-east-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "us-gov-east-1", - }, - "dataplane-us-gov-west-1": { - variants: [ - { - hostname: "greengrass-ats.iot.us-gov-west-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "us-gov-west-1", - }, - "us-gov-east-1": { - variants: [ - { - hostname: "greengrass.us-gov-east-1.amazonaws.com", - tags: [], - }, - { - hostname: "greengrass-fips.us-gov-east-1.amazonaws.com", - tags: ["fips"], - }, - ], - signingRegion: "us-gov-east-1", - }, - "us-gov-west-1": { - variants: [ - { - hostname: "greengrass.us-gov-west-1.amazonaws.com", - tags: [], - }, - ], - 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", - "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: "greengrass.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "greengrass-fips.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "greengrass-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "greengrass.{region}.api.aws", - tags: ["dualstack"], - }, - ], - }, - "aws-cn": { - regions: ["cn-north-1", "cn-northwest-1"], - regionRegex: "^cn\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "greengrass.{region}.amazonaws.com.cn", - tags: [], - }, - { - hostname: "greengrass-fips.{region}.amazonaws.com.cn", - tags: ["fips"], - }, - { - hostname: "greengrass-fips.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack", "fips"], - }, - { - hostname: "greengrass.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack"], - }, - ], - }, - "aws-iso": { - regions: ["us-iso-east-1", "us-iso-west-1"], - regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "greengrass.{region}.c2s.ic.gov", - tags: [], - }, - { - hostname: "greengrass-fips.{region}.c2s.ic.gov", - tags: ["fips"], - }, - ], - }, - "aws-iso-b": { - regions: ["us-isob-east-1"], - regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "greengrass.{region}.sc2s.sgov.gov", - tags: [], - }, - { - hostname: "greengrass-fips.{region}.sc2s.sgov.gov", - tags: ["fips"], - }, - ], - }, - "aws-us-gov": { - regions: [ - "dataplane-us-gov-east-1", - "dataplane-us-gov-west-1", - "fips-us-gov-east-1", - "us-gov-east-1", - "us-gov-west-1", - ], - regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "greengrass.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "greengrass-fips.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "greengrass-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "greengrass.{region}.api.aws", - tags: ["dualstack"], - }, - ], - }, -}; - -export const defaultRegionInfoProvider: RegionInfoProvider = async ( - region: string, - options?: RegionInfoProviderOptions -) => - getRegionInfo(region, { - ...options, - signingService: "greengrass", - regionHash, - partitionHash, - }); diff --git a/clients/client-greengrass/src/models/models_0.ts b/clients/client-greengrass/src/models/models_0.ts index 9f47841ead2a5..c8c007f0787b6 100644 --- a/clients/client-greengrass/src/models/models_0.ts +++ b/clients/client-greengrass/src/models/models_0.ts @@ -266,6 +266,11 @@ export interface FunctionConfiguration { * The allowed function execution time, after which Lambda should terminate the function. This timeout still applies to pinned Lambda functions for each request. */ Timeout?: number; + + /** + * The Lambda runtime supported by Greengrass which is to be used instead of the one specified in the Lambda function. + */ + FunctionRuntimeOverride?: string; } /** diff --git a/clients/client-greengrass/src/protocols/Aws_restJson1.ts b/clients/client-greengrass/src/protocols/Aws_restJson1.ts index 6fbfba8248f2e..1eb961582ebec 100644 --- a/clients/client-greengrass/src/protocols/Aws_restJson1.ts +++ b/clients/client-greengrass/src/protocols/Aws_restJson1.ts @@ -7674,6 +7674,7 @@ const serializeAws_restJson1FunctionConfiguration = (input: FunctionConfiguratio }), ...(input.ExecArgs != null && { ExecArgs: input.ExecArgs }), ...(input.Executable != null && { Executable: input.Executable }), + ...(input.FunctionRuntimeOverride != null && { FunctionRuntimeOverride: input.FunctionRuntimeOverride }), ...(input.MemorySize != null && { MemorySize: input.MemorySize }), ...(input.Pinned != null && { Pinned: input.Pinned }), ...(input.Timeout != null && { Timeout: input.Timeout }), @@ -8353,6 +8354,7 @@ const deserializeAws_restJson1FunctionConfiguration = (output: any, context: __S : undefined, ExecArgs: __expectString(output.ExecArgs), Executable: __expectString(output.Executable), + FunctionRuntimeOverride: __expectString(output.FunctionRuntimeOverride), MemorySize: __expectInt32(output.MemorySize), Pinned: __expectBoolean(output.Pinned), Timeout: __expectInt32(output.Timeout), diff --git a/clients/client-greengrass/src/runtimeConfig.shared.ts b/clients/client-greengrass/src/runtimeConfig.shared.ts index 057c38bd3a992..a2f9fb968d74e 100644 --- a/clients/client-greengrass/src/runtimeConfig.shared.ts +++ b/clients/client-greengrass/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 { GreengrassClientConfig } from "./GreengrassClient"; /** @@ -11,8 +11,8 @@ import { GreengrassClientConfig } from "./GreengrassClient"; export const getRuntimeConfig = (config: GreengrassClientConfig) => ({ apiVersion: "2017-06-07", disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), - regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider, serviceId: config?.serviceId ?? "Greengrass", urlParser: config?.urlParser ?? parseUrl, }); diff --git a/codegen/sdk-codegen/aws-models/greengrass.json b/codegen/sdk-codegen/aws-models/greengrass.json index 9fb243773865d..a8165e43bd500 100644 --- a/codegen/sdk-codegen/aws-models/greengrass.json +++ b/codegen/sdk-codegen/aws-models/greengrass.json @@ -1,5 +1,5 @@ { - "smithy": "1.0", + "smithy": "2.0", "metadata": { "suppressions": [ { @@ -187,18 +187,21 @@ "InvalidInputRecords": { "target": "com.amazonaws.greengrass#__integer", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "The total number of records that returned a non-retryable error. For example, this can occur if a group record from the input file uses an invalid format or specifies a nonexistent group version, or if the execution role doesn't grant permission to deploy a group or group version." } }, "RecordsProcessed": { "target": "com.amazonaws.greengrass#__integer", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "The total number of group records from the input file that have been processed so far, or attempted." } }, "RetryAttempts": { "target": "com.amazonaws.greengrass#__integer", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "The total number of deployment attempts that returned a retryable error. For example, a retry is triggered if the attempt to deploy a group returns a throttling error. ''StartBulkDeployment'' retries a group deployment up to five times." } } @@ -270,35 +273,47 @@ } }, "com.amazonaws.greengrass#BulkDeploymentStatus": { - "type": "string", - "traits": { - "smithy.api#documentation": "The current status of the bulk deployment.", - "smithy.api#enum": [ - { - "value": "Initializing", - "name": "Initializing" - }, - { - "value": "Running", - "name": "Running" - }, - { - "value": "Completed", - "name": "Completed" - }, - { - "value": "Stopping", - "name": "Stopping" - }, - { - "value": "Stopped", - "name": "Stopped" - }, - { - "value": "Failed", - "name": "Failed" + "type": "enum", + "members": { + "Initializing": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Initializing" + } + }, + "Running": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Running" + } + }, + "Completed": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Completed" } - ] + }, + "Stopping": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Stopping" + } + }, + "Stopped": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Stopped" + } + }, + "Failed": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Failed" + } + } + }, + "traits": { + "smithy.api#documentation": "The current status of the bulk deployment." } }, "com.amazonaws.greengrass#BulkDeployments": { @@ -308,18 +323,20 @@ } }, "com.amazonaws.greengrass#ConfigurationSyncStatus": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "InSync", - "name": "InSync" - }, - { - "value": "OutOfSync", - "name": "OutOfSync" + "type": "enum", + "members": { + "InSync": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "InSync" + } + }, + "OutOfSync": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "OutOfSync" } - ] + } } }, "com.amazonaws.greengrass#ConnectivityInfo": { @@ -346,6 +363,7 @@ "PortNumber": { "target": "com.amazonaws.greengrass#__integer", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "The port of the Greengrass core. Usually 8883." } } @@ -416,6 +434,7 @@ "SyncShadow": { "target": "com.amazonaws.greengrass#__boolean", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "If true, the core's local shadow is automatically synced with the cloud." } }, @@ -2537,27 +2556,35 @@ } }, "com.amazonaws.greengrass#DeploymentType": { - "type": "string", - "traits": { - "smithy.api#documentation": "The type of deployment. When used for ''CreateDeployment'', only ''NewDeployment'' and ''Redeployment'' are valid.", - "smithy.api#enum": [ - { - "value": "NewDeployment", - "name": "NewDeployment" - }, - { - "value": "Redeployment", - "name": "Redeployment" - }, - { - "value": "ResetDeployment", - "name": "ResetDeployment" - }, - { - "value": "ForceResetDeployment", - "name": "ForceResetDeployment" + "type": "enum", + "members": { + "NewDeployment": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NewDeployment" } - ] + }, + "Redeployment": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Redeployment" + } + }, + "ResetDeployment": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ResetDeployment" + } + }, + "ForceResetDeployment": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ForceResetDeployment" + } + } + }, + "traits": { + "smithy.api#documentation": "The type of deployment. When used for ''CreateDeployment'', only ''NewDeployment'' and ''Redeployment'' are valid." } }, "com.amazonaws.greengrass#Deployments": { @@ -2586,6 +2613,7 @@ "SyncShadow": { "target": "com.amazonaws.greengrass#__boolean", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "If true, the device's local shadow will be automatically synced with the cloud." } }, @@ -2702,18 +2730,20 @@ } }, "com.amazonaws.greengrass#EncodingType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "binary", - "name": "binary" - }, - { - "value": "json", - "name": "json" + "type": "enum", + "members": { + "binary": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "binary" + } + }, + "json": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "json" } - ] + } } }, "com.amazonaws.greengrass#ErrorDetail": { @@ -2802,20 +2832,29 @@ "MemorySize": { "target": "com.amazonaws.greengrass#__integer", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "The memory size, in KB, which the function requires. This setting is not applicable and should be cleared when you run the Lambda function without containerization." } }, "Pinned": { "target": "com.amazonaws.greengrass#__boolean", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "True if the function is pinned. Pinned means the function is long-lived and starts when the core starts." } }, "Timeout": { "target": "com.amazonaws.greengrass#__integer", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "The allowed function execution time, after which Lambda should terminate the function. This timeout still applies to pinned Lambda functions for each request." } + }, + "FunctionRuntimeOverride": { + "target": "com.amazonaws.greengrass#__string", + "traits": { + "smithy.api#documentation": "The Lambda runtime supported by Greengrass which is to be used instead of the one specified in the Lambda function." + } } }, "traits": { @@ -2828,6 +2867,7 @@ "AccessSysfs": { "target": "com.amazonaws.greengrass#__boolean", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "If true, the Lambda function is allowed to access the host's /sys folder. Use this when the Lambda function needs to read device information from /sys. This setting applies only when you run the Lambda function in a Greengrass container." } }, @@ -2914,19 +2954,23 @@ } }, "com.amazonaws.greengrass#FunctionIsolationMode": { - "type": "string", - "traits": { - "smithy.api#documentation": "Specifies whether the Lambda function runs in a Greengrass container (default) or without containerization. Unless your scenario requires that you run without containerization, we recommend that you run in a Greengrass container. Omit this value to run the Lambda function with the default containerization for the group.", - "smithy.api#enum": [ - { - "value": "GreengrassContainer", - "name": "GreengrassContainer" - }, - { - "value": "NoContainer", - "name": "NoContainer" + "type": "enum", + "members": { + "GreengrassContainer": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "GreengrassContainer" } - ] + }, + "NoContainer": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NoContainer" + } + } + }, + "traits": { + "smithy.api#documentation": "Specifies whether the Lambda function runs in a Greengrass container (default) or without containerization. Unless your scenario requires that you run without containerization, we recommend that you run in a Greengrass container. Omit this value to run the Lambda function with the default containerization for the group." } }, "com.amazonaws.greengrass#FunctionRunAsConfig": { @@ -2935,12 +2979,14 @@ "Gid": { "target": "com.amazonaws.greengrass#__integer", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "The group ID whose permissions are used to run a Lambda function." } }, "Uid": { "target": "com.amazonaws.greengrass#__integer", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "The user ID whose permissions are used to run a Lambda function." } } @@ -5124,7 +5170,1337 @@ }, "aws.protocols#restJson1": {}, "smithy.api#documentation": "AWS IoT Greengrass seamlessly extends AWS onto physical devices so they can act locally on the data they generate, while still using the cloud for management, analytics, and durable storage. AWS IoT Greengrass ensures your devices can respond quickly to local events and operate with intermittent connectivity. AWS IoT Greengrass minimizes the cost of transmitting data to the cloud by allowing you to author AWS Lambda functions that execute locally.", - "smithy.api#title": "AWS Greengrass" + "smithy.api#title": "AWS Greengrass", + "smithy.rules#endpointRuleSet": { + "version": "1.0", + "parameters": { + "Region": { + "builtIn": "AWS::Region", + "required": true, + "documentation": "The AWS region used to dispatch the request.", + "type": "String" + }, + "UseDualStack": { + "builtIn": "AWS::UseDualStack", + "required": true, + "default": false, + "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", + "type": "Boolean" + }, + "UseFIPS": { + "builtIn": "AWS::UseFIPS", + "required": true, + "default": false, + "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", + "type": "Boolean" + }, + "Endpoint": { + "builtIn": "SDK::Endpoint", + "required": false, + "documentation": "Override the endpoint used to send this request", + "type": "String" + } + }, + "rules": [ + { + "conditions": [ + { + "fn": "aws.partition", + "argv": [ + { + "ref": "Region" + } + ], + "assign": "PartitionResult" + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Endpoint" + } + ] + }, + { + "fn": "parseURL", + "argv": [ + { + "ref": "Endpoint" + } + ], + "assign": "url" + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://greengrass-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://greengrass-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://greengrass.{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" + }, + "dataplane-us-gov-west-1" + ] + } + ], + "endpoint": { + "url": "https://greengrass-ats.iot.us-gov-west-1.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "dataplane-us-gov-east-1" + ] + } + ], + "endpoint": { + "url": "https://greengrass-ats.iot.us-gov-east-1.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [], + "endpoint": { + "url": "https://greengrass.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + } + ] + }, + "smithy.rules#endpointTests": { + "testCases": [ + { + "documentation": "For region ap-south-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.ap-south-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "ap-south-1", + "UseDualStack": true + } + }, + { + "documentation": "For region ap-south-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.ap-south-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "ap-south-1", + "UseDualStack": false + } + }, + { + "documentation": "For region ap-south-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.ap-south-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "ap-south-1", + "UseDualStack": true + } + }, + { + "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.ap-south-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "ap-south-1", + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-gov-east-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "us-gov-east-1", + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "us-gov-east-1", + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-gov-east-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-gov-east-1", + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-gov-east-1", + "UseDualStack": false + } + }, + { + "documentation": "For region ca-central-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.ca-central-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "ca-central-1", + "UseDualStack": true + } + }, + { + "documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.ca-central-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "ca-central-1", + "UseDualStack": false + } + }, + { + "documentation": "For region ca-central-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.ca-central-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "ca-central-1", + "UseDualStack": true + } + }, + { + "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.ca-central-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "ca-central-1", + "UseDualStack": false + } + }, + { + "documentation": "For region eu-central-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.eu-central-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "eu-central-1", + "UseDualStack": true + } + }, + { + "documentation": "For region eu-central-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.eu-central-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "eu-central-1", + "UseDualStack": false + } + }, + { + "documentation": "For region eu-central-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.eu-central-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "eu-central-1", + "UseDualStack": true + } + }, + { + "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.eu-central-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "eu-central-1", + "UseDualStack": false + } + }, + { + "documentation": "For region us-west-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-west-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "us-west-1", + "UseDualStack": true + } + }, + { + "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-west-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "us-west-1", + "UseDualStack": false + } + }, + { + "documentation": "For region us-west-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-west-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-west-1", + "UseDualStack": true + } + }, + { + "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-west-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-west-1", + "UseDualStack": false + } + }, + { + "documentation": "For region us-west-2 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-west-2.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "us-west-2", + "UseDualStack": true + } + }, + { + "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-west-2.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "us-west-2", + "UseDualStack": false + } + }, + { + "documentation": "For region us-west-2 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-west-2.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-west-2", + "UseDualStack": true + } + }, + { + "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-west-2.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-west-2", + "UseDualStack": false + } + }, + { + "documentation": "For region eu-west-2 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.eu-west-2.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "eu-west-2", + "UseDualStack": true + } + }, + { + "documentation": "For region eu-west-2 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.eu-west-2.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "eu-west-2", + "UseDualStack": false + } + }, + { + "documentation": "For region eu-west-2 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.eu-west-2.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "eu-west-2", + "UseDualStack": true + } + }, + { + "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.eu-west-2.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "eu-west-2", + "UseDualStack": false + } + }, + { + "documentation": "For region eu-west-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.eu-west-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "eu-west-1", + "UseDualStack": true + } + }, + { + "documentation": "For region eu-west-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.eu-west-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "eu-west-1", + "UseDualStack": false + } + }, + { + "documentation": "For region eu-west-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.eu-west-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "eu-west-1", + "UseDualStack": true + } + }, + { + "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.eu-west-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "eu-west-1", + "UseDualStack": false + } + }, + { + "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.ap-northeast-2.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "ap-northeast-2", + "UseDualStack": true + } + }, + { + "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.ap-northeast-2.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "ap-northeast-2", + "UseDualStack": false + } + }, + { + "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.ap-northeast-2.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "ap-northeast-2", + "UseDualStack": true + } + }, + { + "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.ap-northeast-2.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "ap-northeast-2", + "UseDualStack": false + } + }, + { + "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.ap-northeast-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "ap-northeast-1", + "UseDualStack": true + } + }, + { + "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.ap-northeast-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "ap-northeast-1", + "UseDualStack": false + } + }, + { + "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.ap-northeast-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "ap-northeast-1", + "UseDualStack": true + } + }, + { + "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.ap-northeast-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "ap-northeast-1", + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "UseFIPS": true, + "Region": "cn-north-1", + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "UseFIPS": true, + "Region": "cn-north-1", + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "UseFIPS": false, + "Region": "cn-north-1", + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "UseFIPS": false, + "Region": "cn-north-1", + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-gov-west-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "us-gov-west-1", + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-gov-west-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "us-gov-west-1", + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-gov-west-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-gov-west-1", + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-gov-west-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-gov-west-1", + "UseDualStack": false + } + }, + { + "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.ap-southeast-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "ap-southeast-1", + "UseDualStack": true + } + }, + { + "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.ap-southeast-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "ap-southeast-1", + "UseDualStack": false + } + }, + { + "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.ap-southeast-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "ap-southeast-1", + "UseDualStack": true + } + }, + { + "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.ap-southeast-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "ap-southeast-1", + "UseDualStack": false + } + }, + { + "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.ap-southeast-2.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "ap-southeast-2", + "UseDualStack": true + } + }, + { + "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.ap-southeast-2.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "ap-southeast-2", + "UseDualStack": false + } + }, + { + "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.ap-southeast-2.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "ap-southeast-2", + "UseDualStack": true + } + }, + { + "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.ap-southeast-2.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "ap-southeast-2", + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "UseFIPS": true, + "Region": "us-iso-east-1", + "UseDualStack": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "UseFIPS": true, + "Region": "us-iso-east-1", + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "UseFIPS": false, + "Region": "us-iso-east-1", + "UseDualStack": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-iso-east-1", + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-east-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "us-east-1", + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-east-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "us-east-1", + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-east-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-east-1", + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-east-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-east-1", + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-2 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-east-2.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "us-east-2", + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-east-2.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "us-east-2", + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-2 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-east-2.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-east-2", + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-east-2.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-east-2", + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "UseFIPS": true, + "Region": "us-isob-east-1", + "UseDualStack": true + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "UseFIPS": true, + "Region": "us-isob-east-1", + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "UseFIPS": false, + "Region": "us-isob-east-1", + "UseDualStack": true + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-isob-east-1", + "UseDualStack": false + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "us-east-1", + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips enabled and dualstack disabled", + "expect": { + "error": "Invalid Configuration: FIPS and custom endpoint are not supported" + }, + "params": { + "UseFIPS": true, + "Region": "us-east-1", + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack enabled", + "expect": { + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" + }, + "params": { + "UseFIPS": false, + "Region": "us-east-1", + "UseDualStack": true, + "Endpoint": "https://example.com" + } + } + ], + "version": "1.0" + } } }, "com.amazonaws.greengrass#GroupCertificateAuthorityProperties": { @@ -5203,6 +6579,7 @@ "AutoAddGroupOwner": { "target": "com.amazonaws.greengrass#__boolean", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "If true, AWS IoT Greengrass automatically adds the specified Linux OS group owner of the resource to the Lambda process privileges. Thus the Lambda process will have the file access permissions of the added Linux group." } }, @@ -6596,6 +7973,7 @@ "Space": { "target": "com.amazonaws.greengrass#__integer", "traits": { + "smithy.api#default": 0, "smithy.api#documentation": "The amount of file space, in KB, to use if the local file system is used for logging purposes." } }, @@ -6612,18 +7990,20 @@ } }, "com.amazonaws.greengrass#LoggerComponent": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "GreengrassSystem", - "name": "GreengrassSystem" - }, - { - "value": "Lambda", - "name": "Lambda" + "type": "enum", + "members": { + "GreengrassSystem": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "GreengrassSystem" + } + }, + "Lambda": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Lambda" } - ] + } } }, "com.amazonaws.greengrass#LoggerDefinitionVersion": { @@ -6641,61 +8021,75 @@ } }, "com.amazonaws.greengrass#LoggerLevel": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "DEBUG", - "name": "DEBUG" - }, - { - "value": "INFO", - "name": "INFO" - }, - { - "value": "WARN", - "name": "WARN" - }, - { - "value": "ERROR", - "name": "ERROR" - }, - { - "value": "FATAL", - "name": "FATAL" + "type": "enum", + "members": { + "DEBUG": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DEBUG" } - ] + }, + "INFO": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INFO" + } + }, + "WARN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "WARN" + } + }, + "ERROR": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ERROR" + } + }, + "FATAL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FATAL" + } + } } }, "com.amazonaws.greengrass#LoggerType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "FileSystem", - "name": "FileSystem" - }, - { - "value": "AWSCloudWatch", - "name": "AWSCloudWatch" + "type": "enum", + "members": { + "FileSystem": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FileSystem" } - ] + }, + "AWSCloudWatch": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AWSCloudWatch" + } + } } }, "com.amazonaws.greengrass#Permission": { - "type": "string", - "traits": { - "smithy.api#documentation": "The type of permission a function has to access a resource.", - "smithy.api#enum": [ - { - "value": "ro", - "name": "ro" - }, - { - "value": "rw", - "name": "rw" + "type": "enum", + "members": { + "ro": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ro" + } + }, + "rw": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "rw" } - ] + } + }, + "traits": { + "smithy.api#documentation": "The type of permission a function has to access a resource." } }, "com.amazonaws.greengrass#ResetDeployments": { @@ -6733,6 +8127,7 @@ "Force": { "target": "com.amazonaws.greengrass#__boolean", "traits": { + "smithy.api#default": false, "smithy.api#documentation": "If true, performs a best-effort only core reset." } }, @@ -6977,19 +8372,23 @@ } }, "com.amazonaws.greengrass#SoftwareToUpdate": { - "type": "string", - "traits": { - "smithy.api#documentation": "The piece of software on the Greengrass core that will be updated.", - "smithy.api#enum": [ - { - "value": "core", - "name": "core" - }, - { - "value": "ota_agent", - "name": "ota_agent" + "type": "enum", + "members": { + "core": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "core" + } + }, + "ota_agent": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ota_agent" } - ] + } + }, + "traits": { + "smithy.api#documentation": "The piece of software on the Greengrass core that will be updated." } }, "com.amazonaws.greengrass#StartBulkDeployment": { @@ -7157,6 +8556,9 @@ "input": { "target": "com.amazonaws.greengrass#TagResourceRequest" }, + "output": { + "target": "smithy.api#Unit" + }, "errors": [ { "target": "com.amazonaws.greengrass#BadRequestException" @@ -7203,18 +8605,20 @@ } }, "com.amazonaws.greengrass#Telemetry": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "On", - "name": "On" - }, - { - "value": "Off", - "name": "Off" + "type": "enum", + "members": { + "On": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "On" } - ] + }, + "Off": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Off" + } + } } }, "com.amazonaws.greengrass#TelemetryConfiguration": { @@ -7258,6 +8662,9 @@ "input": { "target": "com.amazonaws.greengrass#UntagResourceRequest" }, + "output": { + "target": "smithy.api#Unit" + }, "errors": [ { "target": "com.amazonaws.greengrass#BadRequestException" @@ -7294,43 +8701,59 @@ } }, "com.amazonaws.greengrass#UpdateAgentLogLevel": { - "type": "string", - "traits": { - "smithy.api#documentation": "The minimum level of log statements that should be logged by the OTA Agent during an update.", - "smithy.api#enum": [ - { - "value": "NONE", - "name": "NONE" - }, - { - "value": "TRACE", - "name": "TRACE" - }, - { - "value": "DEBUG", - "name": "DEBUG" - }, - { - "value": "VERBOSE", - "name": "VERBOSE" - }, - { - "value": "INFO", - "name": "INFO" - }, - { - "value": "WARN", - "name": "WARN" - }, - { - "value": "ERROR", - "name": "ERROR" - }, - { - "value": "FATAL", - "name": "FATAL" + "type": "enum", + "members": { + "NONE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NONE" + } + }, + "TRACE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "TRACE" + } + }, + "DEBUG": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DEBUG" + } + }, + "VERBOSE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "VERBOSE" + } + }, + "INFO": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INFO" } - ] + }, + "WARN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "WARN" + } + }, + "ERROR": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ERROR" + } + }, + "FATAL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FATAL" + } + } + }, + "traits": { + "smithy.api#documentation": "The minimum level of log statements that should be logged by the OTA Agent during an update." } }, "com.amazonaws.greengrass#UpdateConnectivityInfo": { @@ -7835,51 +9258,67 @@ } }, "com.amazonaws.greengrass#UpdateTargetsArchitecture": { - "type": "string", - "traits": { - "smithy.api#documentation": "The architecture of the cores which are the targets of an update.", - "smithy.api#enum": [ - { - "value": "armv6l", - "name": "armv6l" - }, - { - "value": "armv7l", - "name": "armv7l" - }, - { - "value": "x86_64", - "name": "x86_64" - }, - { - "value": "aarch64", - "name": "aarch64" + "type": "enum", + "members": { + "armv6l": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "armv6l" + } + }, + "armv7l": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "armv7l" + } + }, + "x86_64": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "x86_64" } - ] + }, + "aarch64": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "aarch64" + } + } + }, + "traits": { + "smithy.api#documentation": "The architecture of the cores which are the targets of an update." } }, "com.amazonaws.greengrass#UpdateTargetsOperatingSystem": { - "type": "string", - "traits": { - "smithy.api#documentation": "The operating system of the cores which are the targets of an update.", - "smithy.api#enum": [ - { - "value": "ubuntu", - "name": "ubuntu" - }, - { - "value": "raspbian", - "name": "raspbian" - }, - { - "value": "amazon_linux", - "name": "amazon_linux" - }, - { - "value": "openwrt", - "name": "openwrt" + "type": "enum", + "members": { + "ubuntu": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ubuntu" } - ] + }, + "raspbian": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "raspbian" + } + }, + "amazon_linux": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "amazon_linux" + } + }, + "openwrt": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "openwrt" + } + } + }, + "traits": { + "smithy.api#documentation": "The operating system of the cores which are the targets of an update." } }, "com.amazonaws.greengrass#UpdateThingRuntimeConfiguration": { @@ -7963,10 +9402,16 @@ } }, "com.amazonaws.greengrass#__boolean": { - "type": "boolean" + "type": "boolean", + "traits": { + "smithy.api#default": false + } }, "com.amazonaws.greengrass#__integer": { - "type": "integer" + "type": "integer", + "traits": { + "smithy.api#default": 0 + } }, "com.amazonaws.greengrass#__listOfConnectivityInfo": { "type": "list",