@aws-sdk/client-pi 3.926.0 → 3.928.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/index.js +561 -661
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/PIClient.js +2 -0
- package/dist-es/commands/CreatePerformanceAnalysisReportCommand.js +3 -9
- package/dist-es/commands/DeletePerformanceAnalysisReportCommand.js +3 -9
- package/dist-es/commands/DescribeDimensionKeysCommand.js +3 -9
- package/dist-es/commands/GetDimensionKeyDetailsCommand.js +3 -9
- package/dist-es/commands/GetPerformanceAnalysisReportCommand.js +3 -10
- package/dist-es/commands/GetResourceMetadataCommand.js +3 -9
- package/dist-es/commands/GetResourceMetricsCommand.js +3 -9
- package/dist-es/commands/ListAvailableResourceDimensionsCommand.js +3 -9
- package/dist-es/commands/ListAvailableResourceMetricsCommand.js +3 -9
- package/dist-es/commands/ListPerformanceAnalysisReportsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -23
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +537 -0
- package/dist-types/PIClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -16
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +94 -0
- package/dist-types/ts3.4/PIClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -10
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +101 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -539
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -119
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -161
|
@@ -1,539 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { InternalServiceError, InvalidArgumentException, NotAuthorizedException, } from "../models/models_0";
|
|
5
|
-
import { PIServiceException as __BaseException } from "../models/PIServiceException";
|
|
6
|
-
export const se_CreatePerformanceAnalysisReportCommand = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("CreatePerformanceAnalysisReport");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(se_CreatePerformanceAnalysisReportRequest(input, context));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const se_DeletePerformanceAnalysisReportCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("DeletePerformanceAnalysisReport");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(_json(input));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
export const se_DescribeDimensionKeysCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("DescribeDimensionKeys");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(se_DescribeDimensionKeysRequest(input, context));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
export const se_GetDimensionKeyDetailsCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("GetDimensionKeyDetails");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(_json(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
export const se_GetPerformanceAnalysisReportCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("GetPerformanceAnalysisReport");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(_json(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
export const se_GetResourceMetadataCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("GetResourceMetadata");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify(_json(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
export const se_GetResourceMetricsCommand = async (input, context) => {
|
|
43
|
-
const headers = sharedHeaders("GetResourceMetrics");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(se_GetResourceMetricsRequest(input, context));
|
|
46
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
-
};
|
|
48
|
-
export const se_ListAvailableResourceDimensionsCommand = async (input, context) => {
|
|
49
|
-
const headers = sharedHeaders("ListAvailableResourceDimensions");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(_json(input));
|
|
52
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
|
-
};
|
|
54
|
-
export const se_ListAvailableResourceMetricsCommand = async (input, context) => {
|
|
55
|
-
const headers = sharedHeaders("ListAvailableResourceMetrics");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(_json(input));
|
|
58
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
-
};
|
|
60
|
-
export const se_ListPerformanceAnalysisReportsCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("ListPerformanceAnalysisReports");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(_json(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(_json(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("TagResource");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify(_json(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("UntagResource");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(_json(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
export const de_CreatePerformanceAnalysisReportCommand = async (output, context) => {
|
|
85
|
-
if (output.statusCode >= 300) {
|
|
86
|
-
return de_CommandError(output, context);
|
|
87
|
-
}
|
|
88
|
-
const data = await parseBody(output.body, context);
|
|
89
|
-
let contents = {};
|
|
90
|
-
contents = _json(data);
|
|
91
|
-
const response = {
|
|
92
|
-
$metadata: deserializeMetadata(output),
|
|
93
|
-
...contents,
|
|
94
|
-
};
|
|
95
|
-
return response;
|
|
96
|
-
};
|
|
97
|
-
export const de_DeletePerformanceAnalysisReportCommand = async (output, context) => {
|
|
98
|
-
if (output.statusCode >= 300) {
|
|
99
|
-
return de_CommandError(output, context);
|
|
100
|
-
}
|
|
101
|
-
const data = await parseBody(output.body, context);
|
|
102
|
-
let contents = {};
|
|
103
|
-
contents = _json(data);
|
|
104
|
-
const response = {
|
|
105
|
-
$metadata: deserializeMetadata(output),
|
|
106
|
-
...contents,
|
|
107
|
-
};
|
|
108
|
-
return response;
|
|
109
|
-
};
|
|
110
|
-
export const de_DescribeDimensionKeysCommand = async (output, context) => {
|
|
111
|
-
if (output.statusCode >= 300) {
|
|
112
|
-
return de_CommandError(output, context);
|
|
113
|
-
}
|
|
114
|
-
const data = await parseBody(output.body, context);
|
|
115
|
-
let contents = {};
|
|
116
|
-
contents = de_DescribeDimensionKeysResponse(data, context);
|
|
117
|
-
const response = {
|
|
118
|
-
$metadata: deserializeMetadata(output),
|
|
119
|
-
...contents,
|
|
120
|
-
};
|
|
121
|
-
return response;
|
|
122
|
-
};
|
|
123
|
-
export const de_GetDimensionKeyDetailsCommand = async (output, context) => {
|
|
124
|
-
if (output.statusCode >= 300) {
|
|
125
|
-
return de_CommandError(output, context);
|
|
126
|
-
}
|
|
127
|
-
const data = await parseBody(output.body, context);
|
|
128
|
-
let contents = {};
|
|
129
|
-
contents = _json(data);
|
|
130
|
-
const response = {
|
|
131
|
-
$metadata: deserializeMetadata(output),
|
|
132
|
-
...contents,
|
|
133
|
-
};
|
|
134
|
-
return response;
|
|
135
|
-
};
|
|
136
|
-
export const de_GetPerformanceAnalysisReportCommand = async (output, context) => {
|
|
137
|
-
if (output.statusCode >= 300) {
|
|
138
|
-
return de_CommandError(output, context);
|
|
139
|
-
}
|
|
140
|
-
const data = await parseBody(output.body, context);
|
|
141
|
-
let contents = {};
|
|
142
|
-
contents = de_GetPerformanceAnalysisReportResponse(data, context);
|
|
143
|
-
const response = {
|
|
144
|
-
$metadata: deserializeMetadata(output),
|
|
145
|
-
...contents,
|
|
146
|
-
};
|
|
147
|
-
return response;
|
|
148
|
-
};
|
|
149
|
-
export const de_GetResourceMetadataCommand = async (output, context) => {
|
|
150
|
-
if (output.statusCode >= 300) {
|
|
151
|
-
return de_CommandError(output, context);
|
|
152
|
-
}
|
|
153
|
-
const data = await parseBody(output.body, context);
|
|
154
|
-
let contents = {};
|
|
155
|
-
contents = _json(data);
|
|
156
|
-
const response = {
|
|
157
|
-
$metadata: deserializeMetadata(output),
|
|
158
|
-
...contents,
|
|
159
|
-
};
|
|
160
|
-
return response;
|
|
161
|
-
};
|
|
162
|
-
export const de_GetResourceMetricsCommand = async (output, context) => {
|
|
163
|
-
if (output.statusCode >= 300) {
|
|
164
|
-
return de_CommandError(output, context);
|
|
165
|
-
}
|
|
166
|
-
const data = await parseBody(output.body, context);
|
|
167
|
-
let contents = {};
|
|
168
|
-
contents = de_GetResourceMetricsResponse(data, context);
|
|
169
|
-
const response = {
|
|
170
|
-
$metadata: deserializeMetadata(output),
|
|
171
|
-
...contents,
|
|
172
|
-
};
|
|
173
|
-
return response;
|
|
174
|
-
};
|
|
175
|
-
export const de_ListAvailableResourceDimensionsCommand = async (output, context) => {
|
|
176
|
-
if (output.statusCode >= 300) {
|
|
177
|
-
return de_CommandError(output, context);
|
|
178
|
-
}
|
|
179
|
-
const data = await parseBody(output.body, context);
|
|
180
|
-
let contents = {};
|
|
181
|
-
contents = _json(data);
|
|
182
|
-
const response = {
|
|
183
|
-
$metadata: deserializeMetadata(output),
|
|
184
|
-
...contents,
|
|
185
|
-
};
|
|
186
|
-
return response;
|
|
187
|
-
};
|
|
188
|
-
export const de_ListAvailableResourceMetricsCommand = async (output, context) => {
|
|
189
|
-
if (output.statusCode >= 300) {
|
|
190
|
-
return de_CommandError(output, context);
|
|
191
|
-
}
|
|
192
|
-
const data = await parseBody(output.body, context);
|
|
193
|
-
let contents = {};
|
|
194
|
-
contents = _json(data);
|
|
195
|
-
const response = {
|
|
196
|
-
$metadata: deserializeMetadata(output),
|
|
197
|
-
...contents,
|
|
198
|
-
};
|
|
199
|
-
return response;
|
|
200
|
-
};
|
|
201
|
-
export const de_ListPerformanceAnalysisReportsCommand = async (output, context) => {
|
|
202
|
-
if (output.statusCode >= 300) {
|
|
203
|
-
return de_CommandError(output, context);
|
|
204
|
-
}
|
|
205
|
-
const data = await parseBody(output.body, context);
|
|
206
|
-
let contents = {};
|
|
207
|
-
contents = de_ListPerformanceAnalysisReportsResponse(data, context);
|
|
208
|
-
const response = {
|
|
209
|
-
$metadata: deserializeMetadata(output),
|
|
210
|
-
...contents,
|
|
211
|
-
};
|
|
212
|
-
return response;
|
|
213
|
-
};
|
|
214
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
215
|
-
if (output.statusCode >= 300) {
|
|
216
|
-
return de_CommandError(output, context);
|
|
217
|
-
}
|
|
218
|
-
const data = await parseBody(output.body, context);
|
|
219
|
-
let contents = {};
|
|
220
|
-
contents = _json(data);
|
|
221
|
-
const response = {
|
|
222
|
-
$metadata: deserializeMetadata(output),
|
|
223
|
-
...contents,
|
|
224
|
-
};
|
|
225
|
-
return response;
|
|
226
|
-
};
|
|
227
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
228
|
-
if (output.statusCode >= 300) {
|
|
229
|
-
return de_CommandError(output, context);
|
|
230
|
-
}
|
|
231
|
-
const data = await parseBody(output.body, context);
|
|
232
|
-
let contents = {};
|
|
233
|
-
contents = _json(data);
|
|
234
|
-
const response = {
|
|
235
|
-
$metadata: deserializeMetadata(output),
|
|
236
|
-
...contents,
|
|
237
|
-
};
|
|
238
|
-
return response;
|
|
239
|
-
};
|
|
240
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
241
|
-
if (output.statusCode >= 300) {
|
|
242
|
-
return de_CommandError(output, context);
|
|
243
|
-
}
|
|
244
|
-
const data = await parseBody(output.body, context);
|
|
245
|
-
let contents = {};
|
|
246
|
-
contents = _json(data);
|
|
247
|
-
const response = {
|
|
248
|
-
$metadata: deserializeMetadata(output),
|
|
249
|
-
...contents,
|
|
250
|
-
};
|
|
251
|
-
return response;
|
|
252
|
-
};
|
|
253
|
-
const de_CommandError = async (output, context) => {
|
|
254
|
-
const parsedOutput = {
|
|
255
|
-
...output,
|
|
256
|
-
body: await parseErrorBody(output.body, context),
|
|
257
|
-
};
|
|
258
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
259
|
-
switch (errorCode) {
|
|
260
|
-
case "InternalServiceError":
|
|
261
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
262
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
263
|
-
case "InvalidArgumentException":
|
|
264
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
265
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
266
|
-
case "NotAuthorizedException":
|
|
267
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
268
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
269
|
-
default:
|
|
270
|
-
const parsedBody = parsedOutput.body;
|
|
271
|
-
return throwDefaultError({
|
|
272
|
-
output,
|
|
273
|
-
parsedBody,
|
|
274
|
-
errorCode,
|
|
275
|
-
});
|
|
276
|
-
}
|
|
277
|
-
};
|
|
278
|
-
const de_InternalServiceErrorRes = async (parsedOutput, context) => {
|
|
279
|
-
const body = parsedOutput.body;
|
|
280
|
-
const deserialized = _json(body);
|
|
281
|
-
const exception = new InternalServiceError({
|
|
282
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
283
|
-
...deserialized,
|
|
284
|
-
});
|
|
285
|
-
return __decorateServiceException(exception, body);
|
|
286
|
-
};
|
|
287
|
-
const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
|
|
288
|
-
const body = parsedOutput.body;
|
|
289
|
-
const deserialized = _json(body);
|
|
290
|
-
const exception = new InvalidArgumentException({
|
|
291
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
292
|
-
...deserialized,
|
|
293
|
-
});
|
|
294
|
-
return __decorateServiceException(exception, body);
|
|
295
|
-
};
|
|
296
|
-
const de_NotAuthorizedExceptionRes = async (parsedOutput, context) => {
|
|
297
|
-
const body = parsedOutput.body;
|
|
298
|
-
const deserialized = _json(body);
|
|
299
|
-
const exception = new NotAuthorizedException({
|
|
300
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
301
|
-
...deserialized,
|
|
302
|
-
});
|
|
303
|
-
return __decorateServiceException(exception, body);
|
|
304
|
-
};
|
|
305
|
-
const se_CreatePerformanceAnalysisReportRequest = (input, context) => {
|
|
306
|
-
return take(input, {
|
|
307
|
-
EndTime: (_) => _.getTime() / 1_000,
|
|
308
|
-
Identifier: [],
|
|
309
|
-
ServiceType: [],
|
|
310
|
-
StartTime: (_) => _.getTime() / 1_000,
|
|
311
|
-
Tags: _json,
|
|
312
|
-
});
|
|
313
|
-
};
|
|
314
|
-
const se_DescribeDimensionKeysRequest = (input, context) => {
|
|
315
|
-
return take(input, {
|
|
316
|
-
AdditionalMetrics: _json,
|
|
317
|
-
EndTime: (_) => _.getTime() / 1_000,
|
|
318
|
-
Filter: _json,
|
|
319
|
-
GroupBy: _json,
|
|
320
|
-
Identifier: [],
|
|
321
|
-
MaxResults: [],
|
|
322
|
-
Metric: [],
|
|
323
|
-
NextToken: [],
|
|
324
|
-
PartitionBy: _json,
|
|
325
|
-
PeriodInSeconds: [],
|
|
326
|
-
ServiceType: [],
|
|
327
|
-
StartTime: (_) => _.getTime() / 1_000,
|
|
328
|
-
});
|
|
329
|
-
};
|
|
330
|
-
const se_GetResourceMetricsRequest = (input, context) => {
|
|
331
|
-
return take(input, {
|
|
332
|
-
EndTime: (_) => _.getTime() / 1_000,
|
|
333
|
-
Identifier: [],
|
|
334
|
-
MaxResults: [],
|
|
335
|
-
MetricQueries: _json,
|
|
336
|
-
NextToken: [],
|
|
337
|
-
PeriodAlignment: [],
|
|
338
|
-
PeriodInSeconds: [],
|
|
339
|
-
ServiceType: [],
|
|
340
|
-
StartTime: (_) => _.getTime() / 1_000,
|
|
341
|
-
});
|
|
342
|
-
};
|
|
343
|
-
const de_AdditionalMetricsMap = (output, context) => {
|
|
344
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
345
|
-
if (value === null) {
|
|
346
|
-
return acc;
|
|
347
|
-
}
|
|
348
|
-
acc[key] = __limitedParseDouble(value);
|
|
349
|
-
return acc;
|
|
350
|
-
}, {});
|
|
351
|
-
};
|
|
352
|
-
const de_AnalysisReport = (output, context) => {
|
|
353
|
-
return take(output, {
|
|
354
|
-
AnalysisReportId: __expectString,
|
|
355
|
-
CreateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
356
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
357
|
-
Identifier: __expectString,
|
|
358
|
-
Insights: (_) => de_InsightList(_, context),
|
|
359
|
-
ServiceType: __expectString,
|
|
360
|
-
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
361
|
-
Status: __expectString,
|
|
362
|
-
});
|
|
363
|
-
};
|
|
364
|
-
const de_AnalysisReportSummary = (output, context) => {
|
|
365
|
-
return take(output, {
|
|
366
|
-
AnalysisReportId: __expectString,
|
|
367
|
-
CreateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
368
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
369
|
-
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
370
|
-
Status: __expectString,
|
|
371
|
-
Tags: _json,
|
|
372
|
-
});
|
|
373
|
-
};
|
|
374
|
-
const de_AnalysisReportSummaryList = (output, context) => {
|
|
375
|
-
const retVal = (output || [])
|
|
376
|
-
.filter((e) => e != null)
|
|
377
|
-
.map((entry) => {
|
|
378
|
-
return de_AnalysisReportSummary(entry, context);
|
|
379
|
-
});
|
|
380
|
-
return retVal;
|
|
381
|
-
};
|
|
382
|
-
const de_Data = (output, context) => {
|
|
383
|
-
return take(output, {
|
|
384
|
-
PerformanceInsightsMetric: (_) => de_PerformanceInsightsMetric(_, context),
|
|
385
|
-
});
|
|
386
|
-
};
|
|
387
|
-
const de_DataList = (output, context) => {
|
|
388
|
-
const retVal = (output || [])
|
|
389
|
-
.filter((e) => e != null)
|
|
390
|
-
.map((entry) => {
|
|
391
|
-
return de_Data(entry, context);
|
|
392
|
-
});
|
|
393
|
-
return retVal;
|
|
394
|
-
};
|
|
395
|
-
const de_DataPoint = (output, context) => {
|
|
396
|
-
return take(output, {
|
|
397
|
-
Timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
398
|
-
Value: __limitedParseDouble,
|
|
399
|
-
});
|
|
400
|
-
};
|
|
401
|
-
const de_DataPointsList = (output, context) => {
|
|
402
|
-
const retVal = (output || [])
|
|
403
|
-
.filter((e) => e != null)
|
|
404
|
-
.map((entry) => {
|
|
405
|
-
return de_DataPoint(entry, context);
|
|
406
|
-
});
|
|
407
|
-
return retVal;
|
|
408
|
-
};
|
|
409
|
-
const de_DescribeDimensionKeysResponse = (output, context) => {
|
|
410
|
-
return take(output, {
|
|
411
|
-
AlignedEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
412
|
-
AlignedStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
413
|
-
Keys: (_) => de_DimensionKeyDescriptionList(_, context),
|
|
414
|
-
NextToken: __expectString,
|
|
415
|
-
PartitionKeys: _json,
|
|
416
|
-
});
|
|
417
|
-
};
|
|
418
|
-
const de_DimensionKeyDescription = (output, context) => {
|
|
419
|
-
return take(output, {
|
|
420
|
-
AdditionalMetrics: (_) => de_AdditionalMetricsMap(_, context),
|
|
421
|
-
Dimensions: _json,
|
|
422
|
-
Partitions: (_) => de_MetricValuesList(_, context),
|
|
423
|
-
Total: __limitedParseDouble,
|
|
424
|
-
});
|
|
425
|
-
};
|
|
426
|
-
const de_DimensionKeyDescriptionList = (output, context) => {
|
|
427
|
-
const retVal = (output || [])
|
|
428
|
-
.filter((e) => e != null)
|
|
429
|
-
.map((entry) => {
|
|
430
|
-
return de_DimensionKeyDescription(entry, context);
|
|
431
|
-
});
|
|
432
|
-
return retVal;
|
|
433
|
-
};
|
|
434
|
-
const de_GetPerformanceAnalysisReportResponse = (output, context) => {
|
|
435
|
-
return take(output, {
|
|
436
|
-
AnalysisReport: (_) => de_AnalysisReport(_, context),
|
|
437
|
-
});
|
|
438
|
-
};
|
|
439
|
-
const de_GetResourceMetricsResponse = (output, context) => {
|
|
440
|
-
return take(output, {
|
|
441
|
-
AlignedEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
442
|
-
AlignedStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
443
|
-
Identifier: __expectString,
|
|
444
|
-
MetricList: (_) => de_MetricKeyDataPointsList(_, context),
|
|
445
|
-
NextToken: __expectString,
|
|
446
|
-
});
|
|
447
|
-
};
|
|
448
|
-
const de_Insight = (output, context) => {
|
|
449
|
-
return take(output, {
|
|
450
|
-
BaselineData: (_) => de_DataList(_, context),
|
|
451
|
-
Context: __expectString,
|
|
452
|
-
Description: __expectString,
|
|
453
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
454
|
-
InsightData: (_) => de_DataList(_, context),
|
|
455
|
-
InsightId: __expectString,
|
|
456
|
-
InsightType: __expectString,
|
|
457
|
-
Recommendations: _json,
|
|
458
|
-
Severity: __expectString,
|
|
459
|
-
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
460
|
-
SupportingInsights: (_) => de_InsightList(_, context),
|
|
461
|
-
});
|
|
462
|
-
};
|
|
463
|
-
const de_InsightList = (output, context) => {
|
|
464
|
-
const retVal = (output || [])
|
|
465
|
-
.filter((e) => e != null)
|
|
466
|
-
.map((entry) => {
|
|
467
|
-
return de_Insight(entry, context);
|
|
468
|
-
});
|
|
469
|
-
return retVal;
|
|
470
|
-
};
|
|
471
|
-
const de_ListPerformanceAnalysisReportsResponse = (output, context) => {
|
|
472
|
-
return take(output, {
|
|
473
|
-
AnalysisReports: (_) => de_AnalysisReportSummaryList(_, context),
|
|
474
|
-
NextToken: __expectString,
|
|
475
|
-
});
|
|
476
|
-
};
|
|
477
|
-
const de_MetricKeyDataPoints = (output, context) => {
|
|
478
|
-
return take(output, {
|
|
479
|
-
DataPoints: (_) => de_DataPointsList(_, context),
|
|
480
|
-
Key: _json,
|
|
481
|
-
});
|
|
482
|
-
};
|
|
483
|
-
const de_MetricKeyDataPointsList = (output, context) => {
|
|
484
|
-
const retVal = (output || [])
|
|
485
|
-
.filter((e) => e != null)
|
|
486
|
-
.map((entry) => {
|
|
487
|
-
return de_MetricKeyDataPoints(entry, context);
|
|
488
|
-
});
|
|
489
|
-
return retVal;
|
|
490
|
-
};
|
|
491
|
-
const de_MetricValuesList = (output, context) => {
|
|
492
|
-
const retVal = (output || [])
|
|
493
|
-
.filter((e) => e != null)
|
|
494
|
-
.map((entry) => {
|
|
495
|
-
return __limitedParseDouble(entry);
|
|
496
|
-
});
|
|
497
|
-
return retVal;
|
|
498
|
-
};
|
|
499
|
-
const de_PerformanceInsightsMetric = (output, context) => {
|
|
500
|
-
return take(output, {
|
|
501
|
-
Dimensions: _json,
|
|
502
|
-
DisplayName: __expectString,
|
|
503
|
-
Filter: _json,
|
|
504
|
-
Metric: __expectString,
|
|
505
|
-
Value: __limitedParseDouble,
|
|
506
|
-
});
|
|
507
|
-
};
|
|
508
|
-
const deserializeMetadata = (output) => ({
|
|
509
|
-
httpStatusCode: output.statusCode,
|
|
510
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
511
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
512
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
513
|
-
});
|
|
514
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
515
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
516
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
517
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
518
|
-
const contents = {
|
|
519
|
-
protocol,
|
|
520
|
-
hostname,
|
|
521
|
-
port,
|
|
522
|
-
method: "POST",
|
|
523
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
524
|
-
headers,
|
|
525
|
-
};
|
|
526
|
-
if (resolvedHostname !== undefined) {
|
|
527
|
-
contents.hostname = resolvedHostname;
|
|
528
|
-
}
|
|
529
|
-
if (body !== undefined) {
|
|
530
|
-
contents.body = body;
|
|
531
|
-
}
|
|
532
|
-
return new __HttpRequest(contents);
|
|
533
|
-
};
|
|
534
|
-
function sharedHeaders(operation) {
|
|
535
|
-
return {
|
|
536
|
-
"content-type": "application/x-amz-json-1.1",
|
|
537
|
-
"x-amz-target": `PerformanceInsightsv20180227.${operation}`,
|
|
538
|
-
};
|
|
539
|
-
}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { CreatePerformanceAnalysisReportCommandInput, CreatePerformanceAnalysisReportCommandOutput } from "../commands/CreatePerformanceAnalysisReportCommand";
|
|
4
|
-
import { DeletePerformanceAnalysisReportCommandInput, DeletePerformanceAnalysisReportCommandOutput } from "../commands/DeletePerformanceAnalysisReportCommand";
|
|
5
|
-
import { DescribeDimensionKeysCommandInput, DescribeDimensionKeysCommandOutput } from "../commands/DescribeDimensionKeysCommand";
|
|
6
|
-
import { GetDimensionKeyDetailsCommandInput, GetDimensionKeyDetailsCommandOutput } from "../commands/GetDimensionKeyDetailsCommand";
|
|
7
|
-
import { GetPerformanceAnalysisReportCommandInput, GetPerformanceAnalysisReportCommandOutput } from "../commands/GetPerformanceAnalysisReportCommand";
|
|
8
|
-
import { GetResourceMetadataCommandInput, GetResourceMetadataCommandOutput } from "../commands/GetResourceMetadataCommand";
|
|
9
|
-
import { GetResourceMetricsCommandInput, GetResourceMetricsCommandOutput } from "../commands/GetResourceMetricsCommand";
|
|
10
|
-
import { ListAvailableResourceDimensionsCommandInput, ListAvailableResourceDimensionsCommandOutput } from "../commands/ListAvailableResourceDimensionsCommand";
|
|
11
|
-
import { ListAvailableResourceMetricsCommandInput, ListAvailableResourceMetricsCommandOutput } from "../commands/ListAvailableResourceMetricsCommand";
|
|
12
|
-
import { ListPerformanceAnalysisReportsCommandInput, ListPerformanceAnalysisReportsCommandOutput } from "../commands/ListPerformanceAnalysisReportsCommand";
|
|
13
|
-
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
|
|
14
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
15
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
16
|
-
/**
|
|
17
|
-
* serializeAws_json1_1CreatePerformanceAnalysisReportCommand
|
|
18
|
-
*/
|
|
19
|
-
export declare const se_CreatePerformanceAnalysisReportCommand: (input: CreatePerformanceAnalysisReportCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
20
|
-
/**
|
|
21
|
-
* serializeAws_json1_1DeletePerformanceAnalysisReportCommand
|
|
22
|
-
*/
|
|
23
|
-
export declare const se_DeletePerformanceAnalysisReportCommand: (input: DeletePerformanceAnalysisReportCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
24
|
-
/**
|
|
25
|
-
* serializeAws_json1_1DescribeDimensionKeysCommand
|
|
26
|
-
*/
|
|
27
|
-
export declare const se_DescribeDimensionKeysCommand: (input: DescribeDimensionKeysCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
28
|
-
/**
|
|
29
|
-
* serializeAws_json1_1GetDimensionKeyDetailsCommand
|
|
30
|
-
*/
|
|
31
|
-
export declare const se_GetDimensionKeyDetailsCommand: (input: GetDimensionKeyDetailsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
32
|
-
/**
|
|
33
|
-
* serializeAws_json1_1GetPerformanceAnalysisReportCommand
|
|
34
|
-
*/
|
|
35
|
-
export declare const se_GetPerformanceAnalysisReportCommand: (input: GetPerformanceAnalysisReportCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
36
|
-
/**
|
|
37
|
-
* serializeAws_json1_1GetResourceMetadataCommand
|
|
38
|
-
*/
|
|
39
|
-
export declare const se_GetResourceMetadataCommand: (input: GetResourceMetadataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
40
|
-
/**
|
|
41
|
-
* serializeAws_json1_1GetResourceMetricsCommand
|
|
42
|
-
*/
|
|
43
|
-
export declare const se_GetResourceMetricsCommand: (input: GetResourceMetricsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
44
|
-
/**
|
|
45
|
-
* serializeAws_json1_1ListAvailableResourceDimensionsCommand
|
|
46
|
-
*/
|
|
47
|
-
export declare const se_ListAvailableResourceDimensionsCommand: (input: ListAvailableResourceDimensionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
48
|
-
/**
|
|
49
|
-
* serializeAws_json1_1ListAvailableResourceMetricsCommand
|
|
50
|
-
*/
|
|
51
|
-
export declare const se_ListAvailableResourceMetricsCommand: (input: ListAvailableResourceMetricsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
52
|
-
/**
|
|
53
|
-
* serializeAws_json1_1ListPerformanceAnalysisReportsCommand
|
|
54
|
-
*/
|
|
55
|
-
export declare const se_ListPerformanceAnalysisReportsCommand: (input: ListPerformanceAnalysisReportsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
56
|
-
/**
|
|
57
|
-
* serializeAws_json1_1ListTagsForResourceCommand
|
|
58
|
-
*/
|
|
59
|
-
export declare const se_ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
60
|
-
/**
|
|
61
|
-
* serializeAws_json1_1TagResourceCommand
|
|
62
|
-
*/
|
|
63
|
-
export declare const se_TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
64
|
-
/**
|
|
65
|
-
* serializeAws_json1_1UntagResourceCommand
|
|
66
|
-
*/
|
|
67
|
-
export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
68
|
-
/**
|
|
69
|
-
* deserializeAws_json1_1CreatePerformanceAnalysisReportCommand
|
|
70
|
-
*/
|
|
71
|
-
export declare const de_CreatePerformanceAnalysisReportCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreatePerformanceAnalysisReportCommandOutput>;
|
|
72
|
-
/**
|
|
73
|
-
* deserializeAws_json1_1DeletePerformanceAnalysisReportCommand
|
|
74
|
-
*/
|
|
75
|
-
export declare const de_DeletePerformanceAnalysisReportCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeletePerformanceAnalysisReportCommandOutput>;
|
|
76
|
-
/**
|
|
77
|
-
* deserializeAws_json1_1DescribeDimensionKeysCommand
|
|
78
|
-
*/
|
|
79
|
-
export declare const de_DescribeDimensionKeysCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeDimensionKeysCommandOutput>;
|
|
80
|
-
/**
|
|
81
|
-
* deserializeAws_json1_1GetDimensionKeyDetailsCommand
|
|
82
|
-
*/
|
|
83
|
-
export declare const de_GetDimensionKeyDetailsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDimensionKeyDetailsCommandOutput>;
|
|
84
|
-
/**
|
|
85
|
-
* deserializeAws_json1_1GetPerformanceAnalysisReportCommand
|
|
86
|
-
*/
|
|
87
|
-
export declare const de_GetPerformanceAnalysisReportCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPerformanceAnalysisReportCommandOutput>;
|
|
88
|
-
/**
|
|
89
|
-
* deserializeAws_json1_1GetResourceMetadataCommand
|
|
90
|
-
*/
|
|
91
|
-
export declare const de_GetResourceMetadataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetResourceMetadataCommandOutput>;
|
|
92
|
-
/**
|
|
93
|
-
* deserializeAws_json1_1GetResourceMetricsCommand
|
|
94
|
-
*/
|
|
95
|
-
export declare const de_GetResourceMetricsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetResourceMetricsCommandOutput>;
|
|
96
|
-
/**
|
|
97
|
-
* deserializeAws_json1_1ListAvailableResourceDimensionsCommand
|
|
98
|
-
*/
|
|
99
|
-
export declare const de_ListAvailableResourceDimensionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListAvailableResourceDimensionsCommandOutput>;
|
|
100
|
-
/**
|
|
101
|
-
* deserializeAws_json1_1ListAvailableResourceMetricsCommand
|
|
102
|
-
*/
|
|
103
|
-
export declare const de_ListAvailableResourceMetricsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListAvailableResourceMetricsCommandOutput>;
|
|
104
|
-
/**
|
|
105
|
-
* deserializeAws_json1_1ListPerformanceAnalysisReportsCommand
|
|
106
|
-
*/
|
|
107
|
-
export declare const de_ListPerformanceAnalysisReportsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListPerformanceAnalysisReportsCommandOutput>;
|
|
108
|
-
/**
|
|
109
|
-
* deserializeAws_json1_1ListTagsForResourceCommand
|
|
110
|
-
*/
|
|
111
|
-
export declare const de_ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
|
|
112
|
-
/**
|
|
113
|
-
* deserializeAws_json1_1TagResourceCommand
|
|
114
|
-
*/
|
|
115
|
-
export declare const de_TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
|
|
116
|
-
/**
|
|
117
|
-
* deserializeAws_json1_1UntagResourceCommand
|
|
118
|
-
*/
|
|
119
|
-
export declare const de_UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
|