diff --git a/clients/client-mediaconnect/src/commands/DescribeFlowSourceMetadataCommand.ts b/clients/client-mediaconnect/src/commands/DescribeFlowSourceMetadataCommand.ts
index 40773c0c09535..e4d369c6e5e2f 100644
--- a/clients/client-mediaconnect/src/commands/DescribeFlowSourceMetadataCommand.ts
+++ b/clients/client-mediaconnect/src/commands/DescribeFlowSourceMetadataCommand.ts
@@ -1,19 +1,10 @@
// smithy-typescript generated code
-import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
+import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
-import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import { Command as $Command } from "@smithy/smithy-client";
-import {
- FinalizeHandlerArguments,
- Handler,
- HandlerExecutionContext,
- HttpHandlerOptions as __HttpHandlerOptions,
- MetadataBearer as __MetadataBearer,
- MiddlewareStack,
- SerdeContext as __SerdeContext,
- SMITHY_CONTEXT_KEY,
-} from "@smithy/types";
+import { MetadataBearer as __MetadataBearer } from "@smithy/types";
+import { commonParams } from "../endpoint/EndpointParameters";
import { MediaConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaConnectClient";
import { DescribeFlowSourceMetadataRequest, DescribeFlowSourceMetadataResponse } from "../models/models_0";
import { de_DescribeFlowSourceMetadataCommand, se_DescribeFlowSourceMetadataCommand } from "../protocols/Aws_restJson1";
@@ -116,78 +107,26 @@ export interface DescribeFlowSourceMetadataCommandOutput extends DescribeFlowSou
*
Base exception class for all service exceptions from MediaConnect service.
*
*/
-export class DescribeFlowSourceMetadataCommand extends $Command<
- DescribeFlowSourceMetadataCommandInput,
- DescribeFlowSourceMetadataCommandOutput,
- MediaConnectClientResolvedConfig
-> {
- public static getEndpointParameterInstructions(): EndpointParameterInstructions {
- return {
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
- Endpoint: { type: "builtInParams", name: "endpoint" },
- Region: { type: "builtInParams", name: "region" },
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
- };
- }
-
- /**
- * @public
- */
- constructor(readonly input: DescribeFlowSourceMetadataCommandInput) {
- super();
- }
-
- /**
- * @internal
- */
- resolveMiddleware(
- clientStack: MiddlewareStack,
- configuration: MediaConnectClientResolvedConfig,
- options?: __HttpHandlerOptions
- ): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
- this.middlewareStack.use(
- getEndpointPlugin(configuration, DescribeFlowSourceMetadataCommand.getEndpointParameterInstructions())
- );
-
- const stack = clientStack.concat(this.middlewareStack);
-
- const { logger } = configuration;
- const clientName = "MediaConnectClient";
- const commandName = "DescribeFlowSourceMetadataCommand";
- const handlerExecutionContext: HandlerExecutionContext = {
- logger,
- clientName,
- commandName,
- inputFilterSensitiveLog: (_: any) => _,
- outputFilterSensitiveLog: (_: any) => _,
- [SMITHY_CONTEXT_KEY]: {
- service: "MediaConnect",
- operation: "DescribeFlowSourceMetadata",
- },
- };
- const { requestHandler } = configuration;
- return stack.resolve(
- (request: FinalizeHandlerArguments) =>
- requestHandler.handle(request.request as __HttpRequest, options || {}),
- handlerExecutionContext
- );
- }
-
- /**
- * @internal
- */
- private serialize(input: DescribeFlowSourceMetadataCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
- return se_DescribeFlowSourceMetadataCommand(input, context);
- }
-
- /**
- * @internal
- */
- private deserialize(
- output: __HttpResponse,
- context: __SerdeContext
- ): Promise {
- return de_DescribeFlowSourceMetadataCommand(output, context);
- }
-}
+export class DescribeFlowSourceMetadataCommand extends $Command
+ .classBuilder<
+ DescribeFlowSourceMetadataCommandInput,
+ DescribeFlowSourceMetadataCommandOutput,
+ MediaConnectClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+ >()
+ .ep({
+ ...commonParams,
+ })
+ .m(function (this: any, Command: any, cs: any, config: MediaConnectClientResolvedConfig, o: any) {
+ return [
+ getSerdePlugin(config, this.serialize, this.deserialize),
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
+ ];
+ })
+ .s("MediaConnect", "DescribeFlowSourceMetadata", {})
+ .n("MediaConnectClient", "DescribeFlowSourceMetadataCommand")
+ .f(void 0, void 0)
+ .ser(se_DescribeFlowSourceMetadataCommand)
+ .de(de_DescribeFlowSourceMetadataCommand)
+ .build() {}
diff --git a/clients/client-networkmonitor/package.json b/clients/client-networkmonitor/package.json
index a4b4b07eb6573..3944331aa2139 100644
--- a/clients/client-networkmonitor/package.json
+++ b/clients/client-networkmonitor/package.json
@@ -34,26 +34,26 @@
"@aws-sdk/util-user-agent-browser": "*",
"@aws-sdk/util-user-agent-node": "*",
"@smithy/config-resolver": "^2.0.21",
- "@smithy/core": "^1.2.0",
+ "@smithy/core": "^1.2.1",
"@smithy/fetch-http-handler": "^2.3.1",
"@smithy/hash-node": "^2.0.17",
"@smithy/invalid-dependency": "^2.0.15",
"@smithy/middleware-content-length": "^2.0.17",
"@smithy/middleware-endpoint": "^2.2.3",
- "@smithy/middleware-retry": "^2.0.24",
+ "@smithy/middleware-retry": "^2.0.25",
"@smithy/middleware-serde": "^2.0.15",
"@smithy/middleware-stack": "^2.0.9",
"@smithy/node-config-provider": "^2.1.8",
"@smithy/node-http-handler": "^2.2.1",
"@smithy/protocol-http": "^3.0.11",
- "@smithy/smithy-client": "^2.1.18",
+ "@smithy/smithy-client": "^2.2.0",
"@smithy/types": "^2.7.0",
"@smithy/url-parser": "^2.0.15",
"@smithy/util-base64": "^2.0.1",
"@smithy/util-body-length-browser": "^2.0.1",
"@smithy/util-body-length-node": "^2.1.0",
- "@smithy/util-defaults-mode-browser": "^2.0.22",
- "@smithy/util-defaults-mode-node": "^2.0.29",
+ "@smithy/util-defaults-mode-browser": "^2.0.23",
+ "@smithy/util-defaults-mode-node": "^2.0.30",
"@smithy/util-endpoints": "^1.0.7",
"@smithy/util-retry": "^2.0.8",
"@smithy/util-utf8": "^2.0.2",
diff --git a/clients/client-networkmonitor/src/commands/CreateMonitorCommand.ts b/clients/client-networkmonitor/src/commands/CreateMonitorCommand.ts
index a5aca68d35e43..271f528d8c049 100644
--- a/clients/client-networkmonitor/src/commands/CreateMonitorCommand.ts
+++ b/clients/client-networkmonitor/src/commands/CreateMonitorCommand.ts
@@ -1,19 +1,10 @@
// smithy-typescript generated code
-import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
+import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
-import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import { Command as $Command } from "@smithy/smithy-client";
-import {
- FinalizeHandlerArguments,
- Handler,
- HandlerExecutionContext,
- HttpHandlerOptions as __HttpHandlerOptions,
- MetadataBearer as __MetadataBearer,
- MiddlewareStack,
- SerdeContext as __SerdeContext,
- SMITHY_CONTEXT_KEY,
-} from "@smithy/types";
+import { MetadataBearer as __MetadataBearer } from "@smithy/types";
+import { commonParams } from "../endpoint/EndpointParameters";
import { CreateMonitorInput, CreateMonitorOutput } from "../models/models_0";
import { NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkMonitorClient";
import { de_CreateMonitorCommand, se_CreateMonitorCommand } from "../protocols/Aws_restJson1";
@@ -106,73 +97,26 @@ export interface CreateMonitorCommandOutput extends CreateMonitorOutput, __Metad
* Base exception class for all service exceptions from NetworkMonitor service.
*
*/
-export class CreateMonitorCommand extends $Command<
- CreateMonitorCommandInput,
- CreateMonitorCommandOutput,
- NetworkMonitorClientResolvedConfig
-> {
- public static getEndpointParameterInstructions(): EndpointParameterInstructions {
- return {
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
- Endpoint: { type: "builtInParams", name: "endpoint" },
- Region: { type: "builtInParams", name: "region" },
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
- };
- }
-
- /**
- * @public
- */
- constructor(readonly input: CreateMonitorCommandInput) {
- super();
- }
-
- /**
- * @internal
- */
- resolveMiddleware(
- clientStack: MiddlewareStack,
- configuration: NetworkMonitorClientResolvedConfig,
- options?: __HttpHandlerOptions
- ): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateMonitorCommand.getEndpointParameterInstructions()));
-
- const stack = clientStack.concat(this.middlewareStack);
-
- const { logger } = configuration;
- const clientName = "NetworkMonitorClient";
- const commandName = "CreateMonitorCommand";
- const handlerExecutionContext: HandlerExecutionContext = {
- logger,
- clientName,
- commandName,
- inputFilterSensitiveLog: (_: any) => _,
- outputFilterSensitiveLog: (_: any) => _,
- [SMITHY_CONTEXT_KEY]: {
- service: "NetworkMonitor",
- operation: "CreateMonitor",
- },
- };
- const { requestHandler } = configuration;
- return stack.resolve(
- (request: FinalizeHandlerArguments) =>
- requestHandler.handle(request.request as __HttpRequest, options || {}),
- handlerExecutionContext
- );
- }
-
- /**
- * @internal
- */
- private serialize(input: CreateMonitorCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
- return se_CreateMonitorCommand(input, context);
- }
-
- /**
- * @internal
- */
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise {
- return de_CreateMonitorCommand(output, context);
- }
-}
+export class CreateMonitorCommand extends $Command
+ .classBuilder<
+ CreateMonitorCommandInput,
+ CreateMonitorCommandOutput,
+ NetworkMonitorClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+ >()
+ .ep({
+ ...commonParams,
+ })
+ .m(function (this: any, Command: any, cs: any, config: NetworkMonitorClientResolvedConfig, o: any) {
+ return [
+ getSerdePlugin(config, this.serialize, this.deserialize),
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
+ ];
+ })
+ .s("NetworkMonitor", "CreateMonitor", {})
+ .n("NetworkMonitorClient", "CreateMonitorCommand")
+ .f(void 0, void 0)
+ .ser(se_CreateMonitorCommand)
+ .de(de_CreateMonitorCommand)
+ .build() {}
diff --git a/clients/client-networkmonitor/src/commands/CreateProbeCommand.ts b/clients/client-networkmonitor/src/commands/CreateProbeCommand.ts
index 1313901ef6162..1a440291ca290 100644
--- a/clients/client-networkmonitor/src/commands/CreateProbeCommand.ts
+++ b/clients/client-networkmonitor/src/commands/CreateProbeCommand.ts
@@ -1,19 +1,10 @@
// smithy-typescript generated code
-import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
+import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
-import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import { Command as $Command } from "@smithy/smithy-client";
-import {
- FinalizeHandlerArguments,
- Handler,
- HandlerExecutionContext,
- HttpHandlerOptions as __HttpHandlerOptions,
- MetadataBearer as __MetadataBearer,
- MiddlewareStack,
- SerdeContext as __SerdeContext,
- SMITHY_CONTEXT_KEY,
-} from "@smithy/types";
+import { MetadataBearer as __MetadataBearer } from "@smithy/types";
+import { commonParams } from "../endpoint/EndpointParameters";
import { CreateProbeInput, CreateProbeOutput } from "../models/models_0";
import { NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkMonitorClient";
import { de_CreateProbeCommand, se_CreateProbeCommand } from "../protocols/Aws_restJson1";
@@ -111,73 +102,26 @@ export interface CreateProbeCommandOutput extends CreateProbeOutput, __MetadataB
* Base exception class for all service exceptions from NetworkMonitor service.
*
*/
-export class CreateProbeCommand extends $Command<
- CreateProbeCommandInput,
- CreateProbeCommandOutput,
- NetworkMonitorClientResolvedConfig
-> {
- public static getEndpointParameterInstructions(): EndpointParameterInstructions {
- return {
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
- Endpoint: { type: "builtInParams", name: "endpoint" },
- Region: { type: "builtInParams", name: "region" },
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
- };
- }
-
- /**
- * @public
- */
- constructor(readonly input: CreateProbeCommandInput) {
- super();
- }
-
- /**
- * @internal
- */
- resolveMiddleware(
- clientStack: MiddlewareStack,
- configuration: NetworkMonitorClientResolvedConfig,
- options?: __HttpHandlerOptions
- ): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateProbeCommand.getEndpointParameterInstructions()));
-
- const stack = clientStack.concat(this.middlewareStack);
-
- const { logger } = configuration;
- const clientName = "NetworkMonitorClient";
- const commandName = "CreateProbeCommand";
- const handlerExecutionContext: HandlerExecutionContext = {
- logger,
- clientName,
- commandName,
- inputFilterSensitiveLog: (_: any) => _,
- outputFilterSensitiveLog: (_: any) => _,
- [SMITHY_CONTEXT_KEY]: {
- service: "NetworkMonitor",
- operation: "CreateProbe",
- },
- };
- const { requestHandler } = configuration;
- return stack.resolve(
- (request: FinalizeHandlerArguments) =>
- requestHandler.handle(request.request as __HttpRequest, options || {}),
- handlerExecutionContext
- );
- }
-
- /**
- * @internal
- */
- private serialize(input: CreateProbeCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
- return se_CreateProbeCommand(input, context);
- }
-
- /**
- * @internal
- */
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise {
- return de_CreateProbeCommand(output, context);
- }
-}
+export class CreateProbeCommand extends $Command
+ .classBuilder<
+ CreateProbeCommandInput,
+ CreateProbeCommandOutput,
+ NetworkMonitorClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+ >()
+ .ep({
+ ...commonParams,
+ })
+ .m(function (this: any, Command: any, cs: any, config: NetworkMonitorClientResolvedConfig, o: any) {
+ return [
+ getSerdePlugin(config, this.serialize, this.deserialize),
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
+ ];
+ })
+ .s("NetworkMonitor", "CreateProbe", {})
+ .n("NetworkMonitorClient", "CreateProbeCommand")
+ .f(void 0, void 0)
+ .ser(se_CreateProbeCommand)
+ .de(de_CreateProbeCommand)
+ .build() {}
diff --git a/clients/client-networkmonitor/src/commands/DeleteMonitorCommand.ts b/clients/client-networkmonitor/src/commands/DeleteMonitorCommand.ts
index 81bd807bff67b..0e7a387ee062f 100644
--- a/clients/client-networkmonitor/src/commands/DeleteMonitorCommand.ts
+++ b/clients/client-networkmonitor/src/commands/DeleteMonitorCommand.ts
@@ -1,19 +1,10 @@
// smithy-typescript generated code
-import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
+import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
-import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import { Command as $Command } from "@smithy/smithy-client";
-import {
- FinalizeHandlerArguments,
- Handler,
- HandlerExecutionContext,
- HttpHandlerOptions as __HttpHandlerOptions,
- MetadataBearer as __MetadataBearer,
- MiddlewareStack,
- SerdeContext as __SerdeContext,
- SMITHY_CONTEXT_KEY,
-} from "@smithy/types";
+import { MetadataBearer as __MetadataBearer } from "@smithy/types";
+import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteMonitorInput, DeleteMonitorOutput } from "../models/models_0";
import { NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkMonitorClient";
import { de_DeleteMonitorCommand, se_DeleteMonitorCommand } from "../protocols/Aws_restJson1";
@@ -78,73 +69,26 @@ export interface DeleteMonitorCommandOutput extends DeleteMonitorOutput, __Metad
* Base exception class for all service exceptions from NetworkMonitor service.
*
*/
-export class DeleteMonitorCommand extends $Command<
- DeleteMonitorCommandInput,
- DeleteMonitorCommandOutput,
- NetworkMonitorClientResolvedConfig
-> {
- public static getEndpointParameterInstructions(): EndpointParameterInstructions {
- return {
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
- Endpoint: { type: "builtInParams", name: "endpoint" },
- Region: { type: "builtInParams", name: "region" },
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
- };
- }
-
- /**
- * @public
- */
- constructor(readonly input: DeleteMonitorCommandInput) {
- super();
- }
-
- /**
- * @internal
- */
- resolveMiddleware(
- clientStack: MiddlewareStack,
- configuration: NetworkMonitorClientResolvedConfig,
- options?: __HttpHandlerOptions
- ): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
- this.middlewareStack.use(getEndpointPlugin(configuration, DeleteMonitorCommand.getEndpointParameterInstructions()));
-
- const stack = clientStack.concat(this.middlewareStack);
-
- const { logger } = configuration;
- const clientName = "NetworkMonitorClient";
- const commandName = "DeleteMonitorCommand";
- const handlerExecutionContext: HandlerExecutionContext = {
- logger,
- clientName,
- commandName,
- inputFilterSensitiveLog: (_: any) => _,
- outputFilterSensitiveLog: (_: any) => _,
- [SMITHY_CONTEXT_KEY]: {
- service: "NetworkMonitor",
- operation: "DeleteMonitor",
- },
- };
- const { requestHandler } = configuration;
- return stack.resolve(
- (request: FinalizeHandlerArguments) =>
- requestHandler.handle(request.request as __HttpRequest, options || {}),
- handlerExecutionContext
- );
- }
-
- /**
- * @internal
- */
- private serialize(input: DeleteMonitorCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
- return se_DeleteMonitorCommand(input, context);
- }
-
- /**
- * @internal
- */
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise {
- return de_DeleteMonitorCommand(output, context);
- }
-}
+export class DeleteMonitorCommand extends $Command
+ .classBuilder<
+ DeleteMonitorCommandInput,
+ DeleteMonitorCommandOutput,
+ NetworkMonitorClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+ >()
+ .ep({
+ ...commonParams,
+ })
+ .m(function (this: any, Command: any, cs: any, config: NetworkMonitorClientResolvedConfig, o: any) {
+ return [
+ getSerdePlugin(config, this.serialize, this.deserialize),
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
+ ];
+ })
+ .s("NetworkMonitor", "DeleteMonitor", {})
+ .n("NetworkMonitorClient", "DeleteMonitorCommand")
+ .f(void 0, void 0)
+ .ser(se_DeleteMonitorCommand)
+ .de(de_DeleteMonitorCommand)
+ .build() {}
diff --git a/clients/client-networkmonitor/src/commands/DeleteProbeCommand.ts b/clients/client-networkmonitor/src/commands/DeleteProbeCommand.ts
index 373814b979bf1..6711001d1f865 100644
--- a/clients/client-networkmonitor/src/commands/DeleteProbeCommand.ts
+++ b/clients/client-networkmonitor/src/commands/DeleteProbeCommand.ts
@@ -1,19 +1,10 @@
// smithy-typescript generated code
-import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
+import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
-import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import { Command as $Command } from "@smithy/smithy-client";
-import {
- FinalizeHandlerArguments,
- Handler,
- HandlerExecutionContext,
- HttpHandlerOptions as __HttpHandlerOptions,
- MetadataBearer as __MetadataBearer,
- MiddlewareStack,
- SerdeContext as __SerdeContext,
- SMITHY_CONTEXT_KEY,
-} from "@smithy/types";
+import { MetadataBearer as __MetadataBearer } from "@smithy/types";
+import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteProbeInput, DeleteProbeOutput } from "../models/models_0";
import { NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkMonitorClient";
import { de_DeleteProbeCommand, se_DeleteProbeCommand } from "../protocols/Aws_restJson1";
@@ -82,73 +73,26 @@ export interface DeleteProbeCommandOutput extends DeleteProbeOutput, __MetadataB
* Base exception class for all service exceptions from NetworkMonitor service.
*
*/
-export class DeleteProbeCommand extends $Command<
- DeleteProbeCommandInput,
- DeleteProbeCommandOutput,
- NetworkMonitorClientResolvedConfig
-> {
- public static getEndpointParameterInstructions(): EndpointParameterInstructions {
- return {
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
- Endpoint: { type: "builtInParams", name: "endpoint" },
- Region: { type: "builtInParams", name: "region" },
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
- };
- }
-
- /**
- * @public
- */
- constructor(readonly input: DeleteProbeCommandInput) {
- super();
- }
-
- /**
- * @internal
- */
- resolveMiddleware(
- clientStack: MiddlewareStack,
- configuration: NetworkMonitorClientResolvedConfig,
- options?: __HttpHandlerOptions
- ): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
- this.middlewareStack.use(getEndpointPlugin(configuration, DeleteProbeCommand.getEndpointParameterInstructions()));
-
- const stack = clientStack.concat(this.middlewareStack);
-
- const { logger } = configuration;
- const clientName = "NetworkMonitorClient";
- const commandName = "DeleteProbeCommand";
- const handlerExecutionContext: HandlerExecutionContext = {
- logger,
- clientName,
- commandName,
- inputFilterSensitiveLog: (_: any) => _,
- outputFilterSensitiveLog: (_: any) => _,
- [SMITHY_CONTEXT_KEY]: {
- service: "NetworkMonitor",
- operation: "DeleteProbe",
- },
- };
- const { requestHandler } = configuration;
- return stack.resolve(
- (request: FinalizeHandlerArguments) =>
- requestHandler.handle(request.request as __HttpRequest, options || {}),
- handlerExecutionContext
- );
- }
-
- /**
- * @internal
- */
- private serialize(input: DeleteProbeCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
- return se_DeleteProbeCommand(input, context);
- }
-
- /**
- * @internal
- */
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise {
- return de_DeleteProbeCommand(output, context);
- }
-}
+export class DeleteProbeCommand extends $Command
+ .classBuilder<
+ DeleteProbeCommandInput,
+ DeleteProbeCommandOutput,
+ NetworkMonitorClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+ >()
+ .ep({
+ ...commonParams,
+ })
+ .m(function (this: any, Command: any, cs: any, config: NetworkMonitorClientResolvedConfig, o: any) {
+ return [
+ getSerdePlugin(config, this.serialize, this.deserialize),
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
+ ];
+ })
+ .s("NetworkMonitor", "DeleteProbe", {})
+ .n("NetworkMonitorClient", "DeleteProbeCommand")
+ .f(void 0, void 0)
+ .ser(se_DeleteProbeCommand)
+ .de(de_DeleteProbeCommand)
+ .build() {}
diff --git a/clients/client-networkmonitor/src/commands/GetMonitorCommand.ts b/clients/client-networkmonitor/src/commands/GetMonitorCommand.ts
index 2a4116b88ff11..93e2a83451c72 100644
--- a/clients/client-networkmonitor/src/commands/GetMonitorCommand.ts
+++ b/clients/client-networkmonitor/src/commands/GetMonitorCommand.ts
@@ -1,19 +1,10 @@
// smithy-typescript generated code
-import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
+import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
-import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import { Command as $Command } from "@smithy/smithy-client";
-import {
- FinalizeHandlerArguments,
- Handler,
- HandlerExecutionContext,
- HttpHandlerOptions as __HttpHandlerOptions,
- MetadataBearer as __MetadataBearer,
- MiddlewareStack,
- SerdeContext as __SerdeContext,
- SMITHY_CONTEXT_KEY,
-} from "@smithy/types";
+import { MetadataBearer as __MetadataBearer } from "@smithy/types";
+import { commonParams } from "../endpoint/EndpointParameters";
import { GetMonitorInput, GetMonitorOutput } from "../models/models_0";
import { NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkMonitorClient";
import { de_GetMonitorCommand, se_GetMonitorCommand } from "../protocols/Aws_restJson1";
@@ -107,73 +98,26 @@ export interface GetMonitorCommandOutput extends GetMonitorOutput, __MetadataBea
* Base exception class for all service exceptions from NetworkMonitor service.
*
*/
-export class GetMonitorCommand extends $Command<
- GetMonitorCommandInput,
- GetMonitorCommandOutput,
- NetworkMonitorClientResolvedConfig
-> {
- public static getEndpointParameterInstructions(): EndpointParameterInstructions {
- return {
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
- Endpoint: { type: "builtInParams", name: "endpoint" },
- Region: { type: "builtInParams", name: "region" },
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
- };
- }
-
- /**
- * @public
- */
- constructor(readonly input: GetMonitorCommandInput) {
- super();
- }
-
- /**
- * @internal
- */
- resolveMiddleware(
- clientStack: MiddlewareStack,
- configuration: NetworkMonitorClientResolvedConfig,
- options?: __HttpHandlerOptions
- ): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
- this.middlewareStack.use(getEndpointPlugin(configuration, GetMonitorCommand.getEndpointParameterInstructions()));
-
- const stack = clientStack.concat(this.middlewareStack);
-
- const { logger } = configuration;
- const clientName = "NetworkMonitorClient";
- const commandName = "GetMonitorCommand";
- const handlerExecutionContext: HandlerExecutionContext = {
- logger,
- clientName,
- commandName,
- inputFilterSensitiveLog: (_: any) => _,
- outputFilterSensitiveLog: (_: any) => _,
- [SMITHY_CONTEXT_KEY]: {
- service: "NetworkMonitor",
- operation: "GetMonitor",
- },
- };
- const { requestHandler } = configuration;
- return stack.resolve(
- (request: FinalizeHandlerArguments) =>
- requestHandler.handle(request.request as __HttpRequest, options || {}),
- handlerExecutionContext
- );
- }
-
- /**
- * @internal
- */
- private serialize(input: GetMonitorCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
- return se_GetMonitorCommand(input, context);
- }
-
- /**
- * @internal
- */
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise {
- return de_GetMonitorCommand(output, context);
- }
-}
+export class GetMonitorCommand extends $Command
+ .classBuilder<
+ GetMonitorCommandInput,
+ GetMonitorCommandOutput,
+ NetworkMonitorClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+ >()
+ .ep({
+ ...commonParams,
+ })
+ .m(function (this: any, Command: any, cs: any, config: NetworkMonitorClientResolvedConfig, o: any) {
+ return [
+ getSerdePlugin(config, this.serialize, this.deserialize),
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
+ ];
+ })
+ .s("NetworkMonitor", "GetMonitor", {})
+ .n("NetworkMonitorClient", "GetMonitorCommand")
+ .f(void 0, void 0)
+ .ser(se_GetMonitorCommand)
+ .de(de_GetMonitorCommand)
+ .build() {}
diff --git a/clients/client-networkmonitor/src/commands/GetProbeCommand.ts b/clients/client-networkmonitor/src/commands/GetProbeCommand.ts
index b22d57fdebbaf..35f71f515f578 100644
--- a/clients/client-networkmonitor/src/commands/GetProbeCommand.ts
+++ b/clients/client-networkmonitor/src/commands/GetProbeCommand.ts
@@ -1,19 +1,10 @@
// smithy-typescript generated code
-import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
+import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
-import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import { Command as $Command } from "@smithy/smithy-client";
-import {
- FinalizeHandlerArguments,
- Handler,
- HandlerExecutionContext,
- HttpHandlerOptions as __HttpHandlerOptions,
- MetadataBearer as __MetadataBearer,
- MiddlewareStack,
- SerdeContext as __SerdeContext,
- SMITHY_CONTEXT_KEY,
-} from "@smithy/types";
+import { MetadataBearer as __MetadataBearer } from "@smithy/types";
+import { commonParams } from "../endpoint/EndpointParameters";
import { GetProbeInput, GetProbeOutput } from "../models/models_0";
import { NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkMonitorClient";
import { de_GetProbeCommand, se_GetProbeCommand } from "../protocols/Aws_restJson1";
@@ -95,73 +86,26 @@ export interface GetProbeCommandOutput extends GetProbeOutput, __MetadataBearer
* Base exception class for all service exceptions from NetworkMonitor service.
*
*/
-export class GetProbeCommand extends $Command<
- GetProbeCommandInput,
- GetProbeCommandOutput,
- NetworkMonitorClientResolvedConfig
-> {
- public static getEndpointParameterInstructions(): EndpointParameterInstructions {
- return {
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
- Endpoint: { type: "builtInParams", name: "endpoint" },
- Region: { type: "builtInParams", name: "region" },
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
- };
- }
-
- /**
- * @public
- */
- constructor(readonly input: GetProbeCommandInput) {
- super();
- }
-
- /**
- * @internal
- */
- resolveMiddleware(
- clientStack: MiddlewareStack,
- configuration: NetworkMonitorClientResolvedConfig,
- options?: __HttpHandlerOptions
- ): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
- this.middlewareStack.use(getEndpointPlugin(configuration, GetProbeCommand.getEndpointParameterInstructions()));
-
- const stack = clientStack.concat(this.middlewareStack);
-
- const { logger } = configuration;
- const clientName = "NetworkMonitorClient";
- const commandName = "GetProbeCommand";
- const handlerExecutionContext: HandlerExecutionContext = {
- logger,
- clientName,
- commandName,
- inputFilterSensitiveLog: (_: any) => _,
- outputFilterSensitiveLog: (_: any) => _,
- [SMITHY_CONTEXT_KEY]: {
- service: "NetworkMonitor",
- operation: "GetProbe",
- },
- };
- const { requestHandler } = configuration;
- return stack.resolve(
- (request: FinalizeHandlerArguments) =>
- requestHandler.handle(request.request as __HttpRequest, options || {}),
- handlerExecutionContext
- );
- }
-
- /**
- * @internal
- */
- private serialize(input: GetProbeCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
- return se_GetProbeCommand(input, context);
- }
-
- /**
- * @internal
- */
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise {
- return de_GetProbeCommand(output, context);
- }
-}
+export class GetProbeCommand extends $Command
+ .classBuilder<
+ GetProbeCommandInput,
+ GetProbeCommandOutput,
+ NetworkMonitorClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+ >()
+ .ep({
+ ...commonParams,
+ })
+ .m(function (this: any, Command: any, cs: any, config: NetworkMonitorClientResolvedConfig, o: any) {
+ return [
+ getSerdePlugin(config, this.serialize, this.deserialize),
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
+ ];
+ })
+ .s("NetworkMonitor", "GetProbe", {})
+ .n("NetworkMonitorClient", "GetProbeCommand")
+ .f(void 0, void 0)
+ .ser(se_GetProbeCommand)
+ .de(de_GetProbeCommand)
+ .build() {}
diff --git a/clients/client-networkmonitor/src/commands/ListMonitorsCommand.ts b/clients/client-networkmonitor/src/commands/ListMonitorsCommand.ts
index 4adee39d381b1..5a6da132b4e6d 100644
--- a/clients/client-networkmonitor/src/commands/ListMonitorsCommand.ts
+++ b/clients/client-networkmonitor/src/commands/ListMonitorsCommand.ts
@@ -1,19 +1,10 @@
// smithy-typescript generated code
-import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
+import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
-import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import { Command as $Command } from "@smithy/smithy-client";
-import {
- FinalizeHandlerArguments,
- Handler,
- HandlerExecutionContext,
- HttpHandlerOptions as __HttpHandlerOptions,
- MetadataBearer as __MetadataBearer,
- MiddlewareStack,
- SerdeContext as __SerdeContext,
- SMITHY_CONTEXT_KEY,
-} from "@smithy/types";
+import { MetadataBearer as __MetadataBearer } from "@smithy/types";
+import { commonParams } from "../endpoint/EndpointParameters";
import { ListMonitorsInput, ListMonitorsOutput } from "../models/models_0";
import { NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkMonitorClient";
import { de_ListMonitorsCommand, se_ListMonitorsCommand } from "../protocols/Aws_restJson1";
@@ -90,73 +81,26 @@ export interface ListMonitorsCommandOutput extends ListMonitorsOutput, __Metadat
* Base exception class for all service exceptions from NetworkMonitor service.
*
*/
-export class ListMonitorsCommand extends $Command<
- ListMonitorsCommandInput,
- ListMonitorsCommandOutput,
- NetworkMonitorClientResolvedConfig
-> {
- public static getEndpointParameterInstructions(): EndpointParameterInstructions {
- return {
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
- Endpoint: { type: "builtInParams", name: "endpoint" },
- Region: { type: "builtInParams", name: "region" },
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
- };
- }
-
- /**
- * @public
- */
- constructor(readonly input: ListMonitorsCommandInput) {
- super();
- }
-
- /**
- * @internal
- */
- resolveMiddleware(
- clientStack: MiddlewareStack,
- configuration: NetworkMonitorClientResolvedConfig,
- options?: __HttpHandlerOptions
- ): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
- this.middlewareStack.use(getEndpointPlugin(configuration, ListMonitorsCommand.getEndpointParameterInstructions()));
-
- const stack = clientStack.concat(this.middlewareStack);
-
- const { logger } = configuration;
- const clientName = "NetworkMonitorClient";
- const commandName = "ListMonitorsCommand";
- const handlerExecutionContext: HandlerExecutionContext = {
- logger,
- clientName,
- commandName,
- inputFilterSensitiveLog: (_: any) => _,
- outputFilterSensitiveLog: (_: any) => _,
- [SMITHY_CONTEXT_KEY]: {
- service: "NetworkMonitor",
- operation: "ListMonitors",
- },
- };
- const { requestHandler } = configuration;
- return stack.resolve(
- (request: FinalizeHandlerArguments) =>
- requestHandler.handle(request.request as __HttpRequest, options || {}),
- handlerExecutionContext
- );
- }
-
- /**
- * @internal
- */
- private serialize(input: ListMonitorsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
- return se_ListMonitorsCommand(input, context);
- }
-
- /**
- * @internal
- */
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise {
- return de_ListMonitorsCommand(output, context);
- }
-}
+export class ListMonitorsCommand extends $Command
+ .classBuilder<
+ ListMonitorsCommandInput,
+ ListMonitorsCommandOutput,
+ NetworkMonitorClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+ >()
+ .ep({
+ ...commonParams,
+ })
+ .m(function (this: any, Command: any, cs: any, config: NetworkMonitorClientResolvedConfig, o: any) {
+ return [
+ getSerdePlugin(config, this.serialize, this.deserialize),
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
+ ];
+ })
+ .s("NetworkMonitor", "ListMonitors", {})
+ .n("NetworkMonitorClient", "ListMonitorsCommand")
+ .f(void 0, void 0)
+ .ser(se_ListMonitorsCommand)
+ .de(de_ListMonitorsCommand)
+ .build() {}
diff --git a/clients/client-networkmonitor/src/commands/ListTagsForResourceCommand.ts b/clients/client-networkmonitor/src/commands/ListTagsForResourceCommand.ts
index 78c430642c350..76f2b037642a6 100644
--- a/clients/client-networkmonitor/src/commands/ListTagsForResourceCommand.ts
+++ b/clients/client-networkmonitor/src/commands/ListTagsForResourceCommand.ts
@@ -1,19 +1,10 @@
// smithy-typescript generated code
-import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
+import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
-import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import { Command as $Command } from "@smithy/smithy-client";
-import {
- FinalizeHandlerArguments,
- Handler,
- HandlerExecutionContext,
- HttpHandlerOptions as __HttpHandlerOptions,
- MetadataBearer as __MetadataBearer,
- MiddlewareStack,
- SerdeContext as __SerdeContext,
- SMITHY_CONTEXT_KEY,
-} from "@smithy/types";
+import { MetadataBearer as __MetadataBearer } from "@smithy/types";
+import { commonParams } from "../endpoint/EndpointParameters";
import { ListTagsForResourceInput, ListTagsForResourceOutput } from "../models/models_0";
import { NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkMonitorClient";
import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
@@ -85,75 +76,26 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceOut
* Base exception class for all service exceptions from NetworkMonitor service.
*
*/
-export class ListTagsForResourceCommand extends $Command<
- ListTagsForResourceCommandInput,
- ListTagsForResourceCommandOutput,
- NetworkMonitorClientResolvedConfig
-> {
- public static getEndpointParameterInstructions(): EndpointParameterInstructions {
- return {
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
- Endpoint: { type: "builtInParams", name: "endpoint" },
- Region: { type: "builtInParams", name: "region" },
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
- };
- }
-
- /**
- * @public
- */
- constructor(readonly input: ListTagsForResourceCommandInput) {
- super();
- }
-
- /**
- * @internal
- */
- resolveMiddleware(
- clientStack: MiddlewareStack,
- configuration: NetworkMonitorClientResolvedConfig,
- 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);
-
- const { logger } = configuration;
- const clientName = "NetworkMonitorClient";
- const commandName = "ListTagsForResourceCommand";
- const handlerExecutionContext: HandlerExecutionContext = {
- logger,
- clientName,
- commandName,
- inputFilterSensitiveLog: (_: any) => _,
- outputFilterSensitiveLog: (_: any) => _,
- [SMITHY_CONTEXT_KEY]: {
- service: "NetworkMonitor",
- operation: "ListTagsForResource",
- },
- };
- const { requestHandler } = configuration;
- return stack.resolve(
- (request: FinalizeHandlerArguments) =>
- requestHandler.handle(request.request as __HttpRequest, options || {}),
- handlerExecutionContext
- );
- }
-
- /**
- * @internal
- */
- private serialize(input: ListTagsForResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
- return se_ListTagsForResourceCommand(input, context);
- }
-
- /**
- * @internal
- */
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise {
- return de_ListTagsForResourceCommand(output, context);
- }
-}
+export class ListTagsForResourceCommand extends $Command
+ .classBuilder<
+ ListTagsForResourceCommandInput,
+ ListTagsForResourceCommandOutput,
+ NetworkMonitorClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+ >()
+ .ep({
+ ...commonParams,
+ })
+ .m(function (this: any, Command: any, cs: any, config: NetworkMonitorClientResolvedConfig, o: any) {
+ return [
+ getSerdePlugin(config, this.serialize, this.deserialize),
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
+ ];
+ })
+ .s("NetworkMonitor", "ListTagsForResource", {})
+ .n("NetworkMonitorClient", "ListTagsForResourceCommand")
+ .f(void 0, void 0)
+ .ser(se_ListTagsForResourceCommand)
+ .de(de_ListTagsForResourceCommand)
+ .build() {}
diff --git a/clients/client-networkmonitor/src/commands/TagResourceCommand.ts b/clients/client-networkmonitor/src/commands/TagResourceCommand.ts
index f0e3c3e028c23..677a0738ffee3 100644
--- a/clients/client-networkmonitor/src/commands/TagResourceCommand.ts
+++ b/clients/client-networkmonitor/src/commands/TagResourceCommand.ts
@@ -1,19 +1,10 @@
// smithy-typescript generated code
-import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
+import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
-import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import { Command as $Command } from "@smithy/smithy-client";
-import {
- FinalizeHandlerArguments,
- Handler,
- HandlerExecutionContext,
- HttpHandlerOptions as __HttpHandlerOptions,
- MetadataBearer as __MetadataBearer,
- MiddlewareStack,
- SerdeContext as __SerdeContext,
- SMITHY_CONTEXT_KEY,
-} from "@smithy/types";
+import { MetadataBearer as __MetadataBearer } from "@smithy/types";
+import { commonParams } from "../endpoint/EndpointParameters";
import { TagResourceInput, TagResourceOutput } from "../models/models_0";
import { NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkMonitorClient";
import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
@@ -84,73 +75,26 @@ export interface TagResourceCommandOutput extends TagResourceOutput, __MetadataB
* Base exception class for all service exceptions from NetworkMonitor service.
*
*/
-export class TagResourceCommand extends $Command<
- TagResourceCommandInput,
- TagResourceCommandOutput,
- NetworkMonitorClientResolvedConfig
-> {
- public static getEndpointParameterInstructions(): EndpointParameterInstructions {
- return {
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
- Endpoint: { type: "builtInParams", name: "endpoint" },
- Region: { type: "builtInParams", name: "region" },
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
- };
- }
-
- /**
- * @public
- */
- constructor(readonly input: TagResourceCommandInput) {
- super();
- }
-
- /**
- * @internal
- */
- resolveMiddleware(
- clientStack: MiddlewareStack,
- configuration: NetworkMonitorClientResolvedConfig,
- 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);
-
- const { logger } = configuration;
- const clientName = "NetworkMonitorClient";
- const commandName = "TagResourceCommand";
- const handlerExecutionContext: HandlerExecutionContext = {
- logger,
- clientName,
- commandName,
- inputFilterSensitiveLog: (_: any) => _,
- outputFilterSensitiveLog: (_: any) => _,
- [SMITHY_CONTEXT_KEY]: {
- service: "NetworkMonitor",
- operation: "TagResource",
- },
- };
- const { requestHandler } = configuration;
- return stack.resolve(
- (request: FinalizeHandlerArguments) =>
- requestHandler.handle(request.request as __HttpRequest, options || {}),
- handlerExecutionContext
- );
- }
-
- /**
- * @internal
- */
- private serialize(input: TagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
- return se_TagResourceCommand(input, context);
- }
-
- /**
- * @internal
- */
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise {
- return de_TagResourceCommand(output, context);
- }
-}
+export class TagResourceCommand extends $Command
+ .classBuilder<
+ TagResourceCommandInput,
+ TagResourceCommandOutput,
+ NetworkMonitorClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+ >()
+ .ep({
+ ...commonParams,
+ })
+ .m(function (this: any, Command: any, cs: any, config: NetworkMonitorClientResolvedConfig, o: any) {
+ return [
+ getSerdePlugin(config, this.serialize, this.deserialize),
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
+ ];
+ })
+ .s("NetworkMonitor", "TagResource", {})
+ .n("NetworkMonitorClient", "TagResourceCommand")
+ .f(void 0, void 0)
+ .ser(se_TagResourceCommand)
+ .de(de_TagResourceCommand)
+ .build() {}
diff --git a/clients/client-networkmonitor/src/commands/UntagResourceCommand.ts b/clients/client-networkmonitor/src/commands/UntagResourceCommand.ts
index 75deb46afef79..01c7dcd243fe0 100644
--- a/clients/client-networkmonitor/src/commands/UntagResourceCommand.ts
+++ b/clients/client-networkmonitor/src/commands/UntagResourceCommand.ts
@@ -1,19 +1,10 @@
// smithy-typescript generated code
-import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
+import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
-import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import { Command as $Command } from "@smithy/smithy-client";
-import {
- FinalizeHandlerArguments,
- Handler,
- HandlerExecutionContext,
- HttpHandlerOptions as __HttpHandlerOptions,
- MetadataBearer as __MetadataBearer,
- MiddlewareStack,
- SerdeContext as __SerdeContext,
- SMITHY_CONTEXT_KEY,
-} from "@smithy/types";
+import { MetadataBearer as __MetadataBearer } from "@smithy/types";
+import { commonParams } from "../endpoint/EndpointParameters";
import { UntagResourceInput, UntagResourceOutput } from "../models/models_0";
import { NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkMonitorClient";
import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
@@ -84,73 +75,26 @@ export interface UntagResourceCommandOutput extends UntagResourceOutput, __Metad
* Base exception class for all service exceptions from NetworkMonitor service.
*
*/
-export class UntagResourceCommand extends $Command<
- UntagResourceCommandInput,
- UntagResourceCommandOutput,
- NetworkMonitorClientResolvedConfig
-> {
- public static getEndpointParameterInstructions(): EndpointParameterInstructions {
- return {
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
- Endpoint: { type: "builtInParams", name: "endpoint" },
- Region: { type: "builtInParams", name: "region" },
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
- };
- }
-
- /**
- * @public
- */
- constructor(readonly input: UntagResourceCommandInput) {
- super();
- }
-
- /**
- * @internal
- */
- resolveMiddleware(
- clientStack: MiddlewareStack,
- configuration: NetworkMonitorClientResolvedConfig,
- 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);
-
- const { logger } = configuration;
- const clientName = "NetworkMonitorClient";
- const commandName = "UntagResourceCommand";
- const handlerExecutionContext: HandlerExecutionContext = {
- logger,
- clientName,
- commandName,
- inputFilterSensitiveLog: (_: any) => _,
- outputFilterSensitiveLog: (_: any) => _,
- [SMITHY_CONTEXT_KEY]: {
- service: "NetworkMonitor",
- operation: "UntagResource",
- },
- };
- const { requestHandler } = configuration;
- return stack.resolve(
- (request: FinalizeHandlerArguments) =>
- requestHandler.handle(request.request as __HttpRequest, options || {}),
- handlerExecutionContext
- );
- }
-
- /**
- * @internal
- */
- private serialize(input: UntagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
- return se_UntagResourceCommand(input, context);
- }
-
- /**
- * @internal
- */
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise {
- return de_UntagResourceCommand(output, context);
- }
-}
+export class UntagResourceCommand extends $Command
+ .classBuilder<
+ UntagResourceCommandInput,
+ UntagResourceCommandOutput,
+ NetworkMonitorClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+ >()
+ .ep({
+ ...commonParams,
+ })
+ .m(function (this: any, Command: any, cs: any, config: NetworkMonitorClientResolvedConfig, o: any) {
+ return [
+ getSerdePlugin(config, this.serialize, this.deserialize),
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
+ ];
+ })
+ .s("NetworkMonitor", "UntagResource", {})
+ .n("NetworkMonitorClient", "UntagResourceCommand")
+ .f(void 0, void 0)
+ .ser(se_UntagResourceCommand)
+ .de(de_UntagResourceCommand)
+ .build() {}
diff --git a/clients/client-networkmonitor/src/commands/UpdateMonitorCommand.ts b/clients/client-networkmonitor/src/commands/UpdateMonitorCommand.ts
index abfa6bdbe665d..7f990cdea6cdf 100644
--- a/clients/client-networkmonitor/src/commands/UpdateMonitorCommand.ts
+++ b/clients/client-networkmonitor/src/commands/UpdateMonitorCommand.ts
@@ -1,19 +1,10 @@
// smithy-typescript generated code
-import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
+import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
-import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import { Command as $Command } from "@smithy/smithy-client";
-import {
- FinalizeHandlerArguments,
- Handler,
- HandlerExecutionContext,
- HttpHandlerOptions as __HttpHandlerOptions,
- MetadataBearer as __MetadataBearer,
- MiddlewareStack,
- SerdeContext as __SerdeContext,
- SMITHY_CONTEXT_KEY,
-} from "@smithy/types";
+import { MetadataBearer as __MetadataBearer } from "@smithy/types";
+import { commonParams } from "../endpoint/EndpointParameters";
import { UpdateMonitorInput, UpdateMonitorOutput } from "../models/models_0";
import { NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkMonitorClient";
import { de_UpdateMonitorCommand, se_UpdateMonitorCommand } from "../protocols/Aws_restJson1";
@@ -90,73 +81,26 @@ export interface UpdateMonitorCommandOutput extends UpdateMonitorOutput, __Metad
* Base exception class for all service exceptions from NetworkMonitor service.
*
*/
-export class UpdateMonitorCommand extends $Command<
- UpdateMonitorCommandInput,
- UpdateMonitorCommandOutput,
- NetworkMonitorClientResolvedConfig
-> {
- public static getEndpointParameterInstructions(): EndpointParameterInstructions {
- return {
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
- Endpoint: { type: "builtInParams", name: "endpoint" },
- Region: { type: "builtInParams", name: "region" },
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
- };
- }
-
- /**
- * @public
- */
- constructor(readonly input: UpdateMonitorCommandInput) {
- super();
- }
-
- /**
- * @internal
- */
- resolveMiddleware(
- clientStack: MiddlewareStack,
- configuration: NetworkMonitorClientResolvedConfig,
- options?: __HttpHandlerOptions
- ): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateMonitorCommand.getEndpointParameterInstructions()));
-
- const stack = clientStack.concat(this.middlewareStack);
-
- const { logger } = configuration;
- const clientName = "NetworkMonitorClient";
- const commandName = "UpdateMonitorCommand";
- const handlerExecutionContext: HandlerExecutionContext = {
- logger,
- clientName,
- commandName,
- inputFilterSensitiveLog: (_: any) => _,
- outputFilterSensitiveLog: (_: any) => _,
- [SMITHY_CONTEXT_KEY]: {
- service: "NetworkMonitor",
- operation: "UpdateMonitor",
- },
- };
- const { requestHandler } = configuration;
- return stack.resolve(
- (request: FinalizeHandlerArguments) =>
- requestHandler.handle(request.request as __HttpRequest, options || {}),
- handlerExecutionContext
- );
- }
-
- /**
- * @internal
- */
- private serialize(input: UpdateMonitorCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
- return se_UpdateMonitorCommand(input, context);
- }
-
- /**
- * @internal
- */
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise {
- return de_UpdateMonitorCommand(output, context);
- }
-}
+export class UpdateMonitorCommand extends $Command
+ .classBuilder<
+ UpdateMonitorCommandInput,
+ UpdateMonitorCommandOutput,
+ NetworkMonitorClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+ >()
+ .ep({
+ ...commonParams,
+ })
+ .m(function (this: any, Command: any, cs: any, config: NetworkMonitorClientResolvedConfig, o: any) {
+ return [
+ getSerdePlugin(config, this.serialize, this.deserialize),
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
+ ];
+ })
+ .s("NetworkMonitor", "UpdateMonitor", {})
+ .n("NetworkMonitorClient", "UpdateMonitorCommand")
+ .f(void 0, void 0)
+ .ser(se_UpdateMonitorCommand)
+ .de(de_UpdateMonitorCommand)
+ .build() {}
diff --git a/clients/client-networkmonitor/src/commands/UpdateProbeCommand.ts b/clients/client-networkmonitor/src/commands/UpdateProbeCommand.ts
index 2f54f7cf255d7..fa8f39575ed81 100644
--- a/clients/client-networkmonitor/src/commands/UpdateProbeCommand.ts
+++ b/clients/client-networkmonitor/src/commands/UpdateProbeCommand.ts
@@ -1,19 +1,10 @@
// smithy-typescript generated code
-import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
+import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
-import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import { Command as $Command } from "@smithy/smithy-client";
-import {
- FinalizeHandlerArguments,
- Handler,
- HandlerExecutionContext,
- HttpHandlerOptions as __HttpHandlerOptions,
- MetadataBearer as __MetadataBearer,
- MiddlewareStack,
- SerdeContext as __SerdeContext,
- SMITHY_CONTEXT_KEY,
-} from "@smithy/types";
+import { MetadataBearer as __MetadataBearer } from "@smithy/types";
+import { commonParams } from "../endpoint/EndpointParameters";
import { UpdateProbeInput, UpdateProbeOutput } from "../models/models_0";
import { NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkMonitorClient";
import { de_UpdateProbeCommand, se_UpdateProbeCommand } from "../protocols/Aws_restJson1";
@@ -103,73 +94,26 @@ export interface UpdateProbeCommandOutput extends UpdateProbeOutput, __MetadataB
* Base exception class for all service exceptions from NetworkMonitor service.
*
*/
-export class UpdateProbeCommand extends $Command<
- UpdateProbeCommandInput,
- UpdateProbeCommandOutput,
- NetworkMonitorClientResolvedConfig
-> {
- public static getEndpointParameterInstructions(): EndpointParameterInstructions {
- return {
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
- Endpoint: { type: "builtInParams", name: "endpoint" },
- Region: { type: "builtInParams", name: "region" },
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
- };
- }
-
- /**
- * @public
- */
- constructor(readonly input: UpdateProbeCommandInput) {
- super();
- }
-
- /**
- * @internal
- */
- resolveMiddleware(
- clientStack: MiddlewareStack,
- configuration: NetworkMonitorClientResolvedConfig,
- options?: __HttpHandlerOptions
- ): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateProbeCommand.getEndpointParameterInstructions()));
-
- const stack = clientStack.concat(this.middlewareStack);
-
- const { logger } = configuration;
- const clientName = "NetworkMonitorClient";
- const commandName = "UpdateProbeCommand";
- const handlerExecutionContext: HandlerExecutionContext = {
- logger,
- clientName,
- commandName,
- inputFilterSensitiveLog: (_: any) => _,
- outputFilterSensitiveLog: (_: any) => _,
- [SMITHY_CONTEXT_KEY]: {
- service: "NetworkMonitor",
- operation: "UpdateProbe",
- },
- };
- const { requestHandler } = configuration;
- return stack.resolve(
- (request: FinalizeHandlerArguments) =>
- requestHandler.handle(request.request as __HttpRequest, options || {}),
- handlerExecutionContext
- );
- }
-
- /**
- * @internal
- */
- private serialize(input: UpdateProbeCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
- return se_UpdateProbeCommand(input, context);
- }
-
- /**
- * @internal
- */
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise {
- return de_UpdateProbeCommand(output, context);
- }
-}
+export class UpdateProbeCommand extends $Command
+ .classBuilder<
+ UpdateProbeCommandInput,
+ UpdateProbeCommandOutput,
+ NetworkMonitorClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+ >()
+ .ep({
+ ...commonParams,
+ })
+ .m(function (this: any, Command: any, cs: any, config: NetworkMonitorClientResolvedConfig, o: any) {
+ return [
+ getSerdePlugin(config, this.serialize, this.deserialize),
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
+ ];
+ })
+ .s("NetworkMonitor", "UpdateProbe", {})
+ .n("NetworkMonitorClient", "UpdateProbeCommand")
+ .f(void 0, void 0)
+ .ser(se_UpdateProbeCommand)
+ .de(de_UpdateProbeCommand)
+ .build() {}
diff --git a/clients/client-networkmonitor/src/endpoint/EndpointParameters.ts b/clients/client-networkmonitor/src/endpoint/EndpointParameters.ts
index 2aeb334197d5f..1da9dd35a6650 100644
--- a/clients/client-networkmonitor/src/endpoint/EndpointParameters.ts
+++ b/clients/client-networkmonitor/src/endpoint/EndpointParameters.ts
@@ -26,6 +26,13 @@ export const resolveClientEndpointParameters = (
};
};
+export const commonParams = {
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
+ Endpoint: { type: "builtInParams", name: "endpoint" },
+ Region: { type: "builtInParams", name: "region" },
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
+} as const;
+
export interface EndpointParameters extends __EndpointParameters {
Region?: string;
UseDualStack?: boolean;
diff --git a/clients/client-s3/src/commands/CreateBucketCommand.ts b/clients/client-s3/src/commands/CreateBucketCommand.ts
index de2fe926b93cf..df23cbd683759 100644
--- a/clients/client-s3/src/commands/CreateBucketCommand.ts
+++ b/clients/client-s3/src/commands/CreateBucketCommand.ts
@@ -208,39 +208,39 @@ export interface CreateBucketCommandOutput extends CreateBucketOutput, __Metadat
* @throws {@link S3ServiceException}
* Base exception class for all service exceptions from S3 service.
*
- * @example To create a bucket in a specific region
+ * @example To create a bucket
* ```javascript
- * // The following example creates a bucket. The request specifies an AWS region where to create the bucket.
+ * // The following example creates a bucket.
* const input = {
- * "Bucket": "examplebucket",
- * "CreateBucketConfiguration": {
- * "LocationConstraint": "eu-west-1"
- * }
+ * "Bucket": "examplebucket"
* };
* const command = new CreateBucketCommand(input);
* const response = await client.send(command);
* /* response ==
* {
- * "Location": "http://examplebucket..s3.amazonaws.com/"
+ * "Location": "/examplebucket"
* }
* *\/
- * // example id: to-create-a-bucket-in-a-specific-region-1483399072992
+ * // example id: to-create-a-bucket--1472851826060
* ```
*
- * @example To create a bucket
+ * @example To create a bucket in a specific region
* ```javascript
- * // The following example creates a bucket.
+ * // The following example creates a bucket. The request specifies an AWS region where to create the bucket.
* const input = {
- * "Bucket": "examplebucket"
+ * "Bucket": "examplebucket",
+ * "CreateBucketConfiguration": {
+ * "LocationConstraint": "eu-west-1"
+ * }
* };
* const command = new CreateBucketCommand(input);
* const response = await client.send(command);
* /* response ==
* {
- * "Location": "/examplebucket"
+ * "Location": "http://examplebucket..s3.amazonaws.com/"
* }
* *\/
- * // example id: to-create-a-bucket--1472851826060
+ * // example id: to-create-a-bucket-in-a-specific-region-1483399072992
* ```
*
*/
diff --git a/clients/client-s3/src/commands/DeleteObjectCommand.ts b/clients/client-s3/src/commands/DeleteObjectCommand.ts
index 9f898fdba19fc..5a64419139754 100644
--- a/clients/client-s3/src/commands/DeleteObjectCommand.ts
+++ b/clients/client-s3/src/commands/DeleteObjectCommand.ts
@@ -160,28 +160,28 @@ export interface DeleteObjectCommandOutput extends DeleteObjectOutput, __Metadat
* @throws {@link S3ServiceException}
* Base exception class for all service exceptions from S3 service.
*
- * @example To delete an object
+ * @example To delete an object (from a non-versioned bucket)
* ```javascript
- * // The following example deletes an object from an S3 bucket.
+ * // The following example deletes an object from a non-versioned bucket.
* const input = {
- * "Bucket": "examplebucket",
- * "Key": "objectkey.jpg"
+ * "Bucket": "ExampleBucket",
+ * "Key": "HappyFace.jpg"
* };
* const command = new DeleteObjectCommand(input);
* await client.send(command);
- * // example id: to-delete-an-object-1472850136595
+ * // example id: to-delete-an-object-from-a-non-versioned-bucket-1481588533089
* ```
*
- * @example To delete an object (from a non-versioned bucket)
+ * @example To delete an object
* ```javascript
- * // The following example deletes an object from a non-versioned bucket.
+ * // The following example deletes an object from an S3 bucket.
* const input = {
- * "Bucket": "ExampleBucket",
- * "Key": "HappyFace.jpg"
+ * "Bucket": "examplebucket",
+ * "Key": "objectkey.jpg"
* };
* const command = new DeleteObjectCommand(input);
* await client.send(command);
- * // example id: to-delete-an-object-from-a-non-versioned-bucket-1481588533089
+ * // example id: to-delete-an-object-1472850136595
* ```
*
*/
diff --git a/clients/client-s3/src/commands/GetObjectCommand.ts b/clients/client-s3/src/commands/GetObjectCommand.ts
index c2fed8cccf119..b5e85a9f857bc 100644
--- a/clients/client-s3/src/commands/GetObjectCommand.ts
+++ b/clients/client-s3/src/commands/GetObjectCommand.ts
@@ -283,53 +283,53 @@ export interface GetObjectCommandOutput extends Omit, _
* @throws {@link S3ServiceException}
* Base exception class for all service exceptions from S3 service.
*
- * @example To retrieve an object
+ * @example To retrieve a byte range of an object
* ```javascript
- * // The following example retrieves an object for an S3 bucket.
+ * // The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a specific byte range.
* const input = {
* "Bucket": "examplebucket",
- * "Key": "HappyFace.jpg"
+ * "Key": "SampleFile.txt",
+ * "Range": "bytes=0-9"
* };
* const command = new GetObjectCommand(input);
* const response = await client.send(command);
* /* response ==
* {
* "AcceptRanges": "bytes",
- * "ContentLength": "3191",
- * "ContentType": "image/jpeg",
- * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
- * "LastModified": "Thu, 15 Dec 2016 01:19:41 GMT",
+ * "ContentLength": "10",
+ * "ContentRange": "bytes 0-9/43",
+ * "ContentType": "text/plain",
+ * "ETag": "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
+ * "LastModified": "Thu, 09 Oct 2014 22:57:28 GMT",
* "Metadata": {},
- * "TagCount": 2,
* "VersionId": "null"
* }
* *\/
- * // example id: to-retrieve-an-object-1481827837012
+ * // example id: to-retrieve-a-byte-range-of-an-object--1481832674603
* ```
*
- * @example To retrieve a byte range of an object
+ * @example To retrieve an object
* ```javascript
- * // The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a specific byte range.
+ * // The following example retrieves an object for an S3 bucket.
* const input = {
* "Bucket": "examplebucket",
- * "Key": "SampleFile.txt",
- * "Range": "bytes=0-9"
+ * "Key": "HappyFace.jpg"
* };
* const command = new GetObjectCommand(input);
* const response = await client.send(command);
* /* response ==
* {
* "AcceptRanges": "bytes",
- * "ContentLength": "10",
- * "ContentRange": "bytes 0-9/43",
- * "ContentType": "text/plain",
- * "ETag": "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
- * "LastModified": "Thu, 09 Oct 2014 22:57:28 GMT",
+ * "ContentLength": "3191",
+ * "ContentType": "image/jpeg",
+ * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
+ * "LastModified": "Thu, 15 Dec 2016 01:19:41 GMT",
* "Metadata": {},
+ * "TagCount": 2,
* "VersionId": "null"
* }
* *\/
- * // example id: to-retrieve-a-byte-range-of-an-object--1481832674603
+ * // example id: to-retrieve-an-object-1481827837012
* ```
*
*/
diff --git a/clients/client-s3/src/commands/ListMultipartUploadsCommand.ts b/clients/client-s3/src/commands/ListMultipartUploadsCommand.ts
index 65e1f792c20dc..8403b54d0cfd0 100644
--- a/clients/client-s3/src/commands/ListMultipartUploadsCommand.ts
+++ b/clients/client-s3/src/commands/ListMultipartUploadsCommand.ts
@@ -208,104 +208,104 @@ export interface ListMultipartUploadsCommandOutput extends ListMultipartUploadsO
* @throws {@link S3ServiceException}
* Base exception class for all service exceptions from S3 service.
*
- * @example List next set of multipart uploads when previous result is truncated
+ * @example To list in-progress multipart uploads on a bucket
* ```javascript
- * // The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next setup of multipart uploads.
+ * // The following example lists in-progress multipart uploads on a specific bucket.
* const input = {
- * "Bucket": "examplebucket",
- * "KeyMarker": "nextkeyfrompreviousresponse",
- * "MaxUploads": "2",
- * "UploadIdMarker": "valuefrompreviousresponse"
+ * "Bucket": "examplebucket"
* };
* const command = new ListMultipartUploadsCommand(input);
* const response = await client.send(command);
* /* response ==
* {
- * "Bucket": "acl1",
- * "IsTruncated": true,
- * "KeyMarker": "",
- * "MaxUploads": "2",
- * "NextKeyMarker": "someobjectkey",
- * "NextUploadIdMarker": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
- * "UploadIdMarker": "",
* "Uploads": [
* {
* "Initiated": "2014-05-01T05:40:58.000Z",
* "Initiator": {
- * "DisplayName": "ownder-display-name",
+ * "DisplayName": "display-name",
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
* },
* "Key": "JavaFile",
* "Owner": {
- * "DisplayName": "mohanataws",
- * "ID": "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
+ * "DisplayName": "display-name",
+ * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
* },
* "StorageClass": "STANDARD",
- * "UploadId": "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--"
+ * "UploadId": "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--"
* },
* {
* "Initiated": "2014-05-01T05:41:27.000Z",
* "Initiator": {
- * "DisplayName": "ownder-display-name",
+ * "DisplayName": "display-name",
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
* },
* "Key": "JavaFile",
* "Owner": {
- * "DisplayName": "ownder-display-name",
+ * "DisplayName": "display-name",
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
* },
* "StorageClass": "STANDARD",
- * "UploadId": "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--"
+ * "UploadId": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--"
* }
* ]
* }
* *\/
- * // example id: list-next-set-of-multipart-uploads-when-previous-result-is-truncated-1482428106748
+ * // example id: to-list-in-progress-multipart-uploads-on-a-bucket-1481852775260
* ```
*
- * @example To list in-progress multipart uploads on a bucket
+ * @example List next set of multipart uploads when previous result is truncated
* ```javascript
- * // The following example lists in-progress multipart uploads on a specific bucket.
+ * // The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next setup of multipart uploads.
* const input = {
- * "Bucket": "examplebucket"
+ * "Bucket": "examplebucket",
+ * "KeyMarker": "nextkeyfrompreviousresponse",
+ * "MaxUploads": "2",
+ * "UploadIdMarker": "valuefrompreviousresponse"
* };
* const command = new ListMultipartUploadsCommand(input);
* const response = await client.send(command);
* /* response ==
* {
+ * "Bucket": "acl1",
+ * "IsTruncated": true,
+ * "KeyMarker": "",
+ * "MaxUploads": "2",
+ * "NextKeyMarker": "someobjectkey",
+ * "NextUploadIdMarker": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
+ * "UploadIdMarker": "",
* "Uploads": [
* {
* "Initiated": "2014-05-01T05:40:58.000Z",
* "Initiator": {
- * "DisplayName": "display-name",
+ * "DisplayName": "ownder-display-name",
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
* },
* "Key": "JavaFile",
* "Owner": {
- * "DisplayName": "display-name",
- * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
+ * "DisplayName": "mohanataws",
+ * "ID": "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
* },
* "StorageClass": "STANDARD",
- * "UploadId": "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--"
+ * "UploadId": "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--"
* },
* {
* "Initiated": "2014-05-01T05:41:27.000Z",
* "Initiator": {
- * "DisplayName": "display-name",
+ * "DisplayName": "ownder-display-name",
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
* },
* "Key": "JavaFile",
* "Owner": {
- * "DisplayName": "display-name",
+ * "DisplayName": "ownder-display-name",
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
* },
* "StorageClass": "STANDARD",
- * "UploadId": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--"
+ * "UploadId": "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--"
* }
* ]
* }
* *\/
- * // example id: to-list-in-progress-multipart-uploads-on-a-bucket-1481852775260
+ * // example id: list-next-set-of-multipart-uploads-when-previous-result-is-truncated-1482428106748
* ```
*
*/
diff --git a/clients/client-s3/src/commands/PutObjectCommand.ts b/clients/client-s3/src/commands/PutObjectCommand.ts
index 35cc332f081ed..2e3ec57d504d5 100644
--- a/clients/client-s3/src/commands/PutObjectCommand.ts
+++ b/clients/client-s3/src/commands/PutObjectCommand.ts
@@ -244,65 +244,67 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare
* @throws {@link S3ServiceException}
* Base exception class for all service exceptions from S3 service.
*
- * @example To create an object.
+ * @example To upload an object and specify server-side encryption and object tags
* ```javascript
- * // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
+ * // The following example uploads an object. The request specifies the optional server-side encryption option. The request also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
* const input = {
* "Body": "filetoupload",
* "Bucket": "examplebucket",
- * "Key": "objectkey"
+ * "Key": "exampleobject",
+ * "ServerSideEncryption": "AES256",
+ * "Tagging": "key1=value1&key2=value2"
* };
* const command = new PutObjectCommand(input);
* const response = await client.send(command);
* /* response ==
* {
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
- * "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
+ * "ServerSideEncryption": "AES256",
+ * "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
* }
* *\/
- * // example id: to-create-an-object-1483147613675
+ * // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
* ```
*
- * @example To upload an object
+ * @example To create an object.
* ```javascript
- * // The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file syntax. S3 returns VersionId of the newly created object.
+ * // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
* const input = {
- * "Body": "HappyFace.jpg",
+ * "Body": "filetoupload",
* "Bucket": "examplebucket",
- * "Key": "HappyFace.jpg"
+ * "Key": "objectkey"
* };
* const command = new PutObjectCommand(input);
* const response = await client.send(command);
* /* response ==
* {
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
- * "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
+ * "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
* }
* *\/
- * // example id: to-upload-an-object-1481760101010
+ * // example id: to-create-an-object-1483147613675
* ```
*
- * @example To upload object and specify user-defined metadata
+ * @example To upload an object (specify optional headers)
* ```javascript
- * // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
+ * // The following example uploads an object. The request specifies optional request headers to directs S3 to use specific storage class and use server-side encryption.
* const input = {
- * "Body": "filetoupload",
+ * "Body": "HappyFace.jpg",
* "Bucket": "examplebucket",
- * "Key": "exampleobject",
- * "Metadata": {
- * "metadata1": "value1",
- * "metadata2": "value2"
- * }
+ * "Key": "HappyFace.jpg",
+ * "ServerSideEncryption": "AES256",
+ * "StorageClass": "STANDARD_IA"
* };
* const command = new PutObjectCommand(input);
* const response = await client.send(command);
* /* response ==
* {
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
- * "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
+ * "ServerSideEncryption": "AES256",
+ * "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
* }
* *\/
- * // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
+ * // example id: to-upload-an-object-(specify-optional-headers)
* ```
*
* @example To upload an object and specify optional tags
@@ -325,68 +327,66 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare
* // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
* ```
*
- * @example To upload an object (specify optional headers)
+ * @example To upload object and specify user-defined metadata
* ```javascript
- * // The following example uploads an object. The request specifies optional request headers to directs S3 to use specific storage class and use server-side encryption.
+ * // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
* const input = {
- * "Body": "HappyFace.jpg",
+ * "Body": "filetoupload",
* "Bucket": "examplebucket",
- * "Key": "HappyFace.jpg",
- * "ServerSideEncryption": "AES256",
- * "StorageClass": "STANDARD_IA"
+ * "Key": "exampleobject",
+ * "Metadata": {
+ * "metadata1": "value1",
+ * "metadata2": "value2"
+ * }
* };
* const command = new PutObjectCommand(input);
* const response = await client.send(command);
* /* response ==
* {
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
- * "ServerSideEncryption": "AES256",
- * "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
+ * "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
* }
* *\/
- * // example id: to-upload-an-object-(specify-optional-headers)
+ * // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
* ```
*
- * @example To upload an object and specify server-side encryption and object tags
+ * @example To upload an object and specify canned ACL.
* ```javascript
- * // The following example uploads an object. The request specifies the optional server-side encryption option. The request also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
+ * // The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
* const input = {
+ * "ACL": "authenticated-read",
* "Body": "filetoupload",
* "Bucket": "examplebucket",
- * "Key": "exampleobject",
- * "ServerSideEncryption": "AES256",
- * "Tagging": "key1=value1&key2=value2"
+ * "Key": "exampleobject"
* };
* const command = new PutObjectCommand(input);
* const response = await client.send(command);
* /* response ==
* {
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
- * "ServerSideEncryption": "AES256",
- * "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
+ * "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr"
* }
* *\/
- * // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
+ * // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
* ```
*
- * @example To upload an object and specify canned ACL.
+ * @example To upload an object
* ```javascript
- * // The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
+ * // The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file syntax. S3 returns VersionId of the newly created object.
* const input = {
- * "ACL": "authenticated-read",
- * "Body": "filetoupload",
+ * "Body": "HappyFace.jpg",
* "Bucket": "examplebucket",
- * "Key": "exampleobject"
+ * "Key": "HappyFace.jpg"
* };
* const command = new PutObjectCommand(input);
* const response = await client.send(command);
* /* response ==
* {
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
- * "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr"
+ * "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
* }
* *\/
- * // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
+ * // example id: to-upload-an-object-1481760101010
* ```
*
*/