@aws-sdk/client-rum 3.190.0 → 3.193.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.
- package/CHANGELOG.md +19 -0
- package/README.md +7 -7
- package/dist-cjs/RUM.js +105 -0
- package/dist-cjs/RUMClient.js +11 -8
- package/dist-cjs/commands/BatchCreateRumMetricDefinitionsCommand.js +46 -0
- package/dist-cjs/commands/BatchDeleteRumMetricDefinitionsCommand.js +46 -0
- package/dist-cjs/commands/BatchGetRumMetricDefinitionsCommand.js +46 -0
- package/dist-cjs/commands/CreateAppMonitorCommand.js +10 -0
- package/dist-cjs/commands/DeleteAppMonitorCommand.js +10 -0
- package/dist-cjs/commands/DeleteRumMetricsDestinationCommand.js +46 -0
- package/dist-cjs/commands/GetAppMonitorCommand.js +10 -0
- package/dist-cjs/commands/GetAppMonitorDataCommand.js +10 -0
- package/dist-cjs/commands/ListAppMonitorsCommand.js +10 -0
- package/dist-cjs/commands/ListRumMetricsDestinationsCommand.js +46 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +10 -0
- package/dist-cjs/commands/PutRumEventsCommand.js +10 -0
- package/dist-cjs/commands/PutRumMetricsDestinationCommand.js +46 -0
- package/dist-cjs/commands/TagResourceCommand.js +10 -0
- package/dist-cjs/commands/UntagResourceCommand.js +10 -0
- package/dist-cjs/commands/UpdateAppMonitorCommand.js +10 -0
- package/dist-cjs/commands/UpdateRumMetricDefinitionCommand.js +46 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/endpoint/EndpointParameters.js +13 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +318 -0
- package/dist-cjs/models/models_0.js +98 -16
- package/dist-cjs/pagination/BatchGetRumMetricDefinitionsPaginator.js +36 -0
- package/dist-cjs/pagination/ListRumMetricsDestinationsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +675 -17
- package/dist-cjs/runtimeConfig.shared.js +3 -3
- package/dist-es/RUM.js +105 -0
- package/dist-es/RUMClient.js +12 -9
- package/dist-es/commands/BatchCreateRumMetricDefinitionsCommand.js +42 -0
- package/dist-es/commands/BatchDeleteRumMetricDefinitionsCommand.js +42 -0
- package/dist-es/commands/BatchGetRumMetricDefinitionsCommand.js +42 -0
- package/dist-es/commands/CreateAppMonitorCommand.js +10 -0
- package/dist-es/commands/DeleteAppMonitorCommand.js +10 -0
- package/dist-es/commands/DeleteRumMetricsDestinationCommand.js +42 -0
- package/dist-es/commands/GetAppMonitorCommand.js +10 -0
- package/dist-es/commands/GetAppMonitorDataCommand.js +10 -0
- package/dist-es/commands/ListAppMonitorsCommand.js +10 -0
- package/dist-es/commands/ListRumMetricsDestinationsCommand.js +42 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +10 -0
- package/dist-es/commands/PutRumEventsCommand.js +10 -0
- package/dist-es/commands/PutRumMetricsDestinationCommand.js +42 -0
- package/dist-es/commands/TagResourceCommand.js +10 -0
- package/dist-es/commands/UntagResourceCommand.js +10 -0
- package/dist-es/commands/UpdateAppMonitorCommand.js +10 -0
- package/dist-es/commands/UpdateRumMetricDefinitionCommand.js +42 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +315 -0
- package/dist-es/models/models_0.js +76 -14
- package/dist-es/pagination/BatchGetRumMetricDefinitionsPaginator.js +32 -0
- package/dist-es/pagination/ListRumMetricsDestinationsPaginator.js +32 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +657 -13
- package/dist-es/runtimeConfig.shared.js +2 -2
- package/dist-types/RUM.d.ts +83 -0
- package/dist-types/RUMClient.d.ts +15 -11
- package/dist-types/commands/BatchCreateRumMetricDefinitionsCommand.d.ts +60 -0
- package/dist-types/commands/BatchDeleteRumMetricDefinitionsCommand.d.ts +42 -0
- package/dist-types/commands/BatchGetRumMetricDefinitionsCommand.d.ts +37 -0
- package/dist-types/commands/CreateAppMonitorCommand.d.ts +2 -0
- package/dist-types/commands/DeleteAppMonitorCommand.d.ts +2 -0
- package/dist-types/commands/DeleteRumMetricsDestinationCommand.d.ts +38 -0
- package/dist-types/commands/GetAppMonitorCommand.d.ts +2 -0
- package/dist-types/commands/GetAppMonitorDataCommand.d.ts +2 -0
- package/dist-types/commands/ListAppMonitorsCommand.d.ts +2 -0
- package/dist-types/commands/ListRumMetricsDestinationsCommand.d.ts +39 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -0
- package/dist-types/commands/PutRumEventsCommand.d.ts +2 -0
- package/dist-types/commands/PutRumMetricsDestinationCommand.d.ts +39 -0
- package/dist-types/commands/TagResourceCommand.d.ts +2 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -0
- package/dist-types/commands/UpdateAppMonitorCommand.d.ts +2 -0
- package/dist-types/commands/UpdateRumMetricDefinitionCommand.d.ts +38 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +719 -57
- package/dist-types/pagination/BatchGetRumMetricDefinitionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListRumMetricsDestinationsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +21 -0
- package/dist-types/runtimeConfig.browser.d.ts +4 -2
- package/dist-types/runtimeConfig.d.ts +4 -2
- package/dist-types/runtimeConfig.native.d.ts +4 -2
- package/dist-types/runtimeConfig.shared.d.ts +3 -1
- package/dist-types/ts3.4/RUM.d.ts +119 -0
- package/dist-types/ts3.4/RUMClient.d.ts +59 -10
- package/dist-types/ts3.4/commands/BatchCreateRumMetricDefinitionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/BatchDeleteRumMetricDefinitionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/BatchGetRumMetricDefinitionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateAppMonitorCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeleteAppMonitorCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeleteRumMetricsDestinationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetAppMonitorCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetAppMonitorDataCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListAppMonitorsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListRumMetricsDestinationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/PutRumEventsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/PutRumMetricsDestinationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UpdateAppMonitorCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UpdateRumMetricDefinitionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +170 -18
- package/dist-types/ts3.4/pagination/BatchGetRumMetricDefinitionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRumMetricsDestinationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
- package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
- package/package.json +28 -26
- package/dist-cjs/endpoints.js +0 -132
- package/dist-es/endpoints.js +0 -128
- package/dist-types/endpoints.d.ts +0 -2
- package/dist-types/ts3.4/endpoints.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.193.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.192.0...v3.193.0) (2022-10-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-rum:** CloudWatch RUM now supports Extended CloudWatch Metrics with Additional Dimensions ([0932dce](https://github.com/aws/aws-sdk-js-v3/commit/0932dcee1a92904c3cf1647da34c3deeee3af62a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.192.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.191.0...v3.192.0) (2022-10-19)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-rum
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.190.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.189.0...v3.190.0) (2022-10-17)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @aws-sdk/client-rum
|
package/README.md
CHANGED
|
@@ -34,16 +34,16 @@ using your favorite package manager:
|
|
|
34
34
|
|
|
35
35
|
The AWS SDK is modulized by clients and commands.
|
|
36
36
|
To send a request, you only need to import the `RUMClient` and
|
|
37
|
-
the commands you need, for example `
|
|
37
|
+
the commands you need, for example `BatchCreateRumMetricDefinitionsCommand`:
|
|
38
38
|
|
|
39
39
|
```js
|
|
40
40
|
// ES5 example
|
|
41
|
-
const { RUMClient,
|
|
41
|
+
const { RUMClient, BatchCreateRumMetricDefinitionsCommand } = require("@aws-sdk/client-rum");
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
```ts
|
|
45
45
|
// ES6+ example
|
|
46
|
-
import { RUMClient,
|
|
46
|
+
import { RUMClient, BatchCreateRumMetricDefinitionsCommand } from "@aws-sdk/client-rum";
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
### Usage
|
|
@@ -62,7 +62,7 @@ const client = new RUMClient({ region: "REGION" });
|
|
|
62
62
|
const params = {
|
|
63
63
|
/** input parameters */
|
|
64
64
|
};
|
|
65
|
-
const command = new
|
|
65
|
+
const command = new BatchCreateRumMetricDefinitionsCommand(params);
|
|
66
66
|
```
|
|
67
67
|
|
|
68
68
|
#### Async/await
|
|
@@ -141,7 +141,7 @@ const client = new AWS.RUM({ region: "REGION" });
|
|
|
141
141
|
|
|
142
142
|
// async/await.
|
|
143
143
|
try {
|
|
144
|
-
const data = await client.
|
|
144
|
+
const data = await client.batchCreateRumMetricDefinitions(params);
|
|
145
145
|
// process data.
|
|
146
146
|
} catch (error) {
|
|
147
147
|
// error handling.
|
|
@@ -149,7 +149,7 @@ try {
|
|
|
149
149
|
|
|
150
150
|
// Promises.
|
|
151
151
|
client
|
|
152
|
-
.
|
|
152
|
+
.batchCreateRumMetricDefinitions(params)
|
|
153
153
|
.then((data) => {
|
|
154
154
|
// process data.
|
|
155
155
|
})
|
|
@@ -158,7 +158,7 @@ client
|
|
|
158
158
|
});
|
|
159
159
|
|
|
160
160
|
// callbacks.
|
|
161
|
-
client.
|
|
161
|
+
client.batchCreateRumMetricDefinitions(params, (err, data) => {
|
|
162
162
|
// process err and data.
|
|
163
163
|
});
|
|
164
164
|
```
|
package/dist-cjs/RUM.js
CHANGED
|
@@ -1,18 +1,67 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RUM = void 0;
|
|
4
|
+
const BatchCreateRumMetricDefinitionsCommand_1 = require("./commands/BatchCreateRumMetricDefinitionsCommand");
|
|
5
|
+
const BatchDeleteRumMetricDefinitionsCommand_1 = require("./commands/BatchDeleteRumMetricDefinitionsCommand");
|
|
6
|
+
const BatchGetRumMetricDefinitionsCommand_1 = require("./commands/BatchGetRumMetricDefinitionsCommand");
|
|
4
7
|
const CreateAppMonitorCommand_1 = require("./commands/CreateAppMonitorCommand");
|
|
5
8
|
const DeleteAppMonitorCommand_1 = require("./commands/DeleteAppMonitorCommand");
|
|
9
|
+
const DeleteRumMetricsDestinationCommand_1 = require("./commands/DeleteRumMetricsDestinationCommand");
|
|
6
10
|
const GetAppMonitorCommand_1 = require("./commands/GetAppMonitorCommand");
|
|
7
11
|
const GetAppMonitorDataCommand_1 = require("./commands/GetAppMonitorDataCommand");
|
|
8
12
|
const ListAppMonitorsCommand_1 = require("./commands/ListAppMonitorsCommand");
|
|
13
|
+
const ListRumMetricsDestinationsCommand_1 = require("./commands/ListRumMetricsDestinationsCommand");
|
|
9
14
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
10
15
|
const PutRumEventsCommand_1 = require("./commands/PutRumEventsCommand");
|
|
16
|
+
const PutRumMetricsDestinationCommand_1 = require("./commands/PutRumMetricsDestinationCommand");
|
|
11
17
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
12
18
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
13
19
|
const UpdateAppMonitorCommand_1 = require("./commands/UpdateAppMonitorCommand");
|
|
20
|
+
const UpdateRumMetricDefinitionCommand_1 = require("./commands/UpdateRumMetricDefinitionCommand");
|
|
14
21
|
const RUMClient_1 = require("./RUMClient");
|
|
15
22
|
class RUM extends RUMClient_1.RUMClient {
|
|
23
|
+
batchCreateRumMetricDefinitions(args, optionsOrCb, cb) {
|
|
24
|
+
const command = new BatchCreateRumMetricDefinitionsCommand_1.BatchCreateRumMetricDefinitionsCommand(args);
|
|
25
|
+
if (typeof optionsOrCb === "function") {
|
|
26
|
+
this.send(command, optionsOrCb);
|
|
27
|
+
}
|
|
28
|
+
else if (typeof cb === "function") {
|
|
29
|
+
if (typeof optionsOrCb !== "object")
|
|
30
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
31
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
return this.send(command, optionsOrCb);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
batchDeleteRumMetricDefinitions(args, optionsOrCb, cb) {
|
|
38
|
+
const command = new BatchDeleteRumMetricDefinitionsCommand_1.BatchDeleteRumMetricDefinitionsCommand(args);
|
|
39
|
+
if (typeof optionsOrCb === "function") {
|
|
40
|
+
this.send(command, optionsOrCb);
|
|
41
|
+
}
|
|
42
|
+
else if (typeof cb === "function") {
|
|
43
|
+
if (typeof optionsOrCb !== "object")
|
|
44
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
45
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
return this.send(command, optionsOrCb);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
batchGetRumMetricDefinitions(args, optionsOrCb, cb) {
|
|
52
|
+
const command = new BatchGetRumMetricDefinitionsCommand_1.BatchGetRumMetricDefinitionsCommand(args);
|
|
53
|
+
if (typeof optionsOrCb === "function") {
|
|
54
|
+
this.send(command, optionsOrCb);
|
|
55
|
+
}
|
|
56
|
+
else if (typeof cb === "function") {
|
|
57
|
+
if (typeof optionsOrCb !== "object")
|
|
58
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
59
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
return this.send(command, optionsOrCb);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
16
65
|
createAppMonitor(args, optionsOrCb, cb) {
|
|
17
66
|
const command = new CreateAppMonitorCommand_1.CreateAppMonitorCommand(args);
|
|
18
67
|
if (typeof optionsOrCb === "function") {
|
|
@@ -41,6 +90,20 @@ class RUM extends RUMClient_1.RUMClient {
|
|
|
41
90
|
return this.send(command, optionsOrCb);
|
|
42
91
|
}
|
|
43
92
|
}
|
|
93
|
+
deleteRumMetricsDestination(args, optionsOrCb, cb) {
|
|
94
|
+
const command = new DeleteRumMetricsDestinationCommand_1.DeleteRumMetricsDestinationCommand(args);
|
|
95
|
+
if (typeof optionsOrCb === "function") {
|
|
96
|
+
this.send(command, optionsOrCb);
|
|
97
|
+
}
|
|
98
|
+
else if (typeof cb === "function") {
|
|
99
|
+
if (typeof optionsOrCb !== "object")
|
|
100
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
101
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
return this.send(command, optionsOrCb);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
44
107
|
getAppMonitor(args, optionsOrCb, cb) {
|
|
45
108
|
const command = new GetAppMonitorCommand_1.GetAppMonitorCommand(args);
|
|
46
109
|
if (typeof optionsOrCb === "function") {
|
|
@@ -83,6 +146,20 @@ class RUM extends RUMClient_1.RUMClient {
|
|
|
83
146
|
return this.send(command, optionsOrCb);
|
|
84
147
|
}
|
|
85
148
|
}
|
|
149
|
+
listRumMetricsDestinations(args, optionsOrCb, cb) {
|
|
150
|
+
const command = new ListRumMetricsDestinationsCommand_1.ListRumMetricsDestinationsCommand(args);
|
|
151
|
+
if (typeof optionsOrCb === "function") {
|
|
152
|
+
this.send(command, optionsOrCb);
|
|
153
|
+
}
|
|
154
|
+
else if (typeof cb === "function") {
|
|
155
|
+
if (typeof optionsOrCb !== "object")
|
|
156
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
157
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
return this.send(command, optionsOrCb);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
86
163
|
listTagsForResource(args, optionsOrCb, cb) {
|
|
87
164
|
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
88
165
|
if (typeof optionsOrCb === "function") {
|
|
@@ -111,6 +188,20 @@ class RUM extends RUMClient_1.RUMClient {
|
|
|
111
188
|
return this.send(command, optionsOrCb);
|
|
112
189
|
}
|
|
113
190
|
}
|
|
191
|
+
putRumMetricsDestination(args, optionsOrCb, cb) {
|
|
192
|
+
const command = new PutRumMetricsDestinationCommand_1.PutRumMetricsDestinationCommand(args);
|
|
193
|
+
if (typeof optionsOrCb === "function") {
|
|
194
|
+
this.send(command, optionsOrCb);
|
|
195
|
+
}
|
|
196
|
+
else if (typeof cb === "function") {
|
|
197
|
+
if (typeof optionsOrCb !== "object")
|
|
198
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
199
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
200
|
+
}
|
|
201
|
+
else {
|
|
202
|
+
return this.send(command, optionsOrCb);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
114
205
|
tagResource(args, optionsOrCb, cb) {
|
|
115
206
|
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
116
207
|
if (typeof optionsOrCb === "function") {
|
|
@@ -153,5 +244,19 @@ class RUM extends RUMClient_1.RUMClient {
|
|
|
153
244
|
return this.send(command, optionsOrCb);
|
|
154
245
|
}
|
|
155
246
|
}
|
|
247
|
+
updateRumMetricDefinition(args, optionsOrCb, cb) {
|
|
248
|
+
const command = new UpdateRumMetricDefinitionCommand_1.UpdateRumMetricDefinitionCommand(args);
|
|
249
|
+
if (typeof optionsOrCb === "function") {
|
|
250
|
+
this.send(command, optionsOrCb);
|
|
251
|
+
}
|
|
252
|
+
else if (typeof cb === "function") {
|
|
253
|
+
if (typeof optionsOrCb !== "object")
|
|
254
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
255
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
256
|
+
}
|
|
257
|
+
else {
|
|
258
|
+
return this.send(command, optionsOrCb);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
156
261
|
}
|
|
157
262
|
exports.RUM = RUM;
|
package/dist-cjs/RUMClient.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RUMClient = void 0;
|
|
4
4
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
5
5
|
const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
|
|
6
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
6
7
|
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
7
8
|
const middleware_logger_1 = require("@aws-sdk/middleware-logger");
|
|
8
9
|
const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
|
|
@@ -10,18 +11,20 @@ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
|
10
11
|
const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
11
12
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
12
13
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
14
|
+
const EndpointParameters_1 = require("./endpoint/EndpointParameters");
|
|
13
15
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
14
16
|
class RUMClient extends smithy_client_1.Client {
|
|
15
17
|
constructor(configuration) {
|
|
16
18
|
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
|
|
17
|
-
const _config_1 = (0,
|
|
18
|
-
const _config_2 = (0, config_resolver_1.
|
|
19
|
-
const _config_3 = (0,
|
|
20
|
-
const _config_4 = (0,
|
|
21
|
-
const _config_5 = (0,
|
|
22
|
-
const _config_6 = (0,
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
|
20
|
+
const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1);
|
|
21
|
+
const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2);
|
|
22
|
+
const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3);
|
|
23
|
+
const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
|
|
24
|
+
const _config_6 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_5);
|
|
25
|
+
const _config_7 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_6);
|
|
26
|
+
super(_config_7);
|
|
27
|
+
this.config = _config_7;
|
|
25
28
|
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
26
29
|
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
27
30
|
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BatchCreateRumMetricDefinitionsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class BatchCreateRumMetricDefinitionsCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, BatchCreateRumMetricDefinitionsCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "RUMClient";
|
|
28
|
+
const commandName = "BatchCreateRumMetricDefinitionsCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.BatchCreateRumMetricDefinitionsRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.BatchCreateRumMetricDefinitionsResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1BatchCreateRumMetricDefinitionsCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1BatchCreateRumMetricDefinitionsCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.BatchCreateRumMetricDefinitionsCommand = BatchCreateRumMetricDefinitionsCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BatchDeleteRumMetricDefinitionsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class BatchDeleteRumMetricDefinitionsCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, BatchDeleteRumMetricDefinitionsCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "RUMClient";
|
|
28
|
+
const commandName = "BatchDeleteRumMetricDefinitionsCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.BatchDeleteRumMetricDefinitionsRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.BatchDeleteRumMetricDefinitionsResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1BatchDeleteRumMetricDefinitionsCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1BatchDeleteRumMetricDefinitionsCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.BatchDeleteRumMetricDefinitionsCommand = BatchDeleteRumMetricDefinitionsCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BatchGetRumMetricDefinitionsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class BatchGetRumMetricDefinitionsCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, BatchGetRumMetricDefinitionsCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "RUMClient";
|
|
28
|
+
const commandName = "BatchGetRumMetricDefinitionsCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.BatchGetRumMetricDefinitionsRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.BatchGetRumMetricDefinitionsResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1BatchGetRumMetricDefinitionsCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1BatchGetRumMetricDefinitionsCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.BatchGetRumMetricDefinitionsCommand = BatchGetRumMetricDefinitionsCommand;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateAppMonitorCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
4
5
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
7
|
const models_0_1 = require("../models/models_0");
|
|
@@ -10,8 +11,17 @@ class CreateAppMonitorCommand extends smithy_client_1.Command {
|
|
|
10
11
|
super();
|
|
11
12
|
this.input = input;
|
|
12
13
|
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
13
22
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
23
|
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateAppMonitorCommand.getEndpointParameterInstructions()));
|
|
15
25
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
26
|
const { logger } = configuration;
|
|
17
27
|
const clientName = "RUMClient";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DeleteAppMonitorCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
4
5
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
7
|
const models_0_1 = require("../models/models_0");
|
|
@@ -10,8 +11,17 @@ class DeleteAppMonitorCommand extends smithy_client_1.Command {
|
|
|
10
11
|
super();
|
|
11
12
|
this.input = input;
|
|
12
13
|
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
13
22
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
23
|
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteAppMonitorCommand.getEndpointParameterInstructions()));
|
|
15
25
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
26
|
const { logger } = configuration;
|
|
17
27
|
const clientName = "RUMClient";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteRumMetricsDestinationCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class DeleteRumMetricsDestinationCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteRumMetricsDestinationCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "RUMClient";
|
|
28
|
+
const commandName = "DeleteRumMetricsDestinationCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.DeleteRumMetricsDestinationRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.DeleteRumMetricsDestinationResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DeleteRumMetricsDestinationCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteRumMetricsDestinationCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DeleteRumMetricsDestinationCommand = DeleteRumMetricsDestinationCommand;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetAppMonitorCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
4
5
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
7
|
const models_0_1 = require("../models/models_0");
|
|
@@ -10,8 +11,17 @@ class GetAppMonitorCommand extends smithy_client_1.Command {
|
|
|
10
11
|
super();
|
|
11
12
|
this.input = input;
|
|
12
13
|
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
13
22
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
23
|
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetAppMonitorCommand.getEndpointParameterInstructions()));
|
|
15
25
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
26
|
const { logger } = configuration;
|
|
17
27
|
const clientName = "RUMClient";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetAppMonitorDataCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
4
5
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
7
|
const models_0_1 = require("../models/models_0");
|
|
@@ -10,8 +11,17 @@ class GetAppMonitorDataCommand extends smithy_client_1.Command {
|
|
|
10
11
|
super();
|
|
11
12
|
this.input = input;
|
|
12
13
|
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
13
22
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
23
|
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetAppMonitorDataCommand.getEndpointParameterInstructions()));
|
|
15
25
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
26
|
const { logger } = configuration;
|
|
17
27
|
const clientName = "RUMClient";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ListAppMonitorsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
4
5
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
7
|
const models_0_1 = require("../models/models_0");
|
|
@@ -10,8 +11,17 @@ class ListAppMonitorsCommand extends smithy_client_1.Command {
|
|
|
10
11
|
super();
|
|
11
12
|
this.input = input;
|
|
12
13
|
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
13
22
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
23
|
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListAppMonitorsCommand.getEndpointParameterInstructions()));
|
|
15
25
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
26
|
const { logger } = configuration;
|
|
17
27
|
const clientName = "RUMClient";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListRumMetricsDestinationsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class ListRumMetricsDestinationsCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListRumMetricsDestinationsCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "RUMClient";
|
|
28
|
+
const commandName = "ListRumMetricsDestinationsCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.ListRumMetricsDestinationsRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.ListRumMetricsDestinationsResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1ListRumMetricsDestinationsCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ListRumMetricsDestinationsCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListRumMetricsDestinationsCommand = ListRumMetricsDestinationsCommand;
|