@aws-sdk/client-internetmonitor 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 (73) hide show
  1. package/dist-cjs/commands/CreateMonitorCommand.js +18 -41
  2. package/dist-cjs/commands/DeleteMonitorCommand.js +18 -41
  3. package/dist-cjs/commands/GetHealthEventCommand.js +18 -41
  4. package/dist-cjs/commands/GetMonitorCommand.js +18 -41
  5. package/dist-cjs/commands/GetQueryResultsCommand.js +18 -41
  6. package/dist-cjs/commands/GetQueryStatusCommand.js +18 -41
  7. package/dist-cjs/commands/ListHealthEventsCommand.js +18 -41
  8. package/dist-cjs/commands/ListMonitorsCommand.js +18 -41
  9. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  10. package/dist-cjs/commands/StartQueryCommand.js +18 -41
  11. package/dist-cjs/commands/StopQueryCommand.js +18 -41
  12. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  13. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  14. package/dist-cjs/commands/UpdateMonitorCommand.js +18 -41
  15. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  16. package/dist-cjs/pagination/GetQueryResultsPaginator.js +2 -24
  17. package/dist-cjs/pagination/ListHealthEventsPaginator.js +2 -24
  18. package/dist-cjs/pagination/ListMonitorsPaginator.js +2 -24
  19. package/dist-es/commands/CreateMonitorCommand.js +18 -41
  20. package/dist-es/commands/DeleteMonitorCommand.js +18 -41
  21. package/dist-es/commands/GetHealthEventCommand.js +18 -41
  22. package/dist-es/commands/GetMonitorCommand.js +18 -41
  23. package/dist-es/commands/GetQueryResultsCommand.js +18 -41
  24. package/dist-es/commands/GetQueryStatusCommand.js +18 -41
  25. package/dist-es/commands/ListHealthEventsCommand.js +18 -41
  26. package/dist-es/commands/ListMonitorsCommand.js +18 -41
  27. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  28. package/dist-es/commands/StartQueryCommand.js +18 -41
  29. package/dist-es/commands/StopQueryCommand.js +18 -41
  30. package/dist-es/commands/TagResourceCommand.js +18 -41
  31. package/dist-es/commands/UntagResourceCommand.js +18 -41
  32. package/dist-es/commands/UpdateMonitorCommand.js +18 -41
  33. package/dist-es/endpoint/EndpointParameters.js +6 -0
  34. package/dist-es/pagination/GetQueryResultsPaginator.js +2 -23
  35. package/dist-es/pagination/ListHealthEventsPaginator.js +2 -23
  36. package/dist-es/pagination/ListMonitorsPaginator.js +2 -23
  37. package/dist-types/commands/CreateMonitorCommand.d.ts +6 -21
  38. package/dist-types/commands/DeleteMonitorCommand.d.ts +6 -21
  39. package/dist-types/commands/GetHealthEventCommand.d.ts +6 -21
  40. package/dist-types/commands/GetMonitorCommand.d.ts +6 -21
  41. package/dist-types/commands/GetQueryResultsCommand.d.ts +6 -21
  42. package/dist-types/commands/GetQueryStatusCommand.d.ts +6 -21
  43. package/dist-types/commands/ListHealthEventsCommand.d.ts +6 -21
  44. package/dist-types/commands/ListMonitorsCommand.d.ts +6 -21
  45. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  46. package/dist-types/commands/StartQueryCommand.d.ts +6 -21
  47. package/dist-types/commands/StopQueryCommand.d.ts +6 -21
  48. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  49. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  50. package/dist-types/commands/UpdateMonitorCommand.d.ts +6 -21
  51. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  52. package/dist-types/pagination/GetQueryResultsPaginator.d.ts +1 -1
  53. package/dist-types/pagination/ListHealthEventsPaginator.d.ts +1 -1
  54. package/dist-types/pagination/ListMonitorsPaginator.d.ts +1 -1
  55. package/dist-types/ts3.4/commands/CreateMonitorCommand.d.ts +14 -23
  56. package/dist-types/ts3.4/commands/DeleteMonitorCommand.d.ts +14 -23
  57. package/dist-types/ts3.4/commands/GetHealthEventCommand.d.ts +14 -23
  58. package/dist-types/ts3.4/commands/GetMonitorCommand.d.ts +14 -23
  59. package/dist-types/ts3.4/commands/GetQueryResultsCommand.d.ts +14 -23
  60. package/dist-types/ts3.4/commands/GetQueryStatusCommand.d.ts +14 -23
  61. package/dist-types/ts3.4/commands/ListHealthEventsCommand.d.ts +14 -23
  62. package/dist-types/ts3.4/commands/ListMonitorsCommand.d.ts +14 -23
  63. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  64. package/dist-types/ts3.4/commands/StartQueryCommand.d.ts +14 -23
  65. package/dist-types/ts3.4/commands/StopQueryCommand.d.ts +14 -23
  66. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  67. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  68. package/dist-types/ts3.4/commands/UpdateMonitorCommand.d.ts +14 -23
  69. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  70. package/dist-types/ts3.4/pagination/GetQueryResultsPaginator.d.ts +3 -3
  71. package/dist-types/ts3.4/pagination/ListHealthEventsPaginator.d.ts +3 -3
  72. package/dist-types/ts3.4/pagination/ListMonitorsPaginator.d.ts +3 -3
  73. package/package.json +11 -11
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_GetHealthEventCommand, se_GetHealthEventCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class GetHealthEventCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, GetHealthEventCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "InternetMonitorClient";
26
- const commandName = "GetHealthEventCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "InternetMonitor20210603",
35
- operation: "GetHealthEvent",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_GetHealthEventCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetHealthEventCommand(output, context);
46
- }
7
+ export class GetHealthEventCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("InternetMonitor20210603", "GetHealthEvent", {})
19
+ .n("InternetMonitorClient", "GetHealthEventCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetHealthEventCommand)
22
+ .de(de_GetHealthEventCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_GetMonitorCommand, se_GetMonitorCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class GetMonitorCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, GetMonitorCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "InternetMonitorClient";
26
- const commandName = "GetMonitorCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "InternetMonitor20210603",
35
- operation: "GetMonitor",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_GetMonitorCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetMonitorCommand(output, context);
46
- }
7
+ export class GetMonitorCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("InternetMonitor20210603", "GetMonitor", {})
19
+ .n("InternetMonitorClient", "GetMonitorCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetMonitorCommand)
22
+ .de(de_GetMonitorCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_GetQueryResultsCommand, se_GetQueryResultsCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class GetQueryResultsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, GetQueryResultsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "InternetMonitorClient";
26
- const commandName = "GetQueryResultsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "InternetMonitor20210603",
35
- operation: "GetQueryResults",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_GetQueryResultsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetQueryResultsCommand(output, context);
46
- }
7
+ export class GetQueryResultsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("InternetMonitor20210603", "GetQueryResults", {})
19
+ .n("InternetMonitorClient", "GetQueryResultsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetQueryResultsCommand)
22
+ .de(de_GetQueryResultsCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_GetQueryStatusCommand, se_GetQueryStatusCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class GetQueryStatusCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, GetQueryStatusCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "InternetMonitorClient";
26
- const commandName = "GetQueryStatusCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "InternetMonitor20210603",
35
- operation: "GetQueryStatus",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_GetQueryStatusCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetQueryStatusCommand(output, context);
46
- }
7
+ export class GetQueryStatusCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("InternetMonitor20210603", "GetQueryStatus", {})
19
+ .n("InternetMonitorClient", "GetQueryStatusCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetQueryStatusCommand)
22
+ .de(de_GetQueryStatusCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListHealthEventsCommand, se_ListHealthEventsCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListHealthEventsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListHealthEventsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "InternetMonitorClient";
26
- const commandName = "ListHealthEventsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "InternetMonitor20210603",
35
- operation: "ListHealthEvents",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListHealthEventsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListHealthEventsCommand(output, context);
46
- }
7
+ export class ListHealthEventsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("InternetMonitor20210603", "ListHealthEvents", {})
19
+ .n("InternetMonitorClient", "ListHealthEventsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListHealthEventsCommand)
22
+ .de(de_ListHealthEventsCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListMonitorsCommand, se_ListMonitorsCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListMonitorsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListMonitorsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "InternetMonitorClient";
26
- const commandName = "ListMonitorsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "InternetMonitor20210603",
35
- operation: "ListMonitors",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListMonitorsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListMonitorsCommand(output, context);
46
- }
7
+ export class ListMonitorsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("InternetMonitor20210603", "ListMonitors", {})
19
+ .n("InternetMonitorClient", "ListMonitorsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListMonitorsCommand)
22
+ .de(de_ListMonitorsCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListTagsForResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListTagsForResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "InternetMonitorClient";
26
- const commandName = "ListTagsForResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "InternetMonitor20210603",
35
- operation: "ListTagsForResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListTagsForResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListTagsForResourceCommand(output, context);
46
- }
7
+ export class ListTagsForResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("InternetMonitor20210603", "ListTagsForResource", {})
19
+ .n("InternetMonitorClient", "ListTagsForResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListTagsForResourceCommand)
22
+ .de(de_ListTagsForResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_StartQueryCommand, se_StartQueryCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class StartQueryCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, StartQueryCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "InternetMonitorClient";
26
- const commandName = "StartQueryCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "InternetMonitor20210603",
35
- operation: "StartQuery",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_StartQueryCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_StartQueryCommand(output, context);
46
- }
7
+ export class StartQueryCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("InternetMonitor20210603", "StartQuery", {})
19
+ .n("InternetMonitorClient", "StartQueryCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_StartQueryCommand)
22
+ .de(de_StartQueryCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_StopQueryCommand, se_StopQueryCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class StopQueryCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, StopQueryCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "InternetMonitorClient";
26
- const commandName = "StopQueryCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "InternetMonitor20210603",
35
- operation: "StopQuery",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_StopQueryCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_StopQueryCommand(output, context);
46
- }
7
+ export class StopQueryCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("InternetMonitor20210603", "StopQuery", {})
19
+ .n("InternetMonitorClient", "StopQueryCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_StopQueryCommand)
22
+ .de(de_StopQueryCommand)
23
+ .build() {
47
24
  }