@aws-sdk/client-codeguru-security 3.928.0 → 3.930.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist-cjs/index.js +720 -701
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/CodeGuruSecurityClient.js +2 -0
  4. package/dist-es/commands/BatchGetFindingsCommand.js +3 -9
  5. package/dist-es/commands/CreateScanCommand.js +3 -9
  6. package/dist-es/commands/CreateUploadUrlCommand.js +3 -10
  7. package/dist-es/commands/GetAccountConfigurationCommand.js +3 -9
  8. package/dist-es/commands/GetFindingsCommand.js +3 -9
  9. package/dist-es/commands/GetMetricsSummaryCommand.js +3 -9
  10. package/dist-es/commands/GetScanCommand.js +3 -9
  11. package/dist-es/commands/ListFindingsMetricsCommand.js +3 -9
  12. package/dist-es/commands/ListScansCommand.js +3 -9
  13. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  14. package/dist-es/commands/TagResourceCommand.js +3 -9
  15. package/dist-es/commands/UntagResourceCommand.js +3 -9
  16. package/dist-es/commands/UpdateAccountConfigurationCommand.js +3 -9
  17. package/dist-es/models/models_0.js +0 -14
  18. package/dist-es/runtimeConfig.shared.js +2 -0
  19. package/dist-es/schemas/schemas_0.js +687 -0
  20. package/dist-types/CodeGuruSecurityClient.d.ts +10 -1
  21. package/dist-types/models/models_0.d.ts +4 -5
  22. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  23. package/dist-types/runtimeConfig.d.ts +1 -0
  24. package/dist-types/runtimeConfig.native.d.ts +1 -0
  25. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  26. package/dist-types/schemas/schemas_0.d.ts +85 -0
  27. package/dist-types/ts3.4/CodeGuruSecurityClient.d.ts +4 -0
  28. package/dist-types/ts3.4/models/models_0.d.ts +0 -4
  29. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  30. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  31. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  32. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  33. package/dist-types/ts3.4/schemas/schemas_0.d.ts +92 -0
  34. package/package.json +33 -34
  35. package/dist-es/protocols/Aws_restJson1.js +0 -586
  36. package/dist-types/protocols/Aws_restJson1.d.ts +0 -119
  37. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -161
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,9 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
- var uuid = require('@smithy/uuid');
20
18
 
21
19
  const resolveClientEndpointParameters = (options) => {
22
20
  return Object.assign(options, {
@@ -92,6 +90,7 @@ class CodeGuruSecurityClient extends smithyClient.Client {
92
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
93
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
94
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
95
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
96
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
97
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -111,14 +110,14 @@ class CodeGuruSecurityClient extends smithyClient.Client {
111
110
  }
112
111
  }
113
112
 
114
- class CodeGuruSecurityServiceException extends smithyClient.ServiceException {
113
+ let CodeGuruSecurityServiceException$1 = class CodeGuruSecurityServiceException extends smithyClient.ServiceException {
115
114
  constructor(options) {
116
115
  super(options);
117
116
  Object.setPrototypeOf(this, CodeGuruSecurityServiceException.prototype);
118
117
  }
119
- }
118
+ };
120
119
 
121
- class AccessDeniedException extends CodeGuruSecurityServiceException {
120
+ let AccessDeniedException$1 = class AccessDeniedException extends CodeGuruSecurityServiceException$1 {
122
121
  name = "AccessDeniedException";
123
122
  $fault = "client";
124
123
  errorCode;
@@ -135,7 +134,7 @@ class AccessDeniedException extends CodeGuruSecurityServiceException {
135
134
  this.resourceId = opts.resourceId;
136
135
  this.resourceType = opts.resourceType;
137
136
  }
138
- }
137
+ };
139
138
  const AnalysisType = {
140
139
  ALL: "All",
141
140
  SECURITY: "Security",
@@ -159,7 +158,7 @@ const Status = {
159
158
  CLOSED: "Closed",
160
159
  OPEN: "Open",
161
160
  };
162
- class InternalServerException extends CodeGuruSecurityServiceException {
161
+ let InternalServerException$1 = class InternalServerException extends CodeGuruSecurityServiceException$1 {
163
162
  name = "InternalServerException";
164
163
  $fault = "server";
165
164
  $retryable = {};
@@ -173,8 +172,8 @@ class InternalServerException extends CodeGuruSecurityServiceException {
173
172
  Object.setPrototypeOf(this, InternalServerException.prototype);
174
173
  this.error = opts.error;
175
174
  }
176
- }
177
- class ThrottlingException extends CodeGuruSecurityServiceException {
175
+ };
176
+ let ThrottlingException$1 = class ThrottlingException extends CodeGuruSecurityServiceException$1 {
178
177
  name = "ThrottlingException";
179
178
  $fault = "client";
180
179
  $retryable = {
@@ -194,7 +193,7 @@ class ThrottlingException extends CodeGuruSecurityServiceException {
194
193
  this.serviceCode = opts.serviceCode;
195
194
  this.quotaCode = opts.quotaCode;
196
195
  }
197
- }
196
+ };
198
197
  const ValidationExceptionReason = {
199
198
  CANNOT_PARSE: "cannotParse",
200
199
  FIELD_VALIDATION_FAILED: "fieldValidationFailed",
@@ -202,7 +201,7 @@ const ValidationExceptionReason = {
202
201
  OTHER: "other",
203
202
  UNKNOWN_OPERATION: "unknownOperation",
204
203
  };
205
- class ValidationException extends CodeGuruSecurityServiceException {
204
+ let ValidationException$1 = class ValidationException extends CodeGuruSecurityServiceException$1 {
206
205
  name = "ValidationException";
207
206
  $fault = "client";
208
207
  errorCode;
@@ -219,8 +218,8 @@ class ValidationException extends CodeGuruSecurityServiceException {
219
218
  this.reason = opts.reason;
220
219
  this.fieldList = opts.fieldList;
221
220
  }
222
- }
223
- class ConflictException extends CodeGuruSecurityServiceException {
221
+ };
222
+ let ConflictException$1 = class ConflictException extends CodeGuruSecurityServiceException$1 {
224
223
  name = "ConflictException";
225
224
  $fault = "client";
226
225
  errorCode;
@@ -237,15 +236,7 @@ class ConflictException extends CodeGuruSecurityServiceException {
237
236
  this.resourceId = opts.resourceId;
238
237
  this.resourceType = opts.resourceType;
239
238
  }
240
- }
241
- exports.ResourceId = void 0;
242
- (function (ResourceId) {
243
- ResourceId.visit = (value, visitor) => {
244
- if (value.codeArtifactId !== undefined)
245
- return visitor.codeArtifactId(value.codeArtifactId);
246
- return visitor._(value.$unknown[0], value.$unknown[1]);
247
- };
248
- })(exports.ResourceId || (exports.ResourceId = {}));
239
+ };
249
240
  const ScanType = {
250
241
  EXPRESS: "Express",
251
242
  STANDARD: "Standard",
@@ -255,7 +246,7 @@ const ScanState = {
255
246
  IN_PROGRESS: "InProgress",
256
247
  SUCCESSFUL: "Successful",
257
248
  };
258
- class ResourceNotFoundException extends CodeGuruSecurityServiceException {
249
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends CodeGuruSecurityServiceException$1 {
259
250
  name = "ResourceNotFoundException";
260
251
  $fault = "client";
261
252
  errorCode;
@@ -272,607 +263,696 @@ class ResourceNotFoundException extends CodeGuruSecurityServiceException {
272
263
  this.resourceId = opts.resourceId;
273
264
  this.resourceType = opts.resourceType;
274
265
  }
275
- }
276
- const CreateUploadUrlResponseFilterSensitiveLog = (obj) => ({
277
- ...obj,
278
- ...(obj.s3Url && { s3Url: smithyClient.SENSITIVE_STRING }),
279
- ...(obj.requestHeaders && { requestHeaders: smithyClient.SENSITIVE_STRING }),
280
- });
281
-
282
- const se_BatchGetFindingsCommand = async (input, context) => {
283
- const b = core.requestBuilder(input, context);
284
- const headers = {
285
- "content-type": "application/json",
286
- };
287
- b.bp("/batchGetFindings");
288
- let body;
289
- body = JSON.stringify(smithyClient.take(input, {
290
- findingIdentifiers: (_) => smithyClient._json(_),
291
- }));
292
- b.m("POST").h(headers).b(body);
293
- return b.build();
294
- };
295
- const se_CreateScanCommand = async (input, context) => {
296
- const b = core.requestBuilder(input, context);
297
- const headers = {
298
- "content-type": "application/json",
299
- };
300
- b.bp("/scans");
301
- let body;
302
- body = JSON.stringify(smithyClient.take(input, {
303
- analysisType: [],
304
- clientToken: [true, (_) => _ ?? uuid.v4()],
305
- resourceId: (_) => smithyClient._json(_),
306
- scanName: [],
307
- scanType: [],
308
- tags: (_) => smithyClient._json(_),
309
- }));
310
- b.m("POST").h(headers).b(body);
311
- return b.build();
312
- };
313
- const se_CreateUploadUrlCommand = async (input, context) => {
314
- const b = core.requestBuilder(input, context);
315
- const headers = {
316
- "content-type": "application/json",
317
- };
318
- b.bp("/uploadUrl");
319
- let body;
320
- body = JSON.stringify(smithyClient.take(input, {
321
- scanName: [],
322
- }));
323
- b.m("POST").h(headers).b(body);
324
- return b.build();
325
- };
326
- const se_GetAccountConfigurationCommand = async (input, context) => {
327
- const b = core.requestBuilder(input, context);
328
- const headers = {};
329
- b.bp("/accountConfiguration/get");
330
- let body;
331
- b.m("GET").h(headers).b(body);
332
- return b.build();
333
- };
334
- const se_GetFindingsCommand = async (input, context) => {
335
- const b = core.requestBuilder(input, context);
336
- const headers = {};
337
- b.bp("/findings/{scanName}");
338
- b.p("scanName", () => input.scanName, "{scanName}", false);
339
- const query = smithyClient.map({
340
- [_nT]: [, input[_nT]],
341
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
342
- [_s]: [, input[_s]],
343
- });
344
- let body;
345
- b.m("GET").h(headers).q(query).b(body);
346
- return b.build();
347
- };
348
- const se_GetMetricsSummaryCommand = async (input, context) => {
349
- const b = core.requestBuilder(input, context);
350
- const headers = {};
351
- b.bp("/metrics/summary");
352
- const query = smithyClient.map({
353
- [_d]: [smithyClient.expectNonNull(input.date, `date`) != null, () => smithyClient.serializeDateTime(input[_d]).toString()],
354
- });
355
- let body;
356
- b.m("GET").h(headers).q(query).b(body);
357
- return b.build();
358
- };
359
- const se_GetScanCommand = async (input, context) => {
360
- const b = core.requestBuilder(input, context);
361
- const headers = {};
362
- b.bp("/scans/{scanName}");
363
- b.p("scanName", () => input.scanName, "{scanName}", false);
364
- const query = smithyClient.map({
365
- [_rI]: [, input[_rI]],
366
- });
367
- let body;
368
- b.m("GET").h(headers).q(query).b(body);
369
- return b.build();
370
- };
371
- const se_ListFindingsMetricsCommand = async (input, context) => {
372
- const b = core.requestBuilder(input, context);
373
- const headers = {};
374
- b.bp("/metrics/findings");
375
- const query = smithyClient.map({
376
- [_nT]: [, input[_nT]],
377
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
378
- [_sD]: [smithyClient.expectNonNull(input.startDate, `startDate`) != null, () => smithyClient.serializeDateTime(input[_sD]).toString()],
379
- [_eD]: [smithyClient.expectNonNull(input.endDate, `endDate`) != null, () => smithyClient.serializeDateTime(input[_eD]).toString()],
380
- });
381
- let body;
382
- b.m("GET").h(headers).q(query).b(body);
383
- return b.build();
384
- };
385
- const se_ListScansCommand = async (input, context) => {
386
- const b = core.requestBuilder(input, context);
387
- const headers = {};
388
- b.bp("/scans");
389
- const query = smithyClient.map({
390
- [_nT]: [, input[_nT]],
391
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
392
- });
393
- let body;
394
- b.m("GET").h(headers).q(query).b(body);
395
- return b.build();
396
- };
397
- const se_ListTagsForResourceCommand = async (input, context) => {
398
- const b = core.requestBuilder(input, context);
399
- const headers = {};
400
- b.bp("/tags/{resourceArn}");
401
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
402
- let body;
403
- b.m("GET").h(headers).b(body);
404
- return b.build();
405
- };
406
- const se_TagResourceCommand = async (input, context) => {
407
- const b = core.requestBuilder(input, context);
408
- const headers = {
409
- "content-type": "application/json",
410
- };
411
- b.bp("/tags/{resourceArn}");
412
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
413
- let body;
414
- body = JSON.stringify(smithyClient.take(input, {
415
- tags: (_) => smithyClient._json(_),
416
- }));
417
- b.m("POST").h(headers).b(body);
418
- return b.build();
419
- };
420
- const se_UntagResourceCommand = async (input, context) => {
421
- const b = core.requestBuilder(input, context);
422
- const headers = {};
423
- b.bp("/tags/{resourceArn}");
424
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
425
- const query = smithyClient.map({
426
- [_tK]: [smithyClient.expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
427
- });
428
- let body;
429
- b.m("DELETE").h(headers).q(query).b(body);
430
- return b.build();
431
- };
432
- const se_UpdateAccountConfigurationCommand = async (input, context) => {
433
- const b = core.requestBuilder(input, context);
434
- const headers = {
435
- "content-type": "application/json",
436
- };
437
- b.bp("/updateAccountConfiguration");
438
- let body;
439
- body = JSON.stringify(smithyClient.take(input, {
440
- encryptionConfig: (_) => smithyClient._json(_),
441
- }));
442
- b.m("PUT").h(headers).b(body);
443
- return b.build();
444
- };
445
- const de_BatchGetFindingsCommand = async (output, context) => {
446
- if (output.statusCode !== 200 && output.statusCode >= 300) {
447
- return de_CommandError(output, context);
448
- }
449
- const contents = smithyClient.map({
450
- $metadata: deserializeMetadata(output),
451
- });
452
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
453
- const doc = smithyClient.take(data, {
454
- failedFindings: smithyClient._json,
455
- findings: (_) => de_Findings(_),
456
- });
457
- Object.assign(contents, doc);
458
- return contents;
459
- };
460
- const de_CreateScanCommand = async (output, context) => {
461
- if (output.statusCode !== 200 && output.statusCode >= 300) {
462
- return de_CommandError(output, context);
463
- }
464
- const contents = smithyClient.map({
465
- $metadata: deserializeMetadata(output),
466
- });
467
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
468
- const doc = smithyClient.take(data, {
469
- resourceId: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
470
- runId: smithyClient.expectString,
471
- scanName: smithyClient.expectString,
472
- scanNameArn: smithyClient.expectString,
473
- scanState: smithyClient.expectString,
474
- });
475
- Object.assign(contents, doc);
476
- return contents;
477
- };
478
- const de_CreateUploadUrlCommand = async (output, context) => {
479
- if (output.statusCode !== 200 && output.statusCode >= 300) {
480
- return de_CommandError(output, context);
481
- }
482
- const contents = smithyClient.map({
483
- $metadata: deserializeMetadata(output),
484
- });
485
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
486
- const doc = smithyClient.take(data, {
487
- codeArtifactId: smithyClient.expectString,
488
- requestHeaders: smithyClient._json,
489
- s3Url: smithyClient.expectString,
490
- });
491
- Object.assign(contents, doc);
492
- return contents;
493
- };
494
- const de_GetAccountConfigurationCommand = async (output, context) => {
495
- if (output.statusCode !== 200 && output.statusCode >= 300) {
496
- return de_CommandError(output, context);
497
- }
498
- const contents = smithyClient.map({
499
- $metadata: deserializeMetadata(output),
500
- });
501
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
502
- const doc = smithyClient.take(data, {
503
- encryptionConfig: smithyClient._json,
504
- });
505
- Object.assign(contents, doc);
506
- return contents;
507
- };
508
- const de_GetFindingsCommand = async (output, context) => {
509
- if (output.statusCode !== 200 && output.statusCode >= 300) {
510
- return de_CommandError(output, context);
511
- }
512
- const contents = smithyClient.map({
513
- $metadata: deserializeMetadata(output),
514
- });
515
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
516
- const doc = smithyClient.take(data, {
517
- findings: (_) => de_Findings(_),
518
- nextToken: smithyClient.expectString,
519
- });
520
- Object.assign(contents, doc);
521
- return contents;
522
- };
523
- const de_GetMetricsSummaryCommand = async (output, context) => {
524
- if (output.statusCode !== 200 && output.statusCode >= 300) {
525
- return de_CommandError(output, context);
526
- }
527
- const contents = smithyClient.map({
528
- $metadata: deserializeMetadata(output),
529
- });
530
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
531
- const doc = smithyClient.take(data, {
532
- metricsSummary: (_) => de_MetricsSummary(_),
533
- });
534
- Object.assign(contents, doc);
535
- return contents;
536
- };
537
- const de_GetScanCommand = async (output, context) => {
538
- if (output.statusCode !== 200 && output.statusCode >= 300) {
539
- return de_CommandError(output, context);
540
- }
541
- const contents = smithyClient.map({
542
- $metadata: deserializeMetadata(output),
543
- });
544
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
545
- const doc = smithyClient.take(data, {
546
- analysisType: smithyClient.expectString,
547
- createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
548
- errorMessage: smithyClient.expectString,
549
- numberOfRevisions: smithyClient.expectLong,
550
- runId: smithyClient.expectString,
551
- scanName: smithyClient.expectString,
552
- scanNameArn: smithyClient.expectString,
553
- scanState: smithyClient.expectString,
554
- updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
555
- });
556
- Object.assign(contents, doc);
557
- return contents;
558
- };
559
- const de_ListFindingsMetricsCommand = async (output, context) => {
560
- if (output.statusCode !== 200 && output.statusCode >= 300) {
561
- return de_CommandError(output, context);
562
- }
563
- const contents = smithyClient.map({
564
- $metadata: deserializeMetadata(output),
565
- });
566
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
567
- const doc = smithyClient.take(data, {
568
- findingsMetrics: (_) => de_FindingsMetricList(_),
569
- nextToken: smithyClient.expectString,
570
- });
571
- Object.assign(contents, doc);
572
- return contents;
573
- };
574
- const de_ListScansCommand = async (output, context) => {
575
- if (output.statusCode !== 200 && output.statusCode >= 300) {
576
- return de_CommandError(output, context);
577
- }
578
- const contents = smithyClient.map({
579
- $metadata: deserializeMetadata(output),
580
- });
581
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
582
- const doc = smithyClient.take(data, {
583
- nextToken: smithyClient.expectString,
584
- summaries: (_) => de_ScanSummaries(_),
585
- });
586
- Object.assign(contents, doc);
587
- return contents;
588
- };
589
- const de_ListTagsForResourceCommand = async (output, context) => {
590
- if (output.statusCode !== 200 && output.statusCode >= 300) {
591
- return de_CommandError(output, context);
592
- }
593
- const contents = smithyClient.map({
594
- $metadata: deserializeMetadata(output),
595
- });
596
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
597
- const doc = smithyClient.take(data, {
598
- tags: smithyClient._json,
599
- });
600
- Object.assign(contents, doc);
601
- return contents;
602
- };
603
- const de_TagResourceCommand = async (output, context) => {
604
- if (output.statusCode !== 204 && output.statusCode >= 300) {
605
- return de_CommandError(output, context);
606
- }
607
- const contents = smithyClient.map({
608
- $metadata: deserializeMetadata(output),
609
- });
610
- await smithyClient.collectBody(output.body, context);
611
- return contents;
612
- };
613
- const de_UntagResourceCommand = async (output, context) => {
614
- if (output.statusCode !== 204 && output.statusCode >= 300) {
615
- return de_CommandError(output, context);
616
- }
617
- const contents = smithyClient.map({
618
- $metadata: deserializeMetadata(output),
619
- });
620
- await smithyClient.collectBody(output.body, context);
621
- return contents;
622
- };
623
- const de_UpdateAccountConfigurationCommand = async (output, context) => {
624
- if (output.statusCode !== 200 && output.statusCode >= 300) {
625
- return de_CommandError(output, context);
626
- }
627
- const contents = smithyClient.map({
628
- $metadata: deserializeMetadata(output),
629
- });
630
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
631
- const doc = smithyClient.take(data, {
632
- encryptionConfig: smithyClient._json,
633
- });
634
- Object.assign(contents, doc);
635
- return contents;
636
- };
637
- const de_CommandError = async (output, context) => {
638
- const parsedOutput = {
639
- ...output,
640
- body: await core$1.parseJsonErrorBody(output.body, context),
641
- };
642
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
643
- switch (errorCode) {
644
- case "AccessDeniedException":
645
- case "com.amazonaws.codegurusecurity#AccessDeniedException":
646
- throw await de_AccessDeniedExceptionRes(parsedOutput);
647
- case "InternalServerException":
648
- case "com.amazonaws.codegurusecurity#InternalServerException":
649
- throw await de_InternalServerExceptionRes(parsedOutput);
650
- case "ThrottlingException":
651
- case "com.amazonaws.codegurusecurity#ThrottlingException":
652
- throw await de_ThrottlingExceptionRes(parsedOutput);
653
- case "ValidationException":
654
- case "com.amazonaws.codegurusecurity#ValidationException":
655
- throw await de_ValidationExceptionRes(parsedOutput);
656
- case "ConflictException":
657
- case "com.amazonaws.codegurusecurity#ConflictException":
658
- throw await de_ConflictExceptionRes(parsedOutput);
659
- case "ResourceNotFoundException":
660
- case "com.amazonaws.codegurusecurity#ResourceNotFoundException":
661
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
662
- default:
663
- const parsedBody = parsedOutput.body;
664
- return throwDefaultError({
665
- output,
666
- parsedBody,
667
- errorCode,
668
- });
669
- }
670
- };
671
- const throwDefaultError = smithyClient.withBaseException(CodeGuruSecurityServiceException);
672
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
673
- const contents = smithyClient.map({});
674
- const data = parsedOutput.body;
675
- const doc = smithyClient.take(data, {
676
- errorCode: smithyClient.expectString,
677
- message: smithyClient.expectString,
678
- resourceId: smithyClient.expectString,
679
- resourceType: smithyClient.expectString,
680
- });
681
- Object.assign(contents, doc);
682
- const exception = new AccessDeniedException({
683
- $metadata: deserializeMetadata(parsedOutput),
684
- ...contents,
685
- });
686
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
687
- };
688
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
689
- const contents = smithyClient.map({});
690
- const data = parsedOutput.body;
691
- const doc = smithyClient.take(data, {
692
- errorCode: smithyClient.expectString,
693
- message: smithyClient.expectString,
694
- resourceId: smithyClient.expectString,
695
- resourceType: smithyClient.expectString,
696
- });
697
- Object.assign(contents, doc);
698
- const exception = new ConflictException({
699
- $metadata: deserializeMetadata(parsedOutput),
700
- ...contents,
701
- });
702
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
703
- };
704
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
705
- const contents = smithyClient.map({});
706
- const data = parsedOutput.body;
707
- const doc = smithyClient.take(data, {
708
- error: smithyClient.expectString,
709
- message: smithyClient.expectString,
710
- });
711
- Object.assign(contents, doc);
712
- const exception = new InternalServerException({
713
- $metadata: deserializeMetadata(parsedOutput),
714
- ...contents,
715
- });
716
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
717
- };
718
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
719
- const contents = smithyClient.map({});
720
- const data = parsedOutput.body;
721
- const doc = smithyClient.take(data, {
722
- errorCode: smithyClient.expectString,
723
- message: smithyClient.expectString,
724
- resourceId: smithyClient.expectString,
725
- resourceType: smithyClient.expectString,
726
- });
727
- Object.assign(contents, doc);
728
- const exception = new ResourceNotFoundException({
729
- $metadata: deserializeMetadata(parsedOutput),
730
- ...contents,
731
- });
732
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
733
- };
734
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
735
- const contents = smithyClient.map({});
736
- const data = parsedOutput.body;
737
- const doc = smithyClient.take(data, {
738
- errorCode: smithyClient.expectString,
739
- message: smithyClient.expectString,
740
- quotaCode: smithyClient.expectString,
741
- serviceCode: smithyClient.expectString,
742
- });
743
- Object.assign(contents, doc);
744
- const exception = new ThrottlingException({
745
- $metadata: deserializeMetadata(parsedOutput),
746
- ...contents,
747
- });
748
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
749
- };
750
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
751
- const contents = smithyClient.map({});
752
- const data = parsedOutput.body;
753
- const doc = smithyClient.take(data, {
754
- errorCode: smithyClient.expectString,
755
- fieldList: smithyClient._json,
756
- message: smithyClient.expectString,
757
- reason: smithyClient.expectString,
758
- });
759
- Object.assign(contents, doc);
760
- const exception = new ValidationException({
761
- $metadata: deserializeMetadata(parsedOutput),
762
- ...contents,
763
- });
764
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
765
- };
766
- const de_AccountFindingsMetric = (output, context) => {
767
- return smithyClient.take(output, {
768
- closedFindings: (_) => de_FindingMetricsValuePerSeverity(_),
769
- date: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
770
- meanTimeToClose: (_) => de_FindingMetricsValuePerSeverity(_),
771
- newFindings: (_) => de_FindingMetricsValuePerSeverity(_),
772
- openFindings: (_) => de_FindingMetricsValuePerSeverity(_),
773
- });
774
266
  };
775
- const de_Finding = (output, context) => {
776
- return smithyClient.take(output, {
777
- createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
778
- description: smithyClient.expectString,
779
- detectorId: smithyClient.expectString,
780
- detectorName: smithyClient.expectString,
781
- detectorTags: smithyClient._json,
782
- generatorId: smithyClient.expectString,
783
- id: smithyClient.expectString,
784
- remediation: smithyClient._json,
785
- resource: smithyClient._json,
786
- ruleId: smithyClient.expectString,
787
- severity: smithyClient.expectString,
788
- status: smithyClient.expectString,
789
- title: smithyClient.expectString,
790
- type: smithyClient.expectString,
791
- updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
792
- vulnerability: smithyClient._json,
793
- });
794
- };
795
- const de_FindingMetricsValuePerSeverity = (output, context) => {
796
- return smithyClient.take(output, {
797
- critical: smithyClient.limitedParseDouble,
798
- high: smithyClient.limitedParseDouble,
799
- info: smithyClient.limitedParseDouble,
800
- low: smithyClient.limitedParseDouble,
801
- medium: smithyClient.limitedParseDouble,
802
- });
803
- };
804
- const de_Findings = (output, context) => {
805
- const retVal = (output || [])
806
- .filter((e) => e != null)
807
- .map((entry) => {
808
- return de_Finding(entry);
809
- });
810
- return retVal;
811
- };
812
- const de_FindingsMetricList = (output, context) => {
813
- const retVal = (output || [])
814
- .filter((e) => e != null)
815
- .map((entry) => {
816
- return de_AccountFindingsMetric(entry);
817
- });
818
- return retVal;
819
- };
820
- const de_MetricsSummary = (output, context) => {
821
- return smithyClient.take(output, {
822
- categoriesWithMostFindings: smithyClient._json,
823
- date: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
824
- openFindings: (_) => de_FindingMetricsValuePerSeverity(_),
825
- scansWithMostOpenCriticalFindings: smithyClient._json,
826
- scansWithMostOpenFindings: smithyClient._json,
827
- });
828
- };
829
- const de_ScanSummaries = (output, context) => {
830
- const retVal = (output || [])
831
- .filter((e) => e != null)
832
- .map((entry) => {
833
- return de_ScanSummary(entry);
834
- });
835
- return retVal;
836
- };
837
- const de_ScanSummary = (output, context) => {
838
- return smithyClient.take(output, {
839
- createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
840
- runId: smithyClient.expectString,
841
- scanName: smithyClient.expectString,
842
- scanNameArn: smithyClient.expectString,
843
- scanState: smithyClient.expectString,
844
- updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
845
- });
846
- };
847
- const deserializeMetadata = (output) => ({
848
- httpStatusCode: output.statusCode,
849
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
850
- extendedRequestId: output.headers["x-amz-id-2"],
851
- cfId: output.headers["x-amz-cf-id"],
852
- });
267
+
268
+ const _ADE = "AccessDeniedException";
269
+ const _AFM = "AccountFindingsMetric";
270
+ const _BGF = "BatchGetFindings";
271
+ const _BGFE = "BatchGetFindingsError";
272
+ const _BGFEa = "BatchGetFindingsErrors";
273
+ const _BGFR = "BatchGetFindingsRequest";
274
+ const _BGFRa = "BatchGetFindingsResponse";
275
+ const _CE = "ConflictException";
276
+ const _CL = "CodeLine";
277
+ const _CS = "CodeSnippet";
278
+ const _CSR = "CreateScanRequest";
279
+ const _CSRr = "CreateScanResponse";
280
+ const _CSr = "CreateScan";
281
+ const _CUU = "CreateUploadUrl";
282
+ const _CUUR = "CreateUploadUrlRequest";
283
+ const _CUURr = "CreateUploadUrlResponse";
284
+ const _CWFN = "CategoryWithFindingNum";
285
+ const _CWMF = "CategoriesWithMostFindings";
286
+ const _EC = "EncryptionConfig";
287
+ const _F = "Finding";
288
+ const _FI = "FindingIdentifier";
289
+ const _FIi = "FindingIdentifiers";
290
+ const _FML = "FindingsMetricList";
291
+ const _FMVPS = "FindingMetricsValuePerSeverity";
292
+ const _FP = "FilePath";
293
+ const _Fi = "Findings";
294
+ const _GAC = "GetAccountConfiguration";
295
+ const _GACR = "GetAccountConfigurationRequest";
296
+ const _GACRe = "GetAccountConfigurationResponse";
297
+ const _GF = "GetFindings";
298
+ const _GFR = "GetFindingsRequest";
299
+ const _GFRe = "GetFindingsResponse";
300
+ const _GMS = "GetMetricsSummary";
301
+ const _GMSR = "GetMetricsSummaryRequest";
302
+ const _GMSRe = "GetMetricsSummaryResponse";
303
+ const _GS = "GetScan";
304
+ const _GSR = "GetScanRequest";
305
+ const _GSRe = "GetScanResponse";
306
+ const _ISE = "InternalServerException";
307
+ const _LFM = "ListFindingsMetrics";
308
+ const _LFMR = "ListFindingsMetricsRequest";
309
+ const _LFMRi = "ListFindingsMetricsResponse";
310
+ const _LS = "ListScans";
311
+ const _LSR = "ListScansRequest";
312
+ const _LSRi = "ListScansResponse";
313
+ const _LTFR = "ListTagsForResource";
314
+ const _LTFRR = "ListTagsForResourceRequest";
315
+ const _LTFRRi = "ListTagsForResourceResponse";
316
+ const _MS = "MetricsSummary";
317
+ const _R = "Recommendation";
318
+ const _RHM = "RequestHeaderMap";
319
+ const _RI = "ResourceId";
320
+ const _RNFE = "ResourceNotFoundException";
321
+ const _Re = "Remediation";
322
+ const _Res = "Resource";
323
+ const _SF = "SuggestedFix";
324
+ const _SFu = "SuggestedFixes";
325
+ const _SNWFN = "ScanNameWithFindingNum";
326
+ const _SS = "ScanSummary";
327
+ const _SSc = "ScanSummaries";
328
+ const _SU = "S3Url";
329
+ const _SWMOCF = "ScansWithMostOpenCriticalFindings";
330
+ const _SWMOF = "ScansWithMostOpenFindings";
331
+ const _TE = "ThrottlingException";
332
+ const _TR = "TagResource";
333
+ const _TRR = "TagResourceRequest";
334
+ const _TRRa = "TagResourceResponse";
335
+ const _UAC = "UpdateAccountConfiguration";
336
+ const _UACR = "UpdateAccountConfigurationRequest";
337
+ const _UACRp = "UpdateAccountConfigurationResponse";
338
+ const _UR = "UntagResource";
339
+ const _URR = "UntagResourceRequest";
340
+ const _URRn = "UntagResourceResponse";
341
+ const _V = "Vulnerability";
342
+ const _VE = "ValidationException";
343
+ const _VEF = "ValidationExceptionField";
344
+ const _VEFL = "ValidationExceptionFieldList";
345
+ const _aT = "analysisType";
346
+ const _c = "client";
347
+ const _cA = "createdAt";
348
+ const _cAI = "codeArtifactId";
349
+ const _cF = "closedFindings";
350
+ const _cN = "categoryName";
351
+ const _cS = "codeSnippet";
352
+ const _cT = "clientToken";
353
+ const _cWMF = "categoriesWithMostFindings";
354
+ const _co = "content";
355
+ const _cod = "code";
356
+ const _cr = "critical";
853
357
  const _d = "date";
358
+ const _dI = "detectorId";
359
+ const _dN = "detectorName";
360
+ const _dT = "detectorTags";
361
+ const _de = "description";
362
+ const _e = "error";
363
+ const _eC = "errorCode";
364
+ const _eCn = "encryptionConfig";
854
365
  const _eD = "endDate";
366
+ const _eL = "endLine";
367
+ const _eM = "errorMessage";
368
+ const _f = "findings";
369
+ const _fF = "failedFindings";
370
+ const _fI = "findingId";
371
+ const _fIi = "findingIdentifiers";
372
+ const _fL = "fieldList";
373
+ const _fM = "findingsMetrics";
374
+ const _fN = "findingNumber";
375
+ const _fP = "filePath";
376
+ const _gI = "generatorId";
377
+ const _h = "high";
378
+ const _hE = "httpError";
379
+ const _hQ = "httpQuery";
380
+ const _ht = "http";
381
+ const _i = "id";
382
+ const _iC = "itemCount";
383
+ const _in = "info";
384
+ const _kKA = "kmsKeyArn";
385
+ const _l = "low";
386
+ const _m = "message";
855
387
  const _mR = "maxResults";
388
+ const _mS = "metricsSummary";
389
+ const _mTTC = "meanTimeToClose";
390
+ const _me = "medium";
391
+ const _n = "number";
392
+ const _nF = "newFindings";
393
+ const _nOR = "numberOfRevisions";
856
394
  const _nT = "nextToken";
857
- const _rI = "runId";
395
+ const _na = "name";
396
+ const _oF = "openFindings";
397
+ const _p = "path";
398
+ const _qC = "quotaCode";
399
+ const _r = "resource";
400
+ const _rA = "resourceArn";
401
+ const _rH = "requestHeaders";
402
+ const _rI = "resourceId";
403
+ const _rIu = "runId";
404
+ const _rIul = "ruleId";
405
+ const _rT = "resourceType";
406
+ const _rU = "referenceUrls";
407
+ const _rV = "relatedVulnerabilities";
408
+ const _re = "remediation";
409
+ const _rea = "reason";
410
+ const _rec = "recommendation";
858
411
  const _s = "status";
412
+ const _sC = "serviceCode";
859
413
  const _sD = "startDate";
414
+ const _sF = "suggestedFixes";
415
+ const _sL = "startLine";
416
+ const _sN = "scanName";
417
+ const _sNA = "scanNameArn";
418
+ const _sRI = "subResourceId";
419
+ const _sS = "scanState";
420
+ const _sT = "scanType";
421
+ const _sU = "s3Url";
422
+ const _sWMOCF = "scansWithMostOpenCriticalFindings";
423
+ const _sWMOF = "scansWithMostOpenFindings";
424
+ const _se = "severity";
425
+ const _ser = "server";
426
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.codegurusecurity";
427
+ const _su = "summaries";
428
+ const _t = "tags";
860
429
  const _tK = "tagKeys";
430
+ const _te = "text";
431
+ const _ti = "title";
432
+ const _ty = "type";
433
+ const _u = "url";
434
+ const _uA = "updatedAt";
435
+ const _v = "vulnerability";
436
+ const n0 = "com.amazonaws.codegurusecurity";
437
+ var S3Url = [0, n0, _SU, 8, 0];
438
+ var AccessDeniedException = [
439
+ -3,
440
+ n0,
441
+ _ADE,
442
+ {
443
+ [_e]: _c,
444
+ [_hE]: 403,
445
+ },
446
+ [_eC, _m, _rI, _rT],
447
+ [0, 0, 0, 0],
448
+ ];
449
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
450
+ var AccountFindingsMetric = [
451
+ 3,
452
+ n0,
453
+ _AFM,
454
+ 0,
455
+ [_d, _nF, _cF, _oF, _mTTC],
456
+ [
457
+ 4,
458
+ () => FindingMetricsValuePerSeverity,
459
+ () => FindingMetricsValuePerSeverity,
460
+ () => FindingMetricsValuePerSeverity,
461
+ () => FindingMetricsValuePerSeverity,
462
+ ],
463
+ ];
464
+ var BatchGetFindingsError = [3, n0, _BGFE, 0, [_sN, _fI, _eC, _m], [0, 0, 0, 0]];
465
+ var BatchGetFindingsRequest = [3, n0, _BGFR, 0, [_fIi], [() => FindingIdentifiers]];
466
+ var BatchGetFindingsResponse = [
467
+ 3,
468
+ n0,
469
+ _BGFRa,
470
+ 0,
471
+ [_f, _fF],
472
+ [() => Findings, () => BatchGetFindingsErrors],
473
+ ];
474
+ var CategoryWithFindingNum = [3, n0, _CWFN, 0, [_cN, _fN], [0, 1]];
475
+ var CodeLine = [3, n0, _CL, 0, [_n, _co], [1, 0]];
476
+ var ConflictException = [
477
+ -3,
478
+ n0,
479
+ _CE,
480
+ {
481
+ [_e]: _c,
482
+ [_hE]: 409,
483
+ },
484
+ [_eC, _m, _rI, _rT],
485
+ [0, 0, 0, 0],
486
+ ];
487
+ schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
488
+ var CreateScanRequest = [
489
+ 3,
490
+ n0,
491
+ _CSR,
492
+ 0,
493
+ [_cT, _rI, _sN, _sT, _aT, _t],
494
+ [[0, 4], () => ResourceId, 0, 0, 0, 128 | 0],
495
+ ];
496
+ var CreateScanResponse = [
497
+ 3,
498
+ n0,
499
+ _CSRr,
500
+ 0,
501
+ [_sN, _rIu, _rI, _sS, _sNA],
502
+ [0, 0, () => ResourceId, 0, 0],
503
+ ];
504
+ var CreateUploadUrlRequest = [3, n0, _CUUR, 0, [_sN], [0]];
505
+ var CreateUploadUrlResponse = [
506
+ 3,
507
+ n0,
508
+ _CUURr,
509
+ 0,
510
+ [_sU, _rH, _cAI],
511
+ [[() => S3Url, 0], [() => RequestHeaderMap, 0], 0],
512
+ ];
513
+ var EncryptionConfig = [3, n0, _EC, 0, [_kKA], [0]];
514
+ var FilePath = [3, n0, _FP, 0, [_na, _p, _sL, _eL, _cS], [0, 0, 1, 1, () => CodeSnippet]];
515
+ var Finding = [
516
+ 3,
517
+ n0,
518
+ _F,
519
+ 0,
520
+ [_cA, _de, _gI, _i, _uA, _ty, _s, _r, _v, _se, _re, _ti, _dT, _dI, _dN, _rIul],
521
+ [4, 0, 0, 0, 4, 0, 0, () => Resource, () => Vulnerability, 0, () => Remediation, 0, 64 | 0, 0, 0, 0],
522
+ ];
523
+ var FindingIdentifier = [3, n0, _FI, 0, [_sN, _fI], [0, 0]];
524
+ var FindingMetricsValuePerSeverity = [
525
+ 3,
526
+ n0,
527
+ _FMVPS,
528
+ 0,
529
+ [_in, _l, _me, _h, _cr],
530
+ [1, 1, 1, 1, 1],
531
+ ];
532
+ var GetAccountConfigurationRequest = [3, n0, _GACR, 0, [], []];
533
+ var GetAccountConfigurationResponse = [
534
+ 3,
535
+ n0,
536
+ _GACRe,
537
+ 0,
538
+ [_eCn],
539
+ [() => EncryptionConfig],
540
+ ];
541
+ var GetFindingsRequest = [
542
+ 3,
543
+ n0,
544
+ _GFR,
545
+ 0,
546
+ [_sN, _nT, _mR, _s],
547
+ [
548
+ [0, 1],
549
+ [
550
+ 0,
551
+ {
552
+ [_hQ]: _nT,
553
+ },
554
+ ],
555
+ [
556
+ 1,
557
+ {
558
+ [_hQ]: _mR,
559
+ },
560
+ ],
561
+ [
562
+ 0,
563
+ {
564
+ [_hQ]: _s,
565
+ },
566
+ ],
567
+ ],
568
+ ];
569
+ var GetFindingsResponse = [3, n0, _GFRe, 0, [_f, _nT], [() => Findings, 0]];
570
+ var GetMetricsSummaryRequest = [
571
+ 3,
572
+ n0,
573
+ _GMSR,
574
+ 0,
575
+ [_d],
576
+ [
577
+ [
578
+ 4,
579
+ {
580
+ [_hQ]: _d,
581
+ },
582
+ ],
583
+ ],
584
+ ];
585
+ var GetMetricsSummaryResponse = [3, n0, _GMSRe, 0, [_mS], [() => MetricsSummary]];
586
+ var GetScanRequest = [
587
+ 3,
588
+ n0,
589
+ _GSR,
590
+ 0,
591
+ [_sN, _rIu],
592
+ [
593
+ [0, 1],
594
+ [
595
+ 0,
596
+ {
597
+ [_hQ]: _rIu,
598
+ },
599
+ ],
600
+ ],
601
+ ];
602
+ var GetScanResponse = [
603
+ 3,
604
+ n0,
605
+ _GSRe,
606
+ 0,
607
+ [_sN, _rIu, _sS, _cA, _aT, _uA, _nOR, _sNA, _eM],
608
+ [0, 0, 0, 4, 0, 4, 1, 0, 0],
609
+ ];
610
+ var InternalServerException = [
611
+ -3,
612
+ n0,
613
+ _ISE,
614
+ {
615
+ [_e]: _ser,
616
+ [_hE]: 500,
617
+ },
618
+ [_e, _m],
619
+ [0, 0],
620
+ ];
621
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
622
+ var ListFindingsMetricsRequest = [
623
+ 3,
624
+ n0,
625
+ _LFMR,
626
+ 0,
627
+ [_nT, _mR, _sD, _eD],
628
+ [
629
+ [
630
+ 0,
631
+ {
632
+ [_hQ]: _nT,
633
+ },
634
+ ],
635
+ [
636
+ 1,
637
+ {
638
+ [_hQ]: _mR,
639
+ },
640
+ ],
641
+ [
642
+ 4,
643
+ {
644
+ [_hQ]: _sD,
645
+ },
646
+ ],
647
+ [
648
+ 4,
649
+ {
650
+ [_hQ]: _eD,
651
+ },
652
+ ],
653
+ ],
654
+ ];
655
+ var ListFindingsMetricsResponse = [
656
+ 3,
657
+ n0,
658
+ _LFMRi,
659
+ 0,
660
+ [_fM, _nT],
661
+ [() => FindingsMetricList, 0],
662
+ ];
663
+ var ListScansRequest = [
664
+ 3,
665
+ n0,
666
+ _LSR,
667
+ 0,
668
+ [_nT, _mR],
669
+ [
670
+ [
671
+ 0,
672
+ {
673
+ [_hQ]: _nT,
674
+ },
675
+ ],
676
+ [
677
+ 1,
678
+ {
679
+ [_hQ]: _mR,
680
+ },
681
+ ],
682
+ ],
683
+ ];
684
+ var ListScansResponse = [3, n0, _LSRi, 0, [_su, _nT], [() => ScanSummaries, 0]];
685
+ var ListTagsForResourceRequest = [3, n0, _LTFRR, 0, [_rA], [[0, 1]]];
686
+ var ListTagsForResourceResponse = [3, n0, _LTFRRi, 0, [_t], [128 | 0]];
687
+ var MetricsSummary = [
688
+ 3,
689
+ n0,
690
+ _MS,
691
+ 0,
692
+ [_d, _oF, _cWMF, _sWMOF, _sWMOCF],
693
+ [
694
+ 4,
695
+ () => FindingMetricsValuePerSeverity,
696
+ () => CategoriesWithMostFindings,
697
+ () => ScansWithMostOpenFindings,
698
+ () => ScansWithMostOpenCriticalFindings,
699
+ ],
700
+ ];
701
+ var Recommendation = [3, n0, _R, 0, [_te, _u], [0, 0]];
702
+ var Remediation = [
703
+ 3,
704
+ n0,
705
+ _Re,
706
+ 0,
707
+ [_rec, _sF],
708
+ [() => Recommendation, () => SuggestedFixes],
709
+ ];
710
+ var Resource = [3, n0, _Res, 0, [_i, _sRI], [0, 0]];
711
+ var ResourceNotFoundException = [
712
+ -3,
713
+ n0,
714
+ _RNFE,
715
+ {
716
+ [_e]: _c,
717
+ [_hE]: 404,
718
+ },
719
+ [_eC, _m, _rI, _rT],
720
+ [0, 0, 0, 0],
721
+ ];
722
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
723
+ var ScanNameWithFindingNum = [3, n0, _SNWFN, 0, [_sN, _fN], [0, 1]];
724
+ var ScanSummary = [3, n0, _SS, 0, [_sS, _cA, _uA, _sN, _rIu, _sNA], [0, 4, 4, 0, 0, 0]];
725
+ var SuggestedFix = [3, n0, _SF, 0, [_de, _cod], [0, 0]];
726
+ var TagResourceRequest = [3, n0, _TRR, 0, [_rA, _t], [[0, 1], 128 | 0]];
727
+ var TagResourceResponse = [3, n0, _TRRa, 0, [], []];
728
+ var ThrottlingException = [
729
+ -3,
730
+ n0,
731
+ _TE,
732
+ {
733
+ [_e]: _c,
734
+ [_hE]: 429,
735
+ },
736
+ [_eC, _m, _sC, _qC],
737
+ [0, 0, 0, 0],
738
+ ];
739
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
740
+ var UntagResourceRequest = [
741
+ 3,
742
+ n0,
743
+ _URR,
744
+ 0,
745
+ [_rA, _tK],
746
+ [
747
+ [0, 1],
748
+ [
749
+ 64 | 0,
750
+ {
751
+ [_hQ]: _tK,
752
+ },
753
+ ],
754
+ ],
755
+ ];
756
+ var UntagResourceResponse = [3, n0, _URRn, 0, [], []];
757
+ var UpdateAccountConfigurationRequest = [
758
+ 3,
759
+ n0,
760
+ _UACR,
761
+ 0,
762
+ [_eCn],
763
+ [() => EncryptionConfig],
764
+ ];
765
+ var UpdateAccountConfigurationResponse = [
766
+ 3,
767
+ n0,
768
+ _UACRp,
769
+ 0,
770
+ [_eCn],
771
+ [() => EncryptionConfig],
772
+ ];
773
+ var ValidationException = [
774
+ -3,
775
+ n0,
776
+ _VE,
777
+ {
778
+ [_e]: _c,
779
+ [_hE]: 400,
780
+ },
781
+ [_eC, _m, _rea, _fL],
782
+ [0, 0, 0, () => ValidationExceptionFieldList],
783
+ ];
784
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
785
+ var ValidationExceptionField = [3, n0, _VEF, 0, [_na, _m], [0, 0]];
786
+ var Vulnerability = [
787
+ 3,
788
+ n0,
789
+ _V,
790
+ 0,
791
+ [_rU, _rV, _i, _fP, _iC],
792
+ [64 | 0, 64 | 0, 0, () => FilePath, 1],
793
+ ];
794
+ var CodeGuruSecurityServiceException = [
795
+ -3,
796
+ _sm,
797
+ "CodeGuruSecurityServiceException",
798
+ 0,
799
+ [],
800
+ [],
801
+ ];
802
+ schema.TypeRegistry.for(_sm).registerError(CodeGuruSecurityServiceException, CodeGuruSecurityServiceException$1);
803
+ var BatchGetFindingsErrors = [1, n0, _BGFEa, 0, () => BatchGetFindingsError];
804
+ var CategoriesWithMostFindings = [1, n0, _CWMF, 0, () => CategoryWithFindingNum];
805
+ var CodeSnippet = [1, n0, _CS, 0, () => CodeLine];
806
+ var FindingIdentifiers = [1, n0, _FIi, 0, () => FindingIdentifier];
807
+ var Findings = [1, n0, _Fi, 0, () => Finding];
808
+ var FindingsMetricList = [1, n0, _FML, 0, () => AccountFindingsMetric];
809
+ var ScanSummaries = [1, n0, _SSc, 0, () => ScanSummary];
810
+ var ScansWithMostOpenCriticalFindings = [1, n0, _SWMOCF, 0, () => ScanNameWithFindingNum];
811
+ var ScansWithMostOpenFindings = [1, n0, _SWMOF, 0, () => ScanNameWithFindingNum];
812
+ var SuggestedFixes = [1, n0, _SFu, 0, () => SuggestedFix];
813
+ var ValidationExceptionFieldList = [1, n0, _VEFL, 0, () => ValidationExceptionField];
814
+ var RequestHeaderMap = [2, n0, _RHM, 8, 0, 0];
815
+ var ResourceId = [3, n0, _RI, 0, [_cAI], [0]];
816
+ var BatchGetFindings = [
817
+ 9,
818
+ n0,
819
+ _BGF,
820
+ {
821
+ [_ht]: ["POST", "/batchGetFindings", 200],
822
+ },
823
+ () => BatchGetFindingsRequest,
824
+ () => BatchGetFindingsResponse,
825
+ ];
826
+ var CreateScan = [
827
+ 9,
828
+ n0,
829
+ _CSr,
830
+ {
831
+ [_ht]: ["POST", "/scans", 200],
832
+ },
833
+ () => CreateScanRequest,
834
+ () => CreateScanResponse,
835
+ ];
836
+ var CreateUploadUrl = [
837
+ 9,
838
+ n0,
839
+ _CUU,
840
+ {
841
+ [_ht]: ["POST", "/uploadUrl", 200],
842
+ },
843
+ () => CreateUploadUrlRequest,
844
+ () => CreateUploadUrlResponse,
845
+ ];
846
+ var GetAccountConfiguration = [
847
+ 9,
848
+ n0,
849
+ _GAC,
850
+ {
851
+ [_ht]: ["GET", "/accountConfiguration/get", 200],
852
+ },
853
+ () => GetAccountConfigurationRequest,
854
+ () => GetAccountConfigurationResponse,
855
+ ];
856
+ var GetFindings = [
857
+ 9,
858
+ n0,
859
+ _GF,
860
+ {
861
+ [_ht]: ["GET", "/findings/{scanName}", 200],
862
+ },
863
+ () => GetFindingsRequest,
864
+ () => GetFindingsResponse,
865
+ ];
866
+ var GetMetricsSummary = [
867
+ 9,
868
+ n0,
869
+ _GMS,
870
+ {
871
+ [_ht]: ["GET", "/metrics/summary", 200],
872
+ },
873
+ () => GetMetricsSummaryRequest,
874
+ () => GetMetricsSummaryResponse,
875
+ ];
876
+ var GetScan = [
877
+ 9,
878
+ n0,
879
+ _GS,
880
+ {
881
+ [_ht]: ["GET", "/scans/{scanName}", 200],
882
+ },
883
+ () => GetScanRequest,
884
+ () => GetScanResponse,
885
+ ];
886
+ var ListFindingsMetrics = [
887
+ 9,
888
+ n0,
889
+ _LFM,
890
+ {
891
+ [_ht]: ["GET", "/metrics/findings", 200],
892
+ },
893
+ () => ListFindingsMetricsRequest,
894
+ () => ListFindingsMetricsResponse,
895
+ ];
896
+ var ListScans = [
897
+ 9,
898
+ n0,
899
+ _LS,
900
+ {
901
+ [_ht]: ["GET", "/scans", 200],
902
+ },
903
+ () => ListScansRequest,
904
+ () => ListScansResponse,
905
+ ];
906
+ var ListTagsForResource = [
907
+ 9,
908
+ n0,
909
+ _LTFR,
910
+ {
911
+ [_ht]: ["GET", "/tags/{resourceArn}", 200],
912
+ },
913
+ () => ListTagsForResourceRequest,
914
+ () => ListTagsForResourceResponse,
915
+ ];
916
+ var TagResource = [
917
+ 9,
918
+ n0,
919
+ _TR,
920
+ {
921
+ [_ht]: ["POST", "/tags/{resourceArn}", 204],
922
+ },
923
+ () => TagResourceRequest,
924
+ () => TagResourceResponse,
925
+ ];
926
+ var UntagResource = [
927
+ 9,
928
+ n0,
929
+ _UR,
930
+ {
931
+ [_ht]: ["DELETE", "/tags/{resourceArn}", 204],
932
+ },
933
+ () => UntagResourceRequest,
934
+ () => UntagResourceResponse,
935
+ ];
936
+ var UpdateAccountConfiguration = [
937
+ 9,
938
+ n0,
939
+ _UAC,
940
+ {
941
+ [_ht]: ["PUT", "/updateAccountConfiguration", 200],
942
+ },
943
+ () => UpdateAccountConfigurationRequest,
944
+ () => UpdateAccountConfigurationResponse,
945
+ ];
861
946
 
862
947
  class BatchGetFindingsCommand extends smithyClient.Command
863
948
  .classBuilder()
864
949
  .ep(commonParams)
865
950
  .m(function (Command, cs, config, o) {
866
- return [
867
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
868
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
869
- ];
951
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
870
952
  })
871
953
  .s("AwsCodeGuruSecurity", "BatchGetFindings", {})
872
954
  .n("CodeGuruSecurityClient", "BatchGetFindingsCommand")
873
- .f(void 0, void 0)
874
- .ser(se_BatchGetFindingsCommand)
875
- .de(de_BatchGetFindingsCommand)
955
+ .sc(BatchGetFindings)
876
956
  .build() {
877
957
  }
878
958
 
@@ -880,16 +960,11 @@ class CreateScanCommand extends smithyClient.Command
880
960
  .classBuilder()
881
961
  .ep(commonParams)
882
962
  .m(function (Command, cs, config, o) {
883
- return [
884
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
885
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
886
- ];
963
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
887
964
  })
888
965
  .s("AwsCodeGuruSecurity", "CreateScan", {})
889
966
  .n("CodeGuruSecurityClient", "CreateScanCommand")
890
- .f(void 0, void 0)
891
- .ser(se_CreateScanCommand)
892
- .de(de_CreateScanCommand)
967
+ .sc(CreateScan)
893
968
  .build() {
894
969
  }
895
970
 
@@ -897,16 +972,11 @@ class CreateUploadUrlCommand extends smithyClient.Command
897
972
  .classBuilder()
898
973
  .ep(commonParams)
899
974
  .m(function (Command, cs, config, o) {
900
- return [
901
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
902
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
903
- ];
975
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
904
976
  })
905
977
  .s("AwsCodeGuruSecurity", "CreateUploadUrl", {})
906
978
  .n("CodeGuruSecurityClient", "CreateUploadUrlCommand")
907
- .f(void 0, CreateUploadUrlResponseFilterSensitiveLog)
908
- .ser(se_CreateUploadUrlCommand)
909
- .de(de_CreateUploadUrlCommand)
979
+ .sc(CreateUploadUrl)
910
980
  .build() {
911
981
  }
912
982
 
@@ -914,16 +984,11 @@ class GetAccountConfigurationCommand extends smithyClient.Command
914
984
  .classBuilder()
915
985
  .ep(commonParams)
916
986
  .m(function (Command, cs, config, o) {
917
- return [
918
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
919
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
920
- ];
987
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
921
988
  })
922
989
  .s("AwsCodeGuruSecurity", "GetAccountConfiguration", {})
923
990
  .n("CodeGuruSecurityClient", "GetAccountConfigurationCommand")
924
- .f(void 0, void 0)
925
- .ser(se_GetAccountConfigurationCommand)
926
- .de(de_GetAccountConfigurationCommand)
991
+ .sc(GetAccountConfiguration)
927
992
  .build() {
928
993
  }
929
994
 
@@ -931,16 +996,11 @@ class GetFindingsCommand extends smithyClient.Command
931
996
  .classBuilder()
932
997
  .ep(commonParams)
933
998
  .m(function (Command, cs, config, o) {
934
- return [
935
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
936
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
937
- ];
999
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
938
1000
  })
939
1001
  .s("AwsCodeGuruSecurity", "GetFindings", {})
940
1002
  .n("CodeGuruSecurityClient", "GetFindingsCommand")
941
- .f(void 0, void 0)
942
- .ser(se_GetFindingsCommand)
943
- .de(de_GetFindingsCommand)
1003
+ .sc(GetFindings)
944
1004
  .build() {
945
1005
  }
946
1006
 
@@ -948,16 +1008,11 @@ class GetMetricsSummaryCommand extends smithyClient.Command
948
1008
  .classBuilder()
949
1009
  .ep(commonParams)
950
1010
  .m(function (Command, cs, config, o) {
951
- return [
952
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
953
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
954
- ];
1011
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
955
1012
  })
956
1013
  .s("AwsCodeGuruSecurity", "GetMetricsSummary", {})
957
1014
  .n("CodeGuruSecurityClient", "GetMetricsSummaryCommand")
958
- .f(void 0, void 0)
959
- .ser(se_GetMetricsSummaryCommand)
960
- .de(de_GetMetricsSummaryCommand)
1015
+ .sc(GetMetricsSummary)
961
1016
  .build() {
962
1017
  }
963
1018
 
@@ -965,16 +1020,11 @@ class GetScanCommand extends smithyClient.Command
965
1020
  .classBuilder()
966
1021
  .ep(commonParams)
967
1022
  .m(function (Command, cs, config, o) {
968
- return [
969
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
970
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
971
- ];
1023
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
972
1024
  })
973
1025
  .s("AwsCodeGuruSecurity", "GetScan", {})
974
1026
  .n("CodeGuruSecurityClient", "GetScanCommand")
975
- .f(void 0, void 0)
976
- .ser(se_GetScanCommand)
977
- .de(de_GetScanCommand)
1027
+ .sc(GetScan)
978
1028
  .build() {
979
1029
  }
980
1030
 
@@ -982,16 +1032,11 @@ class ListFindingsMetricsCommand extends smithyClient.Command
982
1032
  .classBuilder()
983
1033
  .ep(commonParams)
984
1034
  .m(function (Command, cs, config, o) {
985
- return [
986
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
987
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
988
- ];
1035
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
989
1036
  })
990
1037
  .s("AwsCodeGuruSecurity", "ListFindingsMetrics", {})
991
1038
  .n("CodeGuruSecurityClient", "ListFindingsMetricsCommand")
992
- .f(void 0, void 0)
993
- .ser(se_ListFindingsMetricsCommand)
994
- .de(de_ListFindingsMetricsCommand)
1039
+ .sc(ListFindingsMetrics)
995
1040
  .build() {
996
1041
  }
997
1042
 
@@ -999,16 +1044,11 @@ class ListScansCommand extends smithyClient.Command
999
1044
  .classBuilder()
1000
1045
  .ep(commonParams)
1001
1046
  .m(function (Command, cs, config, o) {
1002
- return [
1003
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1004
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1005
- ];
1047
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1006
1048
  })
1007
1049
  .s("AwsCodeGuruSecurity", "ListScans", {})
1008
1050
  .n("CodeGuruSecurityClient", "ListScansCommand")
1009
- .f(void 0, void 0)
1010
- .ser(se_ListScansCommand)
1011
- .de(de_ListScansCommand)
1051
+ .sc(ListScans)
1012
1052
  .build() {
1013
1053
  }
1014
1054
 
@@ -1016,16 +1056,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
1016
1056
  .classBuilder()
1017
1057
  .ep(commonParams)
1018
1058
  .m(function (Command, cs, config, o) {
1019
- return [
1020
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1021
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1022
- ];
1059
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1023
1060
  })
1024
1061
  .s("AwsCodeGuruSecurity", "ListTagsForResource", {})
1025
1062
  .n("CodeGuruSecurityClient", "ListTagsForResourceCommand")
1026
- .f(void 0, void 0)
1027
- .ser(se_ListTagsForResourceCommand)
1028
- .de(de_ListTagsForResourceCommand)
1063
+ .sc(ListTagsForResource)
1029
1064
  .build() {
1030
1065
  }
1031
1066
 
@@ -1033,16 +1068,11 @@ class TagResourceCommand extends smithyClient.Command
1033
1068
  .classBuilder()
1034
1069
  .ep(commonParams)
1035
1070
  .m(function (Command, cs, config, o) {
1036
- return [
1037
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1038
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1039
- ];
1071
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1040
1072
  })
1041
1073
  .s("AwsCodeGuruSecurity", "TagResource", {})
1042
1074
  .n("CodeGuruSecurityClient", "TagResourceCommand")
1043
- .f(void 0, void 0)
1044
- .ser(se_TagResourceCommand)
1045
- .de(de_TagResourceCommand)
1075
+ .sc(TagResource)
1046
1076
  .build() {
1047
1077
  }
1048
1078
 
@@ -1050,16 +1080,11 @@ class UntagResourceCommand extends smithyClient.Command
1050
1080
  .classBuilder()
1051
1081
  .ep(commonParams)
1052
1082
  .m(function (Command, cs, config, o) {
1053
- return [
1054
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1055
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1056
- ];
1083
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1057
1084
  })
1058
1085
  .s("AwsCodeGuruSecurity", "UntagResource", {})
1059
1086
  .n("CodeGuruSecurityClient", "UntagResourceCommand")
1060
- .f(void 0, void 0)
1061
- .ser(se_UntagResourceCommand)
1062
- .de(de_UntagResourceCommand)
1087
+ .sc(UntagResource)
1063
1088
  .build() {
1064
1089
  }
1065
1090
 
@@ -1067,16 +1092,11 @@ class UpdateAccountConfigurationCommand extends smithyClient.Command
1067
1092
  .classBuilder()
1068
1093
  .ep(commonParams)
1069
1094
  .m(function (Command, cs, config, o) {
1070
- return [
1071
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1072
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1073
- ];
1095
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1074
1096
  })
1075
1097
  .s("AwsCodeGuruSecurity", "UpdateAccountConfiguration", {})
1076
1098
  .n("CodeGuruSecurityClient", "UpdateAccountConfigurationCommand")
1077
- .f(void 0, void 0)
1078
- .ser(se_UpdateAccountConfigurationCommand)
1079
- .de(de_UpdateAccountConfigurationCommand)
1099
+ .sc(UpdateAccountConfiguration)
1080
1100
  .build() {
1081
1101
  }
1082
1102
 
@@ -1113,35 +1133,34 @@ Object.defineProperty(exports, "__Client", {
1113
1133
  enumerable: true,
1114
1134
  get: function () { return smithyClient.Client; }
1115
1135
  });
1116
- exports.AccessDeniedException = AccessDeniedException;
1136
+ exports.AccessDeniedException = AccessDeniedException$1;
1117
1137
  exports.AnalysisType = AnalysisType;
1118
1138
  exports.BatchGetFindingsCommand = BatchGetFindingsCommand;
1119
1139
  exports.CodeGuruSecurity = CodeGuruSecurity;
1120
1140
  exports.CodeGuruSecurityClient = CodeGuruSecurityClient;
1121
- exports.CodeGuruSecurityServiceException = CodeGuruSecurityServiceException;
1122
- exports.ConflictException = ConflictException;
1141
+ exports.CodeGuruSecurityServiceException = CodeGuruSecurityServiceException$1;
1142
+ exports.ConflictException = ConflictException$1;
1123
1143
  exports.CreateScanCommand = CreateScanCommand;
1124
1144
  exports.CreateUploadUrlCommand = CreateUploadUrlCommand;
1125
- exports.CreateUploadUrlResponseFilterSensitiveLog = CreateUploadUrlResponseFilterSensitiveLog;
1126
1145
  exports.ErrorCode = ErrorCode;
1127
1146
  exports.GetAccountConfigurationCommand = GetAccountConfigurationCommand;
1128
1147
  exports.GetFindingsCommand = GetFindingsCommand;
1129
1148
  exports.GetMetricsSummaryCommand = GetMetricsSummaryCommand;
1130
1149
  exports.GetScanCommand = GetScanCommand;
1131
- exports.InternalServerException = InternalServerException;
1150
+ exports.InternalServerException = InternalServerException$1;
1132
1151
  exports.ListFindingsMetricsCommand = ListFindingsMetricsCommand;
1133
1152
  exports.ListScansCommand = ListScansCommand;
1134
1153
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1135
- exports.ResourceNotFoundException = ResourceNotFoundException;
1154
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
1136
1155
  exports.ScanState = ScanState;
1137
1156
  exports.ScanType = ScanType;
1138
1157
  exports.Severity = Severity;
1139
1158
  exports.Status = Status;
1140
1159
  exports.TagResourceCommand = TagResourceCommand;
1141
- exports.ThrottlingException = ThrottlingException;
1160
+ exports.ThrottlingException = ThrottlingException$1;
1142
1161
  exports.UntagResourceCommand = UntagResourceCommand;
1143
1162
  exports.UpdateAccountConfigurationCommand = UpdateAccountConfigurationCommand;
1144
- exports.ValidationException = ValidationException;
1163
+ exports.ValidationException = ValidationException$1;
1145
1164
  exports.ValidationExceptionReason = ValidationExceptionReason;
1146
1165
  exports.paginateGetFindings = paginateGetFindings;
1147
1166
  exports.paginateListFindingsMetrics = paginateListFindingsMetrics;