Skip to content

Commit a814455

Browse files
committed
chore: refactor schemas
1 parent fc7da9b commit a814455

File tree

147 files changed

+11079
-4671
lines changed

Some content is hidden

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

147 files changed

+11079
-4671
lines changed

clients/client-dynamodb/src/DynamoDBClient.ts

+2
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";
@@ -570,6 +571,7 @@ export class DynamoDBClient extends __Client<
570571
const _config_10 = resolveRuntimeExtensions(_config_9, configuration?.extensions || []);
571572
super(_config_10);
572573
this.config = _config_10;
574+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
573575
this.middlewareStack.use(getUserAgentPlugin(this.config));
574576
this.middlewareStack.use(getRetryPlugin(this.config));
575577
this.middlewareStack.use(getContentLengthPlugin(this.config));

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

+3-8
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: {

clients/client-dynamodb/src/commands/BatchGetItemCommand.ts

+3-8
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 { BatchGetItemInput, BatchGetItemOutput } from "../models/models_0";
10-
import { de_BatchGetItemCommand, se_BatchGetItemCommand } from "../protocols/Aws_json1_0";
9+
import { BatchGetItem } from "../schemas/com.amazonaws.dynamodb";
1110

1211
/**
1312
* @public
@@ -348,16 +347,12 @@ export class BatchGetItemCommand extends $Command
348347
>()
349348
.ep(commonParams)
350349
.m(function (this: any, Command: any, cs: any, config: DynamoDBClientResolvedConfig, o: any) {
351-
return [
352-
getSerdePlugin(config, this.serialize, this.deserialize),
353-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
354-
];
350+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
355351
})
356352
.s("DynamoDB_20120810", "BatchGetItem", {})
357353
.n("DynamoDBClient", "BatchGetItemCommand")
358354
.f(void 0, void 0)
359-
.ser(se_BatchGetItemCommand)
360-
.de(de_BatchGetItemCommand)
355+
.sc(BatchGetItem)
361356
.build() {
362357
/** @internal type navigation helper, not in runtime. */
363358
protected declare static __types: {

clients/client-dynamodb/src/commands/BatchWriteItemCommand.ts

+3-8
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 { BatchWriteItemInput, BatchWriteItemOutput } from "../models/models_0";
10-
import { de_BatchWriteItemCommand, se_BatchWriteItemCommand } from "../protocols/Aws_json1_0";
9+
import { BatchWriteItem } from "../schemas/com.amazonaws.dynamodb";
1110

1211
/**
1312
* @public
@@ -394,16 +393,12 @@ export class BatchWriteItemCommand extends $Command
394393
>()
395394
.ep(commonParams)
396395
.m(function (this: any, Command: any, cs: any, config: DynamoDBClientResolvedConfig, o: any) {
397-
return [
398-
getSerdePlugin(config, this.serialize, this.deserialize),
399-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
400-
];
396+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
401397
})
402398
.s("DynamoDB_20120810", "BatchWriteItem", {})
403399
.n("DynamoDBClient", "BatchWriteItemCommand")
404400
.f(void 0, void 0)
405-
.ser(se_BatchWriteItemCommand)
406-
.de(de_BatchWriteItemCommand)
401+
.sc(BatchWriteItem)
407402
.build() {
408403
/** @internal type navigation helper, not in runtime. */
409404
protected declare static __types: {

clients/client-dynamodb/src/commands/CreateBackupCommand.ts

+3-8
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 { CreateBackupInput, CreateBackupOutput } from "../models/models_0";
10-
import { de_CreateBackupCommand, se_CreateBackupCommand } from "../protocols/Aws_json1_0";
9+
import { CreateBackup } from "../schemas/com.amazonaws.dynamodb";
1110

1211
/**
1312
* @public
@@ -141,16 +140,12 @@ export class CreateBackupCommand extends $Command
141140
>()
142141
.ep(commonParams)
143142
.m(function (this: any, Command: any, cs: any, config: DynamoDBClientResolvedConfig, o: any) {
144-
return [
145-
getSerdePlugin(config, this.serialize, this.deserialize),
146-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
147-
];
143+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
148144
})
149145
.s("DynamoDB_20120810", "CreateBackup", {})
150146
.n("DynamoDBClient", "CreateBackupCommand")
151147
.f(void 0, void 0)
152-
.ser(se_CreateBackupCommand)
153-
.de(de_CreateBackupCommand)
148+
.sc(CreateBackup)
154149
.build() {
155150
/** @internal type navigation helper, not in runtime. */
156151
protected declare static __types: {

clients/client-dynamodb/src/commands/CreateGlobalTableCommand.ts

+3-8
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 { CreateGlobalTableInput, CreateGlobalTableOutput } from "../models/models_0";
10-
import { de_CreateGlobalTableCommand, se_CreateGlobalTableCommand } from "../protocols/Aws_json1_0";
9+
import { CreateGlobalTable } from "../schemas/com.amazonaws.dynamodb";
1110

1211
/**
1312
* @public
@@ -200,16 +199,12 @@ export class CreateGlobalTableCommand extends $Command
200199
>()
201200
.ep(commonParams)
202201
.m(function (this: any, Command: any, cs: any, config: DynamoDBClientResolvedConfig, o: any) {
203-
return [
204-
getSerdePlugin(config, this.serialize, this.deserialize),
205-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
206-
];
202+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
207203
})
208204
.s("DynamoDB_20120810", "CreateGlobalTable", {})
209205
.n("DynamoDBClient", "CreateGlobalTableCommand")
210206
.f(void 0, void 0)
211-
.ser(se_CreateGlobalTableCommand)
212-
.de(de_CreateGlobalTableCommand)
207+
.sc(CreateGlobalTable)
213208
.build() {
214209
/** @internal type navigation helper, not in runtime. */
215210
protected declare static __types: {

clients/client-dynamodb/src/commands/CreateTableCommand.ts

+3-8
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 { CreateTableInput, CreateTableOutput } from "../models/models_0";
10-
import { de_CreateTableCommand, se_CreateTableCommand } from "../protocols/Aws_json1_0";
9+
import { CreateTable } from "../schemas/com.amazonaws.dynamodb";
1110

1211
/**
1312
* @public
@@ -443,16 +442,12 @@ export class CreateTableCommand extends $Command
443442
>()
444443
.ep(commonParams)
445444
.m(function (this: any, Command: any, cs: any, config: DynamoDBClientResolvedConfig, o: any) {
446-
return [
447-
getSerdePlugin(config, this.serialize, this.deserialize),
448-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
449-
];
445+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
450446
})
451447
.s("DynamoDB_20120810", "CreateTable", {})
452448
.n("DynamoDBClient", "CreateTableCommand")
453449
.f(void 0, void 0)
454-
.ser(se_CreateTableCommand)
455-
.de(de_CreateTableCommand)
450+
.sc(CreateTable)
456451
.build() {
457452
/** @internal type navigation helper, not in runtime. */
458453
protected declare static __types: {

clients/client-dynamodb/src/commands/DeleteBackupCommand.ts

+3-8
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 { DeleteBackupInput, DeleteBackupOutput } from "../models/models_0";
10-
import { de_DeleteBackupCommand, se_DeleteBackupCommand } from "../protocols/Aws_json1_0";
9+
import { DeleteBackup } from "../schemas/com.amazonaws.dynamodb";
1110

1211
/**
1312
* @public
@@ -188,16 +187,12 @@ export class DeleteBackupCommand extends $Command
188187
>()
189188
.ep(commonParams)
190189
.m(function (this: any, Command: any, cs: any, config: DynamoDBClientResolvedConfig, o: any) {
191-
return [
192-
getSerdePlugin(config, this.serialize, this.deserialize),
193-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
194-
];
190+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
195191
})
196192
.s("DynamoDB_20120810", "DeleteBackup", {})
197193
.n("DynamoDBClient", "DeleteBackupCommand")
198194
.f(void 0, void 0)
199-
.ser(se_DeleteBackupCommand)
200-
.de(de_DeleteBackupCommand)
195+
.sc(DeleteBackup)
201196
.build() {
202197
/** @internal type navigation helper, not in runtime. */
203198
protected declare static __types: {

clients/client-dynamodb/src/commands/DeleteItemCommand.ts

+3-8
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 { DeleteItemInput, DeleteItemOutput } from "../models/models_0";
10-
import { de_DeleteItemCommand, se_DeleteItemCommand } from "../protocols/Aws_json1_0";
9+
import { DeleteItem } from "../schemas/com.amazonaws.dynamodb";
1110

1211
/**
1312
* @public
@@ -282,16 +281,12 @@ export class DeleteItemCommand extends $Command
282281
>()
283282
.ep(commonParams)
284283
.m(function (this: any, Command: any, cs: any, config: DynamoDBClientResolvedConfig, o: any) {
285-
return [
286-
getSerdePlugin(config, this.serialize, this.deserialize),
287-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
288-
];
284+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
289285
})
290286
.s("DynamoDB_20120810", "DeleteItem", {})
291287
.n("DynamoDBClient", "DeleteItemCommand")
292288
.f(void 0, void 0)
293-
.ser(se_DeleteItemCommand)
294-
.de(de_DeleteItemCommand)
289+
.sc(DeleteItem)
295290
.build() {
296291
/** @internal type navigation helper, not in runtime. */
297292
protected declare static __types: {

clients/client-dynamodb/src/commands/DeleteResourcePolicyCommand.ts

+3-8
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 { DeleteResourcePolicyInput, DeleteResourcePolicyOutput } from "../models/models_0";
10-
import { de_DeleteResourcePolicyCommand, se_DeleteResourcePolicyCommand } from "../protocols/Aws_json1_0";
9+
import { DeleteResourcePolicy } from "../schemas/com.amazonaws.dynamodb";
1110

1211
/**
1312
* @public
@@ -133,16 +132,12 @@ export class DeleteResourcePolicyCommand extends $Command
133132
>()
134133
.ep(commonParams)
135134
.m(function (this: any, Command: any, cs: any, config: DynamoDBClientResolvedConfig, o: any) {
136-
return [
137-
getSerdePlugin(config, this.serialize, this.deserialize),
138-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
139-
];
135+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
140136
})
141137
.s("DynamoDB_20120810", "DeleteResourcePolicy", {})
142138
.n("DynamoDBClient", "DeleteResourcePolicyCommand")
143139
.f(void 0, void 0)
144-
.ser(se_DeleteResourcePolicyCommand)
145-
.de(de_DeleteResourcePolicyCommand)
140+
.sc(DeleteResourcePolicy)
146141
.build() {
147142
/** @internal type navigation helper, not in runtime. */
148143
protected declare static __types: {

clients/client-dynamodb/src/commands/DeleteTableCommand.ts

+3-8
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 { DeleteTableInput, DeleteTableOutput } from "../models/models_0";
10-
import { de_DeleteTableCommand, se_DeleteTableCommand } from "../protocols/Aws_json1_0";
9+
import { DeleteTable } from "../schemas/com.amazonaws.dynamodb";
1110

1211
/**
1312
* @public
@@ -324,16 +323,12 @@ export class DeleteTableCommand extends $Command
324323
>()
325324
.ep(commonParams)
326325
.m(function (this: any, Command: any, cs: any, config: DynamoDBClientResolvedConfig, o: any) {
327-
return [
328-
getSerdePlugin(config, this.serialize, this.deserialize),
329-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
330-
];
326+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
331327
})
332328
.s("DynamoDB_20120810", "DeleteTable", {})
333329
.n("DynamoDBClient", "DeleteTableCommand")
334330
.f(void 0, void 0)
335-
.ser(se_DeleteTableCommand)
336-
.de(de_DeleteTableCommand)
331+
.sc(DeleteTable)
337332
.build() {
338333
/** @internal type navigation helper, not in runtime. */
339334
protected declare static __types: {

clients/client-dynamodb/src/commands/DescribeBackupCommand.ts

+3-8
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 { DescribeBackupInput, DescribeBackupOutput } from "../models/models_0";
10-
import { de_DescribeBackupCommand, se_DescribeBackupCommand } from "../protocols/Aws_json1_0";
9+
import { DescribeBackup } from "../schemas/com.amazonaws.dynamodb";
1110

1211
/**
1312
* @public
@@ -168,16 +167,12 @@ export class DescribeBackupCommand extends $Command
168167
>()
169168
.ep(commonParams)
170169
.m(function (this: any, Command: any, cs: any, config: DynamoDBClientResolvedConfig, o: any) {
171-
return [
172-
getSerdePlugin(config, this.serialize, this.deserialize),
173-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
174-
];
170+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
175171
})
176172
.s("DynamoDB_20120810", "DescribeBackup", {})
177173
.n("DynamoDBClient", "DescribeBackupCommand")
178174
.f(void 0, void 0)
179-
.ser(se_DescribeBackupCommand)
180-
.de(de_DescribeBackupCommand)
175+
.sc(DescribeBackup)
181176
.build() {
182177
/** @internal type navigation helper, not in runtime. */
183178
protected declare static __types: {

0 commit comments

Comments
 (0)