@aws-sdk/client-timestream-query 3.478.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 (57) hide show
  1. package/dist-cjs/commands/CancelQueryCommand.js +19 -42
  2. package/dist-cjs/commands/CreateScheduledQueryCommand.js +19 -42
  3. package/dist-cjs/commands/DeleteScheduledQueryCommand.js +19 -42
  4. package/dist-cjs/commands/DescribeEndpointsCommand.js +18 -41
  5. package/dist-cjs/commands/DescribeScheduledQueryCommand.js +19 -42
  6. package/dist-cjs/commands/ExecuteScheduledQueryCommand.js +19 -42
  7. package/dist-cjs/commands/ListScheduledQueriesCommand.js +19 -42
  8. package/dist-cjs/commands/ListTagsForResourceCommand.js +19 -42
  9. package/dist-cjs/commands/PrepareQueryCommand.js +19 -42
  10. package/dist-cjs/commands/QueryCommand.js +19 -42
  11. package/dist-cjs/commands/TagResourceCommand.js +19 -42
  12. package/dist-cjs/commands/UntagResourceCommand.js +19 -42
  13. package/dist-cjs/commands/UpdateScheduledQueryCommand.js +19 -42
  14. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  15. package/dist-es/commands/CancelQueryCommand.js +19 -42
  16. package/dist-es/commands/CreateScheduledQueryCommand.js +19 -42
  17. package/dist-es/commands/DeleteScheduledQueryCommand.js +19 -42
  18. package/dist-es/commands/DescribeEndpointsCommand.js +18 -41
  19. package/dist-es/commands/DescribeScheduledQueryCommand.js +19 -42
  20. package/dist-es/commands/ExecuteScheduledQueryCommand.js +19 -42
  21. package/dist-es/commands/ListScheduledQueriesCommand.js +19 -42
  22. package/dist-es/commands/ListTagsForResourceCommand.js +19 -42
  23. package/dist-es/commands/PrepareQueryCommand.js +19 -42
  24. package/dist-es/commands/QueryCommand.js +19 -42
  25. package/dist-es/commands/TagResourceCommand.js +19 -42
  26. package/dist-es/commands/UntagResourceCommand.js +19 -42
  27. package/dist-es/commands/UpdateScheduledQueryCommand.js +19 -42
  28. package/dist-es/endpoint/EndpointParameters.js +6 -0
  29. package/dist-types/commands/CancelQueryCommand.d.ts +6 -21
  30. package/dist-types/commands/CreateScheduledQueryCommand.d.ts +6 -21
  31. package/dist-types/commands/DeleteScheduledQueryCommand.d.ts +6 -21
  32. package/dist-types/commands/DescribeEndpointsCommand.d.ts +6 -21
  33. package/dist-types/commands/DescribeScheduledQueryCommand.d.ts +6 -21
  34. package/dist-types/commands/ExecuteScheduledQueryCommand.d.ts +6 -21
  35. package/dist-types/commands/ListScheduledQueriesCommand.d.ts +6 -21
  36. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  37. package/dist-types/commands/PrepareQueryCommand.d.ts +6 -21
  38. package/dist-types/commands/QueryCommand.d.ts +6 -21
  39. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  40. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  41. package/dist-types/commands/UpdateScheduledQueryCommand.d.ts +6 -21
  42. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  43. package/dist-types/ts3.4/commands/CancelQueryCommand.d.ts +14 -23
  44. package/dist-types/ts3.4/commands/CreateScheduledQueryCommand.d.ts +12 -24
  45. package/dist-types/ts3.4/commands/DeleteScheduledQueryCommand.d.ts +12 -24
  46. package/dist-types/ts3.4/commands/DescribeEndpointsCommand.d.ts +14 -23
  47. package/dist-types/ts3.4/commands/DescribeScheduledQueryCommand.d.ts +12 -24
  48. package/dist-types/ts3.4/commands/ExecuteScheduledQueryCommand.d.ts +12 -24
  49. package/dist-types/ts3.4/commands/ListScheduledQueriesCommand.d.ts +12 -24
  50. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  51. package/dist-types/ts3.4/commands/PrepareQueryCommand.d.ts +14 -23
  52. package/dist-types/ts3.4/commands/QueryCommand.d.ts +12 -23
  53. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  54. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  55. package/dist-types/ts3.4/commands/UpdateScheduledQueryCommand.d.ts +12 -24
  56. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  57. package/package.json +9 -9
@@ -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 { DescribeScheduledQueryResponseFilterSensitiveLog, } from "../models/models_0";
7
7
  import { de_DescribeScheduledQueryCommand, se_DescribeScheduledQueryCommand } from "../protocols/Aws_json1_0";
8
8
  export { $Command };
9
- export class DescribeScheduledQueryCommand 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, DescribeScheduledQueryCommand.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 = "TimestreamQueryClient";
29
- const commandName = "DescribeScheduledQueryCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: DescribeScheduledQueryResponseFilterSensitiveLog,
36
- [SMITHY_CONTEXT_KEY]: {
37
- service: "Timestream_20181101",
38
- operation: "DescribeScheduledQuery",
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_DescribeScheduledQueryCommand(input, context);
46
- }
47
- deserialize(output, context) {
48
- return de_DescribeScheduledQueryCommand(output, context);
49
- }
9
+ export class DescribeScheduledQueryCommand 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", "DescribeScheduledQuery", {})
22
+ .n("TimestreamQueryClient", "DescribeScheduledQueryCommand")
23
+ .f(void 0, DescribeScheduledQueryResponseFilterSensitiveLog)
24
+ .ser(se_DescribeScheduledQueryCommand)
25
+ .de(de_DescribeScheduledQueryCommand)
26
+ .build() {
50
27
  }
@@ -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 { ExecuteScheduledQueryRequestFilterSensitiveLog } from "../models/models_0";
7
7
  import { de_ExecuteScheduledQueryCommand, se_ExecuteScheduledQueryCommand } from "../protocols/Aws_json1_0";
8
8
  export { $Command };
9
- export class ExecuteScheduledQueryCommand 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, ExecuteScheduledQueryCommand.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 = "TimestreamQueryClient";
29
- const commandName = "ExecuteScheduledQueryCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: ExecuteScheduledQueryRequestFilterSensitiveLog,
35
- outputFilterSensitiveLog: (_) => _,
36
- [SMITHY_CONTEXT_KEY]: {
37
- service: "Timestream_20181101",
38
- operation: "ExecuteScheduledQuery",
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_ExecuteScheduledQueryCommand(input, context);
46
- }
47
- deserialize(output, context) {
48
- return de_ExecuteScheduledQueryCommand(output, context);
49
- }
9
+ export class ExecuteScheduledQueryCommand 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", "ExecuteScheduledQuery", {})
22
+ .n("TimestreamQueryClient", "ExecuteScheduledQueryCommand")
23
+ .f(ExecuteScheduledQueryRequestFilterSensitiveLog, void 0)
24
+ .ser(se_ExecuteScheduledQueryCommand)
25
+ .de(de_ExecuteScheduledQueryCommand)
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_ListScheduledQueriesCommand, se_ListScheduledQueriesCommand } from "../protocols/Aws_json1_0";
7
7
  export { $Command };
8
- export class ListScheduledQueriesCommand 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, ListScheduledQueriesCommand.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 = "TimestreamQueryClient";
28
- const commandName = "ListScheduledQueriesCommand";
29
- const handlerExecutionContext = {
30
- logger,
31
- clientName,
32
- commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
- outputFilterSensitiveLog: (_) => _,
35
- [SMITHY_CONTEXT_KEY]: {
36
- service: "Timestream_20181101",
37
- operation: "ListScheduledQueries",
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_ListScheduledQueriesCommand(input, context);
45
- }
46
- deserialize(output, context) {
47
- return de_ListScheduledQueriesCommand(output, context);
48
- }
8
+ export class ListScheduledQueriesCommand 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", "ListScheduledQueries", {})
21
+ .n("TimestreamQueryClient", "ListScheduledQueriesCommand")
22
+ .f(void 0, void 0)
23
+ .ser(se_ListScheduledQueriesCommand)
24
+ .de(de_ListScheduledQueriesCommand)
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_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_json1_0";
7
7
  export { $Command };
8
- export class ListTagsForResourceCommand 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, ListTagsForResourceCommand.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 = "TimestreamQueryClient";
28
- const commandName = "ListTagsForResourceCommand";
29
- const handlerExecutionContext = {
30
- logger,
31
- clientName,
32
- commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
- outputFilterSensitiveLog: (_) => _,
35
- [SMITHY_CONTEXT_KEY]: {
36
- service: "Timestream_20181101",
37
- operation: "ListTagsForResource",
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_ListTagsForResourceCommand(input, context);
45
- }
46
- deserialize(output, context) {
47
- return de_ListTagsForResourceCommand(output, context);
48
- }
8
+ export class ListTagsForResourceCommand 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", "ListTagsForResource", {})
21
+ .n("TimestreamQueryClient", "ListTagsForResourceCommand")
22
+ .f(void 0, void 0)
23
+ .ser(se_ListTagsForResourceCommand)
24
+ .de(de_ListTagsForResourceCommand)
25
+ .build() {
49
26
  }
@@ -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 { PrepareQueryRequestFilterSensitiveLog, PrepareQueryResponseFilterSensitiveLog, } from "../models/models_0";
7
7
  import { de_PrepareQueryCommand, se_PrepareQueryCommand } from "../protocols/Aws_json1_0";
8
8
  export { $Command };
9
- export class PrepareQueryCommand 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, PrepareQueryCommand.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 = "TimestreamQueryClient";
29
- const commandName = "PrepareQueryCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: PrepareQueryRequestFilterSensitiveLog,
35
- outputFilterSensitiveLog: PrepareQueryResponseFilterSensitiveLog,
36
- [SMITHY_CONTEXT_KEY]: {
37
- service: "Timestream_20181101",
38
- operation: "PrepareQuery",
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_PrepareQueryCommand(input, context);
46
- }
47
- deserialize(output, context) {
48
- return de_PrepareQueryCommand(output, context);
49
- }
9
+ export class PrepareQueryCommand 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", "PrepareQuery", {})
22
+ .n("TimestreamQueryClient", "PrepareQueryCommand")
23
+ .f(PrepareQueryRequestFilterSensitiveLog, PrepareQueryResponseFilterSensitiveLog)
24
+ .ser(se_PrepareQueryCommand)
25
+ .de(de_PrepareQueryCommand)
26
+ .build() {
50
27
  }
@@ -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 { QueryRequestFilterSensitiveLog } from "../models/models_0";
7
7
  import { de_QueryCommand, se_QueryCommand } from "../protocols/Aws_json1_0";
8
8
  export { $Command };
9
- export class QueryCommand 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, QueryCommand.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 = "TimestreamQueryClient";
29
- const commandName = "QueryCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: QueryRequestFilterSensitiveLog,
35
- outputFilterSensitiveLog: (_) => _,
36
- [SMITHY_CONTEXT_KEY]: {
37
- service: "Timestream_20181101",
38
- operation: "Query",
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_QueryCommand(input, context);
46
- }
47
- deserialize(output, context) {
48
- return de_QueryCommand(output, context);
49
- }
9
+ export class QueryCommand 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", "Query", {})
22
+ .n("TimestreamQueryClient", "QueryCommand")
23
+ .f(QueryRequestFilterSensitiveLog, void 0)
24
+ .ser(se_QueryCommand)
25
+ .de(de_QueryCommand)
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_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_0";
7
7
  export { $Command };
8
- export class TagResourceCommand 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, TagResourceCommand.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 = "TimestreamQueryClient";
28
- const commandName = "TagResourceCommand";
29
- const handlerExecutionContext = {
30
- logger,
31
- clientName,
32
- commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
- outputFilterSensitiveLog: (_) => _,
35
- [SMITHY_CONTEXT_KEY]: {
36
- service: "Timestream_20181101",
37
- operation: "TagResource",
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_TagResourceCommand(input, context);
45
- }
46
- deserialize(output, context) {
47
- return de_TagResourceCommand(output, context);
48
- }
8
+ export class TagResourceCommand 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", "TagResource", {})
21
+ .n("TimestreamQueryClient", "TagResourceCommand")
22
+ .f(void 0, void 0)
23
+ .ser(se_TagResourceCommand)
24
+ .de(de_TagResourceCommand)
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_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_0";
7
7
  export { $Command };
8
- export class UntagResourceCommand 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, UntagResourceCommand.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 = "TimestreamQueryClient";
28
- const commandName = "UntagResourceCommand";
29
- const handlerExecutionContext = {
30
- logger,
31
- clientName,
32
- commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
- outputFilterSensitiveLog: (_) => _,
35
- [SMITHY_CONTEXT_KEY]: {
36
- service: "Timestream_20181101",
37
- operation: "UntagResource",
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_UntagResourceCommand(input, context);
45
- }
46
- deserialize(output, context) {
47
- return de_UntagResourceCommand(output, context);
48
- }
8
+ export class UntagResourceCommand 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", "UntagResource", {})
21
+ .n("TimestreamQueryClient", "UntagResourceCommand")
22
+ .f(void 0, void 0)
23
+ .ser(se_UntagResourceCommand)
24
+ .de(de_UntagResourceCommand)
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_UpdateScheduledQueryCommand, se_UpdateScheduledQueryCommand } from "../protocols/Aws_json1_0";
7
7
  export { $Command };
8
- export class UpdateScheduledQueryCommand 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, UpdateScheduledQueryCommand.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 = "TimestreamQueryClient";
28
- const commandName = "UpdateScheduledQueryCommand";
29
- const handlerExecutionContext = {
30
- logger,
31
- clientName,
32
- commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
- outputFilterSensitiveLog: (_) => _,
35
- [SMITHY_CONTEXT_KEY]: {
36
- service: "Timestream_20181101",
37
- operation: "UpdateScheduledQuery",
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_UpdateScheduledQueryCommand(input, context);
45
- }
46
- deserialize(output, context) {
47
- return de_UpdateScheduledQueryCommand(output, context);
48
- }
8
+ export class UpdateScheduledQueryCommand 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", "UpdateScheduledQuery", {})
21
+ .n("TimestreamQueryClient", "UpdateScheduledQueryCommand")
22
+ .f(void 0, void 0)
23
+ .ser(se_UpdateScheduledQueryCommand)
24
+ .de(de_UpdateScheduledQueryCommand)
25
+ .build() {
49
26
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "timestream",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };