@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,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListRumMetricsDestinationsCommand, } from "../commands/ListRumMetricsDestinationsCommand";
|
|
2
3
|
import { RUMClient } from "../RUMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRumMetricsDestinationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRumMetricsDestinations(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 paginateListRumMetricsDestinations = createPaginator(RUMClient, ListRumMetricsDestinationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,84 +1,62 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
|
+
import { isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
|
|
3
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, LazyJsonString as __LazyJsonString, limitedParseDouble as __limitedParseDouble, map, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
4
5
|
import { RUMServiceException as __BaseException } from "../models/RUMServiceException";
|
|
5
6
|
export const se_BatchCreateRumMetricDefinitionsCommand = async (input, context) => {
|
|
6
|
-
const
|
|
7
|
+
const b = rb(input, context);
|
|
7
8
|
const headers = {
|
|
8
9
|
"content-type": "application/json",
|
|
9
10
|
};
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
b.bp("/rummetrics/{AppMonitorName}/metrics");
|
|
12
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
12
13
|
let body;
|
|
13
14
|
body = JSON.stringify(take(input, {
|
|
14
15
|
Destination: [],
|
|
15
16
|
DestinationArn: [],
|
|
16
17
|
MetricDefinitions: (_) => _json(_),
|
|
17
18
|
}));
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
hostname,
|
|
21
|
-
port,
|
|
22
|
-
method: "POST",
|
|
23
|
-
headers,
|
|
24
|
-
path: resolvedPath,
|
|
25
|
-
body,
|
|
26
|
-
});
|
|
19
|
+
b.m("POST").h(headers).b(body);
|
|
20
|
+
return b.build();
|
|
27
21
|
};
|
|
28
22
|
export const se_BatchDeleteRumMetricDefinitionsCommand = async (input, context) => {
|
|
29
|
-
const
|
|
23
|
+
const b = rb(input, context);
|
|
30
24
|
const headers = {};
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
b.bp("/rummetrics/{AppMonitorName}/metrics");
|
|
26
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
33
27
|
const query = map({
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
28
|
+
[_d]: [, __expectNonNull(input[_D], `Destination`)],
|
|
29
|
+
[_dA]: [, input[_DA]],
|
|
30
|
+
[_mDI]: [
|
|
37
31
|
__expectNonNull(input.MetricDefinitionIds, `MetricDefinitionIds`) != null,
|
|
38
|
-
() => (input
|
|
32
|
+
() => (input[_MDI] || []).map((_entry) => _entry),
|
|
39
33
|
],
|
|
40
34
|
});
|
|
41
35
|
let body;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
hostname,
|
|
45
|
-
port,
|
|
46
|
-
method: "DELETE",
|
|
47
|
-
headers,
|
|
48
|
-
path: resolvedPath,
|
|
49
|
-
query,
|
|
50
|
-
body,
|
|
51
|
-
});
|
|
36
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
37
|
+
return b.build();
|
|
52
38
|
};
|
|
53
39
|
export const se_BatchGetRumMetricDefinitionsCommand = async (input, context) => {
|
|
54
|
-
const
|
|
40
|
+
const b = rb(input, context);
|
|
55
41
|
const headers = {};
|
|
56
|
-
|
|
57
|
-
|
|
42
|
+
b.bp("/rummetrics/{AppMonitorName}/metrics");
|
|
43
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
58
44
|
const query = map({
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
45
|
+
[_d]: [, __expectNonNull(input[_D], `Destination`)],
|
|
46
|
+
[_dA]: [, input[_DA]],
|
|
47
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
48
|
+
[_nT]: [, input[_NT]],
|
|
63
49
|
});
|
|
64
50
|
let body;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
hostname,
|
|
68
|
-
port,
|
|
69
|
-
method: "GET",
|
|
70
|
-
headers,
|
|
71
|
-
path: resolvedPath,
|
|
72
|
-
query,
|
|
73
|
-
body,
|
|
74
|
-
});
|
|
51
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
52
|
+
return b.build();
|
|
75
53
|
};
|
|
76
54
|
export const se_CreateAppMonitorCommand = async (input, context) => {
|
|
77
|
-
const
|
|
55
|
+
const b = rb(input, context);
|
|
78
56
|
const headers = {
|
|
79
57
|
"content-type": "application/json",
|
|
80
58
|
};
|
|
81
|
-
|
|
59
|
+
b.bp("/appmonitor");
|
|
82
60
|
let body;
|
|
83
61
|
body = JSON.stringify(take(input, {
|
|
84
62
|
AppMonitorConfiguration: (_) => se_AppMonitorConfiguration(_, context),
|
|
@@ -88,77 +66,47 @@ export const se_CreateAppMonitorCommand = async (input, context) => {
|
|
|
88
66
|
Name: [],
|
|
89
67
|
Tags: (_) => _json(_),
|
|
90
68
|
}));
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
hostname,
|
|
94
|
-
port,
|
|
95
|
-
method: "POST",
|
|
96
|
-
headers,
|
|
97
|
-
path: resolvedPath,
|
|
98
|
-
body,
|
|
99
|
-
});
|
|
69
|
+
b.m("POST").h(headers).b(body);
|
|
70
|
+
return b.build();
|
|
100
71
|
};
|
|
101
72
|
export const se_DeleteAppMonitorCommand = async (input, context) => {
|
|
102
|
-
const
|
|
73
|
+
const b = rb(input, context);
|
|
103
74
|
const headers = {};
|
|
104
|
-
|
|
105
|
-
|
|
75
|
+
b.bp("/appmonitor/{Name}");
|
|
76
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
106
77
|
let body;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
hostname,
|
|
110
|
-
port,
|
|
111
|
-
method: "DELETE",
|
|
112
|
-
headers,
|
|
113
|
-
path: resolvedPath,
|
|
114
|
-
body,
|
|
115
|
-
});
|
|
78
|
+
b.m("DELETE").h(headers).b(body);
|
|
79
|
+
return b.build();
|
|
116
80
|
};
|
|
117
81
|
export const se_DeleteRumMetricsDestinationCommand = async (input, context) => {
|
|
118
|
-
const
|
|
82
|
+
const b = rb(input, context);
|
|
119
83
|
const headers = {};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
84
|
+
b.bp("/rummetrics/{AppMonitorName}/metricsdestination");
|
|
85
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
123
86
|
const query = map({
|
|
124
|
-
|
|
125
|
-
|
|
87
|
+
[_d]: [, __expectNonNull(input[_D], `Destination`)],
|
|
88
|
+
[_dA]: [, input[_DA]],
|
|
126
89
|
});
|
|
127
90
|
let body;
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
hostname,
|
|
131
|
-
port,
|
|
132
|
-
method: "DELETE",
|
|
133
|
-
headers,
|
|
134
|
-
path: resolvedPath,
|
|
135
|
-
query,
|
|
136
|
-
body,
|
|
137
|
-
});
|
|
91
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
92
|
+
return b.build();
|
|
138
93
|
};
|
|
139
94
|
export const se_GetAppMonitorCommand = async (input, context) => {
|
|
140
|
-
const
|
|
95
|
+
const b = rb(input, context);
|
|
141
96
|
const headers = {};
|
|
142
|
-
|
|
143
|
-
|
|
97
|
+
b.bp("/appmonitor/{Name}");
|
|
98
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
144
99
|
let body;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
hostname,
|
|
148
|
-
port,
|
|
149
|
-
method: "GET",
|
|
150
|
-
headers,
|
|
151
|
-
path: resolvedPath,
|
|
152
|
-
body,
|
|
153
|
-
});
|
|
100
|
+
b.m("GET").h(headers).b(body);
|
|
101
|
+
return b.build();
|
|
154
102
|
};
|
|
155
103
|
export const se_GetAppMonitorDataCommand = async (input, context) => {
|
|
156
|
-
const
|
|
104
|
+
const b = rb(input, context);
|
|
157
105
|
const headers = {
|
|
158
106
|
"content-type": "application/json",
|
|
159
107
|
};
|
|
160
|
-
|
|
161
|
-
|
|
108
|
+
b.bp("/appmonitor/{Name}/data");
|
|
109
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
162
110
|
let body;
|
|
163
111
|
body = JSON.stringify(take(input, {
|
|
164
112
|
Filters: (_) => _json(_),
|
|
@@ -166,81 +114,50 @@ export const se_GetAppMonitorDataCommand = async (input, context) => {
|
|
|
166
114
|
NextToken: [],
|
|
167
115
|
TimeRange: (_) => _json(_),
|
|
168
116
|
}));
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
hostname,
|
|
172
|
-
port,
|
|
173
|
-
method: "POST",
|
|
174
|
-
headers,
|
|
175
|
-
path: resolvedPath,
|
|
176
|
-
body,
|
|
177
|
-
});
|
|
117
|
+
b.m("POST").h(headers).b(body);
|
|
118
|
+
return b.build();
|
|
178
119
|
};
|
|
179
120
|
export const se_ListAppMonitorsCommand = async (input, context) => {
|
|
180
|
-
const
|
|
121
|
+
const b = rb(input, context);
|
|
181
122
|
const headers = {};
|
|
182
|
-
|
|
123
|
+
b.bp("/appmonitors");
|
|
183
124
|
const query = map({
|
|
184
|
-
|
|
185
|
-
|
|
125
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
126
|
+
[_nT]: [, input[_NT]],
|
|
186
127
|
});
|
|
187
128
|
let body;
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
hostname,
|
|
191
|
-
port,
|
|
192
|
-
method: "POST",
|
|
193
|
-
headers,
|
|
194
|
-
path: resolvedPath,
|
|
195
|
-
query,
|
|
196
|
-
body,
|
|
197
|
-
});
|
|
129
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
130
|
+
return b.build();
|
|
198
131
|
};
|
|
199
132
|
export const se_ListRumMetricsDestinationsCommand = async (input, context) => {
|
|
200
|
-
const
|
|
133
|
+
const b = rb(input, context);
|
|
201
134
|
const headers = {};
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
135
|
+
b.bp("/rummetrics/{AppMonitorName}/metricsdestination");
|
|
136
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
205
137
|
const query = map({
|
|
206
|
-
|
|
207
|
-
|
|
138
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
139
|
+
[_nT]: [, input[_NT]],
|
|
208
140
|
});
|
|
209
141
|
let body;
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
hostname,
|
|
213
|
-
port,
|
|
214
|
-
method: "GET",
|
|
215
|
-
headers,
|
|
216
|
-
path: resolvedPath,
|
|
217
|
-
query,
|
|
218
|
-
body,
|
|
219
|
-
});
|
|
142
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
143
|
+
return b.build();
|
|
220
144
|
};
|
|
221
145
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
222
|
-
const
|
|
146
|
+
const b = rb(input, context);
|
|
223
147
|
const headers = {};
|
|
224
|
-
|
|
225
|
-
|
|
148
|
+
b.bp("/tags/{ResourceArn}");
|
|
149
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
226
150
|
let body;
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
hostname,
|
|
230
|
-
port,
|
|
231
|
-
method: "GET",
|
|
232
|
-
headers,
|
|
233
|
-
path: resolvedPath,
|
|
234
|
-
body,
|
|
235
|
-
});
|
|
151
|
+
b.m("GET").h(headers).b(body);
|
|
152
|
+
return b.build();
|
|
236
153
|
};
|
|
237
154
|
export const se_PutRumEventsCommand = async (input, context) => {
|
|
238
|
-
const
|
|
155
|
+
const b = rb(input, context);
|
|
239
156
|
const headers = {
|
|
240
157
|
"content-type": "application/json",
|
|
241
158
|
};
|
|
242
|
-
|
|
243
|
-
|
|
159
|
+
b.bp("/appmonitors/{Id}");
|
|
160
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
244
161
|
let body;
|
|
245
162
|
body = JSON.stringify(take(input, {
|
|
246
163
|
AppMonitorDetails: (_) => _json(_),
|
|
@@ -255,91 +172,62 @@ export const se_PutRumEventsCommand = async (input, context) => {
|
|
|
255
172
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
256
173
|
}
|
|
257
174
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
port,
|
|
262
|
-
method: "POST",
|
|
263
|
-
headers,
|
|
264
|
-
path: resolvedPath,
|
|
265
|
-
body,
|
|
266
|
-
});
|
|
175
|
+
b.hn(resolvedHostname);
|
|
176
|
+
b.m("POST").h(headers).b(body);
|
|
177
|
+
return b.build();
|
|
267
178
|
};
|
|
268
179
|
export const se_PutRumMetricsDestinationCommand = async (input, context) => {
|
|
269
|
-
const
|
|
180
|
+
const b = rb(input, context);
|
|
270
181
|
const headers = {
|
|
271
182
|
"content-type": "application/json",
|
|
272
183
|
};
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
184
|
+
b.bp("/rummetrics/{AppMonitorName}/metricsdestination");
|
|
185
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
276
186
|
let body;
|
|
277
187
|
body = JSON.stringify(take(input, {
|
|
278
188
|
Destination: [],
|
|
279
189
|
DestinationArn: [],
|
|
280
190
|
IamRoleArn: [],
|
|
281
191
|
}));
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
hostname,
|
|
285
|
-
port,
|
|
286
|
-
method: "POST",
|
|
287
|
-
headers,
|
|
288
|
-
path: resolvedPath,
|
|
289
|
-
body,
|
|
290
|
-
});
|
|
192
|
+
b.m("POST").h(headers).b(body);
|
|
193
|
+
return b.build();
|
|
291
194
|
};
|
|
292
195
|
export const se_TagResourceCommand = async (input, context) => {
|
|
293
|
-
const
|
|
196
|
+
const b = rb(input, context);
|
|
294
197
|
const headers = {
|
|
295
198
|
"content-type": "application/json",
|
|
296
199
|
};
|
|
297
|
-
|
|
298
|
-
|
|
200
|
+
b.bp("/tags/{ResourceArn}");
|
|
201
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
299
202
|
let body;
|
|
300
203
|
body = JSON.stringify(take(input, {
|
|
301
204
|
Tags: (_) => _json(_),
|
|
302
205
|
}));
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
hostname,
|
|
306
|
-
port,
|
|
307
|
-
method: "POST",
|
|
308
|
-
headers,
|
|
309
|
-
path: resolvedPath,
|
|
310
|
-
body,
|
|
311
|
-
});
|
|
206
|
+
b.m("POST").h(headers).b(body);
|
|
207
|
+
return b.build();
|
|
312
208
|
};
|
|
313
209
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
314
|
-
const
|
|
210
|
+
const b = rb(input, context);
|
|
315
211
|
const headers = {};
|
|
316
|
-
|
|
317
|
-
|
|
212
|
+
b.bp("/tags/{ResourceArn}");
|
|
213
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
318
214
|
const query = map({
|
|
319
|
-
|
|
215
|
+
[_tK]: [
|
|
320
216
|
__expectNonNull(input.TagKeys, `TagKeys`) != null,
|
|
321
|
-
() => (input
|
|
217
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
322
218
|
],
|
|
323
219
|
});
|
|
324
220
|
let body;
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
hostname,
|
|
328
|
-
port,
|
|
329
|
-
method: "DELETE",
|
|
330
|
-
headers,
|
|
331
|
-
path: resolvedPath,
|
|
332
|
-
query,
|
|
333
|
-
body,
|
|
334
|
-
});
|
|
221
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
222
|
+
return b.build();
|
|
335
223
|
};
|
|
336
224
|
export const se_UpdateAppMonitorCommand = async (input, context) => {
|
|
337
|
-
const
|
|
225
|
+
const b = rb(input, context);
|
|
338
226
|
const headers = {
|
|
339
227
|
"content-type": "application/json",
|
|
340
228
|
};
|
|
341
|
-
|
|
342
|
-
|
|
229
|
+
b.bp("/appmonitor/{Name}");
|
|
230
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
343
231
|
let body;
|
|
344
232
|
body = JSON.stringify(take(input, {
|
|
345
233
|
AppMonitorConfiguration: (_) => se_AppMonitorConfiguration(_, context),
|
|
@@ -347,23 +235,16 @@ export const se_UpdateAppMonitorCommand = async (input, context) => {
|
|
|
347
235
|
CwLogEnabled: [],
|
|
348
236
|
Domain: [],
|
|
349
237
|
}));
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
hostname,
|
|
353
|
-
port,
|
|
354
|
-
method: "PATCH",
|
|
355
|
-
headers,
|
|
356
|
-
path: resolvedPath,
|
|
357
|
-
body,
|
|
358
|
-
});
|
|
238
|
+
b.m("PATCH").h(headers).b(body);
|
|
239
|
+
return b.build();
|
|
359
240
|
};
|
|
360
241
|
export const se_UpdateRumMetricDefinitionCommand = async (input, context) => {
|
|
361
|
-
const
|
|
242
|
+
const b = rb(input, context);
|
|
362
243
|
const headers = {
|
|
363
244
|
"content-type": "application/json",
|
|
364
245
|
};
|
|
365
|
-
|
|
366
|
-
|
|
246
|
+
b.bp("/rummetrics/{AppMonitorName}/metrics");
|
|
247
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
367
248
|
let body;
|
|
368
249
|
body = JSON.stringify(take(input, {
|
|
369
250
|
Destination: [],
|
|
@@ -371,15 +252,8 @@ export const se_UpdateRumMetricDefinitionCommand = async (input, context) => {
|
|
|
371
252
|
MetricDefinition: (_) => _json(_),
|
|
372
253
|
MetricDefinitionId: [],
|
|
373
254
|
}));
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
hostname,
|
|
377
|
-
port,
|
|
378
|
-
method: "PATCH",
|
|
379
|
-
headers,
|
|
380
|
-
path: resolvedPath,
|
|
381
|
-
body,
|
|
382
|
-
});
|
|
255
|
+
b.m("PATCH").h(headers).b(body);
|
|
256
|
+
return b.build();
|
|
383
257
|
};
|
|
384
258
|
export const de_BatchCreateRumMetricDefinitionsCommand = async (output, context) => {
|
|
385
259
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1158,10 +1032,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1158
1032
|
};
|
|
1159
1033
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1160
1034
|
const contents = map({
|
|
1161
|
-
|
|
1162
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
1163
|
-
() => __strictParseInt32(parsedOutput.headers["retry-after"]),
|
|
1164
|
-
],
|
|
1035
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
1165
1036
|
});
|
|
1166
1037
|
const data = parsedOutput.body;
|
|
1167
1038
|
const doc = take(data, {
|
|
@@ -1204,10 +1075,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1204
1075
|
};
|
|
1205
1076
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1206
1077
|
const contents = map({
|
|
1207
|
-
|
|
1208
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
1209
|
-
() => __strictParseInt32(parsedOutput.headers["retry-after"]),
|
|
1210
|
-
],
|
|
1078
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
1211
1079
|
});
|
|
1212
1080
|
const data = parsedOutput.body;
|
|
1213
1081
|
const doc = take(data, {
|
|
@@ -1303,6 +1171,20 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1303
1171
|
value !== "" &&
|
|
1304
1172
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1305
1173
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1174
|
+
const _D = "Destination";
|
|
1175
|
+
const _DA = "DestinationArn";
|
|
1176
|
+
const _MDI = "MetricDefinitionIds";
|
|
1177
|
+
const _MR = "MaxResults";
|
|
1178
|
+
const _NT = "NextToken";
|
|
1179
|
+
const _TK = "TagKeys";
|
|
1180
|
+
const _d = "destination";
|
|
1181
|
+
const _dA = "destinationArn";
|
|
1182
|
+
const _mDI = "metricDefinitionIds";
|
|
1183
|
+
const _mR = "maxResults";
|
|
1184
|
+
const _nT = "nextToken";
|
|
1185
|
+
const _rAS = "retryAfterSeconds";
|
|
1186
|
+
const _ra = "retry-after";
|
|
1187
|
+
const _tK = "tagKeys";
|
|
1306
1188
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1307
1189
|
if (encoded.length) {
|
|
1308
1190
|
return JSON.parse(encoded);
|
|
@@ -4,4 +4,4 @@ import { RUMPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateBatchGetRumMetricDefinitions: (config: RUMPaginationConfiguration, input: BatchGetRumMetricDefinitionsCommandInput, ...rest: any[]) => Paginator<BatchGetRumMetricDefinitionsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { RUMPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateGetAppMonitorData: (config: RUMPaginationConfiguration, input: GetAppMonitorDataCommandInput, ...rest: any[]) => Paginator<GetAppMonitorDataCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { RUMPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAppMonitors: (config: RUMPaginationConfiguration, input: ListAppMonitorsCommandInput, ...rest: any[]) => Paginator<ListAppMonitorsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { RUMPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListRumMetricsDestinations: (config: RUMPaginationConfiguration, input: ListRumMetricsDestinationsCommandInput, ...rest: any[]) => Paginator<ListRumMetricsDestinationsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
BatchGetRumMetricDefinitionsCommandOutput,
|
|
5
5
|
} from "../commands/BatchGetRumMetricDefinitionsCommand";
|
|
6
6
|
import { RUMPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateBatchGetRumMetricDefinitions: (
|
|
8
8
|
config: RUMPaginationConfiguration,
|
|
9
9
|
input: BatchGetRumMetricDefinitionsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<BatchGetRumMetricDefinitionsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
GetAppMonitorDataCommandOutput,
|
|
5
5
|
} from "../commands/GetAppMonitorDataCommand";
|
|
6
6
|
import { RUMPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateGetAppMonitorData: (
|
|
8
8
|
config: RUMPaginationConfiguration,
|
|
9
9
|
input: GetAppMonitorDataCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<GetAppMonitorDataCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListAppMonitorsCommandOutput,
|
|
5
5
|
} from "../commands/ListAppMonitorsCommand";
|
|
6
6
|
import { RUMPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAppMonitors: (
|
|
8
8
|
config: RUMPaginationConfiguration,
|
|
9
9
|
input: ListAppMonitorsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListAppMonitorsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListRumMetricsDestinationsCommandOutput,
|
|
5
5
|
} from "../commands/ListRumMetricsDestinationsCommand";
|
|
6
6
|
import { RUMPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListRumMetricsDestinations: (
|
|
8
8
|
config: RUMPaginationConfiguration,
|
|
9
9
|
input: ListRumMetricsDestinationsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListRumMetricsDestinationsCommandOutput>;
|