@aws-sdk/client-rum 3.476.0 → 3.478.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/dist-cjs/pagination/BatchGetRumMetricDefinitionsPaginator.js +2 -24
- package/dist-cjs/pagination/GetAppMonitorDataPaginator.js +2 -24
- package/dist-cjs/pagination/ListAppMonitorsPaginator.js +2 -24
- package/dist-cjs/pagination/ListRumMetricsDestinationsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +117 -235
- package/dist-es/pagination/BatchGetRumMetricDefinitionsPaginator.js +2 -23
- package/dist-es/pagination/GetAppMonitorDataPaginator.js +2 -23
- package/dist-es/pagination/ListAppMonitorsPaginator.js +2 -23
- package/dist-es/pagination/ListRumMetricsDestinationsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +119 -237
- package/dist-types/pagination/BatchGetRumMetricDefinitionsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetAppMonitorDataPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAppMonitorsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRumMetricsDestinationsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/BatchGetRumMetricDefinitionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetAppMonitorDataPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAppMonitorsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRumMetricsDestinationsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,90 +1,68 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_UpdateRumMetricDefinitionCommand = exports.de_UpdateAppMonitorCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_PutRumMetricsDestinationCommand = exports.de_PutRumEventsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRumMetricsDestinationsCommand = exports.de_ListAppMonitorsCommand = exports.de_GetAppMonitorDataCommand = exports.de_GetAppMonitorCommand = exports.de_DeleteRumMetricsDestinationCommand = exports.de_DeleteAppMonitorCommand = exports.de_CreateAppMonitorCommand = exports.de_BatchGetRumMetricDefinitionsCommand = exports.de_BatchDeleteRumMetricDefinitionsCommand = exports.de_BatchCreateRumMetricDefinitionsCommand = exports.se_UpdateRumMetricDefinitionCommand = exports.se_UpdateAppMonitorCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_PutRumMetricsDestinationCommand = exports.se_PutRumEventsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRumMetricsDestinationsCommand = exports.se_ListAppMonitorsCommand = exports.se_GetAppMonitorDataCommand = exports.se_GetAppMonitorCommand = exports.se_DeleteRumMetricsDestinationCommand = exports.se_DeleteAppMonitorCommand = exports.se_CreateAppMonitorCommand = exports.se_BatchGetRumMetricDefinitionsCommand = exports.se_BatchDeleteRumMetricDefinitionsCommand = exports.se_BatchCreateRumMetricDefinitionsCommand = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
7
|
const models_0_1 = require("../models/models_0");
|
|
7
8
|
const RUMServiceException_1 = require("../models/RUMServiceException");
|
|
8
9
|
const se_BatchCreateRumMetricDefinitionsCommand = async (input, context) => {
|
|
9
|
-
const
|
|
10
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
11
|
const headers = {
|
|
11
12
|
"content-type": "application/json",
|
|
12
13
|
};
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
b.bp("/rummetrics/{AppMonitorName}/metrics");
|
|
15
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
15
16
|
let body;
|
|
16
17
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
18
|
Destination: [],
|
|
18
19
|
DestinationArn: [],
|
|
19
20
|
MetricDefinitions: (_) => (0, smithy_client_1._json)(_),
|
|
20
21
|
}));
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
hostname,
|
|
24
|
-
port,
|
|
25
|
-
method: "POST",
|
|
26
|
-
headers,
|
|
27
|
-
path: resolvedPath,
|
|
28
|
-
body,
|
|
29
|
-
});
|
|
22
|
+
b.m("POST").h(headers).b(body);
|
|
23
|
+
return b.build();
|
|
30
24
|
};
|
|
31
25
|
exports.se_BatchCreateRumMetricDefinitionsCommand = se_BatchCreateRumMetricDefinitionsCommand;
|
|
32
26
|
const se_BatchDeleteRumMetricDefinitionsCommand = async (input, context) => {
|
|
33
|
-
const
|
|
27
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
34
28
|
const headers = {};
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
b.bp("/rummetrics/{AppMonitorName}/metrics");
|
|
30
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
37
31
|
const query = (0, smithy_client_1.map)({
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_D], `Destination`)],
|
|
33
|
+
[_dA]: [, input[_DA]],
|
|
34
|
+
[_mDI]: [
|
|
41
35
|
(0, smithy_client_1.expectNonNull)(input.MetricDefinitionIds, `MetricDefinitionIds`) != null,
|
|
42
|
-
() => (input
|
|
36
|
+
() => (input[_MDI] || []).map((_entry) => _entry),
|
|
43
37
|
],
|
|
44
38
|
});
|
|
45
39
|
let body;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
hostname,
|
|
49
|
-
port,
|
|
50
|
-
method: "DELETE",
|
|
51
|
-
headers,
|
|
52
|
-
path: resolvedPath,
|
|
53
|
-
query,
|
|
54
|
-
body,
|
|
55
|
-
});
|
|
40
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
41
|
+
return b.build();
|
|
56
42
|
};
|
|
57
43
|
exports.se_BatchDeleteRumMetricDefinitionsCommand = se_BatchDeleteRumMetricDefinitionsCommand;
|
|
58
44
|
const se_BatchGetRumMetricDefinitionsCommand = async (input, context) => {
|
|
59
|
-
const
|
|
45
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
60
46
|
const headers = {};
|
|
61
|
-
|
|
62
|
-
|
|
47
|
+
b.bp("/rummetrics/{AppMonitorName}/metrics");
|
|
48
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
63
49
|
const query = (0, smithy_client_1.map)({
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
50
|
+
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_D], `Destination`)],
|
|
51
|
+
[_dA]: [, input[_DA]],
|
|
52
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
53
|
+
[_nT]: [, input[_NT]],
|
|
68
54
|
});
|
|
69
55
|
let body;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
hostname,
|
|
73
|
-
port,
|
|
74
|
-
method: "GET",
|
|
75
|
-
headers,
|
|
76
|
-
path: resolvedPath,
|
|
77
|
-
query,
|
|
78
|
-
body,
|
|
79
|
-
});
|
|
56
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
57
|
+
return b.build();
|
|
80
58
|
};
|
|
81
59
|
exports.se_BatchGetRumMetricDefinitionsCommand = se_BatchGetRumMetricDefinitionsCommand;
|
|
82
60
|
const se_CreateAppMonitorCommand = async (input, context) => {
|
|
83
|
-
const
|
|
61
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
84
62
|
const headers = {
|
|
85
63
|
"content-type": "application/json",
|
|
86
64
|
};
|
|
87
|
-
|
|
65
|
+
b.bp("/appmonitor");
|
|
88
66
|
let body;
|
|
89
67
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
90
68
|
AppMonitorConfiguration: (_) => se_AppMonitorConfiguration(_, context),
|
|
@@ -94,81 +72,51 @@ const se_CreateAppMonitorCommand = async (input, context) => {
|
|
|
94
72
|
Name: [],
|
|
95
73
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
96
74
|
}));
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
hostname,
|
|
100
|
-
port,
|
|
101
|
-
method: "POST",
|
|
102
|
-
headers,
|
|
103
|
-
path: resolvedPath,
|
|
104
|
-
body,
|
|
105
|
-
});
|
|
75
|
+
b.m("POST").h(headers).b(body);
|
|
76
|
+
return b.build();
|
|
106
77
|
};
|
|
107
78
|
exports.se_CreateAppMonitorCommand = se_CreateAppMonitorCommand;
|
|
108
79
|
const se_DeleteAppMonitorCommand = async (input, context) => {
|
|
109
|
-
const
|
|
80
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
110
81
|
const headers = {};
|
|
111
|
-
|
|
112
|
-
|
|
82
|
+
b.bp("/appmonitor/{Name}");
|
|
83
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
113
84
|
let body;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
hostname,
|
|
117
|
-
port,
|
|
118
|
-
method: "DELETE",
|
|
119
|
-
headers,
|
|
120
|
-
path: resolvedPath,
|
|
121
|
-
body,
|
|
122
|
-
});
|
|
85
|
+
b.m("DELETE").h(headers).b(body);
|
|
86
|
+
return b.build();
|
|
123
87
|
};
|
|
124
88
|
exports.se_DeleteAppMonitorCommand = se_DeleteAppMonitorCommand;
|
|
125
89
|
const se_DeleteRumMetricsDestinationCommand = async (input, context) => {
|
|
126
|
-
const
|
|
90
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
127
91
|
const headers = {};
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
92
|
+
b.bp("/rummetrics/{AppMonitorName}/metricsdestination");
|
|
93
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
131
94
|
const query = (0, smithy_client_1.map)({
|
|
132
|
-
|
|
133
|
-
|
|
95
|
+
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_D], `Destination`)],
|
|
96
|
+
[_dA]: [, input[_DA]],
|
|
134
97
|
});
|
|
135
98
|
let body;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
hostname,
|
|
139
|
-
port,
|
|
140
|
-
method: "DELETE",
|
|
141
|
-
headers,
|
|
142
|
-
path: resolvedPath,
|
|
143
|
-
query,
|
|
144
|
-
body,
|
|
145
|
-
});
|
|
99
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
100
|
+
return b.build();
|
|
146
101
|
};
|
|
147
102
|
exports.se_DeleteRumMetricsDestinationCommand = se_DeleteRumMetricsDestinationCommand;
|
|
148
103
|
const se_GetAppMonitorCommand = async (input, context) => {
|
|
149
|
-
const
|
|
104
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
150
105
|
const headers = {};
|
|
151
|
-
|
|
152
|
-
|
|
106
|
+
b.bp("/appmonitor/{Name}");
|
|
107
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
153
108
|
let body;
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
hostname,
|
|
157
|
-
port,
|
|
158
|
-
method: "GET",
|
|
159
|
-
headers,
|
|
160
|
-
path: resolvedPath,
|
|
161
|
-
body,
|
|
162
|
-
});
|
|
109
|
+
b.m("GET").h(headers).b(body);
|
|
110
|
+
return b.build();
|
|
163
111
|
};
|
|
164
112
|
exports.se_GetAppMonitorCommand = se_GetAppMonitorCommand;
|
|
165
113
|
const se_GetAppMonitorDataCommand = async (input, context) => {
|
|
166
|
-
const
|
|
114
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
167
115
|
const headers = {
|
|
168
116
|
"content-type": "application/json",
|
|
169
117
|
};
|
|
170
|
-
|
|
171
|
-
|
|
118
|
+
b.bp("/appmonitor/{Name}/data");
|
|
119
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
172
120
|
let body;
|
|
173
121
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
174
122
|
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -176,85 +124,54 @@ const se_GetAppMonitorDataCommand = async (input, context) => {
|
|
|
176
124
|
NextToken: [],
|
|
177
125
|
TimeRange: (_) => (0, smithy_client_1._json)(_),
|
|
178
126
|
}));
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
hostname,
|
|
182
|
-
port,
|
|
183
|
-
method: "POST",
|
|
184
|
-
headers,
|
|
185
|
-
path: resolvedPath,
|
|
186
|
-
body,
|
|
187
|
-
});
|
|
127
|
+
b.m("POST").h(headers).b(body);
|
|
128
|
+
return b.build();
|
|
188
129
|
};
|
|
189
130
|
exports.se_GetAppMonitorDataCommand = se_GetAppMonitorDataCommand;
|
|
190
131
|
const se_ListAppMonitorsCommand = async (input, context) => {
|
|
191
|
-
const
|
|
132
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
192
133
|
const headers = {};
|
|
193
|
-
|
|
134
|
+
b.bp("/appmonitors");
|
|
194
135
|
const query = (0, smithy_client_1.map)({
|
|
195
|
-
|
|
196
|
-
|
|
136
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
137
|
+
[_nT]: [, input[_NT]],
|
|
197
138
|
});
|
|
198
139
|
let body;
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
hostname,
|
|
202
|
-
port,
|
|
203
|
-
method: "POST",
|
|
204
|
-
headers,
|
|
205
|
-
path: resolvedPath,
|
|
206
|
-
query,
|
|
207
|
-
body,
|
|
208
|
-
});
|
|
140
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
141
|
+
return b.build();
|
|
209
142
|
};
|
|
210
143
|
exports.se_ListAppMonitorsCommand = se_ListAppMonitorsCommand;
|
|
211
144
|
const se_ListRumMetricsDestinationsCommand = async (input, context) => {
|
|
212
|
-
const
|
|
145
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
213
146
|
const headers = {};
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
147
|
+
b.bp("/rummetrics/{AppMonitorName}/metricsdestination");
|
|
148
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
217
149
|
const query = (0, smithy_client_1.map)({
|
|
218
|
-
|
|
219
|
-
|
|
150
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
151
|
+
[_nT]: [, input[_NT]],
|
|
220
152
|
});
|
|
221
153
|
let body;
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
hostname,
|
|
225
|
-
port,
|
|
226
|
-
method: "GET",
|
|
227
|
-
headers,
|
|
228
|
-
path: resolvedPath,
|
|
229
|
-
query,
|
|
230
|
-
body,
|
|
231
|
-
});
|
|
154
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
155
|
+
return b.build();
|
|
232
156
|
};
|
|
233
157
|
exports.se_ListRumMetricsDestinationsCommand = se_ListRumMetricsDestinationsCommand;
|
|
234
158
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
235
|
-
const
|
|
159
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
236
160
|
const headers = {};
|
|
237
|
-
|
|
238
|
-
|
|
161
|
+
b.bp("/tags/{ResourceArn}");
|
|
162
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
239
163
|
let body;
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
hostname,
|
|
243
|
-
port,
|
|
244
|
-
method: "GET",
|
|
245
|
-
headers,
|
|
246
|
-
path: resolvedPath,
|
|
247
|
-
body,
|
|
248
|
-
});
|
|
164
|
+
b.m("GET").h(headers).b(body);
|
|
165
|
+
return b.build();
|
|
249
166
|
};
|
|
250
167
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
251
168
|
const se_PutRumEventsCommand = async (input, context) => {
|
|
252
|
-
const
|
|
169
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
253
170
|
const headers = {
|
|
254
171
|
"content-type": "application/json",
|
|
255
172
|
};
|
|
256
|
-
|
|
257
|
-
|
|
173
|
+
b.bp("/appmonitors/{Id}");
|
|
174
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
258
175
|
let body;
|
|
259
176
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
260
177
|
AppMonitorDetails: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -269,95 +186,66 @@ const se_PutRumEventsCommand = async (input, context) => {
|
|
|
269
186
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
270
187
|
}
|
|
271
188
|
}
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
port,
|
|
276
|
-
method: "POST",
|
|
277
|
-
headers,
|
|
278
|
-
path: resolvedPath,
|
|
279
|
-
body,
|
|
280
|
-
});
|
|
189
|
+
b.hn(resolvedHostname);
|
|
190
|
+
b.m("POST").h(headers).b(body);
|
|
191
|
+
return b.build();
|
|
281
192
|
};
|
|
282
193
|
exports.se_PutRumEventsCommand = se_PutRumEventsCommand;
|
|
283
194
|
const se_PutRumMetricsDestinationCommand = async (input, context) => {
|
|
284
|
-
const
|
|
195
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
285
196
|
const headers = {
|
|
286
197
|
"content-type": "application/json",
|
|
287
198
|
};
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
199
|
+
b.bp("/rummetrics/{AppMonitorName}/metricsdestination");
|
|
200
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
291
201
|
let body;
|
|
292
202
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
293
203
|
Destination: [],
|
|
294
204
|
DestinationArn: [],
|
|
295
205
|
IamRoleArn: [],
|
|
296
206
|
}));
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
hostname,
|
|
300
|
-
port,
|
|
301
|
-
method: "POST",
|
|
302
|
-
headers,
|
|
303
|
-
path: resolvedPath,
|
|
304
|
-
body,
|
|
305
|
-
});
|
|
207
|
+
b.m("POST").h(headers).b(body);
|
|
208
|
+
return b.build();
|
|
306
209
|
};
|
|
307
210
|
exports.se_PutRumMetricsDestinationCommand = se_PutRumMetricsDestinationCommand;
|
|
308
211
|
const se_TagResourceCommand = async (input, context) => {
|
|
309
|
-
const
|
|
212
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
310
213
|
const headers = {
|
|
311
214
|
"content-type": "application/json",
|
|
312
215
|
};
|
|
313
|
-
|
|
314
|
-
|
|
216
|
+
b.bp("/tags/{ResourceArn}");
|
|
217
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
315
218
|
let body;
|
|
316
219
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
317
220
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
318
221
|
}));
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
hostname,
|
|
322
|
-
port,
|
|
323
|
-
method: "POST",
|
|
324
|
-
headers,
|
|
325
|
-
path: resolvedPath,
|
|
326
|
-
body,
|
|
327
|
-
});
|
|
222
|
+
b.m("POST").h(headers).b(body);
|
|
223
|
+
return b.build();
|
|
328
224
|
};
|
|
329
225
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
330
226
|
const se_UntagResourceCommand = async (input, context) => {
|
|
331
|
-
const
|
|
227
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
332
228
|
const headers = {};
|
|
333
|
-
|
|
334
|
-
|
|
229
|
+
b.bp("/tags/{ResourceArn}");
|
|
230
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
335
231
|
const query = (0, smithy_client_1.map)({
|
|
336
|
-
|
|
232
|
+
[_tK]: [
|
|
337
233
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
338
|
-
() => (input
|
|
234
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
339
235
|
],
|
|
340
236
|
});
|
|
341
237
|
let body;
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
hostname,
|
|
345
|
-
port,
|
|
346
|
-
method: "DELETE",
|
|
347
|
-
headers,
|
|
348
|
-
path: resolvedPath,
|
|
349
|
-
query,
|
|
350
|
-
body,
|
|
351
|
-
});
|
|
238
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
239
|
+
return b.build();
|
|
352
240
|
};
|
|
353
241
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
354
242
|
const se_UpdateAppMonitorCommand = async (input, context) => {
|
|
355
|
-
const
|
|
243
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
356
244
|
const headers = {
|
|
357
245
|
"content-type": "application/json",
|
|
358
246
|
};
|
|
359
|
-
|
|
360
|
-
|
|
247
|
+
b.bp("/appmonitor/{Name}");
|
|
248
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
361
249
|
let body;
|
|
362
250
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
363
251
|
AppMonitorConfiguration: (_) => se_AppMonitorConfiguration(_, context),
|
|
@@ -365,24 +253,17 @@ const se_UpdateAppMonitorCommand = async (input, context) => {
|
|
|
365
253
|
CwLogEnabled: [],
|
|
366
254
|
Domain: [],
|
|
367
255
|
}));
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
hostname,
|
|
371
|
-
port,
|
|
372
|
-
method: "PATCH",
|
|
373
|
-
headers,
|
|
374
|
-
path: resolvedPath,
|
|
375
|
-
body,
|
|
376
|
-
});
|
|
256
|
+
b.m("PATCH").h(headers).b(body);
|
|
257
|
+
return b.build();
|
|
377
258
|
};
|
|
378
259
|
exports.se_UpdateAppMonitorCommand = se_UpdateAppMonitorCommand;
|
|
379
260
|
const se_UpdateRumMetricDefinitionCommand = async (input, context) => {
|
|
380
|
-
const
|
|
261
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
381
262
|
const headers = {
|
|
382
263
|
"content-type": "application/json",
|
|
383
264
|
};
|
|
384
|
-
|
|
385
|
-
|
|
265
|
+
b.bp("/rummetrics/{AppMonitorName}/metrics");
|
|
266
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
386
267
|
let body;
|
|
387
268
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
388
269
|
Destination: [],
|
|
@@ -390,15 +271,8 @@ const se_UpdateRumMetricDefinitionCommand = async (input, context) => {
|
|
|
390
271
|
MetricDefinition: (_) => (0, smithy_client_1._json)(_),
|
|
391
272
|
MetricDefinitionId: [],
|
|
392
273
|
}));
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
hostname,
|
|
396
|
-
port,
|
|
397
|
-
method: "PATCH",
|
|
398
|
-
headers,
|
|
399
|
-
path: resolvedPath,
|
|
400
|
-
body,
|
|
401
|
-
});
|
|
274
|
+
b.m("PATCH").h(headers).b(body);
|
|
275
|
+
return b.build();
|
|
402
276
|
};
|
|
403
277
|
exports.se_UpdateRumMetricDefinitionCommand = se_UpdateRumMetricDefinitionCommand;
|
|
404
278
|
const de_BatchCreateRumMetricDefinitionsCommand = async (output, context) => {
|
|
@@ -1195,10 +1069,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1195
1069
|
};
|
|
1196
1070
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1197
1071
|
const contents = (0, smithy_client_1.map)({
|
|
1198
|
-
|
|
1199
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
1200
|
-
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
1201
|
-
],
|
|
1072
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
1202
1073
|
});
|
|
1203
1074
|
const data = parsedOutput.body;
|
|
1204
1075
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -1241,10 +1112,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1241
1112
|
};
|
|
1242
1113
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1243
1114
|
const contents = (0, smithy_client_1.map)({
|
|
1244
|
-
|
|
1245
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
1246
|
-
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
1247
|
-
],
|
|
1115
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
1248
1116
|
});
|
|
1249
1117
|
const data = parsedOutput.body;
|
|
1250
1118
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -1340,6 +1208,20 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1340
1208
|
value !== "" &&
|
|
1341
1209
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1342
1210
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1211
|
+
const _D = "Destination";
|
|
1212
|
+
const _DA = "DestinationArn";
|
|
1213
|
+
const _MDI = "MetricDefinitionIds";
|
|
1214
|
+
const _MR = "MaxResults";
|
|
1215
|
+
const _NT = "NextToken";
|
|
1216
|
+
const _TK = "TagKeys";
|
|
1217
|
+
const _d = "destination";
|
|
1218
|
+
const _dA = "destinationArn";
|
|
1219
|
+
const _mDI = "metricDefinitionIds";
|
|
1220
|
+
const _mR = "maxResults";
|
|
1221
|
+
const _nT = "nextToken";
|
|
1222
|
+
const _rAS = "retryAfterSeconds";
|
|
1223
|
+
const _ra = "retry-after";
|
|
1224
|
+
const _tK = "tagKeys";
|
|
1343
1225
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1344
1226
|
if (encoded.length) {
|
|
1345
1227
|
return JSON.parse(encoded);
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BatchGetRumMetricDefinitionsCommand, } from "../commands/BatchGetRumMetricDefinitionsCommand";
|
|
2
3
|
import { RUMClient } from "../RUMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new BatchGetRumMetricDefinitionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateBatchGetRumMetricDefinitions(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RUMClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected RUM | RUMClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateBatchGetRumMetricDefinitions = createPaginator(RUMClient, BatchGetRumMetricDefinitionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetAppMonitorDataCommand, } from "../commands/GetAppMonitorDataCommand";
|
|
2
3
|
import { RUMClient } from "../RUMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetAppMonitorDataCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetAppMonitorData(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RUMClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected RUM | RUMClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetAppMonitorData = createPaginator(RUMClient, GetAppMonitorDataCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAppMonitorsCommand, } from "../commands/ListAppMonitorsCommand";
|
|
2
3
|
import { RUMClient } from "../RUMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAppMonitorsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAppMonitors(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RUMClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected RUM | RUMClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListAppMonitors = createPaginator(RUMClient, ListAppMonitorsCommand, "NextToken", "NextToken", "MaxResults");
|