Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 60cd80a

Browse files
committedApr 18, 2025·
chore: refactor schemas
1 parent 971d375 commit 60cd80a

File tree

319 files changed

+16281
-6608
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

319 files changed

+16281
-6608
lines changed
 

‎clients/client-dynamodb/src/DynamoDBClient.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import {
3030
getHttpAuthSchemeEndpointRuleSetPlugin,
3131
getHttpSigningPlugin,
3232
} from "@smithy/core";
33+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
3334
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
3435
import { EndpointInputConfig, EndpointResolvedConfig, resolveEndpointConfig } from "@smithy/middleware-endpoint";
3536
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
@@ -571,6 +572,7 @@ export class DynamoDBClient extends __Client<
571572
});
572573
const _config_10 = resolveRuntimeExtensions(_config_9, configuration?.extensions || []);
573574
this.config = _config_10;
575+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
574576
this.middlewareStack.use(getUserAgentPlugin(this.config));
575577
this.middlewareStack.use(getRetryPlugin(this.config));
576578
this.middlewareStack.use(getContentLengthPlugin(this.config));

‎clients/client-dynamodb/src/commands/BatchExecuteStatementCommand.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
// smithy-typescript generated code
22
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3-
import { getSerdePlugin } from "@smithy/middleware-serde";
43
import { Command as $Command } from "@smithy/smithy-client";
54
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
65

76
import { DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBClient";
87
import { commonParams } from "../endpoint/EndpointParameters";
98
import { BatchExecuteStatementInput, BatchExecuteStatementOutput } from "../models/models_0";
10-
import { de_BatchExecuteStatementCommand, se_BatchExecuteStatementCommand } from "../protocols/Aws_json1_0";
9+
import { BatchExecuteStatement } from "../schemas/com.amazonaws.dynamodb";
1110

1211
/**
1312
* @public
@@ -223,16 +222,12 @@ export class BatchExecuteStatementCommand extends $Command
223222
>()
224223
.ep(commonParams)
225224
.m(function (this: any, Command: any, cs: any, config: DynamoDBClientResolvedConfig, o: any) {
226-
return [
227-
getSerdePlugin(config, this.serialize, this.deserialize),
228-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
229-
];
225+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
230226
})
231227
.s("DynamoDB_20120810", "BatchExecuteStatement", {})
232228
.n("DynamoDBClient", "BatchExecuteStatementCommand")
233229
.f(void 0, void 0)
234-
.ser(se_BatchExecuteStatementCommand)
235-
.de(de_BatchExecuteStatementCommand)
230+
.sc(BatchExecuteStatement)
236231
.build() {
237232
/** @internal type navigation helper, not in runtime. */
238233
protected declare static __types: {

0 commit comments

Comments
 (0)
Please sign in to comment.