Skip to content

Commit

Permalink
chore: codegen rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe committed Dec 22, 2023
1 parent 252d7cb commit 10d4270
Show file tree
Hide file tree
Showing 20 changed files with 469 additions and 1,197 deletions.
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -116,78 +107,26 @@ export interface DescribeFlowSourceMetadataCommandOutput extends DescribeFlowSou
* <p>Base exception class for all service exceptions from MediaConnect service.</p>
*
*/
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<ServiceInputTypes, ServiceOutputTypes>,
configuration: MediaConnectClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<DescribeFlowSourceMetadataCommandInput, DescribeFlowSourceMetadataCommandOutput> {
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<any>) =>
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<DescribeFlowSourceMetadataCommandOutput> {
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() {}
10 changes: 5 additions & 5 deletions clients/client-networkmonitor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
108 changes: 26 additions & 82 deletions clients/client-networkmonitor/src/commands/CreateMonitorCommand.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -106,73 +97,26 @@ export interface CreateMonitorCommandOutput extends CreateMonitorOutput, __Metad
* <p>Base exception class for all service exceptions from NetworkMonitor service.</p>
*
*/
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<ServiceInputTypes, ServiceOutputTypes>,
configuration: NetworkMonitorClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<CreateMonitorCommandInput, CreateMonitorCommandOutput> {
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<any>) =>
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<CreateMonitorCommandOutput> {
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() {}
108 changes: 26 additions & 82 deletions clients/client-networkmonitor/src/commands/CreateProbeCommand.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -111,73 +102,26 @@ export interface CreateProbeCommandOutput extends CreateProbeOutput, __MetadataB
* <p>Base exception class for all service exceptions from NetworkMonitor service.</p>
*
*/
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<ServiceInputTypes, ServiceOutputTypes>,
configuration: NetworkMonitorClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<CreateProbeCommandInput, CreateProbeCommandOutput> {
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<any>) =>
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<CreateProbeCommandOutput> {
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() {}
Loading

0 comments on commit 10d4270

Please sign in to comment.