@aws-sdk/client-codeguruprofiler 3.987.0 → 3.989.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.
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultCodeGuruProfilerHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2019-07-18",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.codeguruprofiler",
30
+ errorTypeRegistries,
29
31
  version: "2019-07-18",
30
32
  serviceTarget: "CodeGuruProfiler",
31
33
  },
@@ -118,7 +118,7 @@ const _aP = "agentParameters";
118
118
  const _aPg = "agentProfile";
119
119
  const _an = "anomalies";
120
120
  const _ar = "arn";
121
- const _c = "channels";
121
+ const _c = "client";
122
122
  const _cA = "createdAt";
123
123
  const _cE = "contentEncoding";
124
124
  const _cI = "channelId";
@@ -126,7 +126,7 @@ const _cP = "computePlatform";
126
126
  const _cT = "clientToken";
127
127
  const _cTA = "countersToAggregate";
128
128
  const _cTo = "contentType";
129
- const _cl = "client";
129
+ const _ch = "channels";
130
130
  const _co = "configuration";
131
131
  const _com = "comment";
132
132
  const _d = "description";
@@ -154,11 +154,11 @@ const _l = "locale";
154
154
  const _lAOA = "latestAgentOrchestratedAt";
155
155
  const _lAP = "latestAggregatedProfile";
156
156
  const _lAPRA = "latestAgentProfileReportedAt";
157
- const _m = "metric";
157
+ const _m = "message";
158
158
  const _mD = "maxDepth";
159
159
  const _mR = "maxResults";
160
- const _me = "metadata";
161
- const _mes = "message";
160
+ const _me = "metric";
161
+ const _met = "metadata";
162
162
  const _n = "name";
163
163
  const _nC = "notificationConfiguration";
164
164
  const _nT = "nextToken";
@@ -186,11 +186,11 @@ const _rS = "reportSummaries";
186
186
  const _rSe = "resolutionSteps";
187
187
  const _re = "resolution";
188
188
  const _rec = "recommendations";
189
- const _s = "start";
189
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.codeguruprofiler";
190
190
  const _sP = "shouldProfile";
191
191
  const _sT = "startTime";
192
192
  const _se = "server";
193
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.codeguruprofiler";
193
+ const _st = "start";
194
194
  const _t = "tags";
195
195
  const _tBV = "thresholdBreachValue";
196
196
  const _tF = "targetFrames";
@@ -212,9 +212,53 @@ const n0 = "com.amazonaws.codeguruprofiler";
212
212
  import { TypeRegistry } from "@smithy/core/schema";
213
213
  import { CodeGuruProfilerServiceException } from "../models/CodeGuruProfilerServiceException";
214
214
  import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/errors";
215
+ const _s_registry = TypeRegistry.for(_s);
216
+ export var CodeGuruProfilerServiceException$ = [-3, _s, "CodeGuruProfilerServiceException", 0, [], []];
217
+ _s_registry.registerError(CodeGuruProfilerServiceException$, CodeGuruProfilerServiceException);
218
+ const n0_registry = TypeRegistry.for(n0);
219
+ export var ConflictException$ = [-3, n0, _CE,
220
+ { [_e]: _c, [_hE]: 409 },
221
+ [_m],
222
+ [0], 1
223
+ ];
224
+ n0_registry.registerError(ConflictException$, ConflictException);
225
+ export var InternalServerException$ = [-3, n0, _ISE,
226
+ { [_e]: _se, [_hE]: 500 },
227
+ [_m],
228
+ [0], 1
229
+ ];
230
+ n0_registry.registerError(InternalServerException$, InternalServerException);
231
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
232
+ { [_e]: _c, [_hE]: 404 },
233
+ [_m],
234
+ [0], 1
235
+ ];
236
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
237
+ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
238
+ { [_e]: _c, [_hE]: 402 },
239
+ [_m],
240
+ [0], 1
241
+ ];
242
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
243
+ export var ThrottlingException$ = [-3, n0, _TE,
244
+ { [_e]: _c, [_hE]: 429 },
245
+ [_m],
246
+ [0], 1
247
+ ];
248
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
249
+ export var ValidationException$ = [-3, n0, _VE,
250
+ { [_e]: _c, [_hE]: 400 },
251
+ [_m],
252
+ [0], 1
253
+ ];
254
+ n0_registry.registerError(ValidationException$, ValidationException);
255
+ export const errorTypeRegistries = [
256
+ _s_registry,
257
+ n0_registry,
258
+ ];
215
259
  export var AddNotificationChannelsRequest$ = [3, n0, _ANCR,
216
260
  0,
217
- [_pGN, _c],
261
+ [_pGN, _ch],
218
262
  [[0, 1], () => Channels], 2
219
263
  ];
220
264
  export var AddNotificationChannelsResponse$ = [3, n0, _ANCRd,
@@ -234,12 +278,12 @@ export var AgentOrchestrationConfig$ = [3, n0, _AOC,
234
278
  ];
235
279
  export var AggregatedProfileTime$ = [3, n0, _APT,
236
280
  0,
237
- [_s, _p],
281
+ [_st, _p],
238
282
  [5, 0]
239
283
  ];
240
284
  export var Anomaly$ = [3, n0, _A,
241
285
  0,
242
- [_m, _r, _i],
286
+ [_me, _r, _i],
243
287
  [() => Metric$, 0, () => AnomalyInstances], 3
244
288
  ];
245
289
  export var AnomalyInstance$ = [3, n0, _AI,
@@ -264,7 +308,7 @@ export var Channel$ = [3, n0, _C,
264
308
  ];
265
309
  export var ConfigureAgentRequest$ = [3, n0, _CAR,
266
310
  0,
267
- [_pGN, _fII, _me],
311
+ [_pGN, _fII, _met],
268
312
  [[0, 1], 0, 128 | 0], 1
269
313
  ];
270
314
  export var ConfigureAgentResponse$ = [3, n0, _CARo,
@@ -272,12 +316,6 @@ export var ConfigureAgentResponse$ = [3, n0, _CARo,
272
316
  [_co],
273
317
  [[() => AgentConfiguration$, 16]], 1
274
318
  ];
275
- export var ConflictException$ = [-3, n0, _CE,
276
- { [_e]: _cl, [_hE]: 409 },
277
- [_mes],
278
- [0], 1
279
- ];
280
- TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
281
319
  export var CreateProfilingGroupRequest$ = [3, n0, _CPGR,
282
320
  0,
283
321
  [_pGN, _cP, _cT, _aOC, _t],
@@ -373,12 +411,6 @@ export var GetRecommendationsResponse$ = [3, n0, _GRRe,
373
411
  [_pGN, _pST, _pET, _rec, _an],
374
412
  [0, 5, 5, () => Recommendations, () => Anomalies], 5
375
413
  ];
376
- export var InternalServerException$ = [-3, n0, _ISE,
377
- { [_e]: _se, [_hE]: 500 },
378
- [_mes],
379
- [0], 1
380
- ];
381
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
382
414
  export var ListFindingsReportsRequest$ = [3, n0, _LFRR,
383
415
  0,
384
416
  [_pGN, _sT, _eT, _nT, _mR, _dRO],
@@ -431,7 +463,7 @@ export var Metric$ = [3, n0, _Me,
431
463
  ];
432
464
  export var NotificationConfiguration$ = [3, n0, _NC,
433
465
  0,
434
- [_c],
466
+ [_ch],
435
467
  [() => Channels]
436
468
  ];
437
469
  export var Pattern$ = [3, n0, _P,
@@ -451,7 +483,7 @@ export var PostAgentProfileResponse$ = [3, n0, _PAPRo,
451
483
  ];
452
484
  export var ProfileTime$ = [3, n0, _PT,
453
485
  0,
454
- [_s],
486
+ [_st],
455
487
  [5]
456
488
  ];
457
489
  export var ProfilingGroupDescription$ = [3, n0, _PGD,
@@ -499,18 +531,6 @@ export var RemovePermissionResponse$ = [3, n0, _RPRe,
499
531
  [_po, _rI],
500
532
  [0, 0], 2
501
533
  ];
502
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
503
- { [_e]: _cl, [_hE]: 404 },
504
- [_mes],
505
- [0], 1
506
- ];
507
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
508
- export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
509
- { [_e]: _cl, [_hE]: 402 },
510
- [_mes],
511
- [0], 1
512
- ];
513
- TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
514
534
  export var SubmitFeedbackRequest$ = [3, n0, _SFR,
515
535
  0,
516
536
  [_pGN, _aII, _ty, _com],
@@ -531,12 +551,6 @@ export var TagResourceResponse$ = [3, n0, _TRRa,
531
551
  [],
532
552
  []
533
553
  ];
534
- export var ThrottlingException$ = [-3, n0, _TE,
535
- { [_e]: _cl, [_hE]: 429 },
536
- [_mes],
537
- [0], 1
538
- ];
539
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
540
554
  export var TimestampStructure$ = [3, n0, _TS,
541
555
  0,
542
556
  [_va],
@@ -567,14 +581,6 @@ export var UserFeedback$ = [3, n0, _UF,
567
581
  [_ty],
568
582
  [0], 1
569
583
  ];
570
- export var ValidationException$ = [-3, n0, _VE,
571
- { [_e]: _cl, [_hE]: 400 },
572
- [_mes],
573
- [0], 1
574
- ];
575
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
576
- export var CodeGuruProfilerServiceException$ = [-3, _sm, "CodeGuruProfilerServiceException", 0, [], []];
577
- TypeRegistry.for(_sm).registerError(CodeGuruProfilerServiceException$, CodeGuruProfilerServiceException);
578
584
  var Anomalies = [1, n0, _An,
579
585
  0, () => Anomaly$
580
586
  ];
@@ -1,4 +1,18 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var CodeGuruProfilerServiceException$: StaticErrorSchema;
4
+ export declare var ConflictException$: StaticErrorSchema;
5
+ export declare var InternalServerException$: StaticErrorSchema;
6
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
7
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
8
+ export declare var ThrottlingException$: StaticErrorSchema;
9
+ export declare var ValidationException$: StaticErrorSchema;
10
+ /**
11
+ * TypeRegistry instances containing modeled errors.
12
+ * @internal
13
+ *
14
+ */
15
+ export declare const errorTypeRegistries: TypeRegistry[];
2
16
  export declare var AddNotificationChannelsRequest$: StaticStructureSchema;
3
17
  export declare var AddNotificationChannelsResponse$: StaticStructureSchema;
4
18
  export declare var AgentConfiguration$: StaticStructureSchema;
@@ -11,7 +25,6 @@ export declare var BatchGetFrameMetricDataResponse$: StaticStructureSchema;
11
25
  export declare var Channel$: StaticStructureSchema;
12
26
  export declare var ConfigureAgentRequest$: StaticStructureSchema;
13
27
  export declare var ConfigureAgentResponse$: StaticStructureSchema;
14
- export declare var ConflictException$: StaticErrorSchema;
15
28
  export declare var CreateProfilingGroupRequest$: StaticStructureSchema;
16
29
  export declare var CreateProfilingGroupResponse$: StaticStructureSchema;
17
30
  export declare var DeleteProfilingGroupRequest$: StaticStructureSchema;
@@ -31,7 +44,6 @@ export declare var GetProfileRequest$: StaticStructureSchema;
31
44
  export declare var GetProfileResponse$: StaticStructureSchema;
32
45
  export declare var GetRecommendationsRequest$: StaticStructureSchema;
33
46
  export declare var GetRecommendationsResponse$: StaticStructureSchema;
34
- export declare var InternalServerException$: StaticErrorSchema;
35
47
  export declare var ListFindingsReportsRequest$: StaticStructureSchema;
36
48
  export declare var ListFindingsReportsResponse$: StaticStructureSchema;
37
49
  export declare var ListProfileTimesRequest$: StaticStructureSchema;
@@ -56,21 +68,16 @@ export declare var RemoveNotificationChannelRequest$: StaticStructureSchema;
56
68
  export declare var RemoveNotificationChannelResponse$: StaticStructureSchema;
57
69
  export declare var RemovePermissionRequest$: StaticStructureSchema;
58
70
  export declare var RemovePermissionResponse$: StaticStructureSchema;
59
- export declare var ResourceNotFoundException$: StaticErrorSchema;
60
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
61
71
  export declare var SubmitFeedbackRequest$: StaticStructureSchema;
62
72
  export declare var SubmitFeedbackResponse$: StaticStructureSchema;
63
73
  export declare var TagResourceRequest$: StaticStructureSchema;
64
74
  export declare var TagResourceResponse$: StaticStructureSchema;
65
- export declare var ThrottlingException$: StaticErrorSchema;
66
75
  export declare var TimestampStructure$: StaticStructureSchema;
67
76
  export declare var UntagResourceRequest$: StaticStructureSchema;
68
77
  export declare var UntagResourceResponse$: StaticStructureSchema;
69
78
  export declare var UpdateProfilingGroupRequest$: StaticStructureSchema;
70
79
  export declare var UpdateProfilingGroupResponse$: StaticStructureSchema;
71
80
  export declare var UserFeedback$: StaticStructureSchema;
72
- export declare var ValidationException$: StaticErrorSchema;
73
- export declare var CodeGuruProfilerServiceException$: StaticErrorSchema;
74
81
  export declare var AddNotificationChannels$: StaticOperationSchema;
75
82
  export declare var BatchGetFrameMetricData$: StaticOperationSchema;
76
83
  export declare var ConfigureAgent$: StaticOperationSchema;
@@ -1,8 +1,17 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
7
+ export declare var CodeGuruProfilerServiceException$: StaticErrorSchema;
8
+ export declare var ConflictException$: StaticErrorSchema;
9
+ export declare var InternalServerException$: StaticErrorSchema;
10
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
11
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
12
+ export declare var ThrottlingException$: StaticErrorSchema;
13
+ export declare var ValidationException$: StaticErrorSchema;
14
+ export declare const errorTypeRegistries: TypeRegistry[];
6
15
  export declare var AddNotificationChannelsRequest$: StaticStructureSchema;
7
16
  export declare var AddNotificationChannelsResponse$: StaticStructureSchema;
8
17
  export declare var AgentConfiguration$: StaticStructureSchema;
@@ -15,7 +24,6 @@ export declare var BatchGetFrameMetricDataResponse$: StaticStructureSchema;
15
24
  export declare var Channel$: StaticStructureSchema;
16
25
  export declare var ConfigureAgentRequest$: StaticStructureSchema;
17
26
  export declare var ConfigureAgentResponse$: StaticStructureSchema;
18
- export declare var ConflictException$: StaticErrorSchema;
19
27
  export declare var CreateProfilingGroupRequest$: StaticStructureSchema;
20
28
  export declare var CreateProfilingGroupResponse$: StaticStructureSchema;
21
29
  export declare var DeleteProfilingGroupRequest$: StaticStructureSchema;
@@ -35,7 +43,6 @@ export declare var GetProfileRequest$: StaticStructureSchema;
35
43
  export declare var GetProfileResponse$: StaticStructureSchema;
36
44
  export declare var GetRecommendationsRequest$: StaticStructureSchema;
37
45
  export declare var GetRecommendationsResponse$: StaticStructureSchema;
38
- export declare var InternalServerException$: StaticErrorSchema;
39
46
  export declare var ListFindingsReportsRequest$: StaticStructureSchema;
40
47
  export declare var ListFindingsReportsResponse$: StaticStructureSchema;
41
48
  export declare var ListProfileTimesRequest$: StaticStructureSchema;
@@ -60,21 +67,16 @@ export declare var RemoveNotificationChannelRequest$: StaticStructureSchema;
60
67
  export declare var RemoveNotificationChannelResponse$: StaticStructureSchema;
61
68
  export declare var RemovePermissionRequest$: StaticStructureSchema;
62
69
  export declare var RemovePermissionResponse$: StaticStructureSchema;
63
- export declare var ResourceNotFoundException$: StaticErrorSchema;
64
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
65
70
  export declare var SubmitFeedbackRequest$: StaticStructureSchema;
66
71
  export declare var SubmitFeedbackResponse$: StaticStructureSchema;
67
72
  export declare var TagResourceRequest$: StaticStructureSchema;
68
73
  export declare var TagResourceResponse$: StaticStructureSchema;
69
- export declare var ThrottlingException$: StaticErrorSchema;
70
74
  export declare var TimestampStructure$: StaticStructureSchema;
71
75
  export declare var UntagResourceRequest$: StaticStructureSchema;
72
76
  export declare var UntagResourceResponse$: StaticStructureSchema;
73
77
  export declare var UpdateProfilingGroupRequest$: StaticStructureSchema;
74
78
  export declare var UpdateProfilingGroupResponse$: StaticStructureSchema;
75
79
  export declare var UserFeedback$: StaticStructureSchema;
76
- export declare var ValidationException$: StaticErrorSchema;
77
- export declare var CodeGuruProfilerServiceException$: StaticErrorSchema;
78
80
  export declare var AddNotificationChannels$: StaticOperationSchema;
79
81
  export declare var BatchGetFrameMetricData$: StaticOperationSchema;
80
82
  export declare var ConfigureAgent$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codeguruprofiler",
3
3
  "description": "AWS SDK for JavaScript Codeguruprofiler Client for Node.js, Browser and React Native",
4
- "version": "3.987.0",
4
+ "version": "3.989.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-codeguruprofiler",
@@ -21,42 +21,42 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.9",
25
+ "@aws-sdk/credential-provider-node": "^3.972.8",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.3",
27
27
  "@aws-sdk/middleware-logger": "^3.972.3",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
- "@aws-sdk/middleware-user-agent": "^3.972.7",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.9",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.987.0",
32
+ "@aws-sdk/util-endpoints": "3.989.0",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
- "@aws-sdk/util-user-agent-node": "^3.972.5",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.7",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.22.1",
36
+ "@smithy/core": "^3.23.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.13",
42
- "@smithy/middleware-retry": "^4.4.30",
41
+ "@smithy/middleware-endpoint": "^4.4.14",
42
+ "@smithy/middleware-retry": "^4.4.31",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
- "@smithy/node-http-handler": "^4.4.9",
46
+ "@smithy/node-http-handler": "^4.4.10",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.11.2",
48
+ "@smithy/smithy-client": "^4.11.3",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.29",
55
- "@smithy/util-defaults-mode-node": "^4.2.32",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
55
+ "@smithy/util-defaults-mode-node": "^4.2.33",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",
59
- "@smithy/util-stream": "^4.5.11",
59
+ "@smithy/util-stream": "^4.5.12",
60
60
  "@smithy/util-utf8": "^4.2.0",
61
61
  "tslib": "^2.6.2"
62
62
  },