@aws-sdk/client-codeguruprofiler 3.1074.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, defaultCodeGuruProfilerHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { AddNotificationChannels$, BatchGetFrameMetricData$, ConfigureAgent$, CreateProfilingGroup$, DeleteProfilingGroup$, DescribeProfilingGroup$, GetFindingsReportAccountSummary$, GetNotificationConfiguration$, GetPolicy$, GetProfile$, GetRecommendations$, ListFindingsReports$, ListProfileTimes$, ListProfilingGroups$, ListTagsForResource$, PostAgentProfile$, PutPermission$, RemoveNotificationChannel$, RemovePermission$, SubmitFeedback$, TagResource$, UntagResource$, UpdateProfilingGroup$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { CodeGuruProfilerServiceException } = require("./models/CodeGuruProfilerServiceException");
18
- exports.CodeGuruProfilerServiceException = CodeGuruProfilerServiceException;
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 { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+
17
+ const defaultCodeGuruProfilerHttpAuthSchemeParametersProvider = 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: "codeguru-profiler",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultCodeGuruProfilerHttpAuthSchemeProvider = (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,903 @@ 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://codeguru-profiler-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
92
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
93
+ ["https://codeguru-profiler-fips.{Region}.{PartitionResult#dnsSuffix}", i],
94
+ [a, "FIPS is enabled but this partition does not support FIPS"],
95
+ ["https://codeguru-profiler.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
96
+ [a, "DualStack is enabled but this partition does not support DualStack"],
97
+ ["https://codeguru-profiler.{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 CodeGuruProfilerServiceException extends ServiceException {
133
+ constructor(options) {
134
+ super(options);
135
+ Object.setPrototypeOf(this, CodeGuruProfilerServiceException.prototype);
136
+ }
137
+ }
138
+
139
+ class ConflictException extends CodeGuruProfilerServiceException {
140
+ name = "ConflictException";
141
+ $fault = "client";
142
+ constructor(opts) {
143
+ super({
144
+ name: "ConflictException",
145
+ $fault: "client",
146
+ ...opts,
147
+ });
148
+ Object.setPrototypeOf(this, ConflictException.prototype);
149
+ }
150
+ }
151
+ class InternalServerException extends CodeGuruProfilerServiceException {
152
+ name = "InternalServerException";
153
+ $fault = "server";
154
+ $retryable = {};
155
+ constructor(opts) {
156
+ super({
157
+ name: "InternalServerException",
158
+ $fault: "server",
159
+ ...opts,
160
+ });
161
+ Object.setPrototypeOf(this, InternalServerException.prototype);
162
+ }
163
+ }
164
+ class ResourceNotFoundException extends CodeGuruProfilerServiceException {
165
+ name = "ResourceNotFoundException";
166
+ $fault = "client";
167
+ constructor(opts) {
168
+ super({
169
+ name: "ResourceNotFoundException",
170
+ $fault: "client",
171
+ ...opts,
172
+ });
173
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
174
+ }
175
+ }
176
+ class ServiceQuotaExceededException extends CodeGuruProfilerServiceException {
177
+ name = "ServiceQuotaExceededException";
178
+ $fault = "client";
179
+ $retryable = {};
180
+ constructor(opts) {
181
+ super({
182
+ name: "ServiceQuotaExceededException",
183
+ $fault: "client",
184
+ ...opts,
185
+ });
186
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
187
+ }
188
+ }
189
+ class ThrottlingException extends CodeGuruProfilerServiceException {
190
+ name = "ThrottlingException";
191
+ $fault = "client";
192
+ $retryable = {};
193
+ constructor(opts) {
194
+ super({
195
+ name: "ThrottlingException",
196
+ $fault: "client",
197
+ ...opts,
198
+ });
199
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
200
+ }
201
+ }
202
+ class ValidationException extends CodeGuruProfilerServiceException {
203
+ name = "ValidationException";
204
+ $fault = "client";
205
+ constructor(opts) {
206
+ super({
207
+ name: "ValidationException",
208
+ $fault: "client",
209
+ ...opts,
210
+ });
211
+ Object.setPrototypeOf(this, ValidationException.prototype);
212
+ }
213
+ }
214
+
215
+ const _A = "Anomaly";
216
+ const _AC = "AgentConfiguration";
217
+ const _AI = "AnomalyInstance";
218
+ const _AIn = "AnomalyInstances";
219
+ const _ANC = "AddNotificationChannels";
220
+ const _ANCR = "AddNotificationChannelsRequest";
221
+ const _ANCRd = "AddNotificationChannelsResponse";
222
+ const _AOC = "AgentOrchestrationConfig";
223
+ const _APT = "AggregatedProfileTime";
224
+ const _Ac = "Accept";
225
+ const _An = "Anomalies";
226
+ const _BGFMD = "BatchGetFrameMetricData";
227
+ const _BGFMDR = "BatchGetFrameMetricDataRequest";
228
+ const _BGFMDRa = "BatchGetFrameMetricDataResponse";
229
+ const _C = "Channel";
230
+ const _CA = "ConfigureAgent";
231
+ const _CAR = "ConfigureAgentRequest";
232
+ const _CARo = "ConfigureAgentResponse";
233
+ const _CE = "ConflictException";
234
+ const _CE_ = "Content-Encoding";
235
+ const _CPG = "CreateProfilingGroup";
236
+ const _CPGR = "CreateProfilingGroupRequest";
237
+ const _CPGRr = "CreateProfilingGroupResponse";
238
+ const _CT = "Content-Type";
239
+ const _Ch = "Channels";
240
+ const _DPG = "DeleteProfilingGroup";
241
+ const _DPGR = "DeleteProfilingGroupRequest";
242
+ const _DPGRe = "DeleteProfilingGroupResponse";
243
+ const _DPGRes = "DescribeProfilingGroupRequest";
244
+ const _DPGResc = "DescribeProfilingGroupResponse";
245
+ const _DPGe = "DescribeProfilingGroup";
246
+ const _FM = "FrameMetric";
247
+ const _FMD = "FrameMetricDatum";
248
+ const _FMDr = "FrameMetricData";
249
+ const _FMr = "FrameMetrics";
250
+ const _FRS = "FindingsReportSummary";
251
+ const _FRSi = "FindingsReportSummaries";
252
+ const _GFRAS = "GetFindingsReportAccountSummary";
253
+ const _GFRASR = "GetFindingsReportAccountSummaryRequest";
254
+ const _GFRASRe = "GetFindingsReportAccountSummaryResponse";
255
+ const _GNC = "GetNotificationConfiguration";
256
+ const _GNCR = "GetNotificationConfigurationRequest";
257
+ const _GNCRe = "GetNotificationConfigurationResponse";
258
+ const _GP = "GetPolicy";
259
+ const _GPR = "GetPolicyRequest";
260
+ const _GPRe = "GetPolicyResponse";
261
+ const _GPRet = "GetProfileRequest";
262
+ const _GPRetr = "GetProfileResponse";
263
+ const _GPe = "GetProfile";
264
+ const _GR = "GetRecommendations";
265
+ const _GRR = "GetRecommendationsRequest";
266
+ const _GRRe = "GetRecommendationsResponse";
267
+ const _ISE = "InternalServerException";
268
+ const _LFR = "ListFindingsReports";
269
+ const _LFRR = "ListFindingsReportsRequest";
270
+ const _LFRRi = "ListFindingsReportsResponse";
271
+ const _LOT = "ListOfTimestamps";
272
+ const _LPG = "ListProfilingGroups";
273
+ const _LPGR = "ListProfilingGroupsRequest";
274
+ const _LPGRi = "ListProfilingGroupsResponse";
275
+ const _LPT = "ListProfileTimes";
276
+ const _LPTR = "ListProfileTimesRequest";
277
+ const _LPTRi = "ListProfileTimesResponse";
278
+ const _LTFR = "ListTagsForResource";
279
+ const _LTFRR = "ListTagsForResourceRequest";
280
+ const _LTFRRi = "ListTagsForResourceResponse";
281
+ const _M = "Match";
282
+ const _Ma = "Matches";
283
+ const _Me = "Metric";
284
+ const _NC = "NotificationConfiguration";
285
+ const _P = "Pattern";
286
+ const _PAP = "PostAgentProfile";
287
+ const _PAPR = "PostAgentProfileRequest";
288
+ const _PAPRo = "PostAgentProfileResponse";
289
+ const _PGD = "ProfilingGroupDescription";
290
+ const _PGDr = "ProfilingGroupDescriptions";
291
+ const _PP = "PutPermission";
292
+ const _PPR = "PutPermissionRequest";
293
+ const _PPRu = "PutPermissionResponse";
294
+ const _PS = "ProfilingStatus";
295
+ const _PT = "ProfileTime";
296
+ const _PTr = "ProfileTimes";
297
+ const _R = "Recommendation";
298
+ const _RNC = "RemoveNotificationChannel";
299
+ const _RNCR = "RemoveNotificationChannelRequest";
300
+ const _RNCRe = "RemoveNotificationChannelResponse";
301
+ const _RNFE = "ResourceNotFoundException";
302
+ const _RP = "RemovePermission";
303
+ const _RPR = "RemovePermissionRequest";
304
+ const _RPRe = "RemovePermissionResponse";
305
+ const _Re = "Recommendations";
306
+ const _SF = "SubmitFeedback";
307
+ const _SFR = "SubmitFeedbackRequest";
308
+ const _SFRu = "SubmitFeedbackResponse";
309
+ const _SQEE = "ServiceQuotaExceededException";
310
+ const _TE = "ThrottlingException";
311
+ const _TF = "TargetFrames";
312
+ const _TR = "TagResource";
313
+ const _TRR = "TagResourceRequest";
314
+ const _TRRa = "TagResourceResponse";
315
+ const _TS = "TimestampStructure";
316
+ const _UETM = "UnprocessedEndTimeMap";
317
+ const _UF = "UserFeedback";
318
+ const _UPG = "UpdateProfilingGroup";
319
+ const _UPGR = "UpdateProfilingGroupRequest";
320
+ const _UPGRp = "UpdateProfilingGroupResponse";
321
+ const _UR = "UntagResource";
322
+ const _URR = "UntagResourceRequest";
323
+ const _URRn = "UntagResourceResponse";
324
+ const _VE = "ValidationException";
325
+ const _a = "accept";
326
+ const _aG = "actionGroup";
327
+ const _aII = "anomalyInstanceId";
328
+ const _aMC = "allMatchesCount";
329
+ const _aMS = "allMatchesSum";
330
+ const _aOC = "agentOrchestrationConfig";
331
+ const _aP = "agentParameters";
332
+ const _aPg = "agentProfile";
333
+ const _an = "anomalies";
334
+ const _ar = "arn";
335
+ const _c = "client";
336
+ const _cA = "createdAt";
337
+ const _cE = "contentEncoding";
338
+ const _cI = "channelId";
339
+ const _cP = "computePlatform";
340
+ const _cT = "clientToken";
341
+ const _cTA = "countersToAggregate";
342
+ const _cTo = "contentType";
343
+ const _ch = "channels";
344
+ const _co = "configuration";
345
+ const _com = "comment";
346
+ const _d = "description";
347
+ const _dRO = "dailyReportsOnly";
348
+ const _e = "error";
349
+ const _eP = "eventPublishers";
350
+ const _eT = "endTime";
351
+ const _eTn = "endTimes";
352
+ const _fA = "frameAddress";
353
+ const _fII = "fleetInstanceId";
354
+ const _fM = "frameMetrics";
355
+ const _fMD = "frameMetricData";
356
+ const _fMr = "frameMetric";
357
+ const _fN = "frameName";
358
+ const _fRS = "findingsReportSummaries";
359
+ const _h = "http";
360
+ const _hE = "httpError";
361
+ const _hH = "httpHeader";
362
+ const _hQ = "httpQuery";
363
+ const _i = "instances";
364
+ const _iD = "includeDescription";
365
+ const _iT = "idempotencyToken";
366
+ const _id = "id";
367
+ const _l = "locale";
368
+ const _lAOA = "latestAgentOrchestratedAt";
369
+ const _lAP = "latestAggregatedProfile";
370
+ const _lAPRA = "latestAgentProfileReportedAt";
371
+ const _m = "message";
372
+ const _mD = "maxDepth";
373
+ const _mR = "maxResults";
374
+ const _me = "metric";
375
+ const _met = "metadata";
376
+ const _n = "name";
377
+ const _nC = "notificationConfiguration";
378
+ const _nT = "nextToken";
379
+ const _oB = "orderBy";
380
+ const _p = "period";
381
+ const _pE = "profilingEnabled";
382
+ const _pET = "profileEndTime";
383
+ const _pG = "profilingGroup";
384
+ const _pGN = "profilingGroupName";
385
+ const _pGNr = "profilingGroupNames";
386
+ const _pGr = "profilingGroups";
387
+ const _pIS = "periodInSeconds";
388
+ const _pS = "profilingStatus";
389
+ const _pST = "profileStartTime";
390
+ const _pT = "profileTimes";
391
+ const _pTr = "profileToken";
392
+ const _pa = "pattern";
393
+ const _po = "policy";
394
+ const _pr = "profile";
395
+ const _pri = "principals";
396
+ const _r = "reason";
397
+ const _rA = "resourceArn";
398
+ const _rI = "revisionId";
399
+ const _rS = "reportSummaries";
400
+ const _rSe = "resolutionSteps";
401
+ const _re = "resolution";
402
+ const _rec = "recommendations";
403
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.codeguruprofiler";
404
+ const _sP = "shouldProfile";
405
+ const _sT = "startTime";
406
+ const _se = "server";
407
+ const _st = "start";
408
+ const _t = "tags";
409
+ const _tBV = "thresholdBreachValue";
410
+ const _tF = "targetFrames";
411
+ const _tFI = "targetFramesIndex";
412
+ const _tK = "tagKeys";
413
+ const _tM = "topMatches";
414
+ const _tNOF = "totalNumberOfFindings";
415
+ const _tP = "thresholdPercent";
416
+ const _tR = "targetResolution";
417
+ const _tS = "threadStates";
418
+ const _ty = "type";
419
+ const _u = "uri";
420
+ const _uA = "updatedAt";
421
+ const _uET = "unprocessedEndTimes";
422
+ const _uF = "userFeedback";
423
+ const _v = "values";
424
+ const _va = "value";
425
+ const n0 = "com.amazonaws.codeguruprofiler";
426
+ const _s_registry = TypeRegistry.for(_s);
427
+ var CodeGuruProfilerServiceException$ = [-3, _s, "CodeGuruProfilerServiceException", 0, [], []];
428
+ _s_registry.registerError(CodeGuruProfilerServiceException$, CodeGuruProfilerServiceException);
429
+ const n0_registry = TypeRegistry.for(n0);
430
+ var ConflictException$ = [-3, n0, _CE,
431
+ { [_e]: _c, [_hE]: 409 },
432
+ [_m],
433
+ [0], 1
434
+ ];
435
+ n0_registry.registerError(ConflictException$, ConflictException);
436
+ var InternalServerException$ = [-3, n0, _ISE,
437
+ { [_e]: _se, [_hE]: 500 },
438
+ [_m],
439
+ [0], 1
440
+ ];
441
+ n0_registry.registerError(InternalServerException$, InternalServerException);
442
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
443
+ { [_e]: _c, [_hE]: 404 },
444
+ [_m],
445
+ [0], 1
446
+ ];
447
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
448
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
449
+ { [_e]: _c, [_hE]: 402 },
450
+ [_m],
451
+ [0], 1
452
+ ];
453
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
454
+ var ThrottlingException$ = [-3, n0, _TE,
455
+ { [_e]: _c, [_hE]: 429 },
456
+ [_m],
457
+ [0], 1
458
+ ];
459
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
460
+ var ValidationException$ = [-3, n0, _VE,
461
+ { [_e]: _c, [_hE]: 400 },
462
+ [_m],
463
+ [0], 1
464
+ ];
465
+ n0_registry.registerError(ValidationException$, ValidationException);
466
+ const errorTypeRegistries = [
467
+ _s_registry,
468
+ n0_registry,
469
+ ];
470
+ var AddNotificationChannelsRequest$ = [3, n0, _ANCR,
471
+ 0,
472
+ [_pGN, _ch],
473
+ [[0, 1], () => Channels], 2
474
+ ];
475
+ var AddNotificationChannelsResponse$ = [3, n0, _ANCRd,
476
+ 0,
477
+ [_nC],
478
+ [() => NotificationConfiguration$]
479
+ ];
480
+ var AgentConfiguration$ = [3, n0, _AC,
481
+ 0,
482
+ [_sP, _pIS, _aP],
483
+ [2, 1, 128 | 0], 2
484
+ ];
485
+ var AgentOrchestrationConfig$ = [3, n0, _AOC,
486
+ 0,
487
+ [_pE],
488
+ [2], 1
489
+ ];
490
+ var AggregatedProfileTime$ = [3, n0, _APT,
491
+ 0,
492
+ [_st, _p],
493
+ [5, 0]
494
+ ];
495
+ var Anomaly$ = [3, n0, _A,
496
+ 0,
497
+ [_me, _r, _i],
498
+ [() => Metric$, 0, () => AnomalyInstances], 3
499
+ ];
500
+ var AnomalyInstance$ = [3, n0, _AI,
501
+ 0,
502
+ [_id, _sT, _eT, _uF],
503
+ [0, 5, 5, () => UserFeedback$], 2
504
+ ];
505
+ var BatchGetFrameMetricDataRequest$ = [3, n0, _BGFMDR,
506
+ 0,
507
+ [_pGN, _sT, _eT, _p, _tR, _fM],
508
+ [[0, 1], [5, { [_hQ]: _sT }], [5, { [_hQ]: _eT }], [0, { [_hQ]: _p }], [0, { [_hQ]: _tR }], () => FrameMetrics], 1
509
+ ];
510
+ var BatchGetFrameMetricDataResponse$ = [3, n0, _BGFMDRa,
511
+ 0,
512
+ [_sT, _eT, _re, _eTn, _uET, _fMD],
513
+ [5, 5, 0, () => ListOfTimestamps, () => UnprocessedEndTimeMap, () => FrameMetricData], 6
514
+ ];
515
+ var Channel$ = [3, n0, _C,
516
+ 0,
517
+ [_u, _eP, _id],
518
+ [0, 64 | 0, 0], 2
519
+ ];
520
+ var ConfigureAgentRequest$ = [3, n0, _CAR,
521
+ 0,
522
+ [_pGN, _fII, _met],
523
+ [[0, 1], 0, 128 | 0], 1
524
+ ];
525
+ var ConfigureAgentResponse$ = [3, n0, _CARo,
526
+ 0,
527
+ [_co],
528
+ [[() => AgentConfiguration$, 16]], 1
529
+ ];
530
+ var CreateProfilingGroupRequest$ = [3, n0, _CPGR,
531
+ 0,
532
+ [_pGN, _cP, _cT, _aOC, _t],
533
+ [0, 0, [0, { [_hQ]: _cT, [_iT]: 1 }], () => AgentOrchestrationConfig$, 128 | 0], 1
534
+ ];
535
+ var CreateProfilingGroupResponse$ = [3, n0, _CPGRr,
536
+ 0,
537
+ [_pG],
538
+ [[() => ProfilingGroupDescription$, 16]], 1
539
+ ];
540
+ var DeleteProfilingGroupRequest$ = [3, n0, _DPGR,
541
+ 0,
542
+ [_pGN],
543
+ [[0, 1]], 1
544
+ ];
545
+ var DeleteProfilingGroupResponse$ = [3, n0, _DPGRe,
546
+ 0,
547
+ [],
548
+ []
549
+ ];
550
+ var DescribeProfilingGroupRequest$ = [3, n0, _DPGRes,
551
+ 0,
552
+ [_pGN],
553
+ [[0, 1]], 1
554
+ ];
555
+ var DescribeProfilingGroupResponse$ = [3, n0, _DPGResc,
556
+ 0,
557
+ [_pG],
558
+ [[() => ProfilingGroupDescription$, 16]], 1
559
+ ];
560
+ var FindingsReportSummary$ = [3, n0, _FRS,
561
+ 0,
562
+ [_id, _pGN, _pST, _pET, _tNOF],
563
+ [0, 0, 5, 5, 1]
564
+ ];
565
+ var FrameMetric$ = [3, n0, _FM,
566
+ 0,
567
+ [_fN, _ty, _tS],
568
+ [0, 0, 64 | 0], 3
569
+ ];
570
+ var FrameMetricDatum$ = [3, n0, _FMD,
571
+ 0,
572
+ [_fMr, _v],
573
+ [() => FrameMetric$, 64 | 1], 2
574
+ ];
575
+ var GetFindingsReportAccountSummaryRequest$ = [3, n0, _GFRASR,
576
+ 0,
577
+ [_nT, _mR, _dRO],
578
+ [[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [2, { [_hQ]: _dRO }]]
579
+ ];
580
+ var GetFindingsReportAccountSummaryResponse$ = [3, n0, _GFRASRe,
581
+ 0,
582
+ [_rS, _nT],
583
+ [() => FindingsReportSummaries, 0], 1
584
+ ];
585
+ var GetNotificationConfigurationRequest$ = [3, n0, _GNCR,
586
+ 0,
587
+ [_pGN],
588
+ [[0, 1]], 1
589
+ ];
590
+ var GetNotificationConfigurationResponse$ = [3, n0, _GNCRe,
591
+ 0,
592
+ [_nC],
593
+ [() => NotificationConfiguration$], 1
594
+ ];
595
+ var GetPolicyRequest$ = [3, n0, _GPR,
596
+ 0,
597
+ [_pGN],
598
+ [[0, 1]], 1
599
+ ];
600
+ var GetPolicyResponse$ = [3, n0, _GPRe,
601
+ 0,
602
+ [_po, _rI],
603
+ [0, 0], 2
604
+ ];
605
+ var GetProfileRequest$ = [3, n0, _GPRet,
606
+ 0,
607
+ [_pGN, _sT, _p, _eT, _mD, _a],
608
+ [[0, 1], [5, { [_hQ]: _sT }], [0, { [_hQ]: _p }], [5, { [_hQ]: _eT }], [1, { [_hQ]: _mD }], [0, { [_hH]: _Ac }]], 1
609
+ ];
610
+ var GetProfileResponse$ = [3, n0, _GPRetr,
611
+ 0,
612
+ [_pr, _cTo, _cE],
613
+ [[21, 16], [0, { [_hH]: _CT }], [0, { [_hH]: _CE_ }]], 2
614
+ ];
615
+ var GetRecommendationsRequest$ = [3, n0, _GRR,
616
+ 0,
617
+ [_pGN, _sT, _eT, _l],
618
+ [[0, 1], [5, { [_hQ]: _sT }], [5, { [_hQ]: _eT }], [0, { [_hQ]: _l }]], 3
619
+ ];
620
+ var GetRecommendationsResponse$ = [3, n0, _GRRe,
621
+ 0,
622
+ [_pGN, _pST, _pET, _rec, _an],
623
+ [0, 5, 5, () => Recommendations, () => Anomalies], 5
624
+ ];
625
+ var ListFindingsReportsRequest$ = [3, n0, _LFRR,
626
+ 0,
627
+ [_pGN, _sT, _eT, _nT, _mR, _dRO],
628
+ [[0, 1], [5, { [_hQ]: _sT }], [5, { [_hQ]: _eT }], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [2, { [_hQ]: _dRO }]], 3
629
+ ];
630
+ var ListFindingsReportsResponse$ = [3, n0, _LFRRi,
631
+ 0,
632
+ [_fRS, _nT],
633
+ [() => FindingsReportSummaries, 0], 1
634
+ ];
635
+ var ListProfileTimesRequest$ = [3, n0, _LPTR,
636
+ 0,
637
+ [_pGN, _sT, _eT, _p, _oB, _mR, _nT],
638
+ [[0, 1], [5, { [_hQ]: _sT }], [5, { [_hQ]: _eT }], [0, { [_hQ]: _p }], [0, { [_hQ]: _oB }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]], 4
639
+ ];
640
+ var ListProfileTimesResponse$ = [3, n0, _LPTRi,
641
+ 0,
642
+ [_pT, _nT],
643
+ [() => ProfileTimes, 0], 1
644
+ ];
645
+ var ListProfilingGroupsRequest$ = [3, n0, _LPGR,
646
+ 0,
647
+ [_nT, _mR, _iD],
648
+ [[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [2, { [_hQ]: _iD }]]
649
+ ];
650
+ var ListProfilingGroupsResponse$ = [3, n0, _LPGRi,
651
+ 0,
652
+ [_pGNr, _pGr, _nT],
653
+ [64 | 0, () => ProfilingGroupDescriptions, 0], 1
654
+ ];
655
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
656
+ 0,
657
+ [_rA],
658
+ [[0, 1]], 1
659
+ ];
660
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
661
+ 0,
662
+ [_t],
663
+ [128 | 0]
664
+ ];
665
+ var Match$ = [3, n0, _M,
666
+ 0,
667
+ [_tFI, _fA, _tBV],
668
+ [1, 0, 1]
669
+ ];
670
+ var Metric$ = [3, n0, _Me,
671
+ 0,
672
+ [_fN, _ty, _tS],
673
+ [0, 0, 64 | 0], 3
674
+ ];
675
+ var NotificationConfiguration$ = [3, n0, _NC,
676
+ 0,
677
+ [_ch],
678
+ [() => Channels]
679
+ ];
680
+ var Pattern$ = [3, n0, _P,
681
+ 0,
682
+ [_id, _n, _d, _rSe, _tF, _tP, _cTA],
683
+ [0, 0, 0, 0, [1, n0, _TF, 0, 64 | 0], 1, 64 | 0]
684
+ ];
685
+ var PostAgentProfileRequest$ = [3, n0, _PAPR,
686
+ 0,
687
+ [_pGN, _aPg, _cTo, _pTr],
688
+ [[0, 1], [21, 16], [0, { [_hH]: _CT }], [0, { [_hQ]: _pTr, [_iT]: 1 }]], 3
689
+ ];
690
+ var PostAgentProfileResponse$ = [3, n0, _PAPRo,
691
+ 0,
692
+ [],
693
+ []
694
+ ];
695
+ var ProfileTime$ = [3, n0, _PT,
696
+ 0,
697
+ [_st],
698
+ [5]
699
+ ];
700
+ var ProfilingGroupDescription$ = [3, n0, _PGD,
701
+ 0,
702
+ [_n, _aOC, _ar, _cA, _uA, _pS, _cP, _t],
703
+ [0, () => AgentOrchestrationConfig$, 0, 5, 5, () => ProfilingStatus$, 0, 128 | 0]
704
+ ];
705
+ var ProfilingStatus$ = [3, n0, _PS,
706
+ 0,
707
+ [_lAPRA, _lAP, _lAOA],
708
+ [5, () => AggregatedProfileTime$, 5]
709
+ ];
710
+ var PutPermissionRequest$ = [3, n0, _PPR,
711
+ 0,
712
+ [_pGN, _aG, _pri, _rI],
713
+ [[0, 1], [0, 1], 64 | 0, 0], 3
714
+ ];
715
+ var PutPermissionResponse$ = [3, n0, _PPRu,
716
+ 0,
717
+ [_po, _rI],
718
+ [0, 0], 2
719
+ ];
720
+ var Recommendation$ = [3, n0, _R,
721
+ 0,
722
+ [_aMC, _aMS, _pa, _tM, _sT, _eT],
723
+ [1, 1, () => Pattern$, () => Matches, 5, 5], 6
724
+ ];
725
+ var RemoveNotificationChannelRequest$ = [3, n0, _RNCR,
726
+ 0,
727
+ [_pGN, _cI],
728
+ [[0, 1], [0, 1]], 2
729
+ ];
730
+ var RemoveNotificationChannelResponse$ = [3, n0, _RNCRe,
731
+ 0,
732
+ [_nC],
733
+ [() => NotificationConfiguration$]
734
+ ];
735
+ var RemovePermissionRequest$ = [3, n0, _RPR,
736
+ 0,
737
+ [_pGN, _aG, _rI],
738
+ [[0, 1], [0, 1], [0, { [_hQ]: _rI }]], 3
739
+ ];
740
+ var RemovePermissionResponse$ = [3, n0, _RPRe,
741
+ 0,
742
+ [_po, _rI],
743
+ [0, 0], 2
744
+ ];
745
+ var SubmitFeedbackRequest$ = [3, n0, _SFR,
746
+ 0,
747
+ [_pGN, _aII, _ty, _com],
748
+ [[0, 1], [0, 1], 0, 0], 3
749
+ ];
750
+ var SubmitFeedbackResponse$ = [3, n0, _SFRu,
751
+ 0,
752
+ [],
753
+ []
754
+ ];
755
+ var TagResourceRequest$ = [3, n0, _TRR,
756
+ 0,
757
+ [_rA, _t],
758
+ [[0, 1], 128 | 0], 2
759
+ ];
760
+ var TagResourceResponse$ = [3, n0, _TRRa,
761
+ 0,
762
+ [],
763
+ []
764
+ ];
765
+ var TimestampStructure$ = [3, n0, _TS,
766
+ 0,
767
+ [_va],
768
+ [5], 1
769
+ ];
770
+ var UntagResourceRequest$ = [3, n0, _URR,
771
+ 0,
772
+ [_rA, _tK],
773
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
774
+ ];
775
+ var UntagResourceResponse$ = [3, n0, _URRn,
776
+ 0,
777
+ [],
778
+ []
779
+ ];
780
+ var UpdateProfilingGroupRequest$ = [3, n0, _UPGR,
781
+ 0,
782
+ [_pGN, _aOC],
783
+ [[0, 1], () => AgentOrchestrationConfig$], 2
784
+ ];
785
+ var UpdateProfilingGroupResponse$ = [3, n0, _UPGRp,
786
+ 0,
787
+ [_pG],
788
+ [[() => ProfilingGroupDescription$, 16]], 1
789
+ ];
790
+ var UserFeedback$ = [3, n0, _UF,
791
+ 0,
792
+ [_ty],
793
+ [0], 1
794
+ ];
795
+ var Anomalies = [1, n0, _An,
796
+ 0, () => Anomaly$
797
+ ];
798
+ var AnomalyInstances = [1, n0, _AIn,
799
+ 0, () => AnomalyInstance$
800
+ ];
801
+ var Channels = [1, n0, _Ch,
802
+ 0, () => Channel$
803
+ ];
804
+ var FindingsReportSummaries = [1, n0, _FRSi,
805
+ 0, () => FindingsReportSummary$
806
+ ];
807
+ var FrameMetricData = [1, n0, _FMDr,
808
+ 0, () => FrameMetricDatum$
809
+ ];
810
+ var FrameMetrics = [1, n0, _FMr,
811
+ 0, () => FrameMetric$
812
+ ];
813
+ var ListOfTimestamps = [1, n0, _LOT,
814
+ 0, () => TimestampStructure$
815
+ ];
816
+ var Matches = [1, n0, _Ma,
817
+ 0, () => Match$
818
+ ];
819
+ var ProfileTimes = [1, n0, _PTr,
820
+ 0, () => ProfileTime$
821
+ ];
822
+ var ProfilingGroupDescriptions = [1, n0, _PGDr,
823
+ 0, () => ProfilingGroupDescription$
824
+ ];
825
+ var Recommendations = [1, n0, _Re,
826
+ 0, () => Recommendation$
827
+ ];
828
+ var UnprocessedEndTimeMap = [2, n0, _UETM,
829
+ 0, 0, () => ListOfTimestamps
830
+ ];
831
+ var AddNotificationChannels$ = [9, n0, _ANC,
832
+ { [_h]: ["POST", "/profilingGroups/{profilingGroupName}/notificationConfiguration", 200] }, () => AddNotificationChannelsRequest$, () => AddNotificationChannelsResponse$
833
+ ];
834
+ var BatchGetFrameMetricData$ = [9, n0, _BGFMD,
835
+ { [_h]: ["POST", "/profilingGroups/{profilingGroupName}/frames/-/metrics", 200] }, () => BatchGetFrameMetricDataRequest$, () => BatchGetFrameMetricDataResponse$
836
+ ];
837
+ var ConfigureAgent$ = [9, n0, _CA,
838
+ { [_h]: ["POST", "/profilingGroups/{profilingGroupName}/configureAgent", 200] }, () => ConfigureAgentRequest$, () => ConfigureAgentResponse$
839
+ ];
840
+ var CreateProfilingGroup$ = [9, n0, _CPG,
841
+ { [_h]: ["POST", "/profilingGroups", 201] }, () => CreateProfilingGroupRequest$, () => CreateProfilingGroupResponse$
842
+ ];
843
+ var DeleteProfilingGroup$ = [9, n0, _DPG,
844
+ { [_h]: ["DELETE", "/profilingGroups/{profilingGroupName}", 204] }, () => DeleteProfilingGroupRequest$, () => DeleteProfilingGroupResponse$
845
+ ];
846
+ var DescribeProfilingGroup$ = [9, n0, _DPGe,
847
+ { [_h]: ["GET", "/profilingGroups/{profilingGroupName}", 200] }, () => DescribeProfilingGroupRequest$, () => DescribeProfilingGroupResponse$
848
+ ];
849
+ var GetFindingsReportAccountSummary$ = [9, n0, _GFRAS,
850
+ { [_h]: ["GET", "/internal/findingsReports", 200] }, () => GetFindingsReportAccountSummaryRequest$, () => GetFindingsReportAccountSummaryResponse$
851
+ ];
852
+ var GetNotificationConfiguration$ = [9, n0, _GNC,
853
+ { [_h]: ["GET", "/profilingGroups/{profilingGroupName}/notificationConfiguration", 200] }, () => GetNotificationConfigurationRequest$, () => GetNotificationConfigurationResponse$
854
+ ];
855
+ var GetPolicy$ = [9, n0, _GP,
856
+ { [_h]: ["GET", "/profilingGroups/{profilingGroupName}/policy", 200] }, () => GetPolicyRequest$, () => GetPolicyResponse$
857
+ ];
858
+ var GetProfile$ = [9, n0, _GPe,
859
+ { [_h]: ["GET", "/profilingGroups/{profilingGroupName}/profile", 200] }, () => GetProfileRequest$, () => GetProfileResponse$
860
+ ];
861
+ var GetRecommendations$ = [9, n0, _GR,
862
+ { [_h]: ["GET", "/internal/profilingGroups/{profilingGroupName}/recommendations", 200] }, () => GetRecommendationsRequest$, () => GetRecommendationsResponse$
863
+ ];
864
+ var ListFindingsReports$ = [9, n0, _LFR,
865
+ { [_h]: ["GET", "/internal/profilingGroups/{profilingGroupName}/findingsReports", 200] }, () => ListFindingsReportsRequest$, () => ListFindingsReportsResponse$
866
+ ];
867
+ var ListProfileTimes$ = [9, n0, _LPT,
868
+ { [_h]: ["GET", "/profilingGroups/{profilingGroupName}/profileTimes", 200] }, () => ListProfileTimesRequest$, () => ListProfileTimesResponse$
869
+ ];
870
+ var ListProfilingGroups$ = [9, n0, _LPG,
871
+ { [_h]: ["GET", "/profilingGroups", 200] }, () => ListProfilingGroupsRequest$, () => ListProfilingGroupsResponse$
872
+ ];
873
+ var ListTagsForResource$ = [9, n0, _LTFR,
874
+ { [_h]: ["GET", "/tags/{resourceArn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
875
+ ];
876
+ var PostAgentProfile$ = [9, n0, _PAP,
877
+ { [_h]: ["POST", "/profilingGroups/{profilingGroupName}/agentProfile", 204] }, () => PostAgentProfileRequest$, () => PostAgentProfileResponse$
878
+ ];
879
+ var PutPermission$ = [9, n0, _PP,
880
+ { [_h]: ["PUT", "/profilingGroups/{profilingGroupName}/policy/{actionGroup}", 200] }, () => PutPermissionRequest$, () => PutPermissionResponse$
881
+ ];
882
+ var RemoveNotificationChannel$ = [9, n0, _RNC,
883
+ { [_h]: ["DELETE", "/profilingGroups/{profilingGroupName}/notificationConfiguration/{channelId}", 200] }, () => RemoveNotificationChannelRequest$, () => RemoveNotificationChannelResponse$
884
+ ];
885
+ var RemovePermission$ = [9, n0, _RP,
886
+ { [_h]: ["DELETE", "/profilingGroups/{profilingGroupName}/policy/{actionGroup}", 200] }, () => RemovePermissionRequest$, () => RemovePermissionResponse$
887
+ ];
888
+ var SubmitFeedback$ = [9, n0, _SF,
889
+ { [_h]: ["POST", "/internal/profilingGroups/{profilingGroupName}/anomalies/{anomalyInstanceId}/feedback", 204] }, () => SubmitFeedbackRequest$, () => SubmitFeedbackResponse$
890
+ ];
891
+ var TagResource$ = [9, n0, _TR,
892
+ { [_h]: ["POST", "/tags/{resourceArn}", 204] }, () => TagResourceRequest$, () => TagResourceResponse$
893
+ ];
894
+ var UntagResource$ = [9, n0, _UR,
895
+ { [_h]: ["DELETE", "/tags/{resourceArn}", 204] }, () => UntagResourceRequest$, () => UntagResourceResponse$
896
+ ];
897
+ var UpdateProfilingGroup$ = [9, n0, _UPG,
898
+ { [_h]: ["PUT", "/profilingGroups/{profilingGroupName}", 200] }, () => UpdateProfilingGroupRequest$, () => UpdateProfilingGroupResponse$
899
+ ];
900
+
901
+ const getRuntimeConfig$1 = (config) => {
902
+ return {
903
+ apiVersion: "2019-07-18",
904
+ base64Decoder: config?.base64Decoder ?? fromBase64,
905
+ base64Encoder: config?.base64Encoder ?? toBase64,
906
+ disableHostPrefix: config?.disableHostPrefix ?? false,
907
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
908
+ extensions: config?.extensions ?? [],
909
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultCodeGuruProfilerHttpAuthSchemeProvider,
910
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
911
+ {
912
+ schemeId: "aws.auth#sigv4",
913
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
914
+ signer: new AwsSdkSigV4Signer(),
915
+ },
916
+ ],
917
+ logger: config?.logger ?? new NoOpLogger(),
918
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
919
+ protocolSettings: config?.protocolSettings ?? {
920
+ defaultNamespace: "com.amazonaws.codeguruprofiler",
921
+ errorTypeRegistries,
922
+ version: "2019-07-18",
923
+ serviceTarget: "CodeGuruProfiler",
924
+ },
925
+ serviceId: config?.serviceId ?? "CodeGuruProfiler",
926
+ urlParser: config?.urlParser ?? parseUrl,
927
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
928
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
929
+ };
930
+ };
931
+
932
+ const getRuntimeConfig = (config) => {
933
+ emitWarningIfUnsupportedVersion(process.version);
934
+ const defaultsMode = resolveDefaultsModeConfig(config);
935
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
936
+ const clientSharedValues = getRuntimeConfig$1(config);
937
+ emitWarningIfUnsupportedVersion$1(process.version);
938
+ const loaderConfig = {
939
+ profile: config?.profile,
940
+ logger: clientSharedValues.logger,
941
+ };
942
+ return {
943
+ ...clientSharedValues,
944
+ ...config,
945
+ runtime: "node",
946
+ defaultsMode,
947
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
948
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
949
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
950
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
951
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
952
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
953
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
954
+ retryMode: config?.retryMode ??
955
+ loadConfig({
956
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
957
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
958
+ }, config),
959
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
960
+ streamCollector: config?.streamCollector ?? streamCollector,
961
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
962
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
963
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
964
+ };
965
+ };
966
+
34
967
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
968
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
969
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -476,39 +1409,142 @@ const OrderBy = {
476
1409
  };
477
1410
 
478
1411
  exports.ActionGroup = ActionGroup;
1412
+ exports.AddNotificationChannels$ = AddNotificationChannels$;
479
1413
  exports.AddNotificationChannelsCommand = AddNotificationChannelsCommand;
1414
+ exports.AddNotificationChannelsRequest$ = AddNotificationChannelsRequest$;
1415
+ exports.AddNotificationChannelsResponse$ = AddNotificationChannelsResponse$;
1416
+ exports.AgentConfiguration$ = AgentConfiguration$;
1417
+ exports.AgentOrchestrationConfig$ = AgentOrchestrationConfig$;
480
1418
  exports.AgentParameterField = AgentParameterField;
1419
+ exports.AggregatedProfileTime$ = AggregatedProfileTime$;
481
1420
  exports.AggregationPeriod = AggregationPeriod;
1421
+ exports.Anomaly$ = Anomaly$;
1422
+ exports.AnomalyInstance$ = AnomalyInstance$;
1423
+ exports.BatchGetFrameMetricData$ = BatchGetFrameMetricData$;
482
1424
  exports.BatchGetFrameMetricDataCommand = BatchGetFrameMetricDataCommand;
1425
+ exports.BatchGetFrameMetricDataRequest$ = BatchGetFrameMetricDataRequest$;
1426
+ exports.BatchGetFrameMetricDataResponse$ = BatchGetFrameMetricDataResponse$;
1427
+ exports.Channel$ = Channel$;
483
1428
  exports.CodeGuruProfiler = CodeGuruProfiler;
484
1429
  exports.CodeGuruProfilerClient = CodeGuruProfilerClient;
1430
+ exports.CodeGuruProfilerServiceException = CodeGuruProfilerServiceException;
1431
+ exports.CodeGuruProfilerServiceException$ = CodeGuruProfilerServiceException$;
485
1432
  exports.ComputePlatform = ComputePlatform;
1433
+ exports.ConfigureAgent$ = ConfigureAgent$;
486
1434
  exports.ConfigureAgentCommand = ConfigureAgentCommand;
1435
+ exports.ConfigureAgentRequest$ = ConfigureAgentRequest$;
1436
+ exports.ConfigureAgentResponse$ = ConfigureAgentResponse$;
1437
+ exports.ConflictException = ConflictException;
1438
+ exports.ConflictException$ = ConflictException$;
1439
+ exports.CreateProfilingGroup$ = CreateProfilingGroup$;
487
1440
  exports.CreateProfilingGroupCommand = CreateProfilingGroupCommand;
1441
+ exports.CreateProfilingGroupRequest$ = CreateProfilingGroupRequest$;
1442
+ exports.CreateProfilingGroupResponse$ = CreateProfilingGroupResponse$;
1443
+ exports.DeleteProfilingGroup$ = DeleteProfilingGroup$;
488
1444
  exports.DeleteProfilingGroupCommand = DeleteProfilingGroupCommand;
1445
+ exports.DeleteProfilingGroupRequest$ = DeleteProfilingGroupRequest$;
1446
+ exports.DeleteProfilingGroupResponse$ = DeleteProfilingGroupResponse$;
1447
+ exports.DescribeProfilingGroup$ = DescribeProfilingGroup$;
489
1448
  exports.DescribeProfilingGroupCommand = DescribeProfilingGroupCommand;
1449
+ exports.DescribeProfilingGroupRequest$ = DescribeProfilingGroupRequest$;
1450
+ exports.DescribeProfilingGroupResponse$ = DescribeProfilingGroupResponse$;
490
1451
  exports.EventPublisher = EventPublisher;
491
1452
  exports.FeedbackType = FeedbackType;
1453
+ exports.FindingsReportSummary$ = FindingsReportSummary$;
1454
+ exports.FrameMetric$ = FrameMetric$;
1455
+ exports.FrameMetricDatum$ = FrameMetricDatum$;
1456
+ exports.GetFindingsReportAccountSummary$ = GetFindingsReportAccountSummary$;
492
1457
  exports.GetFindingsReportAccountSummaryCommand = GetFindingsReportAccountSummaryCommand;
1458
+ exports.GetFindingsReportAccountSummaryRequest$ = GetFindingsReportAccountSummaryRequest$;
1459
+ exports.GetFindingsReportAccountSummaryResponse$ = GetFindingsReportAccountSummaryResponse$;
1460
+ exports.GetNotificationConfiguration$ = GetNotificationConfiguration$;
493
1461
  exports.GetNotificationConfigurationCommand = GetNotificationConfigurationCommand;
1462
+ exports.GetNotificationConfigurationRequest$ = GetNotificationConfigurationRequest$;
1463
+ exports.GetNotificationConfigurationResponse$ = GetNotificationConfigurationResponse$;
1464
+ exports.GetPolicy$ = GetPolicy$;
494
1465
  exports.GetPolicyCommand = GetPolicyCommand;
1466
+ exports.GetPolicyRequest$ = GetPolicyRequest$;
1467
+ exports.GetPolicyResponse$ = GetPolicyResponse$;
1468
+ exports.GetProfile$ = GetProfile$;
495
1469
  exports.GetProfileCommand = GetProfileCommand;
1470
+ exports.GetProfileRequest$ = GetProfileRequest$;
1471
+ exports.GetProfileResponse$ = GetProfileResponse$;
1472
+ exports.GetRecommendations$ = GetRecommendations$;
496
1473
  exports.GetRecommendationsCommand = GetRecommendationsCommand;
1474
+ exports.GetRecommendationsRequest$ = GetRecommendationsRequest$;
1475
+ exports.GetRecommendationsResponse$ = GetRecommendationsResponse$;
1476
+ exports.InternalServerException = InternalServerException;
1477
+ exports.InternalServerException$ = InternalServerException$;
1478
+ exports.ListFindingsReports$ = ListFindingsReports$;
497
1479
  exports.ListFindingsReportsCommand = ListFindingsReportsCommand;
1480
+ exports.ListFindingsReportsRequest$ = ListFindingsReportsRequest$;
1481
+ exports.ListFindingsReportsResponse$ = ListFindingsReportsResponse$;
1482
+ exports.ListProfileTimes$ = ListProfileTimes$;
498
1483
  exports.ListProfileTimesCommand = ListProfileTimesCommand;
1484
+ exports.ListProfileTimesRequest$ = ListProfileTimesRequest$;
1485
+ exports.ListProfileTimesResponse$ = ListProfileTimesResponse$;
1486
+ exports.ListProfilingGroups$ = ListProfilingGroups$;
499
1487
  exports.ListProfilingGroupsCommand = ListProfilingGroupsCommand;
1488
+ exports.ListProfilingGroupsRequest$ = ListProfilingGroupsRequest$;
1489
+ exports.ListProfilingGroupsResponse$ = ListProfilingGroupsResponse$;
1490
+ exports.ListTagsForResource$ = ListTagsForResource$;
500
1491
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1492
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
1493
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
1494
+ exports.Match$ = Match$;
501
1495
  exports.MetadataField = MetadataField;
1496
+ exports.Metric$ = Metric$;
502
1497
  exports.MetricType = MetricType;
1498
+ exports.NotificationConfiguration$ = NotificationConfiguration$;
503
1499
  exports.OrderBy = OrderBy;
1500
+ exports.Pattern$ = Pattern$;
1501
+ exports.PostAgentProfile$ = PostAgentProfile$;
504
1502
  exports.PostAgentProfileCommand = PostAgentProfileCommand;
1503
+ exports.PostAgentProfileRequest$ = PostAgentProfileRequest$;
1504
+ exports.PostAgentProfileResponse$ = PostAgentProfileResponse$;
1505
+ exports.ProfileTime$ = ProfileTime$;
1506
+ exports.ProfilingGroupDescription$ = ProfilingGroupDescription$;
1507
+ exports.ProfilingStatus$ = ProfilingStatus$;
1508
+ exports.PutPermission$ = PutPermission$;
505
1509
  exports.PutPermissionCommand = PutPermissionCommand;
1510
+ exports.PutPermissionRequest$ = PutPermissionRequest$;
1511
+ exports.PutPermissionResponse$ = PutPermissionResponse$;
1512
+ exports.Recommendation$ = Recommendation$;
1513
+ exports.RemoveNotificationChannel$ = RemoveNotificationChannel$;
506
1514
  exports.RemoveNotificationChannelCommand = RemoveNotificationChannelCommand;
1515
+ exports.RemoveNotificationChannelRequest$ = RemoveNotificationChannelRequest$;
1516
+ exports.RemoveNotificationChannelResponse$ = RemoveNotificationChannelResponse$;
1517
+ exports.RemovePermission$ = RemovePermission$;
507
1518
  exports.RemovePermissionCommand = RemovePermissionCommand;
1519
+ exports.RemovePermissionRequest$ = RemovePermissionRequest$;
1520
+ exports.RemovePermissionResponse$ = RemovePermissionResponse$;
1521
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1522
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1523
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1524
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
1525
+ exports.SubmitFeedback$ = SubmitFeedback$;
508
1526
  exports.SubmitFeedbackCommand = SubmitFeedbackCommand;
1527
+ exports.SubmitFeedbackRequest$ = SubmitFeedbackRequest$;
1528
+ exports.SubmitFeedbackResponse$ = SubmitFeedbackResponse$;
1529
+ exports.TagResource$ = TagResource$;
509
1530
  exports.TagResourceCommand = TagResourceCommand;
1531
+ exports.TagResourceRequest$ = TagResourceRequest$;
1532
+ exports.TagResourceResponse$ = TagResourceResponse$;
1533
+ exports.ThrottlingException = ThrottlingException;
1534
+ exports.ThrottlingException$ = ThrottlingException$;
1535
+ exports.TimestampStructure$ = TimestampStructure$;
1536
+ exports.UntagResource$ = UntagResource$;
510
1537
  exports.UntagResourceCommand = UntagResourceCommand;
1538
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
1539
+ exports.UntagResourceResponse$ = UntagResourceResponse$;
1540
+ exports.UpdateProfilingGroup$ = UpdateProfilingGroup$;
511
1541
  exports.UpdateProfilingGroupCommand = UpdateProfilingGroupCommand;
1542
+ exports.UpdateProfilingGroupRequest$ = UpdateProfilingGroupRequest$;
1543
+ exports.UpdateProfilingGroupResponse$ = UpdateProfilingGroupResponse$;
1544
+ exports.UserFeedback$ = UserFeedback$;
1545
+ exports.ValidationException = ValidationException;
1546
+ exports.ValidationException$ = ValidationException$;
1547
+ exports.errorTypeRegistries = errorTypeRegistries;
512
1548
  exports.paginateGetFindingsReportAccountSummary = paginateGetFindingsReportAccountSummary;
513
1549
  exports.paginateListFindingsReports = paginateListFindingsReports;
514
1550
  exports.paginateListProfileTimes = paginateListProfileTimes;