@aws-sdk/client-pi 3.1075.0 → 3.1076.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 CHANGED
@@ -1,21 +1,57 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultPIHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CreatePerformanceAnalysisReport$, DeletePerformanceAnalysisReport$, DescribeDimensionKeys$, GetDimensionKeyDetails$, GetPerformanceAnalysisReport$, GetResourceMetadata$, GetResourceMetrics$, ListAvailableResourceDimensions$, ListAvailableResourceMetrics$, ListPerformanceAnalysisReportRecommendations$, ListPerformanceAnalysisReports$, ListTagsForResource$, TagResource$, UntagResource$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { PIServiceException } = require("./models/PIServiceException");
18
- exports.PIServiceException = PIServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
16
+
17
+ const defaultPIHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
+ return {
19
+ operation: getSmithyContext(context).operation,
20
+ region: await normalizeProvider(config.region)() || (() => {
21
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
22
+ })(),
23
+ };
24
+ };
25
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
26
+ return {
27
+ schemeId: "aws.auth#sigv4",
28
+ signingProperties: {
29
+ name: "pi",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultPIHttpAuthSchemeProvider = (authParameters) => {
41
+ const options = [];
42
+ switch (authParameters.operation) {
43
+ default: {
44
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
45
+ }
46
+ }
47
+ return options;
48
+ };
49
+ const resolveHttpAuthSchemeConfig = (config) => {
50
+ const config_0 = resolveAwsSdkSigV4Config(config);
51
+ return Object.assign(config_0, {
52
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
53
+ });
54
+ };
19
55
 
20
56
  const resolveClientEndpointParameters = (options) => {
21
57
  return Object.assign(options, {
@@ -31,6 +67,696 @@ const commonParams = {
31
67
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
68
  };
33
69
 
70
+ var version = "3.1075.0";
71
+ var packageInfo = {
72
+ version: version};
73
+
74
+ const k = "ref";
75
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
76
+ const _data = {
77
+ conditions: [
78
+ [c, [g]],
79
+ [c, j],
80
+ ["aws.partition", j, d],
81
+ [e, [{ [k]: "UseFIPS" }, b]],
82
+ [e, [{ [k]: "UseDualStack" }, b]],
83
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
85
+ ],
86
+ results: [
87
+ [a],
88
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
89
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
90
+ [g, i],
91
+ ["https://pi-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
92
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
93
+ ["https://pi-fips.{Region}.{PartitionResult#dnsSuffix}", i],
94
+ [a, "FIPS is enabled but this partition does not support FIPS"],
95
+ ["https://pi.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
96
+ [a, "DualStack is enabled but this partition does not support DualStack"],
97
+ ["https://pi.{Region}.{PartitionResult#dnsSuffix}", i],
98
+ [a, "Invalid Configuration: Missing Region"]
99
+ ]
100
+ };
101
+ const root = 2;
102
+ const r = 100_000_000;
103
+ const nodes = new Int32Array([
104
+ -1, 1, -1,
105
+ 0, 12, 3,
106
+ 1, 4, r + 11,
107
+ 2, 5, r + 11,
108
+ 3, 8, 6,
109
+ 4, 7, r + 10,
110
+ 5, r + 8, r + 9,
111
+ 4, 10, 9,
112
+ 6, r + 6, r + 7,
113
+ 5, 11, r + 5,
114
+ 6, r + 4, r + 5,
115
+ 3, r + 1, 13,
116
+ 4, r + 2, r + 3,
117
+ ]);
118
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
119
+
120
+ const cache = new EndpointCache({
121
+ size: 50,
122
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
123
+ });
124
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
125
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
126
+ endpointParams: endpointParams,
127
+ logger: context.logger,
128
+ }));
129
+ };
130
+ customEndpointFunctions.aws = awsEndpointFunctions;
131
+
132
+ class PIServiceException extends ServiceException {
133
+ constructor(options) {
134
+ super(options);
135
+ Object.setPrototypeOf(this, PIServiceException.prototype);
136
+ }
137
+ }
138
+
139
+ class InternalServiceError extends PIServiceException {
140
+ name = "InternalServiceError";
141
+ $fault = "server";
142
+ Message;
143
+ constructor(opts) {
144
+ super({
145
+ name: "InternalServiceError",
146
+ $fault: "server",
147
+ ...opts,
148
+ });
149
+ Object.setPrototypeOf(this, InternalServiceError.prototype);
150
+ this.Message = opts.Message;
151
+ }
152
+ }
153
+ class InvalidArgumentException extends PIServiceException {
154
+ name = "InvalidArgumentException";
155
+ $fault = "client";
156
+ Message;
157
+ constructor(opts) {
158
+ super({
159
+ name: "InvalidArgumentException",
160
+ $fault: "client",
161
+ ...opts,
162
+ });
163
+ Object.setPrototypeOf(this, InvalidArgumentException.prototype);
164
+ this.Message = opts.Message;
165
+ }
166
+ }
167
+ class NotAuthorizedException extends PIServiceException {
168
+ name = "NotAuthorizedException";
169
+ $fault = "client";
170
+ Message;
171
+ constructor(opts) {
172
+ super({
173
+ name: "NotAuthorizedException",
174
+ $fault: "client",
175
+ ...opts,
176
+ });
177
+ Object.setPrototypeOf(this, NotAuthorizedException.prototype);
178
+ this.Message = opts.Message;
179
+ }
180
+ }
181
+
182
+ const _AA = "AuthorizedActions";
183
+ const _AET = "AlignedEndTime";
184
+ const _AL = "AcceptLanguage";
185
+ const _AM = "AdditionalMetrics";
186
+ const _AR = "AnalysisReport";
187
+ const _ARI = "AnalysisReportId";
188
+ const _ARS = "AnalysisReportSummary";
189
+ const _ARSL = "AnalysisReportSummaryList";
190
+ const _ARn = "AnalysisReports";
191
+ const _AST = "AlignedStartTime";
192
+ const _BD = "BaselineData";
193
+ const _C = "Context";
194
+ const _CPAR = "CreatePerformanceAnalysisReport";
195
+ const _CPARR = "CreatePerformanceAnalysisReportRequest";
196
+ const _CPARRr = "CreatePerformanceAnalysisReportResponse";
197
+ const _CT = "CreateTime";
198
+ const _D = "Data";
199
+ const _DD = "DimensionDetail";
200
+ const _DDK = "DescribeDimensionKeys";
201
+ const _DDKR = "DescribeDimensionKeysRequest";
202
+ const _DDKRe = "DescribeDimensionKeysResponse";
203
+ const _DDL = "DimensionDetailList";
204
+ const _DG = "DimensionGroup";
205
+ const _DGD = "DimensionGroupDetail";
206
+ const _DGDL = "DimensionGroupDetailList";
207
+ const _DKD = "DimensionKeyDescription";
208
+ const _DKDL = "DimensionKeyDescriptionList";
209
+ const _DKDLi = "DimensionKeyDetailList";
210
+ const _DKDi = "DimensionKeyDetail";
211
+ const _DL = "DataList";
212
+ const _DN = "DisplayName";
213
+ const _DP = "DataPoint";
214
+ const _DPAR = "DeletePerformanceAnalysisReport";
215
+ const _DPARR = "DeletePerformanceAnalysisReportRequest";
216
+ const _DPARRe = "DeletePerformanceAnalysisReportResponse";
217
+ const _DPL = "DataPointsList";
218
+ const _DPa = "DataPoints";
219
+ const _De = "Description";
220
+ const _Di = "Dimensions";
221
+ const _Dim = "Dimension";
222
+ const _ET = "EndTime";
223
+ const _F = "Filter";
224
+ const _FM = "FeatureMetadata";
225
+ const _FMM = "FeatureMetadataMap";
226
+ const _Fe = "Features";
227
+ const _G = "Group";
228
+ const _GB = "GroupBy";
229
+ const _GDKD = "GetDimensionKeyDetails";
230
+ const _GDKDR = "GetDimensionKeyDetailsRequest";
231
+ const _GDKDRe = "GetDimensionKeyDetailsResponse";
232
+ const _GI = "GroupIdentifier";
233
+ const _GPAR = "GetPerformanceAnalysisReport";
234
+ const _GPARR = "GetPerformanceAnalysisReportRequest";
235
+ const _GPARRe = "GetPerformanceAnalysisReportResponse";
236
+ const _GRM = "GetResourceMetadata";
237
+ const _GRMR = "GetResourceMetadataRequest";
238
+ const _GRMRe = "GetResourceMetadataResponse";
239
+ const _GRMRet = "GetResourceMetricsRequest";
240
+ const _GRMRete = "GetResourceMetricsResponse";
241
+ const _GRMe = "GetResourceMetrics";
242
+ const _Gr = "Groups";
243
+ const _I = "Identifier";
244
+ const _IAE = "InvalidArgumentException";
245
+ const _ID = "InsightData";
246
+ const _II = "InsightId";
247
+ const _IL = "InsightList";
248
+ const _ISE = "InternalServiceError";
249
+ const _IT = "InsightType";
250
+ const _In = "Insights";
251
+ const _Ins = "Insight";
252
+ const _K = "Keys";
253
+ const _Ke = "Key";
254
+ const _L = "Limit";
255
+ const _LARD = "ListAvailableResourceDimensions";
256
+ const _LARDR = "ListAvailableResourceDimensionsRequest";
257
+ const _LARDRi = "ListAvailableResourceDimensionsResponse";
258
+ const _LARM = "ListAvailableResourceMetrics";
259
+ const _LARMR = "ListAvailableResourceMetricsRequest";
260
+ const _LARMRi = "ListAvailableResourceMetricsResponse";
261
+ const _LPAR = "ListPerformanceAnalysisReports";
262
+ const _LPARR = "ListPerformanceAnalysisReportsRequest";
263
+ const _LPARRR = "ListPerformanceAnalysisReportRecommendationsRequest";
264
+ const _LPARRRi = "ListPerformanceAnalysisReportRecommendationsResponse";
265
+ const _LPARRi = "ListPerformanceAnalysisReportsResponse";
266
+ const _LPARRis = "ListPerformanceAnalysisReportRecommendations";
267
+ const _LT = "ListTags";
268
+ const _LTFR = "ListTagsForResource";
269
+ const _LTFRR = "ListTagsForResourceRequest";
270
+ const _LTFRRi = "ListTagsForResourceResponse";
271
+ const _M = "Message";
272
+ const _MD = "MetricDimensions";
273
+ const _MDG = "MetricDimensionGroups";
274
+ const _MDL = "MetricDimensionsList";
275
+ const _MKDP = "MetricKeyDataPoints";
276
+ const _MKDPL = "MetricKeyDataPointsList";
277
+ const _ML = "MetricList";
278
+ const _MQ = "MetricQueries";
279
+ const _MQL = "MetricQueryList";
280
+ const _MQe = "MetricQuery";
281
+ const _MR = "MaxResults";
282
+ const _MS = "MarkdownString";
283
+ const _MT = "MetricTypes";
284
+ const _Me = "Metric";
285
+ const _Met = "Metrics";
286
+ const _NAE = "NotAuthorizedException";
287
+ const _NT = "NextToken";
288
+ const _P = "Partitions";
289
+ const _PA = "PeriodAlignment";
290
+ const _PB = "PartitionBy";
291
+ const _PIM = "PerformanceInsightsMetric";
292
+ const _PIS = "PeriodInSeconds";
293
+ const _PK = "PartitionKeys";
294
+ const _R = "Recommendations";
295
+ const _RARN = "ResourceARN";
296
+ const _RD = "RequestedDimensions";
297
+ const _RDe = "RecommendationDescription";
298
+ const _RDec = "RecommendationDetails";
299
+ const _RI = "RecommendationIds";
300
+ const _RIe = "RecommendationId";
301
+ const _RL = "RecommendationList";
302
+ const _RPK = "ResponsePartitionKey";
303
+ const _RPKL = "ResponsePartitionKeyList";
304
+ const _RRM = "ResponseResourceMetric";
305
+ const _RRMK = "ResponseResourceMetricKey";
306
+ const _RRML = "ResponseResourceMetricList";
307
+ const _Re = "Recommendation";
308
+ const _S = "Status";
309
+ const _SI = "SupportingInsights";
310
+ const _ST = "ServiceType";
311
+ const _STt = "StartTime";
312
+ const _Se = "Severity";
313
+ const _T = "Tags";
314
+ const _TF = "TextFormat";
315
+ const _TK = "TagKeys";
316
+ const _TL = "TagList";
317
+ const _TR = "TagResource";
318
+ const _TRR = "TagResourceRequest";
319
+ const _TRRa = "TagResourceResponse";
320
+ const _Ta = "Tag";
321
+ const _Ti = "Timestamp";
322
+ const _To = "Total";
323
+ const _U = "Unit";
324
+ const _UR = "UntagResource";
325
+ const _URR = "UntagResourceRequest";
326
+ const _URRn = "UntagResourceResponse";
327
+ const _V = "Value";
328
+ const _c = "client";
329
+ const _e = "error";
330
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.pi";
331
+ const _se = "server";
332
+ const n0 = "com.amazonaws.pi";
333
+ const _s_registry = TypeRegistry.for(_s);
334
+ var PIServiceException$ = [-3, _s, "PIServiceException", 0, [], []];
335
+ _s_registry.registerError(PIServiceException$, PIServiceException);
336
+ const n0_registry = TypeRegistry.for(n0);
337
+ var InternalServiceError$ = [-3, n0, _ISE,
338
+ { [_e]: _se },
339
+ [_M],
340
+ [0]
341
+ ];
342
+ n0_registry.registerError(InternalServiceError$, InternalServiceError);
343
+ var InvalidArgumentException$ = [-3, n0, _IAE,
344
+ { [_e]: _c },
345
+ [_M],
346
+ [0]
347
+ ];
348
+ n0_registry.registerError(InvalidArgumentException$, InvalidArgumentException);
349
+ var NotAuthorizedException$ = [-3, n0, _NAE,
350
+ { [_e]: _c },
351
+ [_M],
352
+ [0]
353
+ ];
354
+ n0_registry.registerError(NotAuthorizedException$, NotAuthorizedException);
355
+ const errorTypeRegistries = [
356
+ _s_registry,
357
+ n0_registry,
358
+ ];
359
+ var MarkdownString = [0, n0, _MS, 8, 0];
360
+ var AnalysisReport$ = [3, n0, _AR,
361
+ 0,
362
+ [_ARI, _I, _ST, _CT, _STt, _ET, _S, _In],
363
+ [0, 0, 0, 4, 4, 4, 0, [() => InsightList, 0]], 1
364
+ ];
365
+ var AnalysisReportSummary$ = [3, n0, _ARS,
366
+ 0,
367
+ [_ARI, _CT, _STt, _ET, _S, _T],
368
+ [0, 4, 4, 4, 0, () => TagList]
369
+ ];
370
+ var CreatePerformanceAnalysisReportRequest$ = [3, n0, _CPARR,
371
+ 0,
372
+ [_ST, _I, _STt, _ET, _T],
373
+ [0, 0, 4, 4, () => TagList], 3
374
+ ];
375
+ var CreatePerformanceAnalysisReportResponse$ = [3, n0, _CPARRr,
376
+ 0,
377
+ [_ARI],
378
+ [0]
379
+ ];
380
+ var Data$ = [3, n0, _D,
381
+ 0,
382
+ [_PIM],
383
+ [() => PerformanceInsightsMetric$]
384
+ ];
385
+ var DataPoint$ = [3, n0, _DP,
386
+ 0,
387
+ [_Ti, _V],
388
+ [4, 1], 2
389
+ ];
390
+ var DeletePerformanceAnalysisReportRequest$ = [3, n0, _DPARR,
391
+ 0,
392
+ [_ST, _I, _ARI],
393
+ [0, 0, 0], 3
394
+ ];
395
+ var DeletePerformanceAnalysisReportResponse$ = [3, n0, _DPARRe,
396
+ 0,
397
+ [],
398
+ []
399
+ ];
400
+ var DescribeDimensionKeysRequest$ = [3, n0, _DDKR,
401
+ 0,
402
+ [_ST, _I, _STt, _ET, _Me, _GB, _PIS, _AM, _PB, _F, _MR, _NT],
403
+ [0, 0, 4, 4, 0, () => DimensionGroup$, 1, 64 | 0, () => DimensionGroup$, 128 | 0, 1, 0], 6
404
+ ];
405
+ var DescribeDimensionKeysResponse$ = [3, n0, _DDKRe,
406
+ 0,
407
+ [_AST, _AET, _PK, _K, _NT],
408
+ [4, 4, () => ResponsePartitionKeyList, () => DimensionKeyDescriptionList, 0]
409
+ ];
410
+ var DimensionDetail$ = [3, n0, _DD,
411
+ 0,
412
+ [_I],
413
+ [0]
414
+ ];
415
+ var DimensionGroup$ = [3, n0, _DG,
416
+ 0,
417
+ [_G, _Di, _L],
418
+ [0, 64 | 0, 1], 1
419
+ ];
420
+ var DimensionGroupDetail$ = [3, n0, _DGD,
421
+ 0,
422
+ [_G, _Di],
423
+ [0, () => DimensionDetailList]
424
+ ];
425
+ var DimensionKeyDescription$ = [3, n0, _DKD,
426
+ 0,
427
+ [_Di, _To, _AM, _P],
428
+ [128 | 0, 1, 128 | 1, 64 | 1]
429
+ ];
430
+ var DimensionKeyDetail$ = [3, n0, _DKDi,
431
+ 0,
432
+ [_V, _Dim, _S],
433
+ [0, 0, 0]
434
+ ];
435
+ var FeatureMetadata$ = [3, n0, _FM,
436
+ 0,
437
+ [_S],
438
+ [0]
439
+ ];
440
+ var GetDimensionKeyDetailsRequest$ = [3, n0, _GDKDR,
441
+ 0,
442
+ [_ST, _I, _G, _GI, _RD],
443
+ [0, 0, 0, 0, 64 | 0], 4
444
+ ];
445
+ var GetDimensionKeyDetailsResponse$ = [3, n0, _GDKDRe,
446
+ 0,
447
+ [_Di],
448
+ [() => DimensionKeyDetailList]
449
+ ];
450
+ var GetPerformanceAnalysisReportRequest$ = [3, n0, _GPARR,
451
+ 0,
452
+ [_ST, _I, _ARI, _TF, _AL],
453
+ [0, 0, 0, 0, 0], 3
454
+ ];
455
+ var GetPerformanceAnalysisReportResponse$ = [3, n0, _GPARRe,
456
+ 0,
457
+ [_AR],
458
+ [[() => AnalysisReport$, 0]]
459
+ ];
460
+ var GetResourceMetadataRequest$ = [3, n0, _GRMR,
461
+ 0,
462
+ [_ST, _I],
463
+ [0, 0], 2
464
+ ];
465
+ var GetResourceMetadataResponse$ = [3, n0, _GRMRe,
466
+ 0,
467
+ [_I, _Fe],
468
+ [0, () => FeatureMetadataMap]
469
+ ];
470
+ var GetResourceMetricsRequest$ = [3, n0, _GRMRet,
471
+ 0,
472
+ [_ST, _I, _MQ, _STt, _ET, _PIS, _MR, _NT, _PA],
473
+ [0, 0, () => MetricQueryList, 4, 4, 1, 1, 0, 0], 5
474
+ ];
475
+ var GetResourceMetricsResponse$ = [3, n0, _GRMRete,
476
+ 0,
477
+ [_AST, _AET, _I, _ML, _NT],
478
+ [4, 4, 0, () => MetricKeyDataPointsList, 0]
479
+ ];
480
+ var Insight$ = [3, n0, _Ins,
481
+ 0,
482
+ [_II, _IT, _C, _STt, _ET, _Se, _SI, _De, _R, _ID, _BD],
483
+ [0, 0, 0, 4, 4, 0, [() => InsightList, 0], [() => MarkdownString, 0], [() => RecommendationList, 0], () => DataList, () => DataList], 1
484
+ ];
485
+ var ListAvailableResourceDimensionsRequest$ = [3, n0, _LARDR,
486
+ 0,
487
+ [_ST, _I, _Met, _MR, _NT, _AA],
488
+ [0, 0, 64 | 0, 1, 0, 64 | 0], 3
489
+ ];
490
+ var ListAvailableResourceDimensionsResponse$ = [3, n0, _LARDRi,
491
+ 0,
492
+ [_MD, _NT],
493
+ [() => MetricDimensionsList, 0]
494
+ ];
495
+ var ListAvailableResourceMetricsRequest$ = [3, n0, _LARMR,
496
+ 0,
497
+ [_ST, _I, _MT, _NT, _MR],
498
+ [0, 0, 64 | 0, 0, 1], 3
499
+ ];
500
+ var ListAvailableResourceMetricsResponse$ = [3, n0, _LARMRi,
501
+ 0,
502
+ [_Met, _NT],
503
+ [() => ResponseResourceMetricList, 0]
504
+ ];
505
+ var ListPerformanceAnalysisReportRecommendationsRequest$ = [3, n0, _LPARRR,
506
+ 0,
507
+ [_ST, _I, _ARI, _RI, _MR, _NT],
508
+ [0, 0, 0, 64 | 0, 1, 0], 3
509
+ ];
510
+ var ListPerformanceAnalysisReportRecommendationsResponse$ = [3, n0, _LPARRRi,
511
+ 0,
512
+ [_R, _NT],
513
+ [[() => RecommendationList, 0], 0]
514
+ ];
515
+ var ListPerformanceAnalysisReportsRequest$ = [3, n0, _LPARR,
516
+ 0,
517
+ [_ST, _I, _NT, _MR, _LT],
518
+ [0, 0, 0, 1, 2], 2
519
+ ];
520
+ var ListPerformanceAnalysisReportsResponse$ = [3, n0, _LPARRi,
521
+ 0,
522
+ [_ARn, _NT],
523
+ [() => AnalysisReportSummaryList, 0]
524
+ ];
525
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
526
+ 0,
527
+ [_ST, _RARN],
528
+ [0, 0], 2
529
+ ];
530
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
531
+ 0,
532
+ [_T],
533
+ [() => TagList]
534
+ ];
535
+ var MetricDimensionGroups$ = [3, n0, _MDG,
536
+ 0,
537
+ [_Me, _Gr],
538
+ [0, () => DimensionGroupDetailList]
539
+ ];
540
+ var MetricKeyDataPoints$ = [3, n0, _MKDP,
541
+ 0,
542
+ [_Ke, _DPa],
543
+ [() => ResponseResourceMetricKey$, () => DataPointsList]
544
+ ];
545
+ var MetricQuery$ = [3, n0, _MQe,
546
+ 0,
547
+ [_Me, _GB, _F],
548
+ [0, () => DimensionGroup$, 128 | 0], 1
549
+ ];
550
+ var PerformanceInsightsMetric$ = [3, n0, _PIM,
551
+ 0,
552
+ [_Me, _DN, _Di, _F, _V],
553
+ [0, 0, 128 | 0, 128 | 0, 1]
554
+ ];
555
+ var Recommendation$ = [3, n0, _Re,
556
+ 0,
557
+ [_RIe, _RDe, _RDec],
558
+ [0, [() => MarkdownString, 0], [() => MarkdownString, 0]]
559
+ ];
560
+ var ResponsePartitionKey$ = [3, n0, _RPK,
561
+ 0,
562
+ [_Di],
563
+ [128 | 0], 1
564
+ ];
565
+ var ResponseResourceMetric$ = [3, n0, _RRM,
566
+ 0,
567
+ [_Me, _De, _U],
568
+ [0, 0, 0]
569
+ ];
570
+ var ResponseResourceMetricKey$ = [3, n0, _RRMK,
571
+ 0,
572
+ [_Me, _Di],
573
+ [0, 128 | 0], 1
574
+ ];
575
+ var Tag$ = [3, n0, _Ta,
576
+ 0,
577
+ [_Ke, _V],
578
+ [0, 0], 2
579
+ ];
580
+ var TagResourceRequest$ = [3, n0, _TRR,
581
+ 0,
582
+ [_ST, _RARN, _T],
583
+ [0, 0, () => TagList], 3
584
+ ];
585
+ var TagResourceResponse$ = [3, n0, _TRRa,
586
+ 0,
587
+ [],
588
+ []
589
+ ];
590
+ var UntagResourceRequest$ = [3, n0, _URR,
591
+ 0,
592
+ [_ST, _RARN, _TK],
593
+ [0, 0, 64 | 0], 3
594
+ ];
595
+ var UntagResourceResponse$ = [3, n0, _URRn,
596
+ 0,
597
+ [],
598
+ []
599
+ ];
600
+ var AnalysisReportSummaryList = [1, n0, _ARSL,
601
+ 0, () => AnalysisReportSummary$
602
+ ];
603
+ var DataList = [1, n0, _DL,
604
+ 0, () => Data$
605
+ ];
606
+ var DataPointsList = [1, n0, _DPL,
607
+ 0, () => DataPoint$
608
+ ];
609
+ var DimensionDetailList = [1, n0, _DDL,
610
+ 0, () => DimensionDetail$
611
+ ];
612
+ var DimensionGroupDetailList = [1, n0, _DGDL,
613
+ 0, () => DimensionGroupDetail$
614
+ ];
615
+ var DimensionKeyDescriptionList = [1, n0, _DKDL,
616
+ 0, () => DimensionKeyDescription$
617
+ ];
618
+ var DimensionKeyDetailList = [1, n0, _DKDLi,
619
+ 0, () => DimensionKeyDetail$
620
+ ];
621
+ var InsightList = [1, n0, _IL,
622
+ 0, [() => Insight$,
623
+ 0]
624
+ ];
625
+ var MetricDimensionsList = [1, n0, _MDL,
626
+ 0, () => MetricDimensionGroups$
627
+ ];
628
+ var MetricKeyDataPointsList = [1, n0, _MKDPL,
629
+ 0, () => MetricKeyDataPoints$
630
+ ];
631
+ var MetricQueryList = [1, n0, _MQL,
632
+ 0, () => MetricQuery$
633
+ ];
634
+ var RecommendationList = [1, n0, _RL,
635
+ 0, [() => Recommendation$,
636
+ 0]
637
+ ];
638
+ var ResponsePartitionKeyList = [1, n0, _RPKL,
639
+ 0, () => ResponsePartitionKey$
640
+ ];
641
+ var ResponseResourceMetricList = [1, n0, _RRML,
642
+ 0, () => ResponseResourceMetric$
643
+ ];
644
+ var TagList = [1, n0, _TL,
645
+ 0, () => Tag$
646
+ ];
647
+ var FeatureMetadataMap = [2, n0, _FMM,
648
+ 0, 0, () => FeatureMetadata$
649
+ ];
650
+ var CreatePerformanceAnalysisReport$ = [9, n0, _CPAR,
651
+ 0, () => CreatePerformanceAnalysisReportRequest$, () => CreatePerformanceAnalysisReportResponse$
652
+ ];
653
+ var DeletePerformanceAnalysisReport$ = [9, n0, _DPAR,
654
+ 0, () => DeletePerformanceAnalysisReportRequest$, () => DeletePerformanceAnalysisReportResponse$
655
+ ];
656
+ var DescribeDimensionKeys$ = [9, n0, _DDK,
657
+ 0, () => DescribeDimensionKeysRequest$, () => DescribeDimensionKeysResponse$
658
+ ];
659
+ var GetDimensionKeyDetails$ = [9, n0, _GDKD,
660
+ 0, () => GetDimensionKeyDetailsRequest$, () => GetDimensionKeyDetailsResponse$
661
+ ];
662
+ var GetPerformanceAnalysisReport$ = [9, n0, _GPAR,
663
+ 0, () => GetPerformanceAnalysisReportRequest$, () => GetPerformanceAnalysisReportResponse$
664
+ ];
665
+ var GetResourceMetadata$ = [9, n0, _GRM,
666
+ 0, () => GetResourceMetadataRequest$, () => GetResourceMetadataResponse$
667
+ ];
668
+ var GetResourceMetrics$ = [9, n0, _GRMe,
669
+ 0, () => GetResourceMetricsRequest$, () => GetResourceMetricsResponse$
670
+ ];
671
+ var ListAvailableResourceDimensions$ = [9, n0, _LARD,
672
+ 0, () => ListAvailableResourceDimensionsRequest$, () => ListAvailableResourceDimensionsResponse$
673
+ ];
674
+ var ListAvailableResourceMetrics$ = [9, n0, _LARM,
675
+ 0, () => ListAvailableResourceMetricsRequest$, () => ListAvailableResourceMetricsResponse$
676
+ ];
677
+ var ListPerformanceAnalysisReportRecommendations$ = [9, n0, _LPARRis,
678
+ 0, () => ListPerformanceAnalysisReportRecommendationsRequest$, () => ListPerformanceAnalysisReportRecommendationsResponse$
679
+ ];
680
+ var ListPerformanceAnalysisReports$ = [9, n0, _LPAR,
681
+ 0, () => ListPerformanceAnalysisReportsRequest$, () => ListPerformanceAnalysisReportsResponse$
682
+ ];
683
+ var ListTagsForResource$ = [9, n0, _LTFR,
684
+ 0, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
685
+ ];
686
+ var TagResource$ = [9, n0, _TR,
687
+ 0, () => TagResourceRequest$, () => TagResourceResponse$
688
+ ];
689
+ var UntagResource$ = [9, n0, _UR,
690
+ 0, () => UntagResourceRequest$, () => UntagResourceResponse$
691
+ ];
692
+
693
+ const getRuntimeConfig$1 = (config) => {
694
+ return {
695
+ apiVersion: "2018-02-27",
696
+ base64Decoder: config?.base64Decoder ?? fromBase64,
697
+ base64Encoder: config?.base64Encoder ?? toBase64,
698
+ disableHostPrefix: config?.disableHostPrefix ?? false,
699
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
700
+ extensions: config?.extensions ?? [],
701
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultPIHttpAuthSchemeProvider,
702
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
703
+ {
704
+ schemeId: "aws.auth#sigv4",
705
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
706
+ signer: new AwsSdkSigV4Signer(),
707
+ },
708
+ ],
709
+ logger: config?.logger ?? new NoOpLogger(),
710
+ protocol: config?.protocol ?? AwsJson1_1Protocol,
711
+ protocolSettings: config?.protocolSettings ?? {
712
+ defaultNamespace: "com.amazonaws.pi",
713
+ errorTypeRegistries,
714
+ xmlNamespace: "http://pi.amazonaws.com/doc/2018-02-27/",
715
+ version: "2018-02-27",
716
+ serviceTarget: "PerformanceInsightsv20180227",
717
+ },
718
+ serviceId: config?.serviceId ?? "PI",
719
+ urlParser: config?.urlParser ?? parseUrl,
720
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
721
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
722
+ };
723
+ };
724
+
725
+ const getRuntimeConfig = (config) => {
726
+ emitWarningIfUnsupportedVersion(process.version);
727
+ const defaultsMode = resolveDefaultsModeConfig(config);
728
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
729
+ const clientSharedValues = getRuntimeConfig$1(config);
730
+ emitWarningIfUnsupportedVersion$1(process.version);
731
+ const loaderConfig = {
732
+ profile: config?.profile,
733
+ logger: clientSharedValues.logger,
734
+ };
735
+ return {
736
+ ...clientSharedValues,
737
+ ...config,
738
+ runtime: "node",
739
+ defaultsMode,
740
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
741
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
742
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
743
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
744
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
745
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
746
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
747
+ retryMode: config?.retryMode ??
748
+ loadConfig({
749
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
750
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
751
+ }, config),
752
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
753
+ streamCollector: config?.streamCollector ?? streamCollector,
754
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
755
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
756
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
757
+ };
758
+ };
759
+
34
760
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
761
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
762
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -368,31 +1094,102 @@ const PeriodAlignment = {
368
1094
  };
369
1095
 
370
1096
  exports.AcceptLanguage = AcceptLanguage;
1097
+ exports.AnalysisReport$ = AnalysisReport$;
1098
+ exports.AnalysisReportSummary$ = AnalysisReportSummary$;
371
1099
  exports.AnalysisStatus = AnalysisStatus;
372
1100
  exports.ContextType = ContextType;
1101
+ exports.CreatePerformanceAnalysisReport$ = CreatePerformanceAnalysisReport$;
373
1102
  exports.CreatePerformanceAnalysisReportCommand = CreatePerformanceAnalysisReportCommand;
1103
+ exports.CreatePerformanceAnalysisReportRequest$ = CreatePerformanceAnalysisReportRequest$;
1104
+ exports.CreatePerformanceAnalysisReportResponse$ = CreatePerformanceAnalysisReportResponse$;
1105
+ exports.Data$ = Data$;
1106
+ exports.DataPoint$ = DataPoint$;
1107
+ exports.DeletePerformanceAnalysisReport$ = DeletePerformanceAnalysisReport$;
374
1108
  exports.DeletePerformanceAnalysisReportCommand = DeletePerformanceAnalysisReportCommand;
1109
+ exports.DeletePerformanceAnalysisReportRequest$ = DeletePerformanceAnalysisReportRequest$;
1110
+ exports.DeletePerformanceAnalysisReportResponse$ = DeletePerformanceAnalysisReportResponse$;
1111
+ exports.DescribeDimensionKeys$ = DescribeDimensionKeys$;
375
1112
  exports.DescribeDimensionKeysCommand = DescribeDimensionKeysCommand;
1113
+ exports.DescribeDimensionKeysRequest$ = DescribeDimensionKeysRequest$;
1114
+ exports.DescribeDimensionKeysResponse$ = DescribeDimensionKeysResponse$;
376
1115
  exports.DetailStatus = DetailStatus;
1116
+ exports.DimensionDetail$ = DimensionDetail$;
1117
+ exports.DimensionGroup$ = DimensionGroup$;
1118
+ exports.DimensionGroupDetail$ = DimensionGroupDetail$;
1119
+ exports.DimensionKeyDescription$ = DimensionKeyDescription$;
1120
+ exports.DimensionKeyDetail$ = DimensionKeyDetail$;
1121
+ exports.FeatureMetadata$ = FeatureMetadata$;
377
1122
  exports.FeatureStatus = FeatureStatus;
378
1123
  exports.FineGrainedAction = FineGrainedAction;
1124
+ exports.GetDimensionKeyDetails$ = GetDimensionKeyDetails$;
379
1125
  exports.GetDimensionKeyDetailsCommand = GetDimensionKeyDetailsCommand;
1126
+ exports.GetDimensionKeyDetailsRequest$ = GetDimensionKeyDetailsRequest$;
1127
+ exports.GetDimensionKeyDetailsResponse$ = GetDimensionKeyDetailsResponse$;
1128
+ exports.GetPerformanceAnalysisReport$ = GetPerformanceAnalysisReport$;
380
1129
  exports.GetPerformanceAnalysisReportCommand = GetPerformanceAnalysisReportCommand;
1130
+ exports.GetPerformanceAnalysisReportRequest$ = GetPerformanceAnalysisReportRequest$;
1131
+ exports.GetPerformanceAnalysisReportResponse$ = GetPerformanceAnalysisReportResponse$;
1132
+ exports.GetResourceMetadata$ = GetResourceMetadata$;
381
1133
  exports.GetResourceMetadataCommand = GetResourceMetadataCommand;
1134
+ exports.GetResourceMetadataRequest$ = GetResourceMetadataRequest$;
1135
+ exports.GetResourceMetadataResponse$ = GetResourceMetadataResponse$;
1136
+ exports.GetResourceMetrics$ = GetResourceMetrics$;
382
1137
  exports.GetResourceMetricsCommand = GetResourceMetricsCommand;
1138
+ exports.GetResourceMetricsRequest$ = GetResourceMetricsRequest$;
1139
+ exports.GetResourceMetricsResponse$ = GetResourceMetricsResponse$;
1140
+ exports.Insight$ = Insight$;
1141
+ exports.InternalServiceError = InternalServiceError;
1142
+ exports.InternalServiceError$ = InternalServiceError$;
1143
+ exports.InvalidArgumentException = InvalidArgumentException;
1144
+ exports.InvalidArgumentException$ = InvalidArgumentException$;
1145
+ exports.ListAvailableResourceDimensions$ = ListAvailableResourceDimensions$;
383
1146
  exports.ListAvailableResourceDimensionsCommand = ListAvailableResourceDimensionsCommand;
1147
+ exports.ListAvailableResourceDimensionsRequest$ = ListAvailableResourceDimensionsRequest$;
1148
+ exports.ListAvailableResourceDimensionsResponse$ = ListAvailableResourceDimensionsResponse$;
1149
+ exports.ListAvailableResourceMetrics$ = ListAvailableResourceMetrics$;
384
1150
  exports.ListAvailableResourceMetricsCommand = ListAvailableResourceMetricsCommand;
1151
+ exports.ListAvailableResourceMetricsRequest$ = ListAvailableResourceMetricsRequest$;
1152
+ exports.ListAvailableResourceMetricsResponse$ = ListAvailableResourceMetricsResponse$;
1153
+ exports.ListPerformanceAnalysisReportRecommendations$ = ListPerformanceAnalysisReportRecommendations$;
385
1154
  exports.ListPerformanceAnalysisReportRecommendationsCommand = ListPerformanceAnalysisReportRecommendationsCommand;
1155
+ exports.ListPerformanceAnalysisReportRecommendationsRequest$ = ListPerformanceAnalysisReportRecommendationsRequest$;
1156
+ exports.ListPerformanceAnalysisReportRecommendationsResponse$ = ListPerformanceAnalysisReportRecommendationsResponse$;
1157
+ exports.ListPerformanceAnalysisReports$ = ListPerformanceAnalysisReports$;
386
1158
  exports.ListPerformanceAnalysisReportsCommand = ListPerformanceAnalysisReportsCommand;
1159
+ exports.ListPerformanceAnalysisReportsRequest$ = ListPerformanceAnalysisReportsRequest$;
1160
+ exports.ListPerformanceAnalysisReportsResponse$ = ListPerformanceAnalysisReportsResponse$;
1161
+ exports.ListTagsForResource$ = ListTagsForResource$;
387
1162
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1163
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
1164
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
1165
+ exports.MetricDimensionGroups$ = MetricDimensionGroups$;
1166
+ exports.MetricKeyDataPoints$ = MetricKeyDataPoints$;
1167
+ exports.MetricQuery$ = MetricQuery$;
1168
+ exports.NotAuthorizedException = NotAuthorizedException;
1169
+ exports.NotAuthorizedException$ = NotAuthorizedException$;
388
1170
  exports.PI = PI;
389
1171
  exports.PIClient = PIClient;
1172
+ exports.PIServiceException = PIServiceException;
1173
+ exports.PIServiceException$ = PIServiceException$;
1174
+ exports.PerformanceInsightsMetric$ = PerformanceInsightsMetric$;
390
1175
  exports.PeriodAlignment = PeriodAlignment;
1176
+ exports.Recommendation$ = Recommendation$;
1177
+ exports.ResponsePartitionKey$ = ResponsePartitionKey$;
1178
+ exports.ResponseResourceMetric$ = ResponseResourceMetric$;
1179
+ exports.ResponseResourceMetricKey$ = ResponseResourceMetricKey$;
391
1180
  exports.ServiceType = ServiceType;
392
1181
  exports.Severity = Severity;
1182
+ exports.Tag$ = Tag$;
1183
+ exports.TagResource$ = TagResource$;
393
1184
  exports.TagResourceCommand = TagResourceCommand;
1185
+ exports.TagResourceRequest$ = TagResourceRequest$;
1186
+ exports.TagResourceResponse$ = TagResourceResponse$;
394
1187
  exports.TextFormat = TextFormat;
1188
+ exports.UntagResource$ = UntagResource$;
395
1189
  exports.UntagResourceCommand = UntagResourceCommand;
1190
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
1191
+ exports.UntagResourceResponse$ = UntagResourceResponse$;
1192
+ exports.errorTypeRegistries = errorTypeRegistries;
396
1193
  exports.paginateDescribeDimensionKeys = paginateDescribeDimensionKeys;
397
1194
  exports.paginateGetResourceMetrics = paginateGetResourceMetrics;
398
1195
  exports.paginateListAvailableResourceDimensions = paginateListAvailableResourceDimensions;