@aws-sdk/client-timestream-write 3.477.0 → 3.481.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist-cjs/commands/CreateBatchLoadTaskCommand.js +19 -42
  2. package/dist-cjs/commands/CreateDatabaseCommand.js +19 -42
  3. package/dist-cjs/commands/CreateTableCommand.js +19 -42
  4. package/dist-cjs/commands/DeleteDatabaseCommand.js +19 -42
  5. package/dist-cjs/commands/DeleteTableCommand.js +19 -42
  6. package/dist-cjs/commands/DescribeBatchLoadTaskCommand.js +19 -42
  7. package/dist-cjs/commands/DescribeDatabaseCommand.js +19 -42
  8. package/dist-cjs/commands/DescribeEndpointsCommand.js +18 -41
  9. package/dist-cjs/commands/DescribeTableCommand.js +19 -42
  10. package/dist-cjs/commands/ListBatchLoadTasksCommand.js +19 -42
  11. package/dist-cjs/commands/ListDatabasesCommand.js +19 -42
  12. package/dist-cjs/commands/ListTablesCommand.js +19 -42
  13. package/dist-cjs/commands/ListTagsForResourceCommand.js +19 -42
  14. package/dist-cjs/commands/ResumeBatchLoadTaskCommand.js +19 -42
  15. package/dist-cjs/commands/TagResourceCommand.js +19 -42
  16. package/dist-cjs/commands/UntagResourceCommand.js +19 -42
  17. package/dist-cjs/commands/UpdateDatabaseCommand.js +19 -42
  18. package/dist-cjs/commands/UpdateTableCommand.js +19 -42
  19. package/dist-cjs/commands/WriteRecordsCommand.js +19 -42
  20. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  21. package/dist-cjs/pagination/ListBatchLoadTasksPaginator.js +2 -24
  22. package/dist-cjs/pagination/ListDatabasesPaginator.js +2 -24
  23. package/dist-cjs/pagination/ListTablesPaginator.js +2 -24
  24. package/dist-es/commands/CreateBatchLoadTaskCommand.js +19 -42
  25. package/dist-es/commands/CreateDatabaseCommand.js +19 -42
  26. package/dist-es/commands/CreateTableCommand.js +19 -42
  27. package/dist-es/commands/DeleteDatabaseCommand.js +19 -42
  28. package/dist-es/commands/DeleteTableCommand.js +19 -42
  29. package/dist-es/commands/DescribeBatchLoadTaskCommand.js +19 -42
  30. package/dist-es/commands/DescribeDatabaseCommand.js +19 -42
  31. package/dist-es/commands/DescribeEndpointsCommand.js +18 -41
  32. package/dist-es/commands/DescribeTableCommand.js +19 -42
  33. package/dist-es/commands/ListBatchLoadTasksCommand.js +19 -42
  34. package/dist-es/commands/ListDatabasesCommand.js +19 -42
  35. package/dist-es/commands/ListTablesCommand.js +19 -42
  36. package/dist-es/commands/ListTagsForResourceCommand.js +19 -42
  37. package/dist-es/commands/ResumeBatchLoadTaskCommand.js +19 -42
  38. package/dist-es/commands/TagResourceCommand.js +19 -42
  39. package/dist-es/commands/UntagResourceCommand.js +19 -42
  40. package/dist-es/commands/UpdateDatabaseCommand.js +19 -42
  41. package/dist-es/commands/UpdateTableCommand.js +19 -42
  42. package/dist-es/commands/WriteRecordsCommand.js +19 -42
  43. package/dist-es/endpoint/EndpointParameters.js +6 -0
  44. package/dist-es/pagination/ListBatchLoadTasksPaginator.js +2 -23
  45. package/dist-es/pagination/ListDatabasesPaginator.js +2 -23
  46. package/dist-es/pagination/ListTablesPaginator.js +2 -23
  47. package/dist-types/commands/CreateBatchLoadTaskCommand.d.ts +6 -21
  48. package/dist-types/commands/CreateDatabaseCommand.d.ts +6 -21
  49. package/dist-types/commands/CreateTableCommand.d.ts +6 -21
  50. package/dist-types/commands/DeleteDatabaseCommand.d.ts +6 -21
  51. package/dist-types/commands/DeleteTableCommand.d.ts +6 -21
  52. package/dist-types/commands/DescribeBatchLoadTaskCommand.d.ts +6 -21
  53. package/dist-types/commands/DescribeDatabaseCommand.d.ts +6 -21
  54. package/dist-types/commands/DescribeEndpointsCommand.d.ts +6 -21
  55. package/dist-types/commands/DescribeTableCommand.d.ts +6 -21
  56. package/dist-types/commands/ListBatchLoadTasksCommand.d.ts +6 -21
  57. package/dist-types/commands/ListDatabasesCommand.d.ts +6 -21
  58. package/dist-types/commands/ListTablesCommand.d.ts +6 -21
  59. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  60. package/dist-types/commands/ResumeBatchLoadTaskCommand.d.ts +6 -21
  61. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  62. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  63. package/dist-types/commands/UpdateDatabaseCommand.d.ts +6 -21
  64. package/dist-types/commands/UpdateTableCommand.d.ts +6 -21
  65. package/dist-types/commands/WriteRecordsCommand.d.ts +6 -21
  66. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  67. package/dist-types/pagination/ListBatchLoadTasksPaginator.d.ts +1 -1
  68. package/dist-types/pagination/ListDatabasesPaginator.d.ts +1 -1
  69. package/dist-types/pagination/ListTablesPaginator.d.ts +1 -1
  70. package/dist-types/ts3.4/commands/CreateBatchLoadTaskCommand.d.ts +14 -23
  71. package/dist-types/ts3.4/commands/CreateDatabaseCommand.d.ts +14 -23
  72. package/dist-types/ts3.4/commands/CreateTableCommand.d.ts +14 -23
  73. package/dist-types/ts3.4/commands/DeleteDatabaseCommand.d.ts +14 -23
  74. package/dist-types/ts3.4/commands/DeleteTableCommand.d.ts +14 -23
  75. package/dist-types/ts3.4/commands/DescribeBatchLoadTaskCommand.d.ts +12 -24
  76. package/dist-types/ts3.4/commands/DescribeDatabaseCommand.d.ts +14 -23
  77. package/dist-types/ts3.4/commands/DescribeEndpointsCommand.d.ts +14 -23
  78. package/dist-types/ts3.4/commands/DescribeTableCommand.d.ts +14 -23
  79. package/dist-types/ts3.4/commands/ListBatchLoadTasksCommand.d.ts +14 -23
  80. package/dist-types/ts3.4/commands/ListDatabasesCommand.d.ts +14 -23
  81. package/dist-types/ts3.4/commands/ListTablesCommand.d.ts +14 -23
  82. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  83. package/dist-types/ts3.4/commands/ResumeBatchLoadTaskCommand.d.ts +14 -23
  84. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  85. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  86. package/dist-types/ts3.4/commands/UpdateDatabaseCommand.d.ts +14 -23
  87. package/dist-types/ts3.4/commands/UpdateTableCommand.d.ts +14 -23
  88. package/dist-types/ts3.4/commands/WriteRecordsCommand.d.ts +14 -23
  89. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  90. package/dist-types/ts3.4/pagination/ListBatchLoadTasksPaginator.d.ts +3 -3
  91. package/dist-types/ts3.4/pagination/ListDatabasesPaginator.d.ts +3 -3
  92. package/dist-types/ts3.4/pagination/ListTablesPaginator.d.ts +3 -3
  93. package/package.json +11 -10
@@ -6,48 +6,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
6
6
  const middleware_serde_1 = require("@smithy/middleware-serde");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
9
- const types_1 = require("@smithy/types");
9
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
10
10
  const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
11
- class WriteRecordsCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, WriteRecordsCommand.getEndpointParameterInstructions()));
27
- this.middlewareStack.use((0, middleware_endpoint_discovery_1.getEndpointDiscoveryPlugin)(configuration, { clientStack, isDiscoveredEndpointRequired: true, options }));
28
- const stack = clientStack.concat(this.middlewareStack);
29
- const { logger } = configuration;
30
- const clientName = "TimestreamWriteClient";
31
- const commandName = "WriteRecordsCommand";
32
- const handlerExecutionContext = {
33
- logger,
34
- clientName,
35
- commandName,
36
- inputFilterSensitiveLog: (_) => _,
37
- outputFilterSensitiveLog: (_) => _,
38
- [types_1.SMITHY_CONTEXT_KEY]: {
39
- service: "Timestream_20181101",
40
- operation: "WriteRecords",
41
- },
42
- };
43
- const { requestHandler } = configuration;
44
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
45
- }
46
- serialize(input, context) {
47
- return (0, Aws_json1_0_1.se_WriteRecordsCommand)(input, context);
48
- }
49
- deserialize(output, context) {
50
- return (0, Aws_json1_0_1.de_WriteRecordsCommand)(output, context);
51
- }
11
+ class WriteRecordsCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ (0, middleware_endpoint_discovery_1.getEndpointDiscoveryPlugin)(config, { clientStack: cs, isDiscoveredEndpointRequired: true, options: o }),
21
+ ];
22
+ })
23
+ .s("Timestream_20181101", "WriteRecords", {})
24
+ .n("TimestreamWriteClient", "WriteRecordsCommand")
25
+ .f(void 0, void 0)
26
+ .ser(Aws_json1_0_1.se_WriteRecordsCommand)
27
+ .de(Aws_json1_0_1.de_WriteRecordsCommand)
28
+ .build() {
52
29
  }
53
30
  exports.WriteRecordsCommand = WriteRecordsCommand;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveClientEndpointParameters = void 0;
3
+ exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
5
  return {
6
6
  ...options,
@@ -10,3 +10,9 @@ const resolveClientEndpointParameters = (options) => {
10
10
  };
11
11
  };
12
12
  exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
13
+ exports.commonParams = {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBatchLoadTasks = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListBatchLoadTasksCommand_1 = require("../commands/ListBatchLoadTasksCommand");
5
6
  const TimestreamWriteClient_1 = require("../TimestreamWriteClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListBatchLoadTasksCommand_1.ListBatchLoadTasksCommand(input), ...args);
8
- };
9
- async function* paginateListBatchLoadTasks(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof TimestreamWriteClient_1.TimestreamWriteClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected TimestreamWrite | TimestreamWriteClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListBatchLoadTasks = paginateListBatchLoadTasks;
7
+ exports.paginateListBatchLoadTasks = (0, core_1.createPaginator)(TimestreamWriteClient_1.TimestreamWriteClient, ListBatchLoadTasksCommand_1.ListBatchLoadTasksCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDatabases = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListDatabasesCommand_1 = require("../commands/ListDatabasesCommand");
5
6
  const TimestreamWriteClient_1 = require("../TimestreamWriteClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDatabasesCommand_1.ListDatabasesCommand(input), ...args);
8
- };
9
- async function* paginateListDatabases(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof TimestreamWriteClient_1.TimestreamWriteClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected TimestreamWrite | TimestreamWriteClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListDatabases = paginateListDatabases;
7
+ exports.paginateListDatabases = (0, core_1.createPaginator)(TimestreamWriteClient_1.TimestreamWriteClient, ListDatabasesCommand_1.ListDatabasesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTables = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListTablesCommand_1 = require("../commands/ListTablesCommand");
5
6
  const TimestreamWriteClient_1 = require("../TimestreamWriteClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListTablesCommand_1.ListTablesCommand(input), ...args);
8
- };
9
- async function* paginateListTables(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof TimestreamWriteClient_1.TimestreamWriteClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected TimestreamWrite | TimestreamWriteClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListTables = paginateListTables;
7
+ exports.paginateListTables = (0, core_1.createPaginator)(TimestreamWriteClient_1.TimestreamWriteClient, ListTablesCommand_1.ListTablesCommand, "NextToken", "NextToken", "MaxResults");
@@ -2,49 +2,26 @@ import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discove
2
2
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
3
  import { getSerdePlugin } from "@smithy/middleware-serde";
4
4
  import { Command as $Command } from "@smithy/smithy-client";
5
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { commonParams } from "../endpoint/EndpointParameters";
6
6
  import { CreateBatchLoadTaskRequestFilterSensitiveLog, } from "../models/models_0";
7
7
  import { de_CreateBatchLoadTaskCommand, se_CreateBatchLoadTaskCommand } from "../protocols/Aws_json1_0";
8
8
  export { $Command };
9
- export class CreateBatchLoadTaskCommand extends $Command {
10
- static getEndpointParameterInstructions() {
11
- return {
12
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
- Endpoint: { type: "builtInParams", name: "endpoint" },
14
- Region: { type: "builtInParams", name: "region" },
15
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
- };
17
- }
18
- constructor(input) {
19
- super();
20
- this.input = input;
21
- }
22
- resolveMiddleware(clientStack, configuration, options) {
23
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
24
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateBatchLoadTaskCommand.getEndpointParameterInstructions()));
25
- this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack, isDiscoveredEndpointRequired: true, options }));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "TimestreamWriteClient";
29
- const commandName = "CreateBatchLoadTaskCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: CreateBatchLoadTaskRequestFilterSensitiveLog,
35
- outputFilterSensitiveLog: (_) => _,
36
- [SMITHY_CONTEXT_KEY]: {
37
- service: "Timestream_20181101",
38
- operation: "CreateBatchLoadTask",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return se_CreateBatchLoadTaskCommand(input, context);
46
- }
47
- deserialize(output, context) {
48
- return de_CreateBatchLoadTaskCommand(output, context);
49
- }
9
+ export class CreateBatchLoadTaskCommand extends $Command
10
+ .classBuilder()
11
+ .ep({
12
+ ...commonParams,
13
+ })
14
+ .m(function (Command, cs, config, o) {
15
+ return [
16
+ getSerdePlugin(config, this.serialize, this.deserialize),
17
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
18
+ getEndpointDiscoveryPlugin(config, { clientStack: cs, isDiscoveredEndpointRequired: true, options: o }),
19
+ ];
20
+ })
21
+ .s("Timestream_20181101", "CreateBatchLoadTask", {})
22
+ .n("TimestreamWriteClient", "CreateBatchLoadTaskCommand")
23
+ .f(CreateBatchLoadTaskRequestFilterSensitiveLog, void 0)
24
+ .ser(se_CreateBatchLoadTaskCommand)
25
+ .de(de_CreateBatchLoadTaskCommand)
26
+ .build() {
50
27
  }
@@ -2,48 +2,25 @@ import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discove
2
2
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
3
  import { getSerdePlugin } from "@smithy/middleware-serde";
4
4
  import { Command as $Command } from "@smithy/smithy-client";
5
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { commonParams } from "../endpoint/EndpointParameters";
6
6
  import { de_CreateDatabaseCommand, se_CreateDatabaseCommand } from "../protocols/Aws_json1_0";
7
7
  export { $Command };
8
- export class CreateDatabaseCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateDatabaseCommand.getEndpointParameterInstructions()));
24
- this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack, isDiscoveredEndpointRequired: true, options }));
25
- const stack = clientStack.concat(this.middlewareStack);
26
- const { logger } = configuration;
27
- const clientName = "TimestreamWriteClient";
28
- const commandName = "CreateDatabaseCommand";
29
- const handlerExecutionContext = {
30
- logger,
31
- clientName,
32
- commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
- outputFilterSensitiveLog: (_) => _,
35
- [SMITHY_CONTEXT_KEY]: {
36
- service: "Timestream_20181101",
37
- operation: "CreateDatabase",
38
- },
39
- };
40
- const { requestHandler } = configuration;
41
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
42
- }
43
- serialize(input, context) {
44
- return se_CreateDatabaseCommand(input, context);
45
- }
46
- deserialize(output, context) {
47
- return de_CreateDatabaseCommand(output, context);
48
- }
8
+ export class CreateDatabaseCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ getEndpointDiscoveryPlugin(config, { clientStack: cs, isDiscoveredEndpointRequired: true, options: o }),
18
+ ];
19
+ })
20
+ .s("Timestream_20181101", "CreateDatabase", {})
21
+ .n("TimestreamWriteClient", "CreateDatabaseCommand")
22
+ .f(void 0, void 0)
23
+ .ser(se_CreateDatabaseCommand)
24
+ .de(de_CreateDatabaseCommand)
25
+ .build() {
49
26
  }
@@ -2,48 +2,25 @@ import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discove
2
2
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
3
  import { getSerdePlugin } from "@smithy/middleware-serde";
4
4
  import { Command as $Command } from "@smithy/smithy-client";
5
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { commonParams } from "../endpoint/EndpointParameters";
6
6
  import { de_CreateTableCommand, se_CreateTableCommand } from "../protocols/Aws_json1_0";
7
7
  export { $Command };
8
- export class CreateTableCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateTableCommand.getEndpointParameterInstructions()));
24
- this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack, isDiscoveredEndpointRequired: true, options }));
25
- const stack = clientStack.concat(this.middlewareStack);
26
- const { logger } = configuration;
27
- const clientName = "TimestreamWriteClient";
28
- const commandName = "CreateTableCommand";
29
- const handlerExecutionContext = {
30
- logger,
31
- clientName,
32
- commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
- outputFilterSensitiveLog: (_) => _,
35
- [SMITHY_CONTEXT_KEY]: {
36
- service: "Timestream_20181101",
37
- operation: "CreateTable",
38
- },
39
- };
40
- const { requestHandler } = configuration;
41
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
42
- }
43
- serialize(input, context) {
44
- return se_CreateTableCommand(input, context);
45
- }
46
- deserialize(output, context) {
47
- return de_CreateTableCommand(output, context);
48
- }
8
+ export class CreateTableCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ getEndpointDiscoveryPlugin(config, { clientStack: cs, isDiscoveredEndpointRequired: true, options: o }),
18
+ ];
19
+ })
20
+ .s("Timestream_20181101", "CreateTable", {})
21
+ .n("TimestreamWriteClient", "CreateTableCommand")
22
+ .f(void 0, void 0)
23
+ .ser(se_CreateTableCommand)
24
+ .de(de_CreateTableCommand)
25
+ .build() {
49
26
  }
@@ -2,48 +2,25 @@ import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discove
2
2
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
3
  import { getSerdePlugin } from "@smithy/middleware-serde";
4
4
  import { Command as $Command } from "@smithy/smithy-client";
5
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { commonParams } from "../endpoint/EndpointParameters";
6
6
  import { de_DeleteDatabaseCommand, se_DeleteDatabaseCommand } from "../protocols/Aws_json1_0";
7
7
  export { $Command };
8
- export class DeleteDatabaseCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, DeleteDatabaseCommand.getEndpointParameterInstructions()));
24
- this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack, isDiscoveredEndpointRequired: true, options }));
25
- const stack = clientStack.concat(this.middlewareStack);
26
- const { logger } = configuration;
27
- const clientName = "TimestreamWriteClient";
28
- const commandName = "DeleteDatabaseCommand";
29
- const handlerExecutionContext = {
30
- logger,
31
- clientName,
32
- commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
- outputFilterSensitiveLog: (_) => _,
35
- [SMITHY_CONTEXT_KEY]: {
36
- service: "Timestream_20181101",
37
- operation: "DeleteDatabase",
38
- },
39
- };
40
- const { requestHandler } = configuration;
41
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
42
- }
43
- serialize(input, context) {
44
- return se_DeleteDatabaseCommand(input, context);
45
- }
46
- deserialize(output, context) {
47
- return de_DeleteDatabaseCommand(output, context);
48
- }
8
+ export class DeleteDatabaseCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ getEndpointDiscoveryPlugin(config, { clientStack: cs, isDiscoveredEndpointRequired: true, options: o }),
18
+ ];
19
+ })
20
+ .s("Timestream_20181101", "DeleteDatabase", {})
21
+ .n("TimestreamWriteClient", "DeleteDatabaseCommand")
22
+ .f(void 0, void 0)
23
+ .ser(se_DeleteDatabaseCommand)
24
+ .de(de_DeleteDatabaseCommand)
25
+ .build() {
49
26
  }
@@ -2,48 +2,25 @@ import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discove
2
2
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
3
  import { getSerdePlugin } from "@smithy/middleware-serde";
4
4
  import { Command as $Command } from "@smithy/smithy-client";
5
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { commonParams } from "../endpoint/EndpointParameters";
6
6
  import { de_DeleteTableCommand, se_DeleteTableCommand } from "../protocols/Aws_json1_0";
7
7
  export { $Command };
8
- export class DeleteTableCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, DeleteTableCommand.getEndpointParameterInstructions()));
24
- this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack, isDiscoveredEndpointRequired: true, options }));
25
- const stack = clientStack.concat(this.middlewareStack);
26
- const { logger } = configuration;
27
- const clientName = "TimestreamWriteClient";
28
- const commandName = "DeleteTableCommand";
29
- const handlerExecutionContext = {
30
- logger,
31
- clientName,
32
- commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
- outputFilterSensitiveLog: (_) => _,
35
- [SMITHY_CONTEXT_KEY]: {
36
- service: "Timestream_20181101",
37
- operation: "DeleteTable",
38
- },
39
- };
40
- const { requestHandler } = configuration;
41
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
42
- }
43
- serialize(input, context) {
44
- return se_DeleteTableCommand(input, context);
45
- }
46
- deserialize(output, context) {
47
- return de_DeleteTableCommand(output, context);
48
- }
8
+ export class DeleteTableCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ getEndpointDiscoveryPlugin(config, { clientStack: cs, isDiscoveredEndpointRequired: true, options: o }),
18
+ ];
19
+ })
20
+ .s("Timestream_20181101", "DeleteTable", {})
21
+ .n("TimestreamWriteClient", "DeleteTableCommand")
22
+ .f(void 0, void 0)
23
+ .ser(se_DeleteTableCommand)
24
+ .de(de_DeleteTableCommand)
25
+ .build() {
49
26
  }
@@ -2,48 +2,25 @@ import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discove
2
2
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
3
  import { getSerdePlugin } from "@smithy/middleware-serde";
4
4
  import { Command as $Command } from "@smithy/smithy-client";
5
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { commonParams } from "../endpoint/EndpointParameters";
6
6
  import { de_DescribeBatchLoadTaskCommand, se_DescribeBatchLoadTaskCommand } from "../protocols/Aws_json1_0";
7
7
  export { $Command };
8
- export class DescribeBatchLoadTaskCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, DescribeBatchLoadTaskCommand.getEndpointParameterInstructions()));
24
- this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack, isDiscoveredEndpointRequired: true, options }));
25
- const stack = clientStack.concat(this.middlewareStack);
26
- const { logger } = configuration;
27
- const clientName = "TimestreamWriteClient";
28
- const commandName = "DescribeBatchLoadTaskCommand";
29
- const handlerExecutionContext = {
30
- logger,
31
- clientName,
32
- commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
- outputFilterSensitiveLog: (_) => _,
35
- [SMITHY_CONTEXT_KEY]: {
36
- service: "Timestream_20181101",
37
- operation: "DescribeBatchLoadTask",
38
- },
39
- };
40
- const { requestHandler } = configuration;
41
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
42
- }
43
- serialize(input, context) {
44
- return se_DescribeBatchLoadTaskCommand(input, context);
45
- }
46
- deserialize(output, context) {
47
- return de_DescribeBatchLoadTaskCommand(output, context);
48
- }
8
+ export class DescribeBatchLoadTaskCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ getEndpointDiscoveryPlugin(config, { clientStack: cs, isDiscoveredEndpointRequired: true, options: o }),
18
+ ];
19
+ })
20
+ .s("Timestream_20181101", "DescribeBatchLoadTask", {})
21
+ .n("TimestreamWriteClient", "DescribeBatchLoadTaskCommand")
22
+ .f(void 0, void 0)
23
+ .ser(se_DescribeBatchLoadTaskCommand)
24
+ .de(de_DescribeBatchLoadTaskCommand)
25
+ .build() {
49
26
  }