@aws-sdk/client-pi 3.927.0 → 3.929.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.
Files changed (37) hide show
  1. package/dist-cjs/index.js +561 -661
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/PIClient.js +2 -0
  4. package/dist-es/commands/CreatePerformanceAnalysisReportCommand.js +3 -9
  5. package/dist-es/commands/DeletePerformanceAnalysisReportCommand.js +3 -9
  6. package/dist-es/commands/DescribeDimensionKeysCommand.js +3 -9
  7. package/dist-es/commands/GetDimensionKeyDetailsCommand.js +3 -9
  8. package/dist-es/commands/GetPerformanceAnalysisReportCommand.js +3 -10
  9. package/dist-es/commands/GetResourceMetadataCommand.js +3 -9
  10. package/dist-es/commands/GetResourceMetricsCommand.js +3 -9
  11. package/dist-es/commands/ListAvailableResourceDimensionsCommand.js +3 -9
  12. package/dist-es/commands/ListAvailableResourceMetricsCommand.js +3 -9
  13. package/dist-es/commands/ListPerformanceAnalysisReportsCommand.js +3 -9
  14. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  15. package/dist-es/commands/TagResourceCommand.js +3 -9
  16. package/dist-es/commands/UntagResourceCommand.js +3 -9
  17. package/dist-es/models/models_0.js +0 -23
  18. package/dist-es/runtimeConfig.shared.js +7 -0
  19. package/dist-es/schemas/schemas_0.js +537 -0
  20. package/dist-types/PIClient.d.ts +10 -1
  21. package/dist-types/models/models_0.d.ts +0 -16
  22. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  23. package/dist-types/runtimeConfig.d.ts +1 -0
  24. package/dist-types/runtimeConfig.native.d.ts +1 -0
  25. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  26. package/dist-types/schemas/schemas_0.d.ts +94 -0
  27. package/dist-types/ts3.4/PIClient.d.ts +4 -0
  28. package/dist-types/ts3.4/models/models_0.d.ts +0 -10
  29. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  30. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  31. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  32. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  33. package/dist-types/ts3.4/schemas/schemas_0.d.ts +101 -0
  34. package/package.json +5 -5
  35. package/dist-es/protocols/Aws_json1_1.js +0 -539
  36. package/dist-types/protocols/Aws_json1_1.d.ts +0 -119
  37. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -161
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class PIClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,12 +110,12 @@ class PIClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class PIServiceException extends smithyClient.ServiceException {
113
+ let PIServiceException$1 = class PIServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, PIServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
120
  const AcceptLanguage = {
121
121
  EN_US: "EN_US",
@@ -143,7 +143,7 @@ const FineGrainedAction = {
143
143
  GET_DIMENSION_KEY_DETAILS: "GetDimensionKeyDetails",
144
144
  GET_RESOURCE_METRICS: "GetResourceMetrics",
145
145
  };
146
- class InternalServiceError extends PIServiceException {
146
+ let InternalServiceError$1 = class InternalServiceError extends PIServiceException$1 {
147
147
  name = "InternalServiceError";
148
148
  $fault = "server";
149
149
  Message;
@@ -156,8 +156,8 @@ class InternalServiceError extends PIServiceException {
156
156
  Object.setPrototypeOf(this, InternalServiceError.prototype);
157
157
  this.Message = opts.Message;
158
158
  }
159
- }
160
- class InvalidArgumentException extends PIServiceException {
159
+ };
160
+ let InvalidArgumentException$1 = class InvalidArgumentException extends PIServiceException$1 {
161
161
  name = "InvalidArgumentException";
162
162
  $fault = "client";
163
163
  Message;
@@ -170,8 +170,8 @@ class InvalidArgumentException extends PIServiceException {
170
170
  Object.setPrototypeOf(this, InvalidArgumentException.prototype);
171
171
  this.Message = opts.Message;
172
172
  }
173
- }
174
- class NotAuthorizedException extends PIServiceException {
173
+ };
174
+ let NotAuthorizedException$1 = class NotAuthorizedException extends PIServiceException$1 {
175
175
  name = "NotAuthorizedException";
176
176
  $fault = "client";
177
177
  Message;
@@ -184,7 +184,7 @@ class NotAuthorizedException extends PIServiceException {
184
184
  Object.setPrototypeOf(this, NotAuthorizedException.prototype);
185
185
  this.Message = opts.Message;
186
186
  }
187
- }
187
+ };
188
188
  const DetailStatus = {
189
189
  AVAILABLE: "AVAILABLE",
190
190
  PROCESSING: "PROCESSING",
@@ -206,574 +206,538 @@ const PeriodAlignment = {
206
206
  END_TIME: "END_TIME",
207
207
  START_TIME: "START_TIME",
208
208
  };
209
- const RecommendationFilterSensitiveLog = (obj) => ({
210
- ...obj,
211
- ...(obj.RecommendationDescription && { RecommendationDescription: smithyClient.SENSITIVE_STRING }),
212
- });
213
- const InsightFilterSensitiveLog = (obj) => ({
214
- ...obj,
215
- ...(obj.SupportingInsights && {
216
- SupportingInsights: obj.SupportingInsights.map((item) => InsightFilterSensitiveLog(item)),
217
- }),
218
- ...(obj.Description && { Description: smithyClient.SENSITIVE_STRING }),
219
- ...(obj.Recommendations && {
220
- Recommendations: obj.Recommendations.map((item) => RecommendationFilterSensitiveLog(item)),
221
- }),
222
- });
223
- const AnalysisReportFilterSensitiveLog = (obj) => ({
224
- ...obj,
225
- ...(obj.Insights && { Insights: obj.Insights.map((item) => InsightFilterSensitiveLog(item)) }),
226
- });
227
- const GetPerformanceAnalysisReportResponseFilterSensitiveLog = (obj) => ({
228
- ...obj,
229
- ...(obj.AnalysisReport && { AnalysisReport: AnalysisReportFilterSensitiveLog(obj.AnalysisReport) }),
230
- });
231
209
 
232
- const se_CreatePerformanceAnalysisReportCommand = async (input, context) => {
233
- const headers = sharedHeaders("CreatePerformanceAnalysisReport");
234
- let body;
235
- body = JSON.stringify(se_CreatePerformanceAnalysisReportRequest(input));
236
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
237
- };
238
- const se_DeletePerformanceAnalysisReportCommand = async (input, context) => {
239
- const headers = sharedHeaders("DeletePerformanceAnalysisReport");
240
- let body;
241
- body = JSON.stringify(smithyClient._json(input));
242
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
243
- };
244
- const se_DescribeDimensionKeysCommand = async (input, context) => {
245
- const headers = sharedHeaders("DescribeDimensionKeys");
246
- let body;
247
- body = JSON.stringify(se_DescribeDimensionKeysRequest(input));
248
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
249
- };
250
- const se_GetDimensionKeyDetailsCommand = async (input, context) => {
251
- const headers = sharedHeaders("GetDimensionKeyDetails");
252
- let body;
253
- body = JSON.stringify(smithyClient._json(input));
254
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
255
- };
256
- const se_GetPerformanceAnalysisReportCommand = async (input, context) => {
257
- const headers = sharedHeaders("GetPerformanceAnalysisReport");
258
- let body;
259
- body = JSON.stringify(smithyClient._json(input));
260
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
261
- };
262
- const se_GetResourceMetadataCommand = async (input, context) => {
263
- const headers = sharedHeaders("GetResourceMetadata");
264
- let body;
265
- body = JSON.stringify(smithyClient._json(input));
266
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
267
- };
268
- const se_GetResourceMetricsCommand = async (input, context) => {
269
- const headers = sharedHeaders("GetResourceMetrics");
270
- let body;
271
- body = JSON.stringify(se_GetResourceMetricsRequest(input));
272
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
273
- };
274
- const se_ListAvailableResourceDimensionsCommand = async (input, context) => {
275
- const headers = sharedHeaders("ListAvailableResourceDimensions");
276
- let body;
277
- body = JSON.stringify(smithyClient._json(input));
278
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
279
- };
280
- const se_ListAvailableResourceMetricsCommand = async (input, context) => {
281
- const headers = sharedHeaders("ListAvailableResourceMetrics");
282
- let body;
283
- body = JSON.stringify(smithyClient._json(input));
284
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
285
- };
286
- const se_ListPerformanceAnalysisReportsCommand = async (input, context) => {
287
- const headers = sharedHeaders("ListPerformanceAnalysisReports");
288
- let body;
289
- body = JSON.stringify(smithyClient._json(input));
290
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
291
- };
292
- const se_ListTagsForResourceCommand = async (input, context) => {
293
- const headers = sharedHeaders("ListTagsForResource");
294
- let body;
295
- body = JSON.stringify(smithyClient._json(input));
296
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
297
- };
298
- const se_TagResourceCommand = async (input, context) => {
299
- const headers = sharedHeaders("TagResource");
300
- let body;
301
- body = JSON.stringify(smithyClient._json(input));
302
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
303
- };
304
- const se_UntagResourceCommand = async (input, context) => {
305
- const headers = sharedHeaders("UntagResource");
306
- let body;
307
- body = JSON.stringify(smithyClient._json(input));
308
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
309
- };
310
- const de_CreatePerformanceAnalysisReportCommand = async (output, context) => {
311
- if (output.statusCode >= 300) {
312
- return de_CommandError(output, context);
313
- }
314
- const data = await core$1.parseJsonBody(output.body, context);
315
- let contents = {};
316
- contents = smithyClient._json(data);
317
- const response = {
318
- $metadata: deserializeMetadata(output),
319
- ...contents,
320
- };
321
- return response;
322
- };
323
- const de_DeletePerformanceAnalysisReportCommand = async (output, context) => {
324
- if (output.statusCode >= 300) {
325
- return de_CommandError(output, context);
326
- }
327
- const data = await core$1.parseJsonBody(output.body, context);
328
- let contents = {};
329
- contents = smithyClient._json(data);
330
- const response = {
331
- $metadata: deserializeMetadata(output),
332
- ...contents,
333
- };
334
- return response;
335
- };
336
- const de_DescribeDimensionKeysCommand = async (output, context) => {
337
- if (output.statusCode >= 300) {
338
- return de_CommandError(output, context);
339
- }
340
- const data = await core$1.parseJsonBody(output.body, context);
341
- let contents = {};
342
- contents = de_DescribeDimensionKeysResponse(data);
343
- const response = {
344
- $metadata: deserializeMetadata(output),
345
- ...contents,
346
- };
347
- return response;
348
- };
349
- const de_GetDimensionKeyDetailsCommand = async (output, context) => {
350
- if (output.statusCode >= 300) {
351
- return de_CommandError(output, context);
352
- }
353
- const data = await core$1.parseJsonBody(output.body, context);
354
- let contents = {};
355
- contents = smithyClient._json(data);
356
- const response = {
357
- $metadata: deserializeMetadata(output),
358
- ...contents,
359
- };
360
- return response;
361
- };
362
- const de_GetPerformanceAnalysisReportCommand = async (output, context) => {
363
- if (output.statusCode >= 300) {
364
- return de_CommandError(output, context);
365
- }
366
- const data = await core$1.parseJsonBody(output.body, context);
367
- let contents = {};
368
- contents = de_GetPerformanceAnalysisReportResponse(data);
369
- const response = {
370
- $metadata: deserializeMetadata(output),
371
- ...contents,
372
- };
373
- return response;
374
- };
375
- const de_GetResourceMetadataCommand = async (output, context) => {
376
- if (output.statusCode >= 300) {
377
- return de_CommandError(output, context);
378
- }
379
- const data = await core$1.parseJsonBody(output.body, context);
380
- let contents = {};
381
- contents = smithyClient._json(data);
382
- const response = {
383
- $metadata: deserializeMetadata(output),
384
- ...contents,
385
- };
386
- return response;
387
- };
388
- const de_GetResourceMetricsCommand = async (output, context) => {
389
- if (output.statusCode >= 300) {
390
- return de_CommandError(output, context);
391
- }
392
- const data = await core$1.parseJsonBody(output.body, context);
393
- let contents = {};
394
- contents = de_GetResourceMetricsResponse(data);
395
- const response = {
396
- $metadata: deserializeMetadata(output),
397
- ...contents,
398
- };
399
- return response;
400
- };
401
- const de_ListAvailableResourceDimensionsCommand = async (output, context) => {
402
- if (output.statusCode >= 300) {
403
- return de_CommandError(output, context);
404
- }
405
- const data = await core$1.parseJsonBody(output.body, context);
406
- let contents = {};
407
- contents = smithyClient._json(data);
408
- const response = {
409
- $metadata: deserializeMetadata(output),
410
- ...contents,
411
- };
412
- return response;
413
- };
414
- const de_ListAvailableResourceMetricsCommand = async (output, context) => {
415
- if (output.statusCode >= 300) {
416
- return de_CommandError(output, context);
417
- }
418
- const data = await core$1.parseJsonBody(output.body, context);
419
- let contents = {};
420
- contents = smithyClient._json(data);
421
- const response = {
422
- $metadata: deserializeMetadata(output),
423
- ...contents,
424
- };
425
- return response;
426
- };
427
- const de_ListPerformanceAnalysisReportsCommand = async (output, context) => {
428
- if (output.statusCode >= 300) {
429
- return de_CommandError(output, context);
430
- }
431
- const data = await core$1.parseJsonBody(output.body, context);
432
- let contents = {};
433
- contents = de_ListPerformanceAnalysisReportsResponse(data);
434
- const response = {
435
- $metadata: deserializeMetadata(output),
436
- ...contents,
437
- };
438
- return response;
439
- };
440
- const de_ListTagsForResourceCommand = async (output, context) => {
441
- if (output.statusCode >= 300) {
442
- return de_CommandError(output, context);
443
- }
444
- const data = await core$1.parseJsonBody(output.body, context);
445
- let contents = {};
446
- contents = smithyClient._json(data);
447
- const response = {
448
- $metadata: deserializeMetadata(output),
449
- ...contents,
450
- };
451
- return response;
452
- };
453
- const de_TagResourceCommand = async (output, context) => {
454
- if (output.statusCode >= 300) {
455
- return de_CommandError(output, context);
456
- }
457
- const data = await core$1.parseJsonBody(output.body, context);
458
- let contents = {};
459
- contents = smithyClient._json(data);
460
- const response = {
461
- $metadata: deserializeMetadata(output),
462
- ...contents,
463
- };
464
- return response;
465
- };
466
- const de_UntagResourceCommand = async (output, context) => {
467
- if (output.statusCode >= 300) {
468
- return de_CommandError(output, context);
469
- }
470
- const data = await core$1.parseJsonBody(output.body, context);
471
- let contents = {};
472
- contents = smithyClient._json(data);
473
- const response = {
474
- $metadata: deserializeMetadata(output),
475
- ...contents,
476
- };
477
- return response;
478
- };
479
- const de_CommandError = async (output, context) => {
480
- const parsedOutput = {
481
- ...output,
482
- body: await core$1.parseJsonErrorBody(output.body, context),
483
- };
484
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
485
- switch (errorCode) {
486
- case "InternalServiceError":
487
- case "com.amazonaws.pi#InternalServiceError":
488
- throw await de_InternalServiceErrorRes(parsedOutput);
489
- case "InvalidArgumentException":
490
- case "com.amazonaws.pi#InvalidArgumentException":
491
- throw await de_InvalidArgumentExceptionRes(parsedOutput);
492
- case "NotAuthorizedException":
493
- case "com.amazonaws.pi#NotAuthorizedException":
494
- throw await de_NotAuthorizedExceptionRes(parsedOutput);
495
- default:
496
- const parsedBody = parsedOutput.body;
497
- return throwDefaultError({
498
- output,
499
- parsedBody,
500
- errorCode,
501
- });
502
- }
503
- };
504
- const de_InternalServiceErrorRes = async (parsedOutput, context) => {
505
- const body = parsedOutput.body;
506
- const deserialized = smithyClient._json(body);
507
- const exception = new InternalServiceError({
508
- $metadata: deserializeMetadata(parsedOutput),
509
- ...deserialized,
510
- });
511
- return smithyClient.decorateServiceException(exception, body);
512
- };
513
- const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
514
- const body = parsedOutput.body;
515
- const deserialized = smithyClient._json(body);
516
- const exception = new InvalidArgumentException({
517
- $metadata: deserializeMetadata(parsedOutput),
518
- ...deserialized,
519
- });
520
- return smithyClient.decorateServiceException(exception, body);
521
- };
522
- const de_NotAuthorizedExceptionRes = async (parsedOutput, context) => {
523
- const body = parsedOutput.body;
524
- const deserialized = smithyClient._json(body);
525
- const exception = new NotAuthorizedException({
526
- $metadata: deserializeMetadata(parsedOutput),
527
- ...deserialized,
528
- });
529
- return smithyClient.decorateServiceException(exception, body);
530
- };
531
- const se_CreatePerformanceAnalysisReportRequest = (input, context) => {
532
- return smithyClient.take(input, {
533
- EndTime: (_) => _.getTime() / 1_000,
534
- Identifier: [],
535
- ServiceType: [],
536
- StartTime: (_) => _.getTime() / 1_000,
537
- Tags: smithyClient._json,
538
- });
539
- };
540
- const se_DescribeDimensionKeysRequest = (input, context) => {
541
- return smithyClient.take(input, {
542
- AdditionalMetrics: smithyClient._json,
543
- EndTime: (_) => _.getTime() / 1_000,
544
- Filter: smithyClient._json,
545
- GroupBy: smithyClient._json,
546
- Identifier: [],
547
- MaxResults: [],
548
- Metric: [],
549
- NextToken: [],
550
- PartitionBy: smithyClient._json,
551
- PeriodInSeconds: [],
552
- ServiceType: [],
553
- StartTime: (_) => _.getTime() / 1_000,
554
- });
555
- };
556
- const se_GetResourceMetricsRequest = (input, context) => {
557
- return smithyClient.take(input, {
558
- EndTime: (_) => _.getTime() / 1_000,
559
- Identifier: [],
560
- MaxResults: [],
561
- MetricQueries: smithyClient._json,
562
- NextToken: [],
563
- PeriodAlignment: [],
564
- PeriodInSeconds: [],
565
- ServiceType: [],
566
- StartTime: (_) => _.getTime() / 1_000,
567
- });
568
- };
569
- const de_AdditionalMetricsMap = (output, context) => {
570
- return Object.entries(output).reduce((acc, [key, value]) => {
571
- if (value === null) {
572
- return acc;
573
- }
574
- acc[key] = smithyClient.limitedParseDouble(value);
575
- return acc;
576
- }, {});
577
- };
578
- const de_AnalysisReport = (output, context) => {
579
- return smithyClient.take(output, {
580
- AnalysisReportId: smithyClient.expectString,
581
- CreateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
582
- EndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
583
- Identifier: smithyClient.expectString,
584
- Insights: (_) => de_InsightList(_),
585
- ServiceType: smithyClient.expectString,
586
- StartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
587
- Status: smithyClient.expectString,
588
- });
589
- };
590
- const de_AnalysisReportSummary = (output, context) => {
591
- return smithyClient.take(output, {
592
- AnalysisReportId: smithyClient.expectString,
593
- CreateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
594
- EndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
595
- StartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
596
- Status: smithyClient.expectString,
597
- Tags: smithyClient._json,
598
- });
599
- };
600
- const de_AnalysisReportSummaryList = (output, context) => {
601
- const retVal = (output || [])
602
- .filter((e) => e != null)
603
- .map((entry) => {
604
- return de_AnalysisReportSummary(entry);
605
- });
606
- return retVal;
607
- };
608
- const de_Data = (output, context) => {
609
- return smithyClient.take(output, {
610
- PerformanceInsightsMetric: (_) => de_PerformanceInsightsMetric(_),
611
- });
612
- };
613
- const de_DataList = (output, context) => {
614
- const retVal = (output || [])
615
- .filter((e) => e != null)
616
- .map((entry) => {
617
- return de_Data(entry);
618
- });
619
- return retVal;
620
- };
621
- const de_DataPoint = (output, context) => {
622
- return smithyClient.take(output, {
623
- Timestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
624
- Value: smithyClient.limitedParseDouble,
625
- });
626
- };
627
- const de_DataPointsList = (output, context) => {
628
- const retVal = (output || [])
629
- .filter((e) => e != null)
630
- .map((entry) => {
631
- return de_DataPoint(entry);
632
- });
633
- return retVal;
634
- };
635
- const de_DescribeDimensionKeysResponse = (output, context) => {
636
- return smithyClient.take(output, {
637
- AlignedEndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
638
- AlignedStartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
639
- Keys: (_) => de_DimensionKeyDescriptionList(_),
640
- NextToken: smithyClient.expectString,
641
- PartitionKeys: smithyClient._json,
642
- });
643
- };
644
- const de_DimensionKeyDescription = (output, context) => {
645
- return smithyClient.take(output, {
646
- AdditionalMetrics: (_) => de_AdditionalMetricsMap(_),
647
- Dimensions: smithyClient._json,
648
- Partitions: (_) => de_MetricValuesList(_),
649
- Total: smithyClient.limitedParseDouble,
650
- });
651
- };
652
- const de_DimensionKeyDescriptionList = (output, context) => {
653
- const retVal = (output || [])
654
- .filter((e) => e != null)
655
- .map((entry) => {
656
- return de_DimensionKeyDescription(entry);
657
- });
658
- return retVal;
659
- };
660
- const de_GetPerformanceAnalysisReportResponse = (output, context) => {
661
- return smithyClient.take(output, {
662
- AnalysisReport: (_) => de_AnalysisReport(_),
663
- });
664
- };
665
- const de_GetResourceMetricsResponse = (output, context) => {
666
- return smithyClient.take(output, {
667
- AlignedEndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
668
- AlignedStartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
669
- Identifier: smithyClient.expectString,
670
- MetricList: (_) => de_MetricKeyDataPointsList(_),
671
- NextToken: smithyClient.expectString,
672
- });
673
- };
674
- const de_Insight = (output, context) => {
675
- return smithyClient.take(output, {
676
- BaselineData: (_) => de_DataList(_),
677
- Context: smithyClient.expectString,
678
- Description: smithyClient.expectString,
679
- EndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
680
- InsightData: (_) => de_DataList(_),
681
- InsightId: smithyClient.expectString,
682
- InsightType: smithyClient.expectString,
683
- Recommendations: smithyClient._json,
684
- Severity: smithyClient.expectString,
685
- StartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
686
- SupportingInsights: (_) => de_InsightList(_),
687
- });
688
- };
689
- const de_InsightList = (output, context) => {
690
- const retVal = (output || [])
691
- .filter((e) => e != null)
692
- .map((entry) => {
693
- return de_Insight(entry);
694
- });
695
- return retVal;
696
- };
697
- const de_ListPerformanceAnalysisReportsResponse = (output, context) => {
698
- return smithyClient.take(output, {
699
- AnalysisReports: (_) => de_AnalysisReportSummaryList(_),
700
- NextToken: smithyClient.expectString,
701
- });
702
- };
703
- const de_MetricKeyDataPoints = (output, context) => {
704
- return smithyClient.take(output, {
705
- DataPoints: (_) => de_DataPointsList(_),
706
- Key: smithyClient._json,
707
- });
708
- };
709
- const de_MetricKeyDataPointsList = (output, context) => {
710
- const retVal = (output || [])
711
- .filter((e) => e != null)
712
- .map((entry) => {
713
- return de_MetricKeyDataPoints(entry);
714
- });
715
- return retVal;
716
- };
717
- const de_MetricValuesList = (output, context) => {
718
- const retVal = (output || [])
719
- .filter((e) => e != null)
720
- .map((entry) => {
721
- return smithyClient.limitedParseDouble(entry);
722
- });
723
- return retVal;
724
- };
725
- const de_PerformanceInsightsMetric = (output, context) => {
726
- return smithyClient.take(output, {
727
- Dimensions: smithyClient._json,
728
- DisplayName: smithyClient.expectString,
729
- Filter: smithyClient._json,
730
- Metric: smithyClient.expectString,
731
- Value: smithyClient.limitedParseDouble,
732
- });
733
- };
734
- const deserializeMetadata = (output) => ({
735
- httpStatusCode: output.statusCode,
736
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
737
- extendedRequestId: output.headers["x-amz-id-2"],
738
- cfId: output.headers["x-amz-cf-id"],
739
- });
740
- const throwDefaultError = smithyClient.withBaseException(PIServiceException);
741
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
742
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
743
- const contents = {
744
- protocol,
745
- hostname,
746
- port,
747
- method: "POST",
748
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
749
- headers,
750
- };
751
- if (body !== undefined) {
752
- contents.body = body;
753
- }
754
- return new protocolHttp.HttpRequest(contents);
755
- };
756
- function sharedHeaders(operation) {
757
- return {
758
- "content-type": "application/x-amz-json-1.1",
759
- "x-amz-target": `PerformanceInsightsv20180227.${operation}`,
760
- };
761
- }
210
+ const _AA = "AuthorizedActions";
211
+ const _AET = "AlignedEndTime";
212
+ const _AL = "AcceptLanguage";
213
+ const _AM = "AdditionalMetrics";
214
+ const _AR = "AnalysisReport";
215
+ const _ARI = "AnalysisReportId";
216
+ const _ARS = "AnalysisReportSummary";
217
+ const _ARSL = "AnalysisReportSummaryList";
218
+ const _ARn = "AnalysisReports";
219
+ const _AST = "AlignedStartTime";
220
+ const _BD = "BaselineData";
221
+ const _C = "Context";
222
+ const _CPAR = "CreatePerformanceAnalysisReport";
223
+ const _CPARR = "CreatePerformanceAnalysisReportRequest";
224
+ const _CPARRr = "CreatePerformanceAnalysisReportResponse";
225
+ const _CT = "CreateTime";
226
+ const _D = "Data";
227
+ const _DD = "DimensionDetail";
228
+ const _DDK = "DescribeDimensionKeys";
229
+ const _DDKR = "DescribeDimensionKeysRequest";
230
+ const _DDKRe = "DescribeDimensionKeysResponse";
231
+ const _DDL = "DimensionDetailList";
232
+ const _DG = "DimensionGroup";
233
+ const _DGD = "DimensionGroupDetail";
234
+ const _DGDL = "DimensionGroupDetailList";
235
+ const _DKD = "DimensionKeyDescription";
236
+ const _DKDL = "DimensionKeyDescriptionList";
237
+ const _DKDLi = "DimensionKeyDetailList";
238
+ const _DKDi = "DimensionKeyDetail";
239
+ const _DL = "DataList";
240
+ const _DN = "DisplayName";
241
+ const _DP = "DataPoint";
242
+ const _DPAR = "DeletePerformanceAnalysisReport";
243
+ const _DPARR = "DeletePerformanceAnalysisReportRequest";
244
+ const _DPARRe = "DeletePerformanceAnalysisReportResponse";
245
+ const _DPL = "DataPointsList";
246
+ const _DPa = "DataPoints";
247
+ const _De = "Description";
248
+ const _Di = "Dimensions";
249
+ const _Dim = "Dimension";
250
+ const _ET = "EndTime";
251
+ const _F = "Filter";
252
+ const _FM = "FeatureMetadata";
253
+ const _FMM = "FeatureMetadataMap";
254
+ const _Fe = "Features";
255
+ const _G = "Group";
256
+ const _GB = "GroupBy";
257
+ const _GDKD = "GetDimensionKeyDetails";
258
+ const _GDKDR = "GetDimensionKeyDetailsRequest";
259
+ const _GDKDRe = "GetDimensionKeyDetailsResponse";
260
+ const _GI = "GroupIdentifier";
261
+ const _GPAR = "GetPerformanceAnalysisReport";
262
+ const _GPARR = "GetPerformanceAnalysisReportRequest";
263
+ const _GPARRe = "GetPerformanceAnalysisReportResponse";
264
+ const _GRM = "GetResourceMetadata";
265
+ const _GRMR = "GetResourceMetadataRequest";
266
+ const _GRMRe = "GetResourceMetadataResponse";
267
+ const _GRMRet = "GetResourceMetricsRequest";
268
+ const _GRMRete = "GetResourceMetricsResponse";
269
+ const _GRMe = "GetResourceMetrics";
270
+ const _Gr = "Groups";
271
+ const _I = "Identifier";
272
+ const _IAE = "InvalidArgumentException";
273
+ const _ID = "InsightData";
274
+ const _II = "InsightId";
275
+ const _IL = "InsightList";
276
+ const _ISE = "InternalServiceError";
277
+ const _IT = "InsightType";
278
+ const _In = "Insights";
279
+ const _Ins = "Insight";
280
+ const _K = "Keys";
281
+ const _Ke = "Key";
282
+ const _L = "Limit";
283
+ const _LARD = "ListAvailableResourceDimensions";
284
+ const _LARDR = "ListAvailableResourceDimensionsRequest";
285
+ const _LARDRi = "ListAvailableResourceDimensionsResponse";
286
+ const _LARM = "ListAvailableResourceMetrics";
287
+ const _LARMR = "ListAvailableResourceMetricsRequest";
288
+ const _LARMRi = "ListAvailableResourceMetricsResponse";
289
+ const _LPAR = "ListPerformanceAnalysisReports";
290
+ const _LPARR = "ListPerformanceAnalysisReportsRequest";
291
+ const _LPARRi = "ListPerformanceAnalysisReportsResponse";
292
+ const _LT = "ListTags";
293
+ const _LTFR = "ListTagsForResource";
294
+ const _LTFRR = "ListTagsForResourceRequest";
295
+ const _LTFRRi = "ListTagsForResourceResponse";
296
+ const _M = "Metric";
297
+ const _MD = "MetricDimensions";
298
+ const _MDG = "MetricDimensionGroups";
299
+ const _MDL = "MetricDimensionsList";
300
+ const _MKDP = "MetricKeyDataPoints";
301
+ const _MKDPL = "MetricKeyDataPointsList";
302
+ const _ML = "MetricList";
303
+ const _MQ = "MetricQueries";
304
+ const _MQL = "MetricQueryList";
305
+ const _MQe = "MetricQuery";
306
+ const _MR = "MaxResults";
307
+ const _MS = "MarkdownString";
308
+ const _MT = "MetricTypes";
309
+ const _Me = "Message";
310
+ const _Met = "Metrics";
311
+ const _NAE = "NotAuthorizedException";
312
+ const _NT = "NextToken";
313
+ const _P = "Partitions";
314
+ const _PA = "PeriodAlignment";
315
+ const _PB = "PartitionBy";
316
+ const _PIM = "PerformanceInsightsMetric";
317
+ const _PIS = "PeriodInSeconds";
318
+ const _PK = "PartitionKeys";
319
+ const _R = "Recommendations";
320
+ const _RARN = "ResourceARN";
321
+ const _RD = "RequestedDimensions";
322
+ const _RDe = "RecommendationDescription";
323
+ const _RI = "RecommendationId";
324
+ const _RL = "RecommendationList";
325
+ const _RPK = "ResponsePartitionKey";
326
+ const _RPKL = "ResponsePartitionKeyList";
327
+ const _RRM = "ResponseResourceMetric";
328
+ const _RRMK = "ResponseResourceMetricKey";
329
+ const _RRML = "ResponseResourceMetricList";
330
+ const _Re = "Recommendation";
331
+ const _S = "Status";
332
+ const _SI = "SupportingInsights";
333
+ const _ST = "ServiceType";
334
+ const _STt = "StartTime";
335
+ const _Se = "Severity";
336
+ const _T = "Tags";
337
+ const _TF = "TextFormat";
338
+ const _TK = "TagKeys";
339
+ const _TL = "TagList";
340
+ const _TR = "TagResource";
341
+ const _TRR = "TagResourceRequest";
342
+ const _TRRa = "TagResourceResponse";
343
+ const _Ta = "Tag";
344
+ const _Ti = "Timestamp";
345
+ const _To = "Total";
346
+ const _U = "Unit";
347
+ const _UR = "UntagResource";
348
+ const _URR = "UntagResourceRequest";
349
+ const _URRn = "UntagResourceResponse";
350
+ const _V = "Value";
351
+ const _c = "client";
352
+ const _e = "error";
353
+ const _s = "server";
354
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.pi";
355
+ const n0 = "com.amazonaws.pi";
356
+ var MarkdownString = [0, n0, _MS, 8, 0];
357
+ var AnalysisReport = [
358
+ 3,
359
+ n0,
360
+ _AR,
361
+ 0,
362
+ [_ARI, _I, _ST, _CT, _STt, _ET, _S, _In],
363
+ [0, 0, 0, 4, 4, 4, 0, [() => InsightList, 0]],
364
+ ];
365
+ var AnalysisReportSummary = [
366
+ 3,
367
+ n0,
368
+ _ARS,
369
+ 0,
370
+ [_ARI, _CT, _STt, _ET, _S, _T],
371
+ [0, 4, 4, 4, 0, () => TagList],
372
+ ];
373
+ var CreatePerformanceAnalysisReportRequest = [
374
+ 3,
375
+ n0,
376
+ _CPARR,
377
+ 0,
378
+ [_ST, _I, _STt, _ET, _T],
379
+ [0, 0, 4, 4, () => TagList],
380
+ ];
381
+ var CreatePerformanceAnalysisReportResponse = [3, n0, _CPARRr, 0, [_ARI], [0]];
382
+ var Data = [3, n0, _D, 0, [_PIM], [() => PerformanceInsightsMetric]];
383
+ var DataPoint = [3, n0, _DP, 0, [_Ti, _V], [4, 1]];
384
+ var DeletePerformanceAnalysisReportRequest = [
385
+ 3,
386
+ n0,
387
+ _DPARR,
388
+ 0,
389
+ [_ST, _I, _ARI],
390
+ [0, 0, 0],
391
+ ];
392
+ var DeletePerformanceAnalysisReportResponse = [3, n0, _DPARRe, 0, [], []];
393
+ var DescribeDimensionKeysRequest = [
394
+ 3,
395
+ n0,
396
+ _DDKR,
397
+ 0,
398
+ [_ST, _I, _STt, _ET, _M, _PIS, _GB, _AM, _PB, _F, _MR, _NT],
399
+ [0, 0, 4, 4, 0, 1, () => DimensionGroup, 64 | 0, () => DimensionGroup, 128 | 0, 1, 0],
400
+ ];
401
+ var DescribeDimensionKeysResponse = [
402
+ 3,
403
+ n0,
404
+ _DDKRe,
405
+ 0,
406
+ [_AST, _AET, _PK, _K, _NT],
407
+ [4, 4, () => ResponsePartitionKeyList, () => DimensionKeyDescriptionList, 0],
408
+ ];
409
+ var DimensionDetail = [3, n0, _DD, 0, [_I], [0]];
410
+ var DimensionGroup = [3, n0, _DG, 0, [_G, _Di, _L], [0, 64 | 0, 1]];
411
+ var DimensionGroupDetail = [3, n0, _DGD, 0, [_G, _Di], [0, () => DimensionDetailList]];
412
+ var DimensionKeyDescription = [
413
+ 3,
414
+ n0,
415
+ _DKD,
416
+ 0,
417
+ [_Di, _To, _AM, _P],
418
+ [128 | 0, 1, 128 | 1, 64 | 1],
419
+ ];
420
+ var DimensionKeyDetail = [3, n0, _DKDi, 0, [_V, _Dim, _S], [0, 0, 0]];
421
+ var FeatureMetadata = [3, n0, _FM, 0, [_S], [0]];
422
+ var GetDimensionKeyDetailsRequest = [
423
+ 3,
424
+ n0,
425
+ _GDKDR,
426
+ 0,
427
+ [_ST, _I, _G, _GI, _RD],
428
+ [0, 0, 0, 0, 64 | 0],
429
+ ];
430
+ var GetDimensionKeyDetailsResponse = [
431
+ 3,
432
+ n0,
433
+ _GDKDRe,
434
+ 0,
435
+ [_Di],
436
+ [() => DimensionKeyDetailList],
437
+ ];
438
+ var GetPerformanceAnalysisReportRequest = [
439
+ 3,
440
+ n0,
441
+ _GPARR,
442
+ 0,
443
+ [_ST, _I, _ARI, _TF, _AL],
444
+ [0, 0, 0, 0, 0],
445
+ ];
446
+ var GetPerformanceAnalysisReportResponse = [
447
+ 3,
448
+ n0,
449
+ _GPARRe,
450
+ 0,
451
+ [_AR],
452
+ [[() => AnalysisReport, 0]],
453
+ ];
454
+ var GetResourceMetadataRequest = [3, n0, _GRMR, 0, [_ST, _I], [0, 0]];
455
+ var GetResourceMetadataResponse = [
456
+ 3,
457
+ n0,
458
+ _GRMRe,
459
+ 0,
460
+ [_I, _Fe],
461
+ [0, () => FeatureMetadataMap],
462
+ ];
463
+ var GetResourceMetricsRequest = [
464
+ 3,
465
+ n0,
466
+ _GRMRet,
467
+ 0,
468
+ [_ST, _I, _MQ, _STt, _ET, _PIS, _MR, _NT, _PA],
469
+ [0, 0, () => MetricQueryList, 4, 4, 1, 1, 0, 0],
470
+ ];
471
+ var GetResourceMetricsResponse = [
472
+ 3,
473
+ n0,
474
+ _GRMRete,
475
+ 0,
476
+ [_AST, _AET, _I, _ML, _NT],
477
+ [4, 4, 0, () => MetricKeyDataPointsList, 0],
478
+ ];
479
+ var Insight = [
480
+ 3,
481
+ n0,
482
+ _Ins,
483
+ 0,
484
+ [_II, _IT, _C, _STt, _ET, _Se, _SI, _De, _R, _ID, _BD],
485
+ [
486
+ 0,
487
+ 0,
488
+ 0,
489
+ 4,
490
+ 4,
491
+ 0,
492
+ [() => InsightList, 0],
493
+ [() => MarkdownString, 0],
494
+ [() => RecommendationList, 0],
495
+ () => DataList,
496
+ () => DataList,
497
+ ],
498
+ ];
499
+ var InternalServiceError = [
500
+ -3,
501
+ n0,
502
+ _ISE,
503
+ {
504
+ [_e]: _s,
505
+ },
506
+ [_Me],
507
+ [0],
508
+ ];
509
+ schema.TypeRegistry.for(n0).registerError(InternalServiceError, InternalServiceError$1);
510
+ var InvalidArgumentException = [
511
+ -3,
512
+ n0,
513
+ _IAE,
514
+ {
515
+ [_e]: _c,
516
+ },
517
+ [_Me],
518
+ [0],
519
+ ];
520
+ schema.TypeRegistry.for(n0).registerError(InvalidArgumentException, InvalidArgumentException$1);
521
+ var ListAvailableResourceDimensionsRequest = [
522
+ 3,
523
+ n0,
524
+ _LARDR,
525
+ 0,
526
+ [_ST, _I, _Met, _MR, _NT, _AA],
527
+ [0, 0, 64 | 0, 1, 0, 64 | 0],
528
+ ];
529
+ var ListAvailableResourceDimensionsResponse = [
530
+ 3,
531
+ n0,
532
+ _LARDRi,
533
+ 0,
534
+ [_MD, _NT],
535
+ [() => MetricDimensionsList, 0],
536
+ ];
537
+ var ListAvailableResourceMetricsRequest = [
538
+ 3,
539
+ n0,
540
+ _LARMR,
541
+ 0,
542
+ [_ST, _I, _MT, _NT, _MR],
543
+ [0, 0, 64 | 0, 0, 1],
544
+ ];
545
+ var ListAvailableResourceMetricsResponse = [
546
+ 3,
547
+ n0,
548
+ _LARMRi,
549
+ 0,
550
+ [_Met, _NT],
551
+ [() => ResponseResourceMetricList, 0],
552
+ ];
553
+ var ListPerformanceAnalysisReportsRequest = [
554
+ 3,
555
+ n0,
556
+ _LPARR,
557
+ 0,
558
+ [_ST, _I, _NT, _MR, _LT],
559
+ [0, 0, 0, 1, 2],
560
+ ];
561
+ var ListPerformanceAnalysisReportsResponse = [
562
+ 3,
563
+ n0,
564
+ _LPARRi,
565
+ 0,
566
+ [_ARn, _NT],
567
+ [() => AnalysisReportSummaryList, 0],
568
+ ];
569
+ var ListTagsForResourceRequest = [3, n0, _LTFRR, 0, [_ST, _RARN], [0, 0]];
570
+ var ListTagsForResourceResponse = [3, n0, _LTFRRi, 0, [_T], [() => TagList]];
571
+ var MetricDimensionGroups = [
572
+ 3,
573
+ n0,
574
+ _MDG,
575
+ 0,
576
+ [_M, _Gr],
577
+ [0, () => DimensionGroupDetailList],
578
+ ];
579
+ var MetricKeyDataPoints = [
580
+ 3,
581
+ n0,
582
+ _MKDP,
583
+ 0,
584
+ [_Ke, _DPa],
585
+ [() => ResponseResourceMetricKey, () => DataPointsList],
586
+ ];
587
+ var MetricQuery = [3, n0, _MQe, 0, [_M, _GB, _F], [0, () => DimensionGroup, 128 | 0]];
588
+ var NotAuthorizedException = [
589
+ -3,
590
+ n0,
591
+ _NAE,
592
+ {
593
+ [_e]: _c,
594
+ },
595
+ [_Me],
596
+ [0],
597
+ ];
598
+ schema.TypeRegistry.for(n0).registerError(NotAuthorizedException, NotAuthorizedException$1);
599
+ var PerformanceInsightsMetric = [
600
+ 3,
601
+ n0,
602
+ _PIM,
603
+ 0,
604
+ [_M, _DN, _Di, _F, _V],
605
+ [0, 0, 128 | 0, 128 | 0, 1],
606
+ ];
607
+ var Recommendation = [3, n0, _Re, 0, [_RI, _RDe], [0, [() => MarkdownString, 0]]];
608
+ var ResponsePartitionKey = [3, n0, _RPK, 0, [_Di], [128 | 0]];
609
+ var ResponseResourceMetric = [3, n0, _RRM, 0, [_M, _De, _U], [0, 0, 0]];
610
+ var ResponseResourceMetricKey = [3, n0, _RRMK, 0, [_M, _Di], [0, 128 | 0]];
611
+ var Tag = [3, n0, _Ta, 0, [_Ke, _V], [0, 0]];
612
+ var TagResourceRequest = [3, n0, _TRR, 0, [_ST, _RARN, _T], [0, 0, () => TagList]];
613
+ var TagResourceResponse = [3, n0, _TRRa, 0, [], []];
614
+ var UntagResourceRequest = [3, n0, _URR, 0, [_ST, _RARN, _TK], [0, 0, 64 | 0]];
615
+ var UntagResourceResponse = [3, n0, _URRn, 0, [], []];
616
+ var PIServiceException = [-3, _sm, "PIServiceException", 0, [], []];
617
+ schema.TypeRegistry.for(_sm).registerError(PIServiceException, PIServiceException$1);
618
+ var AnalysisReportSummaryList = [1, n0, _ARSL, 0, () => AnalysisReportSummary];
619
+ var DataList = [1, n0, _DL, 0, () => Data];
620
+ var DataPointsList = [1, n0, _DPL, 0, () => DataPoint];
621
+ var DimensionDetailList = [1, n0, _DDL, 0, () => DimensionDetail];
622
+ var DimensionGroupDetailList = [1, n0, _DGDL, 0, () => DimensionGroupDetail];
623
+ var DimensionKeyDescriptionList = [1, n0, _DKDL, 0, () => DimensionKeyDescription];
624
+ var DimensionKeyDetailList = [1, n0, _DKDLi, 0, () => DimensionKeyDetail];
625
+ var InsightList = [1, n0, _IL, 0, [() => Insight, 0]];
626
+ var MetricDimensionsList = [1, n0, _MDL, 0, () => MetricDimensionGroups];
627
+ var MetricKeyDataPointsList = [1, n0, _MKDPL, 0, () => MetricKeyDataPoints];
628
+ var MetricQueryList = [1, n0, _MQL, 0, () => MetricQuery];
629
+ var RecommendationList = [1, n0, _RL, 0, [() => Recommendation, 0]];
630
+ var ResponsePartitionKeyList = [1, n0, _RPKL, 0, () => ResponsePartitionKey];
631
+ var ResponseResourceMetricList = [1, n0, _RRML, 0, () => ResponseResourceMetric];
632
+ var TagList = [1, n0, _TL, 0, () => Tag];
633
+ var FeatureMetadataMap = [2, n0, _FMM, 0, 0, () => FeatureMetadata];
634
+ var CreatePerformanceAnalysisReport = [
635
+ 9,
636
+ n0,
637
+ _CPAR,
638
+ 0,
639
+ () => CreatePerformanceAnalysisReportRequest,
640
+ () => CreatePerformanceAnalysisReportResponse,
641
+ ];
642
+ var DeletePerformanceAnalysisReport = [
643
+ 9,
644
+ n0,
645
+ _DPAR,
646
+ 0,
647
+ () => DeletePerformanceAnalysisReportRequest,
648
+ () => DeletePerformanceAnalysisReportResponse,
649
+ ];
650
+ var DescribeDimensionKeys = [
651
+ 9,
652
+ n0,
653
+ _DDK,
654
+ 0,
655
+ () => DescribeDimensionKeysRequest,
656
+ () => DescribeDimensionKeysResponse,
657
+ ];
658
+ var GetDimensionKeyDetails = [
659
+ 9,
660
+ n0,
661
+ _GDKD,
662
+ 0,
663
+ () => GetDimensionKeyDetailsRequest,
664
+ () => GetDimensionKeyDetailsResponse,
665
+ ];
666
+ var GetPerformanceAnalysisReport = [
667
+ 9,
668
+ n0,
669
+ _GPAR,
670
+ 0,
671
+ () => GetPerformanceAnalysisReportRequest,
672
+ () => GetPerformanceAnalysisReportResponse,
673
+ ];
674
+ var GetResourceMetadata = [
675
+ 9,
676
+ n0,
677
+ _GRM,
678
+ 0,
679
+ () => GetResourceMetadataRequest,
680
+ () => GetResourceMetadataResponse,
681
+ ];
682
+ var GetResourceMetrics = [
683
+ 9,
684
+ n0,
685
+ _GRMe,
686
+ 0,
687
+ () => GetResourceMetricsRequest,
688
+ () => GetResourceMetricsResponse,
689
+ ];
690
+ var ListAvailableResourceDimensions = [
691
+ 9,
692
+ n0,
693
+ _LARD,
694
+ 0,
695
+ () => ListAvailableResourceDimensionsRequest,
696
+ () => ListAvailableResourceDimensionsResponse,
697
+ ];
698
+ var ListAvailableResourceMetrics = [
699
+ 9,
700
+ n0,
701
+ _LARM,
702
+ 0,
703
+ () => ListAvailableResourceMetricsRequest,
704
+ () => ListAvailableResourceMetricsResponse,
705
+ ];
706
+ var ListPerformanceAnalysisReports = [
707
+ 9,
708
+ n0,
709
+ _LPAR,
710
+ 0,
711
+ () => ListPerformanceAnalysisReportsRequest,
712
+ () => ListPerformanceAnalysisReportsResponse,
713
+ ];
714
+ var ListTagsForResource = [
715
+ 9,
716
+ n0,
717
+ _LTFR,
718
+ 0,
719
+ () => ListTagsForResourceRequest,
720
+ () => ListTagsForResourceResponse,
721
+ ];
722
+ var TagResource = [9, n0, _TR, 0, () => TagResourceRequest, () => TagResourceResponse];
723
+ var UntagResource = [
724
+ 9,
725
+ n0,
726
+ _UR,
727
+ 0,
728
+ () => UntagResourceRequest,
729
+ () => UntagResourceResponse,
730
+ ];
762
731
 
763
732
  class CreatePerformanceAnalysisReportCommand extends smithyClient.Command
764
733
  .classBuilder()
765
734
  .ep(commonParams)
766
735
  .m(function (Command, cs, config, o) {
767
- return [
768
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
769
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
770
- ];
736
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
771
737
  })
772
738
  .s("PerformanceInsightsv20180227", "CreatePerformanceAnalysisReport", {})
773
739
  .n("PIClient", "CreatePerformanceAnalysisReportCommand")
774
- .f(void 0, void 0)
775
- .ser(se_CreatePerformanceAnalysisReportCommand)
776
- .de(de_CreatePerformanceAnalysisReportCommand)
740
+ .sc(CreatePerformanceAnalysisReport)
777
741
  .build() {
778
742
  }
779
743
 
@@ -781,16 +745,11 @@ class DeletePerformanceAnalysisReportCommand extends smithyClient.Command
781
745
  .classBuilder()
782
746
  .ep(commonParams)
783
747
  .m(function (Command, cs, config, o) {
784
- return [
785
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
786
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
787
- ];
748
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
788
749
  })
789
750
  .s("PerformanceInsightsv20180227", "DeletePerformanceAnalysisReport", {})
790
751
  .n("PIClient", "DeletePerformanceAnalysisReportCommand")
791
- .f(void 0, void 0)
792
- .ser(se_DeletePerformanceAnalysisReportCommand)
793
- .de(de_DeletePerformanceAnalysisReportCommand)
752
+ .sc(DeletePerformanceAnalysisReport)
794
753
  .build() {
795
754
  }
796
755
 
@@ -798,16 +757,11 @@ class DescribeDimensionKeysCommand extends smithyClient.Command
798
757
  .classBuilder()
799
758
  .ep(commonParams)
800
759
  .m(function (Command, cs, config, o) {
801
- return [
802
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
803
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
804
- ];
760
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
805
761
  })
806
762
  .s("PerformanceInsightsv20180227", "DescribeDimensionKeys", {})
807
763
  .n("PIClient", "DescribeDimensionKeysCommand")
808
- .f(void 0, void 0)
809
- .ser(se_DescribeDimensionKeysCommand)
810
- .de(de_DescribeDimensionKeysCommand)
764
+ .sc(DescribeDimensionKeys)
811
765
  .build() {
812
766
  }
813
767
 
@@ -815,16 +769,11 @@ class GetDimensionKeyDetailsCommand extends smithyClient.Command
815
769
  .classBuilder()
816
770
  .ep(commonParams)
817
771
  .m(function (Command, cs, config, o) {
818
- return [
819
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
820
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
821
- ];
772
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
822
773
  })
823
774
  .s("PerformanceInsightsv20180227", "GetDimensionKeyDetails", {})
824
775
  .n("PIClient", "GetDimensionKeyDetailsCommand")
825
- .f(void 0, void 0)
826
- .ser(se_GetDimensionKeyDetailsCommand)
827
- .de(de_GetDimensionKeyDetailsCommand)
776
+ .sc(GetDimensionKeyDetails)
828
777
  .build() {
829
778
  }
830
779
 
@@ -832,16 +781,11 @@ class GetPerformanceAnalysisReportCommand extends smithyClient.Command
832
781
  .classBuilder()
833
782
  .ep(commonParams)
834
783
  .m(function (Command, cs, config, o) {
835
- return [
836
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
837
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
838
- ];
784
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
839
785
  })
840
786
  .s("PerformanceInsightsv20180227", "GetPerformanceAnalysisReport", {})
841
787
  .n("PIClient", "GetPerformanceAnalysisReportCommand")
842
- .f(void 0, GetPerformanceAnalysisReportResponseFilterSensitiveLog)
843
- .ser(se_GetPerformanceAnalysisReportCommand)
844
- .de(de_GetPerformanceAnalysisReportCommand)
788
+ .sc(GetPerformanceAnalysisReport)
845
789
  .build() {
846
790
  }
847
791
 
@@ -849,16 +793,11 @@ class GetResourceMetadataCommand extends smithyClient.Command
849
793
  .classBuilder()
850
794
  .ep(commonParams)
851
795
  .m(function (Command, cs, config, o) {
852
- return [
853
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
854
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
855
- ];
796
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
856
797
  })
857
798
  .s("PerformanceInsightsv20180227", "GetResourceMetadata", {})
858
799
  .n("PIClient", "GetResourceMetadataCommand")
859
- .f(void 0, void 0)
860
- .ser(se_GetResourceMetadataCommand)
861
- .de(de_GetResourceMetadataCommand)
800
+ .sc(GetResourceMetadata)
862
801
  .build() {
863
802
  }
864
803
 
@@ -866,16 +805,11 @@ class GetResourceMetricsCommand extends smithyClient.Command
866
805
  .classBuilder()
867
806
  .ep(commonParams)
868
807
  .m(function (Command, cs, config, o) {
869
- return [
870
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
871
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
872
- ];
808
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
873
809
  })
874
810
  .s("PerformanceInsightsv20180227", "GetResourceMetrics", {})
875
811
  .n("PIClient", "GetResourceMetricsCommand")
876
- .f(void 0, void 0)
877
- .ser(se_GetResourceMetricsCommand)
878
- .de(de_GetResourceMetricsCommand)
812
+ .sc(GetResourceMetrics)
879
813
  .build() {
880
814
  }
881
815
 
@@ -883,16 +817,11 @@ class ListAvailableResourceDimensionsCommand extends smithyClient.Command
883
817
  .classBuilder()
884
818
  .ep(commonParams)
885
819
  .m(function (Command, cs, config, o) {
886
- return [
887
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
888
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
889
- ];
820
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
890
821
  })
891
822
  .s("PerformanceInsightsv20180227", "ListAvailableResourceDimensions", {})
892
823
  .n("PIClient", "ListAvailableResourceDimensionsCommand")
893
- .f(void 0, void 0)
894
- .ser(se_ListAvailableResourceDimensionsCommand)
895
- .de(de_ListAvailableResourceDimensionsCommand)
824
+ .sc(ListAvailableResourceDimensions)
896
825
  .build() {
897
826
  }
898
827
 
@@ -900,16 +829,11 @@ class ListAvailableResourceMetricsCommand extends smithyClient.Command
900
829
  .classBuilder()
901
830
  .ep(commonParams)
902
831
  .m(function (Command, cs, config, o) {
903
- return [
904
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
905
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
906
- ];
832
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
907
833
  })
908
834
  .s("PerformanceInsightsv20180227", "ListAvailableResourceMetrics", {})
909
835
  .n("PIClient", "ListAvailableResourceMetricsCommand")
910
- .f(void 0, void 0)
911
- .ser(se_ListAvailableResourceMetricsCommand)
912
- .de(de_ListAvailableResourceMetricsCommand)
836
+ .sc(ListAvailableResourceMetrics)
913
837
  .build() {
914
838
  }
915
839
 
@@ -917,16 +841,11 @@ class ListPerformanceAnalysisReportsCommand extends smithyClient.Command
917
841
  .classBuilder()
918
842
  .ep(commonParams)
919
843
  .m(function (Command, cs, config, o) {
920
- return [
921
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
922
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
923
- ];
844
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
924
845
  })
925
846
  .s("PerformanceInsightsv20180227", "ListPerformanceAnalysisReports", {})
926
847
  .n("PIClient", "ListPerformanceAnalysisReportsCommand")
927
- .f(void 0, void 0)
928
- .ser(se_ListPerformanceAnalysisReportsCommand)
929
- .de(de_ListPerformanceAnalysisReportsCommand)
848
+ .sc(ListPerformanceAnalysisReports)
930
849
  .build() {
931
850
  }
932
851
 
@@ -934,16 +853,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
934
853
  .classBuilder()
935
854
  .ep(commonParams)
936
855
  .m(function (Command, cs, config, o) {
937
- return [
938
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
939
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
940
- ];
856
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
941
857
  })
942
858
  .s("PerformanceInsightsv20180227", "ListTagsForResource", {})
943
859
  .n("PIClient", "ListTagsForResourceCommand")
944
- .f(void 0, void 0)
945
- .ser(se_ListTagsForResourceCommand)
946
- .de(de_ListTagsForResourceCommand)
860
+ .sc(ListTagsForResource)
947
861
  .build() {
948
862
  }
949
863
 
@@ -951,16 +865,11 @@ class TagResourceCommand extends smithyClient.Command
951
865
  .classBuilder()
952
866
  .ep(commonParams)
953
867
  .m(function (Command, cs, config, o) {
954
- return [
955
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
956
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
957
- ];
868
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
958
869
  })
959
870
  .s("PerformanceInsightsv20180227", "TagResource", {})
960
871
  .n("PIClient", "TagResourceCommand")
961
- .f(void 0, void 0)
962
- .ser(se_TagResourceCommand)
963
- .de(de_TagResourceCommand)
872
+ .sc(TagResource)
964
873
  .build() {
965
874
  }
966
875
 
@@ -968,16 +877,11 @@ class UntagResourceCommand extends smithyClient.Command
968
877
  .classBuilder()
969
878
  .ep(commonParams)
970
879
  .m(function (Command, cs, config, o) {
971
- return [
972
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
973
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
974
- ];
880
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
975
881
  })
976
882
  .s("PerformanceInsightsv20180227", "UntagResource", {})
977
883
  .n("PIClient", "UntagResourceCommand")
978
- .f(void 0, void 0)
979
- .ser(se_UntagResourceCommand)
980
- .de(de_UntagResourceCommand)
884
+ .sc(UntagResource)
981
885
  .build() {
982
886
  }
983
887
 
@@ -1019,7 +923,6 @@ Object.defineProperty(exports, "__Client", {
1019
923
  get: function () { return smithyClient.Client; }
1020
924
  });
1021
925
  exports.AcceptLanguage = AcceptLanguage;
1022
- exports.AnalysisReportFilterSensitiveLog = AnalysisReportFilterSensitiveLog;
1023
926
  exports.AnalysisStatus = AnalysisStatus;
1024
927
  exports.ContextType = ContextType;
1025
928
  exports.CreatePerformanceAnalysisReportCommand = CreatePerformanceAnalysisReportCommand;
@@ -1030,22 +933,19 @@ exports.FeatureStatus = FeatureStatus;
1030
933
  exports.FineGrainedAction = FineGrainedAction;
1031
934
  exports.GetDimensionKeyDetailsCommand = GetDimensionKeyDetailsCommand;
1032
935
  exports.GetPerformanceAnalysisReportCommand = GetPerformanceAnalysisReportCommand;
1033
- exports.GetPerformanceAnalysisReportResponseFilterSensitiveLog = GetPerformanceAnalysisReportResponseFilterSensitiveLog;
1034
936
  exports.GetResourceMetadataCommand = GetResourceMetadataCommand;
1035
937
  exports.GetResourceMetricsCommand = GetResourceMetricsCommand;
1036
- exports.InsightFilterSensitiveLog = InsightFilterSensitiveLog;
1037
- exports.InternalServiceError = InternalServiceError;
1038
- exports.InvalidArgumentException = InvalidArgumentException;
938
+ exports.InternalServiceError = InternalServiceError$1;
939
+ exports.InvalidArgumentException = InvalidArgumentException$1;
1039
940
  exports.ListAvailableResourceDimensionsCommand = ListAvailableResourceDimensionsCommand;
1040
941
  exports.ListAvailableResourceMetricsCommand = ListAvailableResourceMetricsCommand;
1041
942
  exports.ListPerformanceAnalysisReportsCommand = ListPerformanceAnalysisReportsCommand;
1042
943
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1043
- exports.NotAuthorizedException = NotAuthorizedException;
944
+ exports.NotAuthorizedException = NotAuthorizedException$1;
1044
945
  exports.PI = PI;
1045
946
  exports.PIClient = PIClient;
1046
- exports.PIServiceException = PIServiceException;
947
+ exports.PIServiceException = PIServiceException$1;
1047
948
  exports.PeriodAlignment = PeriodAlignment;
1048
- exports.RecommendationFilterSensitiveLog = RecommendationFilterSensitiveLog;
1049
949
  exports.ServiceType = ServiceType;
1050
950
  exports.Severity = Severity;
1051
951
  exports.TagResourceCommand = TagResourceCommand;