@aws-sdk/client-pi 3.303.0 → 3.309.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/commands/DescribeDimensionKeysCommand.js +2 -2
- package/dist-cjs/commands/GetDimensionKeyDetailsCommand.js +2 -2
- package/dist-cjs/commands/GetResourceMetadataCommand.js +2 -2
- package/dist-cjs/commands/GetResourceMetricsCommand.js +2 -2
- package/dist-cjs/commands/ListAvailableResourceDimensionsCommand.js +2 -2
- package/dist-cjs/commands/ListAvailableResourceMetricsCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +159 -167
- package/dist-es/commands/DescribeDimensionKeysCommand.js +3 -3
- package/dist-es/commands/GetDimensionKeyDetailsCommand.js +3 -3
- package/dist-es/commands/GetResourceMetadataCommand.js +3 -3
- package/dist-es/commands/GetResourceMetricsCommand.js +3 -3
- package/dist-es/commands/ListAvailableResourceDimensionsCommand.js +3 -3
- package/dist-es/commands/ListAvailableResourceMetricsCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +146 -154
- package/dist-types/protocols/Aws_json1_1.d.ts +48 -12
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -12
- package/package.json +29 -29
|
@@ -1,85 +1,85 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_ListAvailableResourceMetricsCommand = exports.de_ListAvailableResourceDimensionsCommand = exports.de_GetResourceMetricsCommand = exports.de_GetResourceMetadataCommand = exports.de_GetDimensionKeyDetailsCommand = exports.de_DescribeDimensionKeysCommand = exports.se_ListAvailableResourceMetricsCommand = exports.se_ListAvailableResourceDimensionsCommand = exports.se_GetResourceMetricsCommand = exports.se_GetResourceMetadataCommand = exports.se_GetDimensionKeyDetailsCommand = exports.se_DescribeDimensionKeysCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const PIServiceException_1 = require("../models/PIServiceException");
|
|
8
|
-
const
|
|
8
|
+
const se_DescribeDimensionKeysCommand = async (input, context) => {
|
|
9
9
|
const headers = {
|
|
10
10
|
"content-type": "application/x-amz-json-1.1",
|
|
11
11
|
"x-amz-target": "PerformanceInsightsv20180227.DescribeDimensionKeys",
|
|
12
12
|
};
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(se_DescribeDimensionKeysRequest(input, context));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
18
|
-
const
|
|
17
|
+
exports.se_DescribeDimensionKeysCommand = se_DescribeDimensionKeysCommand;
|
|
18
|
+
const se_GetDimensionKeyDetailsCommand = async (input, context) => {
|
|
19
19
|
const headers = {
|
|
20
20
|
"content-type": "application/x-amz-json-1.1",
|
|
21
21
|
"x-amz-target": "PerformanceInsightsv20180227.GetDimensionKeyDetails",
|
|
22
22
|
};
|
|
23
23
|
let body;
|
|
24
|
-
body = JSON.stringify(
|
|
24
|
+
body = JSON.stringify(se_GetDimensionKeyDetailsRequest(input, context));
|
|
25
25
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
26
|
};
|
|
27
|
-
exports.
|
|
28
|
-
const
|
|
27
|
+
exports.se_GetDimensionKeyDetailsCommand = se_GetDimensionKeyDetailsCommand;
|
|
28
|
+
const se_GetResourceMetadataCommand = async (input, context) => {
|
|
29
29
|
const headers = {
|
|
30
30
|
"content-type": "application/x-amz-json-1.1",
|
|
31
31
|
"x-amz-target": "PerformanceInsightsv20180227.GetResourceMetadata",
|
|
32
32
|
};
|
|
33
33
|
let body;
|
|
34
|
-
body = JSON.stringify(
|
|
34
|
+
body = JSON.stringify(se_GetResourceMetadataRequest(input, context));
|
|
35
35
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
36
|
};
|
|
37
|
-
exports.
|
|
38
|
-
const
|
|
37
|
+
exports.se_GetResourceMetadataCommand = se_GetResourceMetadataCommand;
|
|
38
|
+
const se_GetResourceMetricsCommand = async (input, context) => {
|
|
39
39
|
const headers = {
|
|
40
40
|
"content-type": "application/x-amz-json-1.1",
|
|
41
41
|
"x-amz-target": "PerformanceInsightsv20180227.GetResourceMetrics",
|
|
42
42
|
};
|
|
43
43
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(se_GetResourceMetricsRequest(input, context));
|
|
45
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
46
|
};
|
|
47
|
-
exports.
|
|
48
|
-
const
|
|
47
|
+
exports.se_GetResourceMetricsCommand = se_GetResourceMetricsCommand;
|
|
48
|
+
const se_ListAvailableResourceDimensionsCommand = async (input, context) => {
|
|
49
49
|
const headers = {
|
|
50
50
|
"content-type": "application/x-amz-json-1.1",
|
|
51
51
|
"x-amz-target": "PerformanceInsightsv20180227.ListAvailableResourceDimensions",
|
|
52
52
|
};
|
|
53
53
|
let body;
|
|
54
|
-
body = JSON.stringify(
|
|
54
|
+
body = JSON.stringify(se_ListAvailableResourceDimensionsRequest(input, context));
|
|
55
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
56
|
};
|
|
57
|
-
exports.
|
|
58
|
-
const
|
|
57
|
+
exports.se_ListAvailableResourceDimensionsCommand = se_ListAvailableResourceDimensionsCommand;
|
|
58
|
+
const se_ListAvailableResourceMetricsCommand = async (input, context) => {
|
|
59
59
|
const headers = {
|
|
60
60
|
"content-type": "application/x-amz-json-1.1",
|
|
61
61
|
"x-amz-target": "PerformanceInsightsv20180227.ListAvailableResourceMetrics",
|
|
62
62
|
};
|
|
63
63
|
let body;
|
|
64
|
-
body = JSON.stringify(
|
|
64
|
+
body = JSON.stringify(se_ListAvailableResourceMetricsRequest(input, context));
|
|
65
65
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
66
|
};
|
|
67
|
-
exports.
|
|
68
|
-
const
|
|
67
|
+
exports.se_ListAvailableResourceMetricsCommand = se_ListAvailableResourceMetricsCommand;
|
|
68
|
+
const de_DescribeDimensionKeysCommand = async (output, context) => {
|
|
69
69
|
if (output.statusCode >= 300) {
|
|
70
|
-
return
|
|
70
|
+
return de_DescribeDimensionKeysCommandError(output, context);
|
|
71
71
|
}
|
|
72
72
|
const data = await parseBody(output.body, context);
|
|
73
73
|
let contents = {};
|
|
74
|
-
contents =
|
|
74
|
+
contents = de_DescribeDimensionKeysResponse(data, context);
|
|
75
75
|
const response = {
|
|
76
76
|
$metadata: deserializeMetadata(output),
|
|
77
77
|
...contents,
|
|
78
78
|
};
|
|
79
79
|
return Promise.resolve(response);
|
|
80
80
|
};
|
|
81
|
-
exports.
|
|
82
|
-
const
|
|
81
|
+
exports.de_DescribeDimensionKeysCommand = de_DescribeDimensionKeysCommand;
|
|
82
|
+
const de_DescribeDimensionKeysCommandError = async (output, context) => {
|
|
83
83
|
const parsedOutput = {
|
|
84
84
|
...output,
|
|
85
85
|
body: await parseErrorBody(output.body, context),
|
|
@@ -88,13 +88,13 @@ const deserializeAws_json1_1DescribeDimensionKeysCommandError = async (output, c
|
|
|
88
88
|
switch (errorCode) {
|
|
89
89
|
case "InternalServiceError":
|
|
90
90
|
case "com.amazonaws.pi#InternalServiceError":
|
|
91
|
-
throw await
|
|
91
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
92
92
|
case "InvalidArgumentException":
|
|
93
93
|
case "com.amazonaws.pi#InvalidArgumentException":
|
|
94
|
-
throw await
|
|
94
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
95
95
|
case "NotAuthorizedException":
|
|
96
96
|
case "com.amazonaws.pi#NotAuthorizedException":
|
|
97
|
-
throw await
|
|
97
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
98
98
|
default:
|
|
99
99
|
const parsedBody = parsedOutput.body;
|
|
100
100
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -105,21 +105,21 @@ const deserializeAws_json1_1DescribeDimensionKeysCommandError = async (output, c
|
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
|
-
const
|
|
108
|
+
const de_GetDimensionKeyDetailsCommand = async (output, context) => {
|
|
109
109
|
if (output.statusCode >= 300) {
|
|
110
|
-
return
|
|
110
|
+
return de_GetDimensionKeyDetailsCommandError(output, context);
|
|
111
111
|
}
|
|
112
112
|
const data = await parseBody(output.body, context);
|
|
113
113
|
let contents = {};
|
|
114
|
-
contents =
|
|
114
|
+
contents = de_GetDimensionKeyDetailsResponse(data, context);
|
|
115
115
|
const response = {
|
|
116
116
|
$metadata: deserializeMetadata(output),
|
|
117
117
|
...contents,
|
|
118
118
|
};
|
|
119
119
|
return Promise.resolve(response);
|
|
120
120
|
};
|
|
121
|
-
exports.
|
|
122
|
-
const
|
|
121
|
+
exports.de_GetDimensionKeyDetailsCommand = de_GetDimensionKeyDetailsCommand;
|
|
122
|
+
const de_GetDimensionKeyDetailsCommandError = async (output, context) => {
|
|
123
123
|
const parsedOutput = {
|
|
124
124
|
...output,
|
|
125
125
|
body: await parseErrorBody(output.body, context),
|
|
@@ -128,13 +128,13 @@ const deserializeAws_json1_1GetDimensionKeyDetailsCommandError = async (output,
|
|
|
128
128
|
switch (errorCode) {
|
|
129
129
|
case "InternalServiceError":
|
|
130
130
|
case "com.amazonaws.pi#InternalServiceError":
|
|
131
|
-
throw await
|
|
131
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
132
132
|
case "InvalidArgumentException":
|
|
133
133
|
case "com.amazonaws.pi#InvalidArgumentException":
|
|
134
|
-
throw await
|
|
134
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
135
135
|
case "NotAuthorizedException":
|
|
136
136
|
case "com.amazonaws.pi#NotAuthorizedException":
|
|
137
|
-
throw await
|
|
137
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
138
138
|
default:
|
|
139
139
|
const parsedBody = parsedOutput.body;
|
|
140
140
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -145,21 +145,21 @@ const deserializeAws_json1_1GetDimensionKeyDetailsCommandError = async (output,
|
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
};
|
|
148
|
-
const
|
|
148
|
+
const de_GetResourceMetadataCommand = async (output, context) => {
|
|
149
149
|
if (output.statusCode >= 300) {
|
|
150
|
-
return
|
|
150
|
+
return de_GetResourceMetadataCommandError(output, context);
|
|
151
151
|
}
|
|
152
152
|
const data = await parseBody(output.body, context);
|
|
153
153
|
let contents = {};
|
|
154
|
-
contents =
|
|
154
|
+
contents = de_GetResourceMetadataResponse(data, context);
|
|
155
155
|
const response = {
|
|
156
156
|
$metadata: deserializeMetadata(output),
|
|
157
157
|
...contents,
|
|
158
158
|
};
|
|
159
159
|
return Promise.resolve(response);
|
|
160
160
|
};
|
|
161
|
-
exports.
|
|
162
|
-
const
|
|
161
|
+
exports.de_GetResourceMetadataCommand = de_GetResourceMetadataCommand;
|
|
162
|
+
const de_GetResourceMetadataCommandError = async (output, context) => {
|
|
163
163
|
const parsedOutput = {
|
|
164
164
|
...output,
|
|
165
165
|
body: await parseErrorBody(output.body, context),
|
|
@@ -168,13 +168,13 @@ const deserializeAws_json1_1GetResourceMetadataCommandError = async (output, con
|
|
|
168
168
|
switch (errorCode) {
|
|
169
169
|
case "InternalServiceError":
|
|
170
170
|
case "com.amazonaws.pi#InternalServiceError":
|
|
171
|
-
throw await
|
|
171
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
172
172
|
case "InvalidArgumentException":
|
|
173
173
|
case "com.amazonaws.pi#InvalidArgumentException":
|
|
174
|
-
throw await
|
|
174
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
175
175
|
case "NotAuthorizedException":
|
|
176
176
|
case "com.amazonaws.pi#NotAuthorizedException":
|
|
177
|
-
throw await
|
|
177
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
178
178
|
default:
|
|
179
179
|
const parsedBody = parsedOutput.body;
|
|
180
180
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -185,21 +185,21 @@ const deserializeAws_json1_1GetResourceMetadataCommandError = async (output, con
|
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
187
|
};
|
|
188
|
-
const
|
|
188
|
+
const de_GetResourceMetricsCommand = async (output, context) => {
|
|
189
189
|
if (output.statusCode >= 300) {
|
|
190
|
-
return
|
|
190
|
+
return de_GetResourceMetricsCommandError(output, context);
|
|
191
191
|
}
|
|
192
192
|
const data = await parseBody(output.body, context);
|
|
193
193
|
let contents = {};
|
|
194
|
-
contents =
|
|
194
|
+
contents = de_GetResourceMetricsResponse(data, context);
|
|
195
195
|
const response = {
|
|
196
196
|
$metadata: deserializeMetadata(output),
|
|
197
197
|
...contents,
|
|
198
198
|
};
|
|
199
199
|
return Promise.resolve(response);
|
|
200
200
|
};
|
|
201
|
-
exports.
|
|
202
|
-
const
|
|
201
|
+
exports.de_GetResourceMetricsCommand = de_GetResourceMetricsCommand;
|
|
202
|
+
const de_GetResourceMetricsCommandError = async (output, context) => {
|
|
203
203
|
const parsedOutput = {
|
|
204
204
|
...output,
|
|
205
205
|
body: await parseErrorBody(output.body, context),
|
|
@@ -208,13 +208,13 @@ const deserializeAws_json1_1GetResourceMetricsCommandError = async (output, cont
|
|
|
208
208
|
switch (errorCode) {
|
|
209
209
|
case "InternalServiceError":
|
|
210
210
|
case "com.amazonaws.pi#InternalServiceError":
|
|
211
|
-
throw await
|
|
211
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
212
212
|
case "InvalidArgumentException":
|
|
213
213
|
case "com.amazonaws.pi#InvalidArgumentException":
|
|
214
|
-
throw await
|
|
214
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
215
215
|
case "NotAuthorizedException":
|
|
216
216
|
case "com.amazonaws.pi#NotAuthorizedException":
|
|
217
|
-
throw await
|
|
217
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
218
218
|
default:
|
|
219
219
|
const parsedBody = parsedOutput.body;
|
|
220
220
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -225,21 +225,21 @@ const deserializeAws_json1_1GetResourceMetricsCommandError = async (output, cont
|
|
|
225
225
|
});
|
|
226
226
|
}
|
|
227
227
|
};
|
|
228
|
-
const
|
|
228
|
+
const de_ListAvailableResourceDimensionsCommand = async (output, context) => {
|
|
229
229
|
if (output.statusCode >= 300) {
|
|
230
|
-
return
|
|
230
|
+
return de_ListAvailableResourceDimensionsCommandError(output, context);
|
|
231
231
|
}
|
|
232
232
|
const data = await parseBody(output.body, context);
|
|
233
233
|
let contents = {};
|
|
234
|
-
contents =
|
|
234
|
+
contents = de_ListAvailableResourceDimensionsResponse(data, context);
|
|
235
235
|
const response = {
|
|
236
236
|
$metadata: deserializeMetadata(output),
|
|
237
237
|
...contents,
|
|
238
238
|
};
|
|
239
239
|
return Promise.resolve(response);
|
|
240
240
|
};
|
|
241
|
-
exports.
|
|
242
|
-
const
|
|
241
|
+
exports.de_ListAvailableResourceDimensionsCommand = de_ListAvailableResourceDimensionsCommand;
|
|
242
|
+
const de_ListAvailableResourceDimensionsCommandError = async (output, context) => {
|
|
243
243
|
const parsedOutput = {
|
|
244
244
|
...output,
|
|
245
245
|
body: await parseErrorBody(output.body, context),
|
|
@@ -248,13 +248,13 @@ const deserializeAws_json1_1ListAvailableResourceDimensionsCommandError = async
|
|
|
248
248
|
switch (errorCode) {
|
|
249
249
|
case "InternalServiceError":
|
|
250
250
|
case "com.amazonaws.pi#InternalServiceError":
|
|
251
|
-
throw await
|
|
251
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
252
252
|
case "InvalidArgumentException":
|
|
253
253
|
case "com.amazonaws.pi#InvalidArgumentException":
|
|
254
|
-
throw await
|
|
254
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
255
255
|
case "NotAuthorizedException":
|
|
256
256
|
case "com.amazonaws.pi#NotAuthorizedException":
|
|
257
|
-
throw await
|
|
257
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
258
258
|
default:
|
|
259
259
|
const parsedBody = parsedOutput.body;
|
|
260
260
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -265,21 +265,21 @@ const deserializeAws_json1_1ListAvailableResourceDimensionsCommandError = async
|
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
|
-
const
|
|
268
|
+
const de_ListAvailableResourceMetricsCommand = async (output, context) => {
|
|
269
269
|
if (output.statusCode >= 300) {
|
|
270
|
-
return
|
|
270
|
+
return de_ListAvailableResourceMetricsCommandError(output, context);
|
|
271
271
|
}
|
|
272
272
|
const data = await parseBody(output.body, context);
|
|
273
273
|
let contents = {};
|
|
274
|
-
contents =
|
|
274
|
+
contents = de_ListAvailableResourceMetricsResponse(data, context);
|
|
275
275
|
const response = {
|
|
276
276
|
$metadata: deserializeMetadata(output),
|
|
277
277
|
...contents,
|
|
278
278
|
};
|
|
279
279
|
return Promise.resolve(response);
|
|
280
280
|
};
|
|
281
|
-
exports.
|
|
282
|
-
const
|
|
281
|
+
exports.de_ListAvailableResourceMetricsCommand = de_ListAvailableResourceMetricsCommand;
|
|
282
|
+
const de_ListAvailableResourceMetricsCommandError = async (output, context) => {
|
|
283
283
|
const parsedOutput = {
|
|
284
284
|
...output,
|
|
285
285
|
body: await parseErrorBody(output.body, context),
|
|
@@ -288,13 +288,13 @@ const deserializeAws_json1_1ListAvailableResourceMetricsCommandError = async (ou
|
|
|
288
288
|
switch (errorCode) {
|
|
289
289
|
case "InternalServiceError":
|
|
290
290
|
case "com.amazonaws.pi#InternalServiceError":
|
|
291
|
-
throw await
|
|
291
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
292
292
|
case "InvalidArgumentException":
|
|
293
293
|
case "com.amazonaws.pi#InvalidArgumentException":
|
|
294
|
-
throw await
|
|
294
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
295
295
|
case "NotAuthorizedException":
|
|
296
296
|
case "com.amazonaws.pi#NotAuthorizedException":
|
|
297
|
-
throw await
|
|
297
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
298
298
|
default:
|
|
299
299
|
const parsedBody = parsedOutput.body;
|
|
300
300
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -305,97 +305,95 @@ const deserializeAws_json1_1ListAvailableResourceMetricsCommandError = async (ou
|
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
307
|
};
|
|
308
|
-
const
|
|
308
|
+
const de_InternalServiceErrorRes = async (parsedOutput, context) => {
|
|
309
309
|
const body = parsedOutput.body;
|
|
310
|
-
const deserialized =
|
|
310
|
+
const deserialized = de_InternalServiceError(body, context);
|
|
311
311
|
const exception = new models_0_1.InternalServiceError({
|
|
312
312
|
$metadata: deserializeMetadata(parsedOutput),
|
|
313
313
|
...deserialized,
|
|
314
314
|
});
|
|
315
315
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
316
316
|
};
|
|
317
|
-
const
|
|
317
|
+
const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
|
|
318
318
|
const body = parsedOutput.body;
|
|
319
|
-
const deserialized =
|
|
319
|
+
const deserialized = de_InvalidArgumentException(body, context);
|
|
320
320
|
const exception = new models_0_1.InvalidArgumentException({
|
|
321
321
|
$metadata: deserializeMetadata(parsedOutput),
|
|
322
322
|
...deserialized,
|
|
323
323
|
});
|
|
324
324
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
325
325
|
};
|
|
326
|
-
const
|
|
326
|
+
const de_NotAuthorizedExceptionRes = async (parsedOutput, context) => {
|
|
327
327
|
const body = parsedOutput.body;
|
|
328
|
-
const deserialized =
|
|
328
|
+
const deserialized = de_NotAuthorizedException(body, context);
|
|
329
329
|
const exception = new models_0_1.NotAuthorizedException({
|
|
330
330
|
$metadata: deserializeMetadata(parsedOutput),
|
|
331
331
|
...deserialized,
|
|
332
332
|
});
|
|
333
333
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
334
334
|
};
|
|
335
|
-
const
|
|
335
|
+
const se_AdditionalMetricsList = (input, context) => {
|
|
336
336
|
return input
|
|
337
337
|
.filter((e) => e != null)
|
|
338
338
|
.map((entry) => {
|
|
339
339
|
return entry;
|
|
340
340
|
});
|
|
341
341
|
};
|
|
342
|
-
const
|
|
342
|
+
const se_DescribeDimensionKeysRequest = (input, context) => {
|
|
343
343
|
return {
|
|
344
344
|
...(input.AdditionalMetrics != null && {
|
|
345
|
-
AdditionalMetrics:
|
|
345
|
+
AdditionalMetrics: se_AdditionalMetricsList(input.AdditionalMetrics, context),
|
|
346
346
|
}),
|
|
347
347
|
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
348
|
-
...(input.Filter != null && { Filter:
|
|
349
|
-
...(input.GroupBy != null && { GroupBy:
|
|
348
|
+
...(input.Filter != null && { Filter: se_MetricQueryFilterMap(input.Filter, context) }),
|
|
349
|
+
...(input.GroupBy != null && { GroupBy: se_DimensionGroup(input.GroupBy, context) }),
|
|
350
350
|
...(input.Identifier != null && { Identifier: input.Identifier }),
|
|
351
351
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
352
352
|
...(input.Metric != null && { Metric: input.Metric }),
|
|
353
353
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
354
|
-
...(input.PartitionBy != null && { PartitionBy:
|
|
354
|
+
...(input.PartitionBy != null && { PartitionBy: se_DimensionGroup(input.PartitionBy, context) }),
|
|
355
355
|
...(input.PeriodInSeconds != null && { PeriodInSeconds: input.PeriodInSeconds }),
|
|
356
356
|
...(input.ServiceType != null && { ServiceType: input.ServiceType }),
|
|
357
357
|
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
358
358
|
};
|
|
359
359
|
};
|
|
360
|
-
const
|
|
360
|
+
const se_DimensionGroup = (input, context) => {
|
|
361
361
|
return {
|
|
362
|
-
...(input.Dimensions != null && { Dimensions:
|
|
362
|
+
...(input.Dimensions != null && { Dimensions: se_RequestStringList(input.Dimensions, context) }),
|
|
363
363
|
...(input.Group != null && { Group: input.Group }),
|
|
364
364
|
...(input.Limit != null && { Limit: input.Limit }),
|
|
365
365
|
};
|
|
366
366
|
};
|
|
367
|
-
const
|
|
367
|
+
const se_DimensionsMetricList = (input, context) => {
|
|
368
368
|
return input
|
|
369
369
|
.filter((e) => e != null)
|
|
370
370
|
.map((entry) => {
|
|
371
371
|
return entry;
|
|
372
372
|
});
|
|
373
373
|
};
|
|
374
|
-
const
|
|
374
|
+
const se_GetDimensionKeyDetailsRequest = (input, context) => {
|
|
375
375
|
return {
|
|
376
376
|
...(input.Group != null && { Group: input.Group }),
|
|
377
377
|
...(input.GroupIdentifier != null && { GroupIdentifier: input.GroupIdentifier }),
|
|
378
378
|
...(input.Identifier != null && { Identifier: input.Identifier }),
|
|
379
379
|
...(input.RequestedDimensions != null && {
|
|
380
|
-
RequestedDimensions:
|
|
380
|
+
RequestedDimensions: se_RequestedDimensionList(input.RequestedDimensions, context),
|
|
381
381
|
}),
|
|
382
382
|
...(input.ServiceType != null && { ServiceType: input.ServiceType }),
|
|
383
383
|
};
|
|
384
384
|
};
|
|
385
|
-
const
|
|
385
|
+
const se_GetResourceMetadataRequest = (input, context) => {
|
|
386
386
|
return {
|
|
387
387
|
...(input.Identifier != null && { Identifier: input.Identifier }),
|
|
388
388
|
...(input.ServiceType != null && { ServiceType: input.ServiceType }),
|
|
389
389
|
};
|
|
390
390
|
};
|
|
391
|
-
const
|
|
391
|
+
const se_GetResourceMetricsRequest = (input, context) => {
|
|
392
392
|
return {
|
|
393
393
|
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
394
394
|
...(input.Identifier != null && { Identifier: input.Identifier }),
|
|
395
395
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
396
|
-
...(input.MetricQueries != null && {
|
|
397
|
-
MetricQueries: serializeAws_json1_1MetricQueryList(input.MetricQueries, context),
|
|
398
|
-
}),
|
|
396
|
+
...(input.MetricQueries != null && { MetricQueries: se_MetricQueryList(input.MetricQueries, context) }),
|
|
399
397
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
400
398
|
...(input.PeriodAlignment != null && { PeriodAlignment: input.PeriodAlignment }),
|
|
401
399
|
...(input.PeriodInSeconds != null && { PeriodInSeconds: input.PeriodInSeconds }),
|
|
@@ -403,32 +401,32 @@ const serializeAws_json1_1GetResourceMetricsRequest = (input, context) => {
|
|
|
403
401
|
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
404
402
|
};
|
|
405
403
|
};
|
|
406
|
-
const
|
|
404
|
+
const se_ListAvailableResourceDimensionsRequest = (input, context) => {
|
|
407
405
|
return {
|
|
408
406
|
...(input.Identifier != null && { Identifier: input.Identifier }),
|
|
409
407
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
410
|
-
...(input.Metrics != null && { Metrics:
|
|
408
|
+
...(input.Metrics != null && { Metrics: se_DimensionsMetricList(input.Metrics, context) }),
|
|
411
409
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
412
410
|
...(input.ServiceType != null && { ServiceType: input.ServiceType }),
|
|
413
411
|
};
|
|
414
412
|
};
|
|
415
|
-
const
|
|
413
|
+
const se_ListAvailableResourceMetricsRequest = (input, context) => {
|
|
416
414
|
return {
|
|
417
415
|
...(input.Identifier != null && { Identifier: input.Identifier }),
|
|
418
416
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
419
|
-
...(input.MetricTypes != null && { MetricTypes:
|
|
417
|
+
...(input.MetricTypes != null && { MetricTypes: se_MetricTypeList(input.MetricTypes, context) }),
|
|
420
418
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
421
419
|
...(input.ServiceType != null && { ServiceType: input.ServiceType }),
|
|
422
420
|
};
|
|
423
421
|
};
|
|
424
|
-
const
|
|
422
|
+
const se_MetricQuery = (input, context) => {
|
|
425
423
|
return {
|
|
426
|
-
...(input.Filter != null && { Filter:
|
|
427
|
-
...(input.GroupBy != null && { GroupBy:
|
|
424
|
+
...(input.Filter != null && { Filter: se_MetricQueryFilterMap(input.Filter, context) }),
|
|
425
|
+
...(input.GroupBy != null && { GroupBy: se_DimensionGroup(input.GroupBy, context) }),
|
|
428
426
|
...(input.Metric != null && { Metric: input.Metric }),
|
|
429
427
|
};
|
|
430
428
|
};
|
|
431
|
-
const
|
|
429
|
+
const se_MetricQueryFilterMap = (input, context) => {
|
|
432
430
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
433
431
|
if (value === null) {
|
|
434
432
|
return acc;
|
|
@@ -437,35 +435,35 @@ const serializeAws_json1_1MetricQueryFilterMap = (input, context) => {
|
|
|
437
435
|
return acc;
|
|
438
436
|
}, {});
|
|
439
437
|
};
|
|
440
|
-
const
|
|
438
|
+
const se_MetricQueryList = (input, context) => {
|
|
441
439
|
return input
|
|
442
440
|
.filter((e) => e != null)
|
|
443
441
|
.map((entry) => {
|
|
444
|
-
return
|
|
442
|
+
return se_MetricQuery(entry, context);
|
|
445
443
|
});
|
|
446
444
|
};
|
|
447
|
-
const
|
|
445
|
+
const se_MetricTypeList = (input, context) => {
|
|
448
446
|
return input
|
|
449
447
|
.filter((e) => e != null)
|
|
450
448
|
.map((entry) => {
|
|
451
449
|
return entry;
|
|
452
450
|
});
|
|
453
451
|
};
|
|
454
|
-
const
|
|
452
|
+
const se_RequestedDimensionList = (input, context) => {
|
|
455
453
|
return input
|
|
456
454
|
.filter((e) => e != null)
|
|
457
455
|
.map((entry) => {
|
|
458
456
|
return entry;
|
|
459
457
|
});
|
|
460
458
|
};
|
|
461
|
-
const
|
|
459
|
+
const se_RequestStringList = (input, context) => {
|
|
462
460
|
return input
|
|
463
461
|
.filter((e) => e != null)
|
|
464
462
|
.map((entry) => {
|
|
465
463
|
return entry;
|
|
466
464
|
});
|
|
467
465
|
};
|
|
468
|
-
const
|
|
466
|
+
const de_AdditionalMetricsMap = (output, context) => {
|
|
469
467
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
470
468
|
if (value === null) {
|
|
471
469
|
return acc;
|
|
@@ -474,24 +472,24 @@ const deserializeAws_json1_1AdditionalMetricsMap = (output, context) => {
|
|
|
474
472
|
return acc;
|
|
475
473
|
}, {});
|
|
476
474
|
};
|
|
477
|
-
const
|
|
475
|
+
const de_DataPoint = (output, context) => {
|
|
478
476
|
return {
|
|
479
477
|
Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
|
|
480
478
|
Value: (0, smithy_client_1.limitedParseDouble)(output.Value),
|
|
481
479
|
};
|
|
482
480
|
};
|
|
483
|
-
const
|
|
481
|
+
const de_DataPointsList = (output, context) => {
|
|
484
482
|
const retVal = (output || [])
|
|
485
483
|
.filter((e) => e != null)
|
|
486
484
|
.map((entry) => {
|
|
487
485
|
if (entry === null) {
|
|
488
486
|
return null;
|
|
489
487
|
}
|
|
490
|
-
return
|
|
488
|
+
return de_DataPoint(entry, context);
|
|
491
489
|
});
|
|
492
490
|
return retVal;
|
|
493
491
|
};
|
|
494
|
-
const
|
|
492
|
+
const de_DescribeDimensionKeysResponse = (output, context) => {
|
|
495
493
|
return {
|
|
496
494
|
AlignedEndTime: output.AlignedEndTime != null
|
|
497
495
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AlignedEndTime)))
|
|
@@ -499,86 +497,82 @@ const deserializeAws_json1_1DescribeDimensionKeysResponse = (output, context) =>
|
|
|
499
497
|
AlignedStartTime: output.AlignedStartTime != null
|
|
500
498
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AlignedStartTime)))
|
|
501
499
|
: undefined,
|
|
502
|
-
Keys: output.Keys != null ?
|
|
500
|
+
Keys: output.Keys != null ? de_DimensionKeyDescriptionList(output.Keys, context) : undefined,
|
|
503
501
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
504
|
-
PartitionKeys: output.PartitionKeys != null
|
|
505
|
-
? deserializeAws_json1_1ResponsePartitionKeyList(output.PartitionKeys, context)
|
|
506
|
-
: undefined,
|
|
502
|
+
PartitionKeys: output.PartitionKeys != null ? de_ResponsePartitionKeyList(output.PartitionKeys, context) : undefined,
|
|
507
503
|
};
|
|
508
504
|
};
|
|
509
|
-
const
|
|
505
|
+
const de_DimensionDetail = (output, context) => {
|
|
510
506
|
return {
|
|
511
507
|
Identifier: (0, smithy_client_1.expectString)(output.Identifier),
|
|
512
508
|
};
|
|
513
509
|
};
|
|
514
|
-
const
|
|
510
|
+
const de_DimensionDetailList = (output, context) => {
|
|
515
511
|
const retVal = (output || [])
|
|
516
512
|
.filter((e) => e != null)
|
|
517
513
|
.map((entry) => {
|
|
518
514
|
if (entry === null) {
|
|
519
515
|
return null;
|
|
520
516
|
}
|
|
521
|
-
return
|
|
517
|
+
return de_DimensionDetail(entry, context);
|
|
522
518
|
});
|
|
523
519
|
return retVal;
|
|
524
520
|
};
|
|
525
|
-
const
|
|
521
|
+
const de_DimensionGroupDetail = (output, context) => {
|
|
526
522
|
return {
|
|
527
|
-
Dimensions: output.Dimensions != null ?
|
|
523
|
+
Dimensions: output.Dimensions != null ? de_DimensionDetailList(output.Dimensions, context) : undefined,
|
|
528
524
|
Group: (0, smithy_client_1.expectString)(output.Group),
|
|
529
525
|
};
|
|
530
526
|
};
|
|
531
|
-
const
|
|
527
|
+
const de_DimensionGroupDetailList = (output, context) => {
|
|
532
528
|
const retVal = (output || [])
|
|
533
529
|
.filter((e) => e != null)
|
|
534
530
|
.map((entry) => {
|
|
535
531
|
if (entry === null) {
|
|
536
532
|
return null;
|
|
537
533
|
}
|
|
538
|
-
return
|
|
534
|
+
return de_DimensionGroupDetail(entry, context);
|
|
539
535
|
});
|
|
540
536
|
return retVal;
|
|
541
537
|
};
|
|
542
|
-
const
|
|
538
|
+
const de_DimensionKeyDescription = (output, context) => {
|
|
543
539
|
return {
|
|
544
|
-
AdditionalMetrics: output.AdditionalMetrics != null
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
Dimensions: output.Dimensions != null ? deserializeAws_json1_1DimensionMap(output.Dimensions, context) : undefined,
|
|
548
|
-
Partitions: output.Partitions != null ? deserializeAws_json1_1MetricValuesList(output.Partitions, context) : undefined,
|
|
540
|
+
AdditionalMetrics: output.AdditionalMetrics != null ? de_AdditionalMetricsMap(output.AdditionalMetrics, context) : undefined,
|
|
541
|
+
Dimensions: output.Dimensions != null ? de_DimensionMap(output.Dimensions, context) : undefined,
|
|
542
|
+
Partitions: output.Partitions != null ? de_MetricValuesList(output.Partitions, context) : undefined,
|
|
549
543
|
Total: (0, smithy_client_1.limitedParseDouble)(output.Total),
|
|
550
544
|
};
|
|
551
545
|
};
|
|
552
|
-
const
|
|
546
|
+
const de_DimensionKeyDescriptionList = (output, context) => {
|
|
553
547
|
const retVal = (output || [])
|
|
554
548
|
.filter((e) => e != null)
|
|
555
549
|
.map((entry) => {
|
|
556
550
|
if (entry === null) {
|
|
557
551
|
return null;
|
|
558
552
|
}
|
|
559
|
-
return
|
|
553
|
+
return de_DimensionKeyDescription(entry, context);
|
|
560
554
|
});
|
|
561
555
|
return retVal;
|
|
562
556
|
};
|
|
563
|
-
const
|
|
557
|
+
const de_DimensionKeyDetail = (output, context) => {
|
|
564
558
|
return {
|
|
565
559
|
Dimension: (0, smithy_client_1.expectString)(output.Dimension),
|
|
566
560
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
567
561
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
568
562
|
};
|
|
569
563
|
};
|
|
570
|
-
const
|
|
564
|
+
const de_DimensionKeyDetailList = (output, context) => {
|
|
571
565
|
const retVal = (output || [])
|
|
572
566
|
.filter((e) => e != null)
|
|
573
567
|
.map((entry) => {
|
|
574
568
|
if (entry === null) {
|
|
575
569
|
return null;
|
|
576
570
|
}
|
|
577
|
-
return
|
|
571
|
+
return de_DimensionKeyDetail(entry, context);
|
|
578
572
|
});
|
|
579
573
|
return retVal;
|
|
580
574
|
};
|
|
581
|
-
const
|
|
575
|
+
const de_DimensionMap = (output, context) => {
|
|
582
576
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
583
577
|
if (value === null) {
|
|
584
578
|
return acc;
|
|
@@ -587,32 +581,32 @@ const deserializeAws_json1_1DimensionMap = (output, context) => {
|
|
|
587
581
|
return acc;
|
|
588
582
|
}, {});
|
|
589
583
|
};
|
|
590
|
-
const
|
|
584
|
+
const de_FeatureMetadata = (output, context) => {
|
|
591
585
|
return {
|
|
592
586
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
593
587
|
};
|
|
594
588
|
};
|
|
595
|
-
const
|
|
589
|
+
const de_FeatureMetadataMap = (output, context) => {
|
|
596
590
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
597
591
|
if (value === null) {
|
|
598
592
|
return acc;
|
|
599
593
|
}
|
|
600
|
-
acc[key] =
|
|
594
|
+
acc[key] = de_FeatureMetadata(value, context);
|
|
601
595
|
return acc;
|
|
602
596
|
}, {});
|
|
603
597
|
};
|
|
604
|
-
const
|
|
598
|
+
const de_GetDimensionKeyDetailsResponse = (output, context) => {
|
|
605
599
|
return {
|
|
606
|
-
Dimensions: output.Dimensions != null ?
|
|
600
|
+
Dimensions: output.Dimensions != null ? de_DimensionKeyDetailList(output.Dimensions, context) : undefined,
|
|
607
601
|
};
|
|
608
602
|
};
|
|
609
|
-
const
|
|
603
|
+
const de_GetResourceMetadataResponse = (output, context) => {
|
|
610
604
|
return {
|
|
611
|
-
Features: output.Features != null ?
|
|
605
|
+
Features: output.Features != null ? de_FeatureMetadataMap(output.Features, context) : undefined,
|
|
612
606
|
Identifier: (0, smithy_client_1.expectString)(output.Identifier),
|
|
613
607
|
};
|
|
614
608
|
};
|
|
615
|
-
const
|
|
609
|
+
const de_GetResourceMetricsResponse = (output, context) => {
|
|
616
610
|
return {
|
|
617
611
|
AlignedEndTime: output.AlignedEndTime != null
|
|
618
612
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AlignedEndTime)))
|
|
@@ -621,69 +615,67 @@ const deserializeAws_json1_1GetResourceMetricsResponse = (output, context) => {
|
|
|
621
615
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AlignedStartTime)))
|
|
622
616
|
: undefined,
|
|
623
617
|
Identifier: (0, smithy_client_1.expectString)(output.Identifier),
|
|
624
|
-
MetricList: output.MetricList != null ?
|
|
618
|
+
MetricList: output.MetricList != null ? de_MetricKeyDataPointsList(output.MetricList, context) : undefined,
|
|
625
619
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
626
620
|
};
|
|
627
621
|
};
|
|
628
|
-
const
|
|
622
|
+
const de_InternalServiceError = (output, context) => {
|
|
629
623
|
return {
|
|
630
624
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
631
625
|
};
|
|
632
626
|
};
|
|
633
|
-
const
|
|
627
|
+
const de_InvalidArgumentException = (output, context) => {
|
|
634
628
|
return {
|
|
635
629
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
636
630
|
};
|
|
637
631
|
};
|
|
638
|
-
const
|
|
632
|
+
const de_ListAvailableResourceDimensionsResponse = (output, context) => {
|
|
639
633
|
return {
|
|
640
|
-
MetricDimensions: output.MetricDimensions != null
|
|
641
|
-
? deserializeAws_json1_1MetricDimensionsList(output.MetricDimensions, context)
|
|
642
|
-
: undefined,
|
|
634
|
+
MetricDimensions: output.MetricDimensions != null ? de_MetricDimensionsList(output.MetricDimensions, context) : undefined,
|
|
643
635
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
644
636
|
};
|
|
645
637
|
};
|
|
646
|
-
const
|
|
638
|
+
const de_ListAvailableResourceMetricsResponse = (output, context) => {
|
|
647
639
|
return {
|
|
648
|
-
Metrics: output.Metrics != null ?
|
|
640
|
+
Metrics: output.Metrics != null ? de_ResponseResourceMetricList(output.Metrics, context) : undefined,
|
|
649
641
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
650
642
|
};
|
|
651
643
|
};
|
|
652
|
-
const
|
|
644
|
+
const de_MetricDimensionGroups = (output, context) => {
|
|
653
645
|
return {
|
|
654
|
-
Groups: output.Groups != null ?
|
|
646
|
+
Groups: output.Groups != null ? de_DimensionGroupDetailList(output.Groups, context) : undefined,
|
|
655
647
|
Metric: (0, smithy_client_1.expectString)(output.Metric),
|
|
656
648
|
};
|
|
657
649
|
};
|
|
658
|
-
const
|
|
650
|
+
const de_MetricDimensionsList = (output, context) => {
|
|
659
651
|
const retVal = (output || [])
|
|
660
652
|
.filter((e) => e != null)
|
|
661
653
|
.map((entry) => {
|
|
662
654
|
if (entry === null) {
|
|
663
655
|
return null;
|
|
664
656
|
}
|
|
665
|
-
return
|
|
657
|
+
return de_MetricDimensionGroups(entry, context);
|
|
666
658
|
});
|
|
667
659
|
return retVal;
|
|
668
660
|
};
|
|
669
|
-
const
|
|
661
|
+
const de_MetricKeyDataPoints = (output, context) => {
|
|
670
662
|
return {
|
|
671
|
-
DataPoints: output.DataPoints != null ?
|
|
672
|
-
Key: output.Key != null ?
|
|
663
|
+
DataPoints: output.DataPoints != null ? de_DataPointsList(output.DataPoints, context) : undefined,
|
|
664
|
+
Key: output.Key != null ? de_ResponseResourceMetricKey(output.Key, context) : undefined,
|
|
673
665
|
};
|
|
674
666
|
};
|
|
675
|
-
const
|
|
667
|
+
const de_MetricKeyDataPointsList = (output, context) => {
|
|
676
668
|
const retVal = (output || [])
|
|
677
669
|
.filter((e) => e != null)
|
|
678
670
|
.map((entry) => {
|
|
679
671
|
if (entry === null) {
|
|
680
672
|
return null;
|
|
681
673
|
}
|
|
682
|
-
return
|
|
674
|
+
return de_MetricKeyDataPoints(entry, context);
|
|
683
675
|
});
|
|
684
676
|
return retVal;
|
|
685
677
|
};
|
|
686
|
-
const
|
|
678
|
+
const de_MetricValuesList = (output, context) => {
|
|
687
679
|
const retVal = (output || [])
|
|
688
680
|
.filter((e) => e != null)
|
|
689
681
|
.map((entry) => {
|
|
@@ -694,48 +686,48 @@ const deserializeAws_json1_1MetricValuesList = (output, context) => {
|
|
|
694
686
|
});
|
|
695
687
|
return retVal;
|
|
696
688
|
};
|
|
697
|
-
const
|
|
689
|
+
const de_NotAuthorizedException = (output, context) => {
|
|
698
690
|
return {
|
|
699
691
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
700
692
|
};
|
|
701
693
|
};
|
|
702
|
-
const
|
|
694
|
+
const de_ResponsePartitionKey = (output, context) => {
|
|
703
695
|
return {
|
|
704
|
-
Dimensions: output.Dimensions != null ?
|
|
696
|
+
Dimensions: output.Dimensions != null ? de_DimensionMap(output.Dimensions, context) : undefined,
|
|
705
697
|
};
|
|
706
698
|
};
|
|
707
|
-
const
|
|
699
|
+
const de_ResponsePartitionKeyList = (output, context) => {
|
|
708
700
|
const retVal = (output || [])
|
|
709
701
|
.filter((e) => e != null)
|
|
710
702
|
.map((entry) => {
|
|
711
703
|
if (entry === null) {
|
|
712
704
|
return null;
|
|
713
705
|
}
|
|
714
|
-
return
|
|
706
|
+
return de_ResponsePartitionKey(entry, context);
|
|
715
707
|
});
|
|
716
708
|
return retVal;
|
|
717
709
|
};
|
|
718
|
-
const
|
|
710
|
+
const de_ResponseResourceMetric = (output, context) => {
|
|
719
711
|
return {
|
|
720
712
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
721
713
|
Metric: (0, smithy_client_1.expectString)(output.Metric),
|
|
722
714
|
Unit: (0, smithy_client_1.expectString)(output.Unit),
|
|
723
715
|
};
|
|
724
716
|
};
|
|
725
|
-
const
|
|
717
|
+
const de_ResponseResourceMetricKey = (output, context) => {
|
|
726
718
|
return {
|
|
727
|
-
Dimensions: output.Dimensions != null ?
|
|
719
|
+
Dimensions: output.Dimensions != null ? de_DimensionMap(output.Dimensions, context) : undefined,
|
|
728
720
|
Metric: (0, smithy_client_1.expectString)(output.Metric),
|
|
729
721
|
};
|
|
730
722
|
};
|
|
731
|
-
const
|
|
723
|
+
const de_ResponseResourceMetricList = (output, context) => {
|
|
732
724
|
const retVal = (output || [])
|
|
733
725
|
.filter((e) => e != null)
|
|
734
726
|
.map((entry) => {
|
|
735
727
|
if (entry === null) {
|
|
736
728
|
return null;
|
|
737
729
|
}
|
|
738
|
-
return
|
|
730
|
+
return de_ResponseResourceMetric(entry, context);
|
|
739
731
|
});
|
|
740
732
|
return retVal;
|
|
741
733
|
};
|