@aws-sdk/client-rum 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 (89) hide show
  1. package/dist-cjs/commands/BatchCreateRumMetricDefinitionsCommand.js +18 -41
  2. package/dist-cjs/commands/BatchDeleteRumMetricDefinitionsCommand.js +18 -41
  3. package/dist-cjs/commands/BatchGetRumMetricDefinitionsCommand.js +18 -41
  4. package/dist-cjs/commands/CreateAppMonitorCommand.js +18 -41
  5. package/dist-cjs/commands/DeleteAppMonitorCommand.js +18 -41
  6. package/dist-cjs/commands/DeleteRumMetricsDestinationCommand.js +18 -41
  7. package/dist-cjs/commands/GetAppMonitorCommand.js +18 -41
  8. package/dist-cjs/commands/GetAppMonitorDataCommand.js +18 -41
  9. package/dist-cjs/commands/ListAppMonitorsCommand.js +18 -41
  10. package/dist-cjs/commands/ListRumMetricsDestinationsCommand.js +18 -41
  11. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  12. package/dist-cjs/commands/PutRumEventsCommand.js +18 -41
  13. package/dist-cjs/commands/PutRumMetricsDestinationCommand.js +18 -41
  14. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  15. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  16. package/dist-cjs/commands/UpdateAppMonitorCommand.js +18 -41
  17. package/dist-cjs/commands/UpdateRumMetricDefinitionCommand.js +18 -41
  18. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  19. package/dist-cjs/pagination/BatchGetRumMetricDefinitionsPaginator.js +2 -24
  20. package/dist-cjs/pagination/GetAppMonitorDataPaginator.js +2 -24
  21. package/dist-cjs/pagination/ListAppMonitorsPaginator.js +2 -24
  22. package/dist-cjs/pagination/ListRumMetricsDestinationsPaginator.js +2 -24
  23. package/dist-es/commands/BatchCreateRumMetricDefinitionsCommand.js +18 -41
  24. package/dist-es/commands/BatchDeleteRumMetricDefinitionsCommand.js +18 -41
  25. package/dist-es/commands/BatchGetRumMetricDefinitionsCommand.js +18 -41
  26. package/dist-es/commands/CreateAppMonitorCommand.js +18 -41
  27. package/dist-es/commands/DeleteAppMonitorCommand.js +18 -41
  28. package/dist-es/commands/DeleteRumMetricsDestinationCommand.js +18 -41
  29. package/dist-es/commands/GetAppMonitorCommand.js +18 -41
  30. package/dist-es/commands/GetAppMonitorDataCommand.js +18 -41
  31. package/dist-es/commands/ListAppMonitorsCommand.js +18 -41
  32. package/dist-es/commands/ListRumMetricsDestinationsCommand.js +18 -41
  33. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  34. package/dist-es/commands/PutRumEventsCommand.js +18 -41
  35. package/dist-es/commands/PutRumMetricsDestinationCommand.js +18 -41
  36. package/dist-es/commands/TagResourceCommand.js +18 -41
  37. package/dist-es/commands/UntagResourceCommand.js +18 -41
  38. package/dist-es/commands/UpdateAppMonitorCommand.js +18 -41
  39. package/dist-es/commands/UpdateRumMetricDefinitionCommand.js +18 -41
  40. package/dist-es/endpoint/EndpointParameters.js +6 -0
  41. package/dist-es/pagination/BatchGetRumMetricDefinitionsPaginator.js +2 -23
  42. package/dist-es/pagination/GetAppMonitorDataPaginator.js +2 -23
  43. package/dist-es/pagination/ListAppMonitorsPaginator.js +2 -23
  44. package/dist-es/pagination/ListRumMetricsDestinationsPaginator.js +2 -23
  45. package/dist-types/commands/BatchCreateRumMetricDefinitionsCommand.d.ts +6 -21
  46. package/dist-types/commands/BatchDeleteRumMetricDefinitionsCommand.d.ts +6 -21
  47. package/dist-types/commands/BatchGetRumMetricDefinitionsCommand.d.ts +6 -21
  48. package/dist-types/commands/CreateAppMonitorCommand.d.ts +6 -21
  49. package/dist-types/commands/DeleteAppMonitorCommand.d.ts +6 -21
  50. package/dist-types/commands/DeleteRumMetricsDestinationCommand.d.ts +6 -21
  51. package/dist-types/commands/GetAppMonitorCommand.d.ts +6 -21
  52. package/dist-types/commands/GetAppMonitorDataCommand.d.ts +6 -21
  53. package/dist-types/commands/ListAppMonitorsCommand.d.ts +6 -21
  54. package/dist-types/commands/ListRumMetricsDestinationsCommand.d.ts +6 -21
  55. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  56. package/dist-types/commands/PutRumEventsCommand.d.ts +6 -21
  57. package/dist-types/commands/PutRumMetricsDestinationCommand.d.ts +6 -21
  58. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  59. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  60. package/dist-types/commands/UpdateAppMonitorCommand.d.ts +6 -21
  61. package/dist-types/commands/UpdateRumMetricDefinitionCommand.d.ts +6 -21
  62. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  63. package/dist-types/pagination/BatchGetRumMetricDefinitionsPaginator.d.ts +1 -1
  64. package/dist-types/pagination/GetAppMonitorDataPaginator.d.ts +1 -1
  65. package/dist-types/pagination/ListAppMonitorsPaginator.d.ts +1 -1
  66. package/dist-types/pagination/ListRumMetricsDestinationsPaginator.d.ts +1 -1
  67. package/dist-types/ts3.4/commands/BatchCreateRumMetricDefinitionsCommand.d.ts +12 -24
  68. package/dist-types/ts3.4/commands/BatchDeleteRumMetricDefinitionsCommand.d.ts +12 -24
  69. package/dist-types/ts3.4/commands/BatchGetRumMetricDefinitionsCommand.d.ts +12 -24
  70. package/dist-types/ts3.4/commands/CreateAppMonitorCommand.d.ts +14 -23
  71. package/dist-types/ts3.4/commands/DeleteAppMonitorCommand.d.ts +14 -23
  72. package/dist-types/ts3.4/commands/DeleteRumMetricsDestinationCommand.d.ts +12 -24
  73. package/dist-types/ts3.4/commands/GetAppMonitorCommand.d.ts +14 -23
  74. package/dist-types/ts3.4/commands/GetAppMonitorDataCommand.d.ts +14 -23
  75. package/dist-types/ts3.4/commands/ListAppMonitorsCommand.d.ts +14 -23
  76. package/dist-types/ts3.4/commands/ListRumMetricsDestinationsCommand.d.ts +12 -24
  77. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  78. package/dist-types/ts3.4/commands/PutRumEventsCommand.d.ts +14 -23
  79. package/dist-types/ts3.4/commands/PutRumMetricsDestinationCommand.d.ts +12 -24
  80. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  81. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  82. package/dist-types/ts3.4/commands/UpdateAppMonitorCommand.d.ts +14 -23
  83. package/dist-types/ts3.4/commands/UpdateRumMetricDefinitionCommand.d.ts +12 -24
  84. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  85. package/dist-types/ts3.4/pagination/BatchGetRumMetricDefinitionsPaginator.d.ts +3 -3
  86. package/dist-types/ts3.4/pagination/GetAppMonitorDataPaginator.d.ts +3 -3
  87. package/dist-types/ts3.4/pagination/ListAppMonitorsPaginator.d.ts +3 -3
  88. package/dist-types/ts3.4/pagination/ListRumMetricsDestinationsPaginator.d.ts +3 -3
  89. package/package.json +11 -11
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAppMonitors = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAppMonitorsCommand_1 = require("../commands/ListAppMonitorsCommand");
5
6
  const RUMClient_1 = require("../RUMClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAppMonitorsCommand_1.ListAppMonitorsCommand(input), ...args);
8
- };
9
- async function* paginateListAppMonitors(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 RUMClient_1.RUMClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected RUM | RUMClient");
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.paginateListAppMonitors = paginateListAppMonitors;
7
+ exports.paginateListAppMonitors = (0, core_1.createPaginator)(RUMClient_1.RUMClient, ListAppMonitorsCommand_1.ListAppMonitorsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListRumMetricsDestinations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListRumMetricsDestinationsCommand_1 = require("../commands/ListRumMetricsDestinationsCommand");
5
6
  const RUMClient_1 = require("../RUMClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListRumMetricsDestinationsCommand_1.ListRumMetricsDestinationsCommand(input), ...args);
8
- };
9
- async function* paginateListRumMetricsDestinations(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 RUMClient_1.RUMClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected RUM | RUMClient");
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.paginateListRumMetricsDestinations = paginateListRumMetricsDestinations;
7
+ exports.paginateListRumMetricsDestinations = (0, core_1.createPaginator)(RUMClient_1.RUMClient, ListRumMetricsDestinationsCommand_1.ListRumMetricsDestinationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -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_BatchCreateRumMetricDefinitionsCommand, se_BatchCreateRumMetricDefinitionsCommand, } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class BatchCreateRumMetricDefinitionsCommand 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, BatchCreateRumMetricDefinitionsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RUMClient";
26
- const commandName = "BatchCreateRumMetricDefinitionsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "RUM",
35
- operation: "BatchCreateRumMetricDefinitions",
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_BatchCreateRumMetricDefinitionsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_BatchCreateRumMetricDefinitionsCommand(output, context);
46
- }
7
+ export class BatchCreateRumMetricDefinitionsCommand 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("RUM", "BatchCreateRumMetricDefinitions", {})
19
+ .n("RUMClient", "BatchCreateRumMetricDefinitionsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_BatchCreateRumMetricDefinitionsCommand)
22
+ .de(de_BatchCreateRumMetricDefinitionsCommand)
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_BatchDeleteRumMetricDefinitionsCommand, se_BatchDeleteRumMetricDefinitionsCommand, } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class BatchDeleteRumMetricDefinitionsCommand 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, BatchDeleteRumMetricDefinitionsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RUMClient";
26
- const commandName = "BatchDeleteRumMetricDefinitionsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "RUM",
35
- operation: "BatchDeleteRumMetricDefinitions",
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_BatchDeleteRumMetricDefinitionsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_BatchDeleteRumMetricDefinitionsCommand(output, context);
46
- }
7
+ export class BatchDeleteRumMetricDefinitionsCommand 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("RUM", "BatchDeleteRumMetricDefinitions", {})
19
+ .n("RUMClient", "BatchDeleteRumMetricDefinitionsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_BatchDeleteRumMetricDefinitionsCommand)
22
+ .de(de_BatchDeleteRumMetricDefinitionsCommand)
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_BatchGetRumMetricDefinitionsCommand, se_BatchGetRumMetricDefinitionsCommand, } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class BatchGetRumMetricDefinitionsCommand 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, BatchGetRumMetricDefinitionsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RUMClient";
26
- const commandName = "BatchGetRumMetricDefinitionsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "RUM",
35
- operation: "BatchGetRumMetricDefinitions",
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_BatchGetRumMetricDefinitionsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_BatchGetRumMetricDefinitionsCommand(output, context);
46
- }
7
+ export class BatchGetRumMetricDefinitionsCommand 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("RUM", "BatchGetRumMetricDefinitions", {})
19
+ .n("RUMClient", "BatchGetRumMetricDefinitionsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_BatchGetRumMetricDefinitionsCommand)
22
+ .de(de_BatchGetRumMetricDefinitionsCommand)
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_CreateAppMonitorCommand, se_CreateAppMonitorCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class CreateAppMonitorCommand 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, CreateAppMonitorCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RUMClient";
26
- const commandName = "CreateAppMonitorCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "RUM",
35
- operation: "CreateAppMonitor",
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_CreateAppMonitorCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateAppMonitorCommand(output, context);
46
- }
7
+ export class CreateAppMonitorCommand 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("RUM", "CreateAppMonitor", {})
19
+ .n("RUMClient", "CreateAppMonitorCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateAppMonitorCommand)
22
+ .de(de_CreateAppMonitorCommand)
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_DeleteAppMonitorCommand, se_DeleteAppMonitorCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class DeleteAppMonitorCommand 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, DeleteAppMonitorCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RUMClient";
26
- const commandName = "DeleteAppMonitorCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "RUM",
35
- operation: "DeleteAppMonitor",
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_DeleteAppMonitorCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DeleteAppMonitorCommand(output, context);
46
- }
7
+ export class DeleteAppMonitorCommand 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("RUM", "DeleteAppMonitor", {})
19
+ .n("RUMClient", "DeleteAppMonitorCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteAppMonitorCommand)
22
+ .de(de_DeleteAppMonitorCommand)
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_DeleteRumMetricsDestinationCommand, se_DeleteRumMetricsDestinationCommand, } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class DeleteRumMetricsDestinationCommand 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, DeleteRumMetricsDestinationCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RUMClient";
26
- const commandName = "DeleteRumMetricsDestinationCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "RUM",
35
- operation: "DeleteRumMetricsDestination",
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_DeleteRumMetricsDestinationCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DeleteRumMetricsDestinationCommand(output, context);
46
- }
7
+ export class DeleteRumMetricsDestinationCommand 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("RUM", "DeleteRumMetricsDestination", {})
19
+ .n("RUMClient", "DeleteRumMetricsDestinationCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteRumMetricsDestinationCommand)
22
+ .de(de_DeleteRumMetricsDestinationCommand)
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_GetAppMonitorCommand, se_GetAppMonitorCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class GetAppMonitorCommand 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, GetAppMonitorCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RUMClient";
26
- const commandName = "GetAppMonitorCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "RUM",
35
- operation: "GetAppMonitor",
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_GetAppMonitorCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetAppMonitorCommand(output, context);
46
- }
7
+ export class GetAppMonitorCommand 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("RUM", "GetAppMonitor", {})
19
+ .n("RUMClient", "GetAppMonitorCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetAppMonitorCommand)
22
+ .de(de_GetAppMonitorCommand)
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_GetAppMonitorDataCommand, se_GetAppMonitorDataCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class GetAppMonitorDataCommand 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, GetAppMonitorDataCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RUMClient";
26
- const commandName = "GetAppMonitorDataCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "RUM",
35
- operation: "GetAppMonitorData",
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_GetAppMonitorDataCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetAppMonitorDataCommand(output, context);
46
- }
7
+ export class GetAppMonitorDataCommand 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("RUM", "GetAppMonitorData", {})
19
+ .n("RUMClient", "GetAppMonitorDataCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetAppMonitorDataCommand)
22
+ .de(de_GetAppMonitorDataCommand)
23
+ .build() {
47
24
  }