Skip to content

test(clients): schema testing #6986

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions clients/client-dynamodb/src/DynamoDBClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import {
getHttpAuthSchemeEndpointRuleSetPlugin,
getHttpSigningPlugin,
} from "@smithy/core";
import { getSchemaSerdePlugin } from "@smithy/core/schema";
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
import { EndpointInputConfig, EndpointResolvedConfig, resolveEndpointConfig } from "@smithy/middleware-endpoint";
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
Expand Down Expand Up @@ -571,6 +572,7 @@ export class DynamoDBClient extends __Client<
});
const _config_10 = resolveRuntimeExtensions(_config_9, configuration?.extensions || []);
this.config = _config_10;
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
this.middlewareStack.use(getUserAgentPlugin(this.config));
this.middlewareStack.use(getRetryPlugin(this.config));
this.middlewareStack.use(getContentLengthPlugin(this.config));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { BatchExecuteStatementInput, BatchExecuteStatementOutput } from "../models/models_0";
import { de_BatchExecuteStatementCommand, se_BatchExecuteStatementCommand } from "../protocols/Aws_json1_0";
import { BatchExecuteStatement } from "../schemas/com.amazonaws.dynamodb";

/**
* @public
Expand Down Expand Up @@ -223,16 +222,12 @@ export class BatchExecuteStatementCommand extends $Command
>()
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: DynamoDBClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("DynamoDB_20120810", "BatchExecuteStatement", {})
.n("DynamoDBClient", "BatchExecuteStatementCommand")
.f(void 0, void 0)
.ser(se_BatchExecuteStatementCommand)
.de(de_BatchExecuteStatementCommand)
.sc(BatchExecuteStatement)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
11 changes: 3 additions & 8 deletions clients/client-dynamodb/src/commands/BatchGetItemCommand.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { BatchGetItemInput, BatchGetItemOutput } from "../models/models_0";
import { de_BatchGetItemCommand, se_BatchGetItemCommand } from "../protocols/Aws_json1_0";
import { BatchGetItem } from "../schemas/com.amazonaws.dynamodb";

/**
* @public
Expand Down Expand Up @@ -356,16 +355,12 @@ export class BatchGetItemCommand extends $Command
ResourceArnList: { type: "operationContextParams", get: (input?: any) => Object.keys(input?.RequestItems ?? {}) },
})
.m(function (this: any, Command: any, cs: any, config: DynamoDBClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("DynamoDB_20120810", "BatchGetItem", {})
.n("DynamoDBClient", "BatchGetItemCommand")
.f(void 0, void 0)
.ser(se_BatchGetItemCommand)
.de(de_BatchGetItemCommand)
.sc(BatchGetItem)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
11 changes: 3 additions & 8 deletions clients/client-dynamodb/src/commands/BatchWriteItemCommand.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { BatchWriteItemInput, BatchWriteItemOutput } from "../models/models_0";
import { de_BatchWriteItemCommand, se_BatchWriteItemCommand } from "../protocols/Aws_json1_0";
import { BatchWriteItem } from "../schemas/com.amazonaws.dynamodb";

/**
* @public
Expand Down Expand Up @@ -400,16 +399,12 @@ export class BatchWriteItemCommand extends $Command
ResourceArnList: { type: "operationContextParams", get: (input?: any) => Object.keys(input?.RequestItems ?? {}) },
})
.m(function (this: any, Command: any, cs: any, config: DynamoDBClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("DynamoDB_20120810", "BatchWriteItem", {})
.n("DynamoDBClient", "BatchWriteItemCommand")
.f(void 0, void 0)
.ser(se_BatchWriteItemCommand)
.de(de_BatchWriteItemCommand)
.sc(BatchWriteItem)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
11 changes: 3 additions & 8 deletions clients/client-dynamodb/src/commands/CreateBackupCommand.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { CreateBackupInput, CreateBackupOutput } from "../models/models_0";
import { de_CreateBackupCommand, se_CreateBackupCommand } from "../protocols/Aws_json1_0";
import { CreateBackup } from "../schemas/com.amazonaws.dynamodb";

/**
* @public
Expand Down Expand Up @@ -145,16 +144,12 @@ export class CreateBackupCommand extends $Command
ResourceArn: { type: "contextParams", name: "TableName" },
})
.m(function (this: any, Command: any, cs: any, config: DynamoDBClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("DynamoDB_20120810", "CreateBackup", {})
.n("DynamoDBClient", "CreateBackupCommand")
.f(void 0, void 0)
.ser(se_CreateBackupCommand)
.de(de_CreateBackupCommand)
.sc(CreateBackup)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { CreateGlobalTableInput, CreateGlobalTableOutput } from "../models/models_0";
import { de_CreateGlobalTableCommand, se_CreateGlobalTableCommand } from "../protocols/Aws_json1_0";
import { CreateGlobalTable } from "../schemas/com.amazonaws.dynamodb";

/**
* @public
Expand Down Expand Up @@ -204,16 +203,12 @@ export class CreateGlobalTableCommand extends $Command
ResourceArn: { type: "contextParams", name: "GlobalTableName" },
})
.m(function (this: any, Command: any, cs: any, config: DynamoDBClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("DynamoDB_20120810", "CreateGlobalTable", {})
.n("DynamoDBClient", "CreateGlobalTableCommand")
.f(void 0, void 0)
.ser(se_CreateGlobalTableCommand)
.de(de_CreateGlobalTableCommand)
.sc(CreateGlobalTable)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
11 changes: 3 additions & 8 deletions clients/client-dynamodb/src/commands/CreateTableCommand.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { CreateTableInput, CreateTableOutput } from "../models/models_0";
import { de_CreateTableCommand, se_CreateTableCommand } from "../protocols/Aws_json1_0";
import { CreateTable } from "../schemas/com.amazonaws.dynamodb";

/**
* @public
Expand Down Expand Up @@ -377,16 +376,12 @@ export class CreateTableCommand extends $Command
ResourceArn: { type: "contextParams", name: "TableName" },
})
.m(function (this: any, Command: any, cs: any, config: DynamoDBClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("DynamoDB_20120810", "CreateTable", {})
.n("DynamoDBClient", "CreateTableCommand")
.f(void 0, void 0)
.ser(se_CreateTableCommand)
.de(de_CreateTableCommand)
.sc(CreateTable)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
11 changes: 3 additions & 8 deletions clients/client-dynamodb/src/commands/DeleteBackupCommand.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteBackupInput, DeleteBackupOutput } from "../models/models_0";
import { de_DeleteBackupCommand, se_DeleteBackupCommand } from "../protocols/Aws_json1_0";
import { DeleteBackup } from "../schemas/com.amazonaws.dynamodb";

/**
* @public
Expand Down Expand Up @@ -192,16 +191,12 @@ export class DeleteBackupCommand extends $Command
ResourceArn: { type: "contextParams", name: "BackupArn" },
})
.m(function (this: any, Command: any, cs: any, config: DynamoDBClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("DynamoDB_20120810", "DeleteBackup", {})
.n("DynamoDBClient", "DeleteBackupCommand")
.f(void 0, void 0)
.ser(se_DeleteBackupCommand)
.de(de_DeleteBackupCommand)
.sc(DeleteBackup)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
11 changes: 3 additions & 8 deletions clients/client-dynamodb/src/commands/DeleteItemCommand.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteItemInput, DeleteItemOutput } from "../models/models_0";
import { de_DeleteItemCommand, se_DeleteItemCommand } from "../protocols/Aws_json1_0";
import { DeleteItem } from "../schemas/com.amazonaws.dynamodb";

/**
* @public
Expand Down Expand Up @@ -285,16 +284,12 @@ export class DeleteItemCommand extends $Command
ResourceArn: { type: "contextParams", name: "TableName" },
})
.m(function (this: any, Command: any, cs: any, config: DynamoDBClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("DynamoDB_20120810", "DeleteItem", {})
.n("DynamoDBClient", "DeleteItemCommand")
.f(void 0, void 0)
.ser(se_DeleteItemCommand)
.de(de_DeleteItemCommand)
.sc(DeleteItem)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteResourcePolicyInput, DeleteResourcePolicyOutput } from "../models/models_0";
import { de_DeleteResourcePolicyCommand, se_DeleteResourcePolicyCommand } from "../protocols/Aws_json1_0";
import { DeleteResourcePolicy } from "../schemas/com.amazonaws.dynamodb";

/**
* @public
Expand Down Expand Up @@ -137,16 +136,12 @@ export class DeleteResourcePolicyCommand extends $Command
ResourceArn: { type: "contextParams", name: "ResourceArn" },
})
.m(function (this: any, Command: any, cs: any, config: DynamoDBClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("DynamoDB_20120810", "DeleteResourcePolicy", {})
.n("DynamoDBClient", "DeleteResourcePolicyCommand")
.f(void 0, void 0)
.ser(se_DeleteResourcePolicyCommand)
.de(de_DeleteResourcePolicyCommand)
.sc(DeleteResourcePolicy)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
11 changes: 3 additions & 8 deletions clients/client-dynamodb/src/commands/DeleteTableCommand.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteTableInput, DeleteTableOutput } from "../models/models_0";
import { de_DeleteTableCommand, se_DeleteTableCommand } from "../protocols/Aws_json1_0";
import { DeleteTable } from "../schemas/com.amazonaws.dynamodb";

/**
* @public
Expand Down Expand Up @@ -327,16 +326,12 @@ export class DeleteTableCommand extends $Command
ResourceArn: { type: "contextParams", name: "TableName" },
})
.m(function (this: any, Command: any, cs: any, config: DynamoDBClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("DynamoDB_20120810", "DeleteTable", {})
.n("DynamoDBClient", "DeleteTableCommand")
.f(void 0, void 0)
.ser(se_DeleteTableCommand)
.de(de_DeleteTableCommand)
.sc(DeleteTable)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
11 changes: 3 additions & 8 deletions clients/client-dynamodb/src/commands/DescribeBackupCommand.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { DescribeBackupInput, DescribeBackupOutput } from "../models/models_0";
import { de_DescribeBackupCommand, se_DescribeBackupCommand } from "../protocols/Aws_json1_0";
import { DescribeBackup } from "../schemas/com.amazonaws.dynamodb";

/**
* @public
Expand Down Expand Up @@ -172,16 +171,12 @@ export class DescribeBackupCommand extends $Command
ResourceArn: { type: "contextParams", name: "BackupArn" },
})
.m(function (this: any, Command: any, cs: any, config: DynamoDBClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("DynamoDB_20120810", "DescribeBackup", {})
.n("DynamoDBClient", "DescribeBackupCommand")
.f(void 0, void 0)
.ser(se_DescribeBackupCommand)
.de(de_DescribeBackupCommand)
.sc(DescribeBackup)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
Loading
Loading