@aws-sdk/client-inspector2 3.828.0 → 3.831.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 (141) hide show
  1. package/README.md +120 -0
  2. package/dist-cjs/index.js +1297 -313
  3. package/dist-es/Inspector2.js +30 -0
  4. package/dist-es/commands/BatchAssociateCodeSecurityScanConfigurationCommand.js +22 -0
  5. package/dist-es/commands/BatchDisassociateCodeSecurityScanConfigurationCommand.js +22 -0
  6. package/dist-es/commands/CreateCodeSecurityIntegrationCommand.js +23 -0
  7. package/dist-es/commands/CreateCodeSecurityScanConfigurationCommand.js +22 -0
  8. package/dist-es/commands/DeleteCodeSecurityIntegrationCommand.js +22 -0
  9. package/dist-es/commands/DeleteCodeSecurityScanConfigurationCommand.js +22 -0
  10. package/dist-es/commands/GetCodeSecurityIntegrationCommand.js +23 -0
  11. package/dist-es/commands/GetCodeSecurityScanCommand.js +22 -0
  12. package/dist-es/commands/GetCodeSecurityScanConfigurationCommand.js +22 -0
  13. package/dist-es/commands/ListCodeSecurityIntegrationsCommand.js +22 -0
  14. package/dist-es/commands/ListCodeSecurityScanConfigurationAssociationsCommand.js +22 -0
  15. package/dist-es/commands/ListCodeSecurityScanConfigurationsCommand.js +22 -0
  16. package/dist-es/commands/StartCodeSecurityScanCommand.js +22 -0
  17. package/dist-es/commands/UpdateCodeSecurityIntegrationCommand.js +23 -0
  18. package/dist-es/commands/UpdateCodeSecurityScanConfigurationCommand.js +22 -0
  19. package/dist-es/commands/index.js +15 -0
  20. package/dist-es/models/models_0.js +153 -120
  21. package/dist-es/models/models_1.js +110 -0
  22. package/dist-es/protocols/Aws_restJson1.js +509 -3
  23. package/dist-types/Inspector2.d.ts +107 -0
  24. package/dist-types/Inspector2Client.d.ts +17 -2
  25. package/dist-types/commands/AssociateMemberCommand.d.ts +6 -1
  26. package/dist-types/commands/BatchAssociateCodeSecurityScanConfigurationCommand.d.ts +120 -0
  27. package/dist-types/commands/BatchDisassociateCodeSecurityScanConfigurationCommand.d.ts +120 -0
  28. package/dist-types/commands/BatchGetAccountStatusCommand.d.ts +6 -1
  29. package/dist-types/commands/BatchGetCodeSnippetCommand.d.ts +4 -1
  30. package/dist-types/commands/BatchGetFindingDetailsCommand.d.ts +2 -0
  31. package/dist-types/commands/BatchGetFreeTrialInfoCommand.d.ts +2 -0
  32. package/dist-types/commands/BatchGetMemberEc2DeepInspectionStatusCommand.d.ts +5 -1
  33. package/dist-types/commands/BatchUpdateMemberEc2DeepInspectionStatusCommand.d.ts +5 -1
  34. package/dist-types/commands/CancelFindingsReportCommand.d.ts +4 -1
  35. package/dist-types/commands/CancelSbomExportCommand.d.ts +4 -1
  36. package/dist-types/commands/CreateCisScanConfigurationCommand.d.ts +2 -0
  37. package/dist-types/commands/CreateCodeSecurityIntegrationCommand.d.ts +111 -0
  38. package/dist-types/commands/CreateCodeSecurityScanConfigurationCommand.d.ts +116 -0
  39. package/dist-types/commands/CreateFilterCommand.d.ts +6 -1
  40. package/dist-types/commands/CreateFindingsReportCommand.d.ts +9 -2
  41. package/dist-types/commands/CreateSbomExportCommand.d.ts +4 -1
  42. package/dist-types/commands/DeleteCisScanConfigurationCommand.d.ts +4 -1
  43. package/dist-types/commands/DeleteCodeSecurityIntegrationCommand.d.ts +91 -0
  44. package/dist-types/commands/DeleteCodeSecurityScanConfigurationCommand.d.ts +91 -0
  45. package/dist-types/commands/DeleteFilterCommand.d.ts +4 -1
  46. package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +3 -0
  47. package/dist-types/commands/DisableCommand.d.ts +8 -3
  48. package/dist-types/commands/DisableDelegatedAdminAccountCommand.d.ts +6 -2
  49. package/dist-types/commands/DisassociateMemberCommand.d.ts +2 -0
  50. package/dist-types/commands/EnableCommand.d.ts +6 -1
  51. package/dist-types/commands/EnableDelegatedAdminAccountCommand.d.ts +6 -2
  52. package/dist-types/commands/GetCisScanReportCommand.d.ts +5 -2
  53. package/dist-types/commands/GetCisScanResultDetailsCommand.d.ts +3 -1
  54. package/dist-types/commands/GetClustersForImageCommand.d.ts +3 -1
  55. package/dist-types/commands/GetCodeSecurityIntegrationCommand.d.ts +104 -0
  56. package/dist-types/commands/GetCodeSecurityScanCommand.d.ts +107 -0
  57. package/dist-types/commands/GetCodeSecurityScanConfigurationCommand.d.ts +115 -0
  58. package/dist-types/commands/GetConfigurationCommand.d.ts +3 -2
  59. package/dist-types/commands/GetDelegatedAdminAccountCommand.d.ts +5 -2
  60. package/dist-types/commands/GetEc2DeepInspectionConfigurationCommand.d.ts +7 -4
  61. package/dist-types/commands/GetEncryptionKeyCommand.d.ts +5 -2
  62. package/dist-types/commands/GetFindingsReportStatusCommand.d.ts +7 -2
  63. package/dist-types/commands/GetMemberCommand.d.ts +5 -2
  64. package/dist-types/commands/GetSbomExportCommand.d.ts +5 -3
  65. package/dist-types/commands/ListAccountPermissionsCommand.d.ts +2 -0
  66. package/dist-types/commands/ListCisScanConfigurationsCommand.d.ts +2 -0
  67. package/dist-types/commands/ListCisScanResultsAggregatedByChecksCommand.d.ts +2 -0
  68. package/dist-types/commands/ListCisScanResultsAggregatedByTargetResourceCommand.d.ts +2 -0
  69. package/dist-types/commands/ListCisScansCommand.d.ts +2 -0
  70. package/dist-types/commands/ListCodeSecurityIntegrationsCommand.d.ts +102 -0
  71. package/dist-types/commands/ListCodeSecurityScanConfigurationAssociationsCommand.d.ts +101 -0
  72. package/dist-types/commands/ListCodeSecurityScanConfigurationsCommand.d.ts +113 -0
  73. package/dist-types/commands/ListCoverageCommand.d.ts +37 -0
  74. package/dist-types/commands/ListCoverageStatisticsCommand.d.ts +4 -0
  75. package/dist-types/commands/ListDelegatedAdminAccountsCommand.d.ts +3 -2
  76. package/dist-types/commands/ListFiltersCommand.d.ts +4 -0
  77. package/dist-types/commands/ListFindingAggregationsCommand.d.ts +16 -0
  78. package/dist-types/commands/ListFindingsCommand.d.ts +7 -0
  79. package/dist-types/commands/ListMembersCommand.d.ts +2 -0
  80. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -1
  81. package/dist-types/commands/ListUsageTotalsCommand.d.ts +2 -0
  82. package/dist-types/commands/ResetEncryptionKeyCommand.d.ts +6 -2
  83. package/dist-types/commands/SearchVulnerabilitiesCommand.d.ts +2 -0
  84. package/dist-types/commands/SendCisSessionHealthCommand.d.ts +7 -6
  85. package/dist-types/commands/SendCisSessionTelemetryCommand.d.ts +7 -6
  86. package/dist-types/commands/StartCisSessionCommand.d.ts +7 -6
  87. package/dist-types/commands/StartCodeSecurityScanCommand.d.ts +99 -0
  88. package/dist-types/commands/StopCisSessionCommand.d.ts +7 -6
  89. package/dist-types/commands/TagResourceCommand.d.ts +2 -1
  90. package/dist-types/commands/UntagResourceCommand.d.ts +2 -1
  91. package/dist-types/commands/UpdateCisScanConfigurationCommand.d.ts +4 -1
  92. package/dist-types/commands/UpdateCodeSecurityIntegrationCommand.d.ts +109 -0
  93. package/dist-types/commands/UpdateCodeSecurityScanConfigurationCommand.d.ts +109 -0
  94. package/dist-types/commands/UpdateConfigurationCommand.d.ts +5 -1
  95. package/dist-types/commands/UpdateEc2DeepInspectionConfigurationCommand.d.ts +4 -1
  96. package/dist-types/commands/UpdateEncryptionKeyCommand.d.ts +6 -2
  97. package/dist-types/commands/UpdateFilterCommand.d.ts +6 -1
  98. package/dist-types/commands/UpdateOrgEc2DeepInspectionConfigurationCommand.d.ts +4 -1
  99. package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +4 -0
  100. package/dist-types/commands/index.d.ts +15 -0
  101. package/dist-types/endpoint/EndpointParameters.d.ts +7 -7
  102. package/dist-types/models/models_0.d.ts +2059 -1859
  103. package/dist-types/models/models_1.d.ts +1582 -49
  104. package/dist-types/protocols/Aws_restJson1.d.ts +135 -0
  105. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  106. package/dist-types/runtimeConfig.native.d.ts +2 -2
  107. package/dist-types/ts3.4/Inspector2.d.ts +299 -0
  108. package/dist-types/ts3.4/Inspector2Client.d.ts +90 -0
  109. package/dist-types/ts3.4/commands/BatchAssociateCodeSecurityScanConfigurationCommand.d.ts +51 -0
  110. package/dist-types/ts3.4/commands/BatchDisassociateCodeSecurityScanConfigurationCommand.d.ts +51 -0
  111. package/dist-types/ts3.4/commands/CreateCodeSecurityIntegrationCommand.d.ts +51 -0
  112. package/dist-types/ts3.4/commands/CreateCodeSecurityScanConfigurationCommand.d.ts +51 -0
  113. package/dist-types/ts3.4/commands/DeleteCodeSecurityIntegrationCommand.d.ts +51 -0
  114. package/dist-types/ts3.4/commands/DeleteCodeSecurityScanConfigurationCommand.d.ts +51 -0
  115. package/dist-types/ts3.4/commands/GetCisScanReportCommand.d.ts +1 -1
  116. package/dist-types/ts3.4/commands/GetCisScanResultDetailsCommand.d.ts +1 -1
  117. package/dist-types/ts3.4/commands/GetClustersForImageCommand.d.ts +1 -1
  118. package/dist-types/ts3.4/commands/GetCodeSecurityIntegrationCommand.d.ts +51 -0
  119. package/dist-types/ts3.4/commands/GetCodeSecurityScanCommand.d.ts +51 -0
  120. package/dist-types/ts3.4/commands/GetCodeSecurityScanConfigurationCommand.d.ts +51 -0
  121. package/dist-types/ts3.4/commands/GetConfigurationCommand.d.ts +1 -1
  122. package/dist-types/ts3.4/commands/GetDelegatedAdminAccountCommand.d.ts +1 -1
  123. package/dist-types/ts3.4/commands/GetEc2DeepInspectionConfigurationCommand.d.ts +1 -1
  124. package/dist-types/ts3.4/commands/GetEncryptionKeyCommand.d.ts +1 -1
  125. package/dist-types/ts3.4/commands/GetFindingsReportStatusCommand.d.ts +1 -1
  126. package/dist-types/ts3.4/commands/GetMemberCommand.d.ts +1 -1
  127. package/dist-types/ts3.4/commands/GetSbomExportCommand.d.ts +4 -2
  128. package/dist-types/ts3.4/commands/ListCodeSecurityIntegrationsCommand.d.ts +51 -0
  129. package/dist-types/ts3.4/commands/ListCodeSecurityScanConfigurationAssociationsCommand.d.ts +51 -0
  130. package/dist-types/ts3.4/commands/ListCodeSecurityScanConfigurationsCommand.d.ts +51 -0
  131. package/dist-types/ts3.4/commands/StartCodeSecurityScanCommand.d.ts +51 -0
  132. package/dist-types/ts3.4/commands/UpdateCodeSecurityIntegrationCommand.d.ts +51 -0
  133. package/dist-types/ts3.4/commands/UpdateCodeSecurityScanConfigurationCommand.d.ts +51 -0
  134. package/dist-types/ts3.4/commands/index.d.ts +15 -0
  135. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +7 -7
  136. package/dist-types/ts3.4/models/models_0.d.ts +420 -328
  137. package/dist-types/ts3.4/models/models_1.d.ts +445 -6
  138. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +180 -0
  139. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -2
  140. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -2
  141. package/package.json +2 -2
@@ -21,6 +21,7 @@ export interface ResourceStatus {
21
21
  ecr: Status | undefined;
22
22
  lambda?: Status | undefined;
23
23
  lambdaCode?: Status | undefined;
24
+ codeRepository?: Status | undefined;
24
25
  }
25
26
  export interface Account {
26
27
  accountId: string | undefined;
@@ -110,6 +111,7 @@ export interface ResourceState {
110
111
  ecr: State | undefined;
111
112
  lambda?: State | undefined;
112
113
  lambdaCode?: State | undefined;
114
+ codeRepository?: State | undefined;
113
115
  }
114
116
  export interface AccountState {
115
117
  accountId: string | undefined;
@@ -165,6 +167,20 @@ export interface AwsEcrContainerAggregation {
165
167
  lastInUseAt?: DateFilter[] | undefined;
166
168
  inUseCount?: NumberFilter[] | undefined;
167
169
  }
170
+ export declare const CodeRepositorySortBy: {
171
+ readonly ALL: "ALL";
172
+ readonly CRITICAL: "CRITICAL";
173
+ readonly HIGH: "HIGH";
174
+ };
175
+ export type CodeRepositorySortBy =
176
+ (typeof CodeRepositorySortBy)[keyof typeof CodeRepositorySortBy];
177
+ export interface CodeRepositoryAggregation {
178
+ projectNames?: StringFilter[] | undefined;
179
+ providerTypes?: StringFilter[] | undefined;
180
+ sortOrder?: SortOrder | undefined;
181
+ sortBy?: CodeRepositorySortBy | undefined;
182
+ resourceIds?: StringFilter[] | undefined;
183
+ }
168
184
  export declare const MapComparison: {
169
185
  readonly EQUALS: "EQUALS";
170
186
  };
@@ -288,6 +304,7 @@ export type AggregationRequest =
288
304
  | AggregationRequest.AccountAggregationMember
289
305
  | AggregationRequest.AmiAggregationMember
290
306
  | AggregationRequest.AwsEcrContainerAggregationMember
307
+ | AggregationRequest.CodeRepositoryAggregationMember
291
308
  | AggregationRequest.Ec2InstanceAggregationMember
292
309
  | AggregationRequest.FindingTypeAggregationMember
293
310
  | AggregationRequest.ImageLayerAggregationMember
@@ -310,6 +327,7 @@ export declare namespace AggregationRequest {
310
327
  titleAggregation?: never;
311
328
  lambdaLayerAggregation?: never;
312
329
  lambdaFunctionAggregation?: never;
330
+ codeRepositoryAggregation?: never;
313
331
  $unknown?: never;
314
332
  }
315
333
  interface AmiAggregationMember {
@@ -324,6 +342,7 @@ export declare namespace AggregationRequest {
324
342
  titleAggregation?: never;
325
343
  lambdaLayerAggregation?: never;
326
344
  lambdaFunctionAggregation?: never;
345
+ codeRepositoryAggregation?: never;
327
346
  $unknown?: never;
328
347
  }
329
348
  interface AwsEcrContainerAggregationMember {
@@ -338,6 +357,7 @@ export declare namespace AggregationRequest {
338
357
  titleAggregation?: never;
339
358
  lambdaLayerAggregation?: never;
340
359
  lambdaFunctionAggregation?: never;
360
+ codeRepositoryAggregation?: never;
341
361
  $unknown?: never;
342
362
  }
343
363
  interface Ec2InstanceAggregationMember {
@@ -352,6 +372,7 @@ export declare namespace AggregationRequest {
352
372
  titleAggregation?: never;
353
373
  lambdaLayerAggregation?: never;
354
374
  lambdaFunctionAggregation?: never;
375
+ codeRepositoryAggregation?: never;
355
376
  $unknown?: never;
356
377
  }
357
378
  interface FindingTypeAggregationMember {
@@ -366,6 +387,7 @@ export declare namespace AggregationRequest {
366
387
  titleAggregation?: never;
367
388
  lambdaLayerAggregation?: never;
368
389
  lambdaFunctionAggregation?: never;
390
+ codeRepositoryAggregation?: never;
369
391
  $unknown?: never;
370
392
  }
371
393
  interface ImageLayerAggregationMember {
@@ -380,6 +402,7 @@ export declare namespace AggregationRequest {
380
402
  titleAggregation?: never;
381
403
  lambdaLayerAggregation?: never;
382
404
  lambdaFunctionAggregation?: never;
405
+ codeRepositoryAggregation?: never;
383
406
  $unknown?: never;
384
407
  }
385
408
  interface PackageAggregationMember {
@@ -394,6 +417,7 @@ export declare namespace AggregationRequest {
394
417
  titleAggregation?: never;
395
418
  lambdaLayerAggregation?: never;
396
419
  lambdaFunctionAggregation?: never;
420
+ codeRepositoryAggregation?: never;
397
421
  $unknown?: never;
398
422
  }
399
423
  interface RepositoryAggregationMember {
@@ -408,6 +432,7 @@ export declare namespace AggregationRequest {
408
432
  titleAggregation?: never;
409
433
  lambdaLayerAggregation?: never;
410
434
  lambdaFunctionAggregation?: never;
435
+ codeRepositoryAggregation?: never;
411
436
  $unknown?: never;
412
437
  }
413
438
  interface TitleAggregationMember {
@@ -422,6 +447,7 @@ export declare namespace AggregationRequest {
422
447
  titleAggregation: TitleAggregation;
423
448
  lambdaLayerAggregation?: never;
424
449
  lambdaFunctionAggregation?: never;
450
+ codeRepositoryAggregation?: never;
425
451
  $unknown?: never;
426
452
  }
427
453
  interface LambdaLayerAggregationMember {
@@ -436,6 +462,7 @@ export declare namespace AggregationRequest {
436
462
  titleAggregation?: never;
437
463
  lambdaLayerAggregation: LambdaLayerAggregation;
438
464
  lambdaFunctionAggregation?: never;
465
+ codeRepositoryAggregation?: never;
439
466
  $unknown?: never;
440
467
  }
441
468
  interface LambdaFunctionAggregationMember {
@@ -450,6 +477,22 @@ export declare namespace AggregationRequest {
450
477
  titleAggregation?: never;
451
478
  lambdaLayerAggregation?: never;
452
479
  lambdaFunctionAggregation: LambdaFunctionAggregation;
480
+ codeRepositoryAggregation?: never;
481
+ $unknown?: never;
482
+ }
483
+ interface CodeRepositoryAggregationMember {
484
+ accountAggregation?: never;
485
+ amiAggregation?: never;
486
+ awsEcrContainerAggregation?: never;
487
+ ec2InstanceAggregation?: never;
488
+ findingTypeAggregation?: never;
489
+ imageLayerAggregation?: never;
490
+ packageAggregation?: never;
491
+ repositoryAggregation?: never;
492
+ titleAggregation?: never;
493
+ lambdaLayerAggregation?: never;
494
+ lambdaFunctionAggregation?: never;
495
+ codeRepositoryAggregation: CodeRepositoryAggregation;
453
496
  $unknown?: never;
454
497
  }
455
498
  interface $UnknownMember {
@@ -464,6 +507,7 @@ export declare namespace AggregationRequest {
464
507
  titleAggregation?: never;
465
508
  lambdaLayerAggregation?: never;
466
509
  lambdaFunctionAggregation?: never;
510
+ codeRepositoryAggregation?: never;
467
511
  $unknown: [string, any];
468
512
  }
469
513
  interface Visitor<T> {
@@ -478,6 +522,7 @@ export declare namespace AggregationRequest {
478
522
  titleAggregation: (value: TitleAggregation) => T;
479
523
  lambdaLayerAggregation: (value: LambdaLayerAggregation) => T;
480
524
  lambdaFunctionAggregation: (value: LambdaFunctionAggregation) => T;
525
+ codeRepositoryAggregation: (value: CodeRepositoryAggregation) => T;
481
526
  _: (name: string, value: any) => T;
482
527
  }
483
528
  const visit: <T>(value: AggregationRequest, visitor: Visitor<T>) => T;
@@ -499,6 +544,15 @@ export interface AwsEcrContainerAggregationResponse {
499
544
  lastInUseAt?: Date | undefined;
500
545
  inUseCount?: number | undefined;
501
546
  }
547
+ export interface CodeRepositoryAggregationResponse {
548
+ projectNames: string | undefined;
549
+ providerType?: string | undefined;
550
+ severityCounts?: SeverityCounts | undefined;
551
+ exploitAvailableActiveFindingsCount?: number | undefined;
552
+ fixAvailableActiveFindingsCount?: number | undefined;
553
+ accountId?: string | undefined;
554
+ resourceId?: string | undefined;
555
+ }
502
556
  export interface Ec2InstanceAggregationResponse {
503
557
  instanceId: string | undefined;
504
558
  ami?: string | undefined;
@@ -558,6 +612,7 @@ export type AggregationResponse =
558
612
  | AggregationResponse.AccountAggregationMember
559
613
  | AggregationResponse.AmiAggregationMember
560
614
  | AggregationResponse.AwsEcrContainerAggregationMember
615
+ | AggregationResponse.CodeRepositoryAggregationMember
561
616
  | AggregationResponse.Ec2InstanceAggregationMember
562
617
  | AggregationResponse.FindingTypeAggregationMember
563
618
  | AggregationResponse.ImageLayerAggregationMember
@@ -580,6 +635,7 @@ export declare namespace AggregationResponse {
580
635
  titleAggregation?: never;
581
636
  lambdaLayerAggregation?: never;
582
637
  lambdaFunctionAggregation?: never;
638
+ codeRepositoryAggregation?: never;
583
639
  $unknown?: never;
584
640
  }
585
641
  interface AmiAggregationMember {
@@ -594,6 +650,7 @@ export declare namespace AggregationResponse {
594
650
  titleAggregation?: never;
595
651
  lambdaLayerAggregation?: never;
596
652
  lambdaFunctionAggregation?: never;
653
+ codeRepositoryAggregation?: never;
597
654
  $unknown?: never;
598
655
  }
599
656
  interface AwsEcrContainerAggregationMember {
@@ -608,6 +665,7 @@ export declare namespace AggregationResponse {
608
665
  titleAggregation?: never;
609
666
  lambdaLayerAggregation?: never;
610
667
  lambdaFunctionAggregation?: never;
668
+ codeRepositoryAggregation?: never;
611
669
  $unknown?: never;
612
670
  }
613
671
  interface Ec2InstanceAggregationMember {
@@ -622,6 +680,7 @@ export declare namespace AggregationResponse {
622
680
  titleAggregation?: never;
623
681
  lambdaLayerAggregation?: never;
624
682
  lambdaFunctionAggregation?: never;
683
+ codeRepositoryAggregation?: never;
625
684
  $unknown?: never;
626
685
  }
627
686
  interface FindingTypeAggregationMember {
@@ -636,6 +695,7 @@ export declare namespace AggregationResponse {
636
695
  titleAggregation?: never;
637
696
  lambdaLayerAggregation?: never;
638
697
  lambdaFunctionAggregation?: never;
698
+ codeRepositoryAggregation?: never;
639
699
  $unknown?: never;
640
700
  }
641
701
  interface ImageLayerAggregationMember {
@@ -650,6 +710,7 @@ export declare namespace AggregationResponse {
650
710
  titleAggregation?: never;
651
711
  lambdaLayerAggregation?: never;
652
712
  lambdaFunctionAggregation?: never;
713
+ codeRepositoryAggregation?: never;
653
714
  $unknown?: never;
654
715
  }
655
716
  interface PackageAggregationMember {
@@ -664,6 +725,7 @@ export declare namespace AggregationResponse {
664
725
  titleAggregation?: never;
665
726
  lambdaLayerAggregation?: never;
666
727
  lambdaFunctionAggregation?: never;
728
+ codeRepositoryAggregation?: never;
667
729
  $unknown?: never;
668
730
  }
669
731
  interface RepositoryAggregationMember {
@@ -678,6 +740,7 @@ export declare namespace AggregationResponse {
678
740
  titleAggregation?: never;
679
741
  lambdaLayerAggregation?: never;
680
742
  lambdaFunctionAggregation?: never;
743
+ codeRepositoryAggregation?: never;
681
744
  $unknown?: never;
682
745
  }
683
746
  interface TitleAggregationMember {
@@ -692,6 +755,7 @@ export declare namespace AggregationResponse {
692
755
  titleAggregation: TitleAggregationResponse;
693
756
  lambdaLayerAggregation?: never;
694
757
  lambdaFunctionAggregation?: never;
758
+ codeRepositoryAggregation?: never;
695
759
  $unknown?: never;
696
760
  }
697
761
  interface LambdaLayerAggregationMember {
@@ -706,6 +770,7 @@ export declare namespace AggregationResponse {
706
770
  titleAggregation?: never;
707
771
  lambdaLayerAggregation: LambdaLayerAggregationResponse;
708
772
  lambdaFunctionAggregation?: never;
773
+ codeRepositoryAggregation?: never;
709
774
  $unknown?: never;
710
775
  }
711
776
  interface LambdaFunctionAggregationMember {
@@ -720,6 +785,22 @@ export declare namespace AggregationResponse {
720
785
  titleAggregation?: never;
721
786
  lambdaLayerAggregation?: never;
722
787
  lambdaFunctionAggregation: LambdaFunctionAggregationResponse;
788
+ codeRepositoryAggregation?: never;
789
+ $unknown?: never;
790
+ }
791
+ interface CodeRepositoryAggregationMember {
792
+ accountAggregation?: never;
793
+ amiAggregation?: never;
794
+ awsEcrContainerAggregation?: never;
795
+ ec2InstanceAggregation?: never;
796
+ findingTypeAggregation?: never;
797
+ imageLayerAggregation?: never;
798
+ packageAggregation?: never;
799
+ repositoryAggregation?: never;
800
+ titleAggregation?: never;
801
+ lambdaLayerAggregation?: never;
802
+ lambdaFunctionAggregation?: never;
803
+ codeRepositoryAggregation: CodeRepositoryAggregationResponse;
723
804
  $unknown?: never;
724
805
  }
725
806
  interface $UnknownMember {
@@ -734,6 +815,7 @@ export declare namespace AggregationResponse {
734
815
  titleAggregation?: never;
735
816
  lambdaLayerAggregation?: never;
736
817
  lambdaFunctionAggregation?: never;
818
+ codeRepositoryAggregation?: never;
737
819
  $unknown: [string, any];
738
820
  }
739
821
  interface Visitor<T> {
@@ -750,6 +832,7 @@ export declare namespace AggregationResponse {
750
832
  titleAggregation: (value: TitleAggregationResponse) => T;
751
833
  lambdaLayerAggregation: (value: LambdaLayerAggregationResponse) => T;
752
834
  lambdaFunctionAggregation: (value: LambdaFunctionAggregationResponse) => T;
835
+ codeRepositoryAggregation: (value: CodeRepositoryAggregationResponse) => T;
753
836
  _: (name: string, value: any) => T;
754
837
  }
755
838
  const visit: <T>(value: AggregationResponse, visitor: Visitor<T>) => T;
@@ -760,6 +843,7 @@ export declare const AggregationType: {
760
843
  readonly AWS_EC2_INSTANCE: "AWS_EC2_INSTANCE";
761
844
  readonly AWS_ECR_CONTAINER: "AWS_ECR_CONTAINER";
762
845
  readonly AWS_LAMBDA_FUNCTION: "AWS_LAMBDA_FUNCTION";
846
+ readonly CODE_REPOSITORY: "CODE_REPOSITORY";
763
847
  readonly FINDING_TYPE: "FINDING_TYPE";
764
848
  readonly IMAGE_LAYER: "IMAGE_LAYER";
765
849
  readonly LAMBDA_LAYER: "LAMBDA_LAYER";
@@ -774,6 +858,28 @@ export declare const Architecture: {
774
858
  readonly X86_64: "X86_64";
775
859
  };
776
860
  export type Architecture = (typeof Architecture)[keyof typeof Architecture];
861
+ export type CodeSecurityResource =
862
+ | CodeSecurityResource.ProjectIdMember
863
+ | CodeSecurityResource.$UnknownMember;
864
+ export declare namespace CodeSecurityResource {
865
+ interface ProjectIdMember {
866
+ projectId: string;
867
+ $unknown?: never;
868
+ }
869
+ interface $UnknownMember {
870
+ projectId?: never;
871
+ $unknown: [string, any];
872
+ }
873
+ interface Visitor<T> {
874
+ projectId: (value: string) => T;
875
+ _: (name: string, value: any) => T;
876
+ }
877
+ const visit: <T>(value: CodeSecurityResource, visitor: Visitor<T>) => T;
878
+ }
879
+ export interface AssociateConfigurationRequest {
880
+ scanConfigurationArn: string | undefined;
881
+ resource: CodeSecurityResource | undefined;
882
+ }
777
883
  export interface AssociateMemberRequest {
778
884
  accountId: string | undefined;
779
885
  }
@@ -828,6 +934,16 @@ export declare class ValidationException extends __BaseException {
828
934
  opts: __ExceptionOptionType<ValidationException, __BaseException>
829
935
  );
830
936
  }
937
+ export declare const AssociationResultStatusCode: {
938
+ readonly ACCESS_DENIED: "ACCESS_DENIED";
939
+ readonly INTERNAL_ERROR: "INTERNAL_ERROR";
940
+ readonly INVALID_INPUT: "INVALID_INPUT";
941
+ readonly QUOTA_EXCEEDED: "QUOTA_EXCEEDED";
942
+ readonly RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND";
943
+ readonly SCAN_CONFIGURATION_NOT_FOUND: "SCAN_CONFIGURATION_NOT_FOUND";
944
+ };
945
+ export type AssociationResultStatusCode =
946
+ (typeof AssociationResultStatusCode)[keyof typeof AssociationResultStatusCode];
831
947
  export interface AtigData {
832
948
  firstSeen?: Date | undefined;
833
949
  lastSeen?: Date | undefined;
@@ -839,6 +955,7 @@ export interface AutoEnable {
839
955
  ecr: boolean | undefined;
840
956
  lambda?: boolean | undefined;
841
957
  lambdaCode?: boolean | undefined;
958
+ codeRepository?: boolean | undefined;
842
959
  }
843
960
  export interface AwsEc2InstanceDetails {
844
961
  type?: string | undefined;
@@ -929,6 +1046,50 @@ export declare class BadRequestException extends __BaseException {
929
1046
  opts: __ExceptionOptionType<BadRequestException, __BaseException>
930
1047
  );
931
1048
  }
1049
+ export interface BatchAssociateCodeSecurityScanConfigurationRequest {
1050
+ associateConfigurationRequests: AssociateConfigurationRequest[] | undefined;
1051
+ }
1052
+ export interface FailedAssociationResult {
1053
+ scanConfigurationArn?: string | undefined;
1054
+ resource?: CodeSecurityResource | undefined;
1055
+ statusCode?: AssociationResultStatusCode | undefined;
1056
+ statusMessage?: string | undefined;
1057
+ }
1058
+ export interface SuccessfulAssociationResult {
1059
+ scanConfigurationArn?: string | undefined;
1060
+ resource?: CodeSecurityResource | undefined;
1061
+ }
1062
+ export interface BatchAssociateCodeSecurityScanConfigurationResponse {
1063
+ failedAssociations?: FailedAssociationResult[] | undefined;
1064
+ successfulAssociations?: SuccessfulAssociationResult[] | undefined;
1065
+ }
1066
+ export declare class ConflictException extends __BaseException {
1067
+ readonly name: "ConflictException";
1068
+ readonly $fault: "client";
1069
+ resourceId: string | undefined;
1070
+ resourceType: string | undefined;
1071
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
1072
+ }
1073
+ export declare class ResourceNotFoundException extends __BaseException {
1074
+ readonly name: "ResourceNotFoundException";
1075
+ readonly $fault: "client";
1076
+ constructor(
1077
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
1078
+ );
1079
+ }
1080
+ export interface DisassociateConfigurationRequest {
1081
+ scanConfigurationArn: string | undefined;
1082
+ resource: CodeSecurityResource | undefined;
1083
+ }
1084
+ export interface BatchDisassociateCodeSecurityScanConfigurationRequest {
1085
+ disassociateConfigurationRequests:
1086
+ | DisassociateConfigurationRequest[]
1087
+ | undefined;
1088
+ }
1089
+ export interface BatchDisassociateCodeSecurityScanConfigurationResponse {
1090
+ failedAssociations?: FailedAssociationResult[] | undefined;
1091
+ successfulAssociations?: SuccessfulAssociationResult[] | undefined;
1092
+ }
932
1093
  export interface BatchGetAccountStatusRequest {
933
1094
  accountIds?: string[] | undefined;
934
1095
  }
@@ -943,13 +1104,6 @@ export interface BatchGetAccountStatusResponse {
943
1104
  accounts: AccountState[] | undefined;
944
1105
  failedAccounts?: FailedAccount[] | undefined;
945
1106
  }
946
- export declare class ResourceNotFoundException extends __BaseException {
947
- readonly name: "ResourceNotFoundException";
948
- readonly $fault: "client";
949
- constructor(
950
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
951
- );
952
- }
953
1107
  export interface BatchGetCodeSnippetRequest {
954
1108
  findingArns: string[] | undefined;
955
1109
  }
@@ -1041,6 +1195,7 @@ export declare const FreeTrialStatus: {
1041
1195
  export type FreeTrialStatus =
1042
1196
  (typeof FreeTrialStatus)[keyof typeof FreeTrialStatus];
1043
1197
  export declare const FreeTrialType: {
1198
+ readonly CODE_REPOSITORY: "CODE_REPOSITORY";
1044
1199
  readonly EC2: "EC2";
1045
1200
  readonly ECR: "ECR";
1046
1201
  readonly LAMBDA: "LAMBDA";
@@ -1508,6 +1663,182 @@ export interface CodeFilePath {
1508
1663
  startLine: number | undefined;
1509
1664
  endLine: number | undefined;
1510
1665
  }
1666
+ export declare const CodeRepositoryProviderType: {
1667
+ readonly GITHUB: "GITHUB";
1668
+ readonly GITLAB_SELF_MANAGED: "GITLAB_SELF_MANAGED";
1669
+ };
1670
+ export type CodeRepositoryProviderType =
1671
+ (typeof CodeRepositoryProviderType)[keyof typeof CodeRepositoryProviderType];
1672
+ export interface CodeRepositoryDetails {
1673
+ projectName?: string | undefined;
1674
+ integrationArn?: string | undefined;
1675
+ providerType?: CodeRepositoryProviderType | undefined;
1676
+ }
1677
+ export declare const ScanStatusReason: {
1678
+ readonly ACCESS_DENIED: "ACCESS_DENIED";
1679
+ readonly ACCESS_DENIED_TO_ENCRYPTION_KEY: "ACCESS_DENIED_TO_ENCRYPTION_KEY";
1680
+ readonly AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED: "AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED";
1681
+ readonly AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED: "AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED";
1682
+ readonly DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED: "DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED";
1683
+ readonly DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED: "DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED";
1684
+ readonly DEEP_INSPECTION_NO_INVENTORY: "DEEP_INSPECTION_NO_INVENTORY";
1685
+ readonly DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED: "DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED";
1686
+ readonly EC2_INSTANCE_STOPPED: "EC2_INSTANCE_STOPPED";
1687
+ readonly EXCLUDED_BY_TAG: "EXCLUDED_BY_TAG";
1688
+ readonly IMAGE_SIZE_EXCEEDED: "IMAGE_SIZE_EXCEEDED";
1689
+ readonly INTEGRATION_CONNECTION_LOST: "INTEGRATION_CONNECTION_LOST";
1690
+ readonly INTERNAL_ERROR: "INTERNAL_ERROR";
1691
+ readonly NO_INVENTORY: "NO_INVENTORY";
1692
+ readonly NO_RESOURCES_FOUND: "NO_RESOURCES_FOUND";
1693
+ readonly NO_SCAN_CONFIGURATION_ASSOCIATED: "NO_SCAN_CONFIGURATION_ASSOCIATED";
1694
+ readonly PENDING_DISABLE: "PENDING_DISABLE";
1695
+ readonly PENDING_INITIAL_SCAN: "PENDING_INITIAL_SCAN";
1696
+ readonly PENDING_REVIVAL_SCAN: "PENDING_REVIVAL_SCAN";
1697
+ readonly RESOURCE_TERMINATED: "RESOURCE_TERMINATED";
1698
+ readonly SCAN_ELIGIBILITY_EXPIRED: "SCAN_ELIGIBILITY_EXPIRED";
1699
+ readonly SCAN_FREQUENCY_MANUAL: "SCAN_FREQUENCY_MANUAL";
1700
+ readonly SCAN_FREQUENCY_SCAN_ON_PUSH: "SCAN_FREQUENCY_SCAN_ON_PUSH";
1701
+ readonly SCAN_IN_PROGRESS: "SCAN_IN_PROGRESS";
1702
+ readonly STALE_INVENTORY: "STALE_INVENTORY";
1703
+ readonly SUCCESSFUL: "SUCCESSFUL";
1704
+ readonly UNMANAGED_EC2_INSTANCE: "UNMANAGED_EC2_INSTANCE";
1705
+ readonly UNSUPPORTED_CONFIG_FILE: "UNSUPPORTED_CONFIG_FILE";
1706
+ readonly UNSUPPORTED_LANGUAGE: "UNSUPPORTED_LANGUAGE";
1707
+ readonly UNSUPPORTED_MEDIA_TYPE: "UNSUPPORTED_MEDIA_TYPE";
1708
+ readonly UNSUPPORTED_OS: "UNSUPPORTED_OS";
1709
+ readonly UNSUPPORTED_RUNTIME: "UNSUPPORTED_RUNTIME";
1710
+ };
1711
+ export type ScanStatusReason =
1712
+ (typeof ScanStatusReason)[keyof typeof ScanStatusReason];
1713
+ export declare const ScanStatusCode: {
1714
+ readonly ACTIVE: "ACTIVE";
1715
+ readonly INACTIVE: "INACTIVE";
1716
+ };
1717
+ export type ScanStatusCode =
1718
+ (typeof ScanStatusCode)[keyof typeof ScanStatusCode];
1719
+ export interface ScanStatus {
1720
+ statusCode: ScanStatusCode | undefined;
1721
+ reason: ScanStatusReason | undefined;
1722
+ }
1723
+ export interface CodeRepositoryOnDemandScan {
1724
+ lastScannedCommitId?: string | undefined;
1725
+ lastScanAt?: Date | undefined;
1726
+ scanStatus?: ScanStatus | undefined;
1727
+ }
1728
+ export declare const RuleSetCategory: {
1729
+ readonly IAC: "IAC";
1730
+ readonly SAST: "SAST";
1731
+ readonly SCA: "SCA";
1732
+ };
1733
+ export type RuleSetCategory =
1734
+ (typeof RuleSetCategory)[keyof typeof RuleSetCategory];
1735
+ export declare const ContinuousIntegrationScanEvent: {
1736
+ readonly PULL_REQUEST: "PULL_REQUEST";
1737
+ readonly PUSH: "PUSH";
1738
+ };
1739
+ export type ContinuousIntegrationScanEvent =
1740
+ (typeof ContinuousIntegrationScanEvent)[keyof typeof ContinuousIntegrationScanEvent];
1741
+ export interface ProjectContinuousIntegrationScanConfiguration {
1742
+ supportedEvent?: ContinuousIntegrationScanEvent | undefined;
1743
+ ruleSetCategories?: RuleSetCategory[] | undefined;
1744
+ }
1745
+ export interface ProjectPeriodicScanConfiguration {
1746
+ frequencyExpression?: string | undefined;
1747
+ ruleSetCategories?: RuleSetCategory[] | undefined;
1748
+ }
1749
+ export interface ProjectCodeSecurityScanConfiguration {
1750
+ periodicScanConfigurations?: ProjectPeriodicScanConfiguration[] | undefined;
1751
+ continuousIntegrationScanConfigurations?:
1752
+ | ProjectContinuousIntegrationScanConfiguration[]
1753
+ | undefined;
1754
+ }
1755
+ export interface CodeRepositoryMetadata {
1756
+ projectName: string | undefined;
1757
+ integrationArn?: string | undefined;
1758
+ providerType: string | undefined;
1759
+ providerTypeVisibility: string | undefined;
1760
+ lastScannedCommitId?: string | undefined;
1761
+ scanConfiguration?: ProjectCodeSecurityScanConfiguration | undefined;
1762
+ onDemandScan?: CodeRepositoryOnDemandScan | undefined;
1763
+ }
1764
+ export declare const CodeScanStatus: {
1765
+ readonly FAILED: "FAILED";
1766
+ readonly IN_PROGRESS: "IN_PROGRESS";
1767
+ readonly SKIPPED: "SKIPPED";
1768
+ readonly SUCCESSFUL: "SUCCESSFUL";
1769
+ };
1770
+ export type CodeScanStatus =
1771
+ (typeof CodeScanStatus)[keyof typeof CodeScanStatus];
1772
+ export declare const IntegrationStatus: {
1773
+ readonly ACTIVE: "ACTIVE";
1774
+ readonly DISABLING: "DISABLING";
1775
+ readonly INACTIVE: "INACTIVE";
1776
+ readonly IN_PROGRESS: "IN_PROGRESS";
1777
+ readonly PENDING: "PENDING";
1778
+ };
1779
+ export type IntegrationStatus =
1780
+ (typeof IntegrationStatus)[keyof typeof IntegrationStatus];
1781
+ export declare const IntegrationType: {
1782
+ readonly GITHUB: "GITHUB";
1783
+ readonly GITLAB_SELF_MANAGED: "GITLAB_SELF_MANAGED";
1784
+ };
1785
+ export type IntegrationType =
1786
+ (typeof IntegrationType)[keyof typeof IntegrationType];
1787
+ export interface CodeSecurityIntegrationSummary {
1788
+ integrationArn: string | undefined;
1789
+ name: string | undefined;
1790
+ type: IntegrationType | undefined;
1791
+ status: IntegrationStatus | undefined;
1792
+ statusReason: string | undefined;
1793
+ createdOn: Date | undefined;
1794
+ lastUpdateOn: Date | undefined;
1795
+ tags?: Record<string, string> | undefined;
1796
+ }
1797
+ export interface ContinuousIntegrationScanConfiguration {
1798
+ supportedEvents: ContinuousIntegrationScanEvent[] | undefined;
1799
+ }
1800
+ export declare const PeriodicScanFrequency: {
1801
+ readonly MONTHLY: "MONTHLY";
1802
+ readonly NEVER: "NEVER";
1803
+ readonly WEEKLY: "WEEKLY";
1804
+ };
1805
+ export type PeriodicScanFrequency =
1806
+ (typeof PeriodicScanFrequency)[keyof typeof PeriodicScanFrequency];
1807
+ export interface PeriodicScanConfiguration {
1808
+ frequency?: PeriodicScanFrequency | undefined;
1809
+ frequencyExpression?: string | undefined;
1810
+ }
1811
+ export interface CodeSecurityScanConfiguration {
1812
+ periodicScanConfiguration?: PeriodicScanConfiguration | undefined;
1813
+ continuousIntegrationScanConfiguration?:
1814
+ | ContinuousIntegrationScanConfiguration
1815
+ | undefined;
1816
+ ruleSetCategories: RuleSetCategory[] | undefined;
1817
+ }
1818
+ export interface CodeSecurityScanConfigurationAssociationSummary {
1819
+ resource?: CodeSecurityResource | undefined;
1820
+ }
1821
+ export declare const ProjectSelectionScope: {
1822
+ readonly ALL: "ALL";
1823
+ };
1824
+ export type ProjectSelectionScope =
1825
+ (typeof ProjectSelectionScope)[keyof typeof ProjectSelectionScope];
1826
+ export interface ScopeSettings {
1827
+ projectSelectionScope?: ProjectSelectionScope | undefined;
1828
+ }
1829
+ export interface CodeSecurityScanConfigurationSummary {
1830
+ scanConfigurationArn: string | undefined;
1831
+ name: string | undefined;
1832
+ ownerAccountId: string | undefined;
1833
+ periodicScanFrequency?: PeriodicScanFrequency | undefined;
1834
+ frequencyExpression?: string | undefined;
1835
+ continuousIntegrationScanSupportedEvents?:
1836
+ | ContinuousIntegrationScanEvent[]
1837
+ | undefined;
1838
+ ruleSetCategories: RuleSetCategory[] | undefined;
1839
+ scopeSettings?: ScopeSettings | undefined;
1840
+ tags?: Record<string, string> | undefined;
1841
+ }
1511
1842
  export interface CodeVulnerabilityDetails {
1512
1843
  filePath: CodeFilePath | undefined;
1513
1844
  detectorTags?: string[] | undefined;
@@ -1523,13 +1854,12 @@ export interface ComputePlatform {
1523
1854
  product?: string | undefined;
1524
1855
  version?: string | undefined;
1525
1856
  }
1526
- export declare class ConflictException extends __BaseException {
1527
- readonly name: "ConflictException";
1528
- readonly $fault: "client";
1529
- resourceId: string | undefined;
1530
- resourceType: string | undefined;
1531
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
1532
- }
1857
+ export declare const ConfigurationLevel: {
1858
+ readonly ACCOUNT: "ACCOUNT";
1859
+ readonly ORGANIZATION: "ORGANIZATION";
1860
+ };
1861
+ export type ConfigurationLevel =
1862
+ (typeof ConfigurationLevel)[keyof typeof ConfigurationLevel];
1533
1863
  export declare const GroupKey: {
1534
1864
  readonly ACCOUNT_ID: "ACCOUNT_ID";
1535
1865
  readonly ECR_REPOSITORY_NAME: "ECR_REPOSITORY_NAME";
@@ -1588,12 +1918,17 @@ export interface CoverageFilterCriteria {
1588
1918
  imagePulledAt?: CoverageDateFilter[] | undefined;
1589
1919
  ecrImageLastInUseAt?: CoverageDateFilter[] | undefined;
1590
1920
  ecrImageInUseCount?: CoverageNumberFilter[] | undefined;
1921
+ codeRepositoryProjectName?: CoverageStringFilter[] | undefined;
1922
+ codeRepositoryProviderType?: CoverageStringFilter[] | undefined;
1923
+ codeRepositoryProviderTypeVisibility?: CoverageStringFilter[] | undefined;
1924
+ lastScannedCommitId?: CoverageStringFilter[] | undefined;
1591
1925
  }
1592
1926
  export declare const CoverageResourceType: {
1593
1927
  readonly AWS_EC2_INSTANCE: "AWS_EC2_INSTANCE";
1594
1928
  readonly AWS_ECR_CONTAINER_IMAGE: "AWS_ECR_CONTAINER_IMAGE";
1595
1929
  readonly AWS_ECR_REPOSITORY: "AWS_ECR_REPOSITORY";
1596
1930
  readonly AWS_LAMBDA_FUNCTION: "AWS_LAMBDA_FUNCTION";
1931
+ readonly CODE_REPOSITORY: "CODE_REPOSITORY";
1597
1932
  };
1598
1933
  export type CoverageResourceType =
1599
1934
  (typeof CoverageResourceType)[keyof typeof CoverageResourceType];
@@ -1637,53 +1972,13 @@ export interface ResourceScanMetadata {
1637
1972
  ecrImage?: EcrContainerImageMetadata | undefined;
1638
1973
  ec2?: Ec2Metadata | undefined;
1639
1974
  lambdaFunction?: LambdaFunctionMetadata | undefined;
1975
+ codeRepository?: CodeRepositoryMetadata | undefined;
1640
1976
  }
1641
1977
  export declare const ScanMode: {
1642
1978
  readonly EC2_AGENTLESS: "EC2_AGENTLESS";
1643
1979
  readonly EC2_SSM_AGENT_BASED: "EC2_SSM_AGENT_BASED";
1644
1980
  };
1645
1981
  export type ScanMode = (typeof ScanMode)[keyof typeof ScanMode];
1646
- export declare const ScanStatusReason: {
1647
- readonly ACCESS_DENIED: "ACCESS_DENIED";
1648
- readonly AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED: "AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED";
1649
- readonly AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED: "AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED";
1650
- readonly DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED: "DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED";
1651
- readonly DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED: "DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED";
1652
- readonly DEEP_INSPECTION_NO_INVENTORY: "DEEP_INSPECTION_NO_INVENTORY";
1653
- readonly DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED: "DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED";
1654
- readonly EC2_INSTANCE_STOPPED: "EC2_INSTANCE_STOPPED";
1655
- readonly EXCLUDED_BY_TAG: "EXCLUDED_BY_TAG";
1656
- readonly IMAGE_SIZE_EXCEEDED: "IMAGE_SIZE_EXCEEDED";
1657
- readonly INTERNAL_ERROR: "INTERNAL_ERROR";
1658
- readonly NO_INVENTORY: "NO_INVENTORY";
1659
- readonly NO_RESOURCES_FOUND: "NO_RESOURCES_FOUND";
1660
- readonly PENDING_DISABLE: "PENDING_DISABLE";
1661
- readonly PENDING_INITIAL_SCAN: "PENDING_INITIAL_SCAN";
1662
- readonly PENDING_REVIVAL_SCAN: "PENDING_REVIVAL_SCAN";
1663
- readonly RESOURCE_TERMINATED: "RESOURCE_TERMINATED";
1664
- readonly SCAN_ELIGIBILITY_EXPIRED: "SCAN_ELIGIBILITY_EXPIRED";
1665
- readonly SCAN_FREQUENCY_MANUAL: "SCAN_FREQUENCY_MANUAL";
1666
- readonly SCAN_FREQUENCY_SCAN_ON_PUSH: "SCAN_FREQUENCY_SCAN_ON_PUSH";
1667
- readonly STALE_INVENTORY: "STALE_INVENTORY";
1668
- readonly SUCCESSFUL: "SUCCESSFUL";
1669
- readonly UNMANAGED_EC2_INSTANCE: "UNMANAGED_EC2_INSTANCE";
1670
- readonly UNSUPPORTED_CONFIG_FILE: "UNSUPPORTED_CONFIG_FILE";
1671
- readonly UNSUPPORTED_MEDIA_TYPE: "UNSUPPORTED_MEDIA_TYPE";
1672
- readonly UNSUPPORTED_OS: "UNSUPPORTED_OS";
1673
- readonly UNSUPPORTED_RUNTIME: "UNSUPPORTED_RUNTIME";
1674
- };
1675
- export type ScanStatusReason =
1676
- (typeof ScanStatusReason)[keyof typeof ScanStatusReason];
1677
- export declare const ScanStatusCode: {
1678
- readonly ACTIVE: "ACTIVE";
1679
- readonly INACTIVE: "INACTIVE";
1680
- };
1681
- export type ScanStatusCode =
1682
- (typeof ScanStatusCode)[keyof typeof ScanStatusCode];
1683
- export interface ScanStatus {
1684
- statusCode: ScanStatusCode | undefined;
1685
- reason: ScanStatusReason | undefined;
1686
- }
1687
1982
  export declare const ScanType: {
1688
1983
  readonly CODE: "CODE";
1689
1984
  readonly NETWORK: "NETWORK";
@@ -1714,6 +2009,49 @@ export interface CreateCisScanConfigurationRequest {
1714
2009
  export interface CreateCisScanConfigurationResponse {
1715
2010
  scanConfigurationArn?: string | undefined;
1716
2011
  }
2012
+ export interface CreateGitLabSelfManagedIntegrationDetail {
2013
+ instanceUrl: string | undefined;
2014
+ accessToken: string | undefined;
2015
+ }
2016
+ export type CreateIntegrationDetail =
2017
+ | CreateIntegrationDetail.GitlabSelfManagedMember
2018
+ | CreateIntegrationDetail.$UnknownMember;
2019
+ export declare namespace CreateIntegrationDetail {
2020
+ interface GitlabSelfManagedMember {
2021
+ gitlabSelfManaged: CreateGitLabSelfManagedIntegrationDetail;
2022
+ $unknown?: never;
2023
+ }
2024
+ interface $UnknownMember {
2025
+ gitlabSelfManaged?: never;
2026
+ $unknown: [string, any];
2027
+ }
2028
+ interface Visitor<T> {
2029
+ gitlabSelfManaged: (value: CreateGitLabSelfManagedIntegrationDetail) => T;
2030
+ _: (name: string, value: any) => T;
2031
+ }
2032
+ const visit: <T>(value: CreateIntegrationDetail, visitor: Visitor<T>) => T;
2033
+ }
2034
+ export interface CreateCodeSecurityIntegrationRequest {
2035
+ name: string | undefined;
2036
+ type: IntegrationType | undefined;
2037
+ details?: CreateIntegrationDetail | undefined;
2038
+ tags?: Record<string, string> | undefined;
2039
+ }
2040
+ export interface CreateCodeSecurityIntegrationResponse {
2041
+ integrationArn: string | undefined;
2042
+ status: IntegrationStatus | undefined;
2043
+ authorizationUrl?: string | undefined;
2044
+ }
2045
+ export interface CreateCodeSecurityScanConfigurationRequest {
2046
+ name: string | undefined;
2047
+ level: ConfigurationLevel | undefined;
2048
+ configuration: CodeSecurityScanConfiguration | undefined;
2049
+ scopeSettings?: ScopeSettings | undefined;
2050
+ tags?: Record<string, string> | undefined;
2051
+ }
2052
+ export interface CreateCodeSecurityScanConfigurationResponse {
2053
+ scanConfigurationArn: string | undefined;
2054
+ }
1717
2055
  export declare const FilterAction: {
1718
2056
  readonly NONE: "NONE";
1719
2057
  readonly SUPPRESS: "SUPPRESS";
@@ -1778,6 +2116,8 @@ export interface FilterCriteria {
1778
2116
  codeVulnerabilityDetectorTags?: StringFilter[] | undefined;
1779
2117
  codeVulnerabilityFilePath?: StringFilter[] | undefined;
1780
2118
  epssScore?: NumberFilter[] | undefined;
2119
+ codeRepositoryProjectName?: StringFilter[] | undefined;
2120
+ codeRepositoryProviderType?: StringFilter[] | undefined;
1781
2121
  }
1782
2122
  export interface CreateFilterRequest {
1783
2123
  action: FilterAction | undefined;
@@ -1918,6 +2258,18 @@ export interface DeleteCisScanConfigurationRequest {
1918
2258
  export interface DeleteCisScanConfigurationResponse {
1919
2259
  scanConfigurationArn: string | undefined;
1920
2260
  }
2261
+ export interface DeleteCodeSecurityIntegrationRequest {
2262
+ integrationArn: string | undefined;
2263
+ }
2264
+ export interface DeleteCodeSecurityIntegrationResponse {
2265
+ integrationArn?: string | undefined;
2266
+ }
2267
+ export interface DeleteCodeSecurityScanConfigurationRequest {
2268
+ scanConfigurationArn: string | undefined;
2269
+ }
2270
+ export interface DeleteCodeSecurityScanConfigurationResponse {
2271
+ scanConfigurationArn?: string | undefined;
2272
+ }
1921
2273
  export interface DeleteFilterRequest {
1922
2274
  arn: string | undefined;
1923
2275
  }
@@ -1930,6 +2282,7 @@ export interface DescribeOrganizationConfigurationResponse {
1930
2282
  maxAccountLimitReached?: boolean | undefined;
1931
2283
  }
1932
2284
  export declare const ResourceScanType: {
2285
+ readonly CODE_REPOSITORY: "CODE_REPOSITORY";
1933
2286
  readonly EC2: "EC2";
1934
2287
  readonly ECR: "ECR";
1935
2288
  readonly LAMBDA: "LAMBDA";
@@ -2044,276 +2397,15 @@ export interface EnableDelegatedAdminAccountResponse {
2044
2397
  export interface Epss {
2045
2398
  score?: number | undefined;
2046
2399
  }
2047
- export interface EpssDetails {
2048
- score?: number | undefined;
2049
- }
2050
- export interface ExploitabilityDetails {
2051
- lastKnownExploitAt?: Date | undefined;
2052
- }
2053
- export declare const ExploitAvailable: {
2054
- readonly NO: "NO";
2055
- readonly YES: "YES";
2056
- };
2057
- export type ExploitAvailable =
2058
- (typeof ExploitAvailable)[keyof typeof ExploitAvailable];
2059
- export declare const ExternalReportStatus: {
2060
- readonly CANCELLED: "CANCELLED";
2061
- readonly FAILED: "FAILED";
2062
- readonly IN_PROGRESS: "IN_PROGRESS";
2063
- readonly SUCCEEDED: "SUCCEEDED";
2064
- };
2065
- export type ExternalReportStatus =
2066
- (typeof ExternalReportStatus)[keyof typeof ExternalReportStatus];
2067
- export interface Filter {
2068
- arn: string | undefined;
2069
- ownerId: string | undefined;
2070
- name: string | undefined;
2071
- criteria: FilterCriteria | undefined;
2072
- action: FilterAction | undefined;
2073
- createdAt: Date | undefined;
2074
- updatedAt: Date | undefined;
2075
- description?: string | undefined;
2076
- reason?: string | undefined;
2077
- tags?: Record<string, string> | undefined;
2078
- }
2079
- export declare const FixAvailable: {
2080
- readonly NO: "NO";
2081
- readonly PARTIAL: "PARTIAL";
2082
- readonly YES: "YES";
2083
- };
2084
- export type FixAvailable = (typeof FixAvailable)[keyof typeof FixAvailable];
2085
- export interface InspectorScoreDetails {
2086
- adjustedCvss?: CvssScoreDetails | undefined;
2087
- }
2088
- export interface Step {
2089
- componentId: string | undefined;
2090
- componentType: string | undefined;
2091
- componentArn?: string | undefined;
2092
- }
2093
- export interface NetworkPath {
2094
- steps?: Step[] | undefined;
2095
- }
2096
- export interface PortRange {
2097
- begin: number | undefined;
2098
- end: number | undefined;
2099
- }
2100
- export declare const NetworkProtocol: {
2101
- readonly TCP: "TCP";
2102
- readonly UDP: "UDP";
2103
- };
2104
- export type NetworkProtocol =
2105
- (typeof NetworkProtocol)[keyof typeof NetworkProtocol];
2106
- export interface NetworkReachabilityDetails {
2107
- openPortRange: PortRange | undefined;
2108
- protocol: NetworkProtocol | undefined;
2109
- networkPath: NetworkPath | undefined;
2110
- }
2111
- export declare const PackageManager: {
2112
- readonly BUNDLER: "BUNDLER";
2113
- readonly CARGO: "CARGO";
2114
- readonly COMPOSER: "COMPOSER";
2115
- readonly DOTNET_CORE: "DOTNET_CORE";
2116
- readonly GEMSPEC: "GEMSPEC";
2117
- readonly GOBINARY: "GOBINARY";
2118
- readonly GOMOD: "GOMOD";
2119
- readonly JAR: "JAR";
2120
- readonly NODEPKG: "NODEPKG";
2121
- readonly NPM: "NPM";
2122
- readonly NUGET: "NUGET";
2123
- readonly OS: "OS";
2124
- readonly PIP: "PIP";
2125
- readonly PIPENV: "PIPENV";
2126
- readonly POETRY: "POETRY";
2127
- readonly POM: "POM";
2128
- readonly PYTHONPKG: "PYTHONPKG";
2129
- readonly YARN: "YARN";
2130
- };
2131
- export type PackageManager =
2132
- (typeof PackageManager)[keyof typeof PackageManager];
2133
- export interface VulnerablePackage {
2134
- name: string | undefined;
2135
- version: string | undefined;
2136
- sourceLayerHash?: string | undefined;
2137
- epoch?: number | undefined;
2138
- release?: string | undefined;
2139
- arch?: string | undefined;
2140
- packageManager?: PackageManager | undefined;
2141
- filePath?: string | undefined;
2142
- fixedInVersion?: string | undefined;
2143
- remediation?: string | undefined;
2144
- sourceLambdaLayerArn?: string | undefined;
2145
- }
2146
- export interface PackageVulnerabilityDetails {
2147
- vulnerabilityId: string | undefined;
2148
- vulnerablePackages?: VulnerablePackage[] | undefined;
2149
- source: string | undefined;
2150
- cvss?: CvssScore[] | undefined;
2151
- relatedVulnerabilities?: string[] | undefined;
2152
- sourceUrl?: string | undefined;
2153
- vendorSeverity?: string | undefined;
2154
- vendorCreatedAt?: Date | undefined;
2155
- vendorUpdatedAt?: Date | undefined;
2156
- referenceUrls?: string[] | undefined;
2157
- }
2158
- export interface Recommendation {
2159
- text?: string | undefined;
2160
- Url?: string | undefined;
2161
- }
2162
- export interface Remediation {
2163
- recommendation?: Recommendation | undefined;
2164
- }
2165
- export interface ResourceDetails {
2166
- awsEc2Instance?: AwsEc2InstanceDetails | undefined;
2167
- awsEcrContainerImage?: AwsEcrContainerImageDetails | undefined;
2168
- awsLambdaFunction?: AwsLambdaFunctionDetails | undefined;
2169
- }
2170
- export declare const ResourceType: {
2171
- readonly AWS_EC2_INSTANCE: "AWS_EC2_INSTANCE";
2172
- readonly AWS_ECR_CONTAINER_IMAGE: "AWS_ECR_CONTAINER_IMAGE";
2173
- readonly AWS_ECR_REPOSITORY: "AWS_ECR_REPOSITORY";
2174
- readonly AWS_LAMBDA_FUNCTION: "AWS_LAMBDA_FUNCTION";
2175
- };
2176
- export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
2177
- export interface Resource {
2178
- type: ResourceType | undefined;
2179
- id: string | undefined;
2180
- partition?: string | undefined;
2181
- region?: string | undefined;
2182
- tags?: Record<string, string> | undefined;
2183
- details?: ResourceDetails | undefined;
2184
- }
2185
- export declare const Severity: {
2186
- readonly CRITICAL: "CRITICAL";
2187
- readonly HIGH: "HIGH";
2188
- readonly INFORMATIONAL: "INFORMATIONAL";
2189
- readonly LOW: "LOW";
2190
- readonly MEDIUM: "MEDIUM";
2191
- readonly UNTRIAGED: "UNTRIAGED";
2192
- };
2193
- export type Severity = (typeof Severity)[keyof typeof Severity];
2194
- export declare const FindingStatus: {
2195
- readonly ACTIVE: "ACTIVE";
2196
- readonly CLOSED: "CLOSED";
2197
- readonly SUPPRESSED: "SUPPRESSED";
2198
- };
2199
- export type FindingStatus = (typeof FindingStatus)[keyof typeof FindingStatus];
2200
- export declare const FindingType: {
2201
- readonly CODE_VULNERABILITY: "CODE_VULNERABILITY";
2202
- readonly NETWORK_REACHABILITY: "NETWORK_REACHABILITY";
2203
- readonly PACKAGE_VULNERABILITY: "PACKAGE_VULNERABILITY";
2204
- };
2205
- export type FindingType = (typeof FindingType)[keyof typeof FindingType];
2206
- export interface Finding {
2207
- findingArn: string | undefined;
2208
- awsAccountId: string | undefined;
2209
- type: FindingType | undefined;
2210
- description: string | undefined;
2211
- title?: string | undefined;
2212
- remediation: Remediation | undefined;
2213
- severity: Severity | undefined;
2214
- firstObservedAt: Date | undefined;
2215
- lastObservedAt: Date | undefined;
2216
- updatedAt?: Date | undefined;
2217
- status: FindingStatus | undefined;
2218
- resources: Resource[] | undefined;
2219
- inspectorScore?: number | undefined;
2220
- inspectorScoreDetails?: InspectorScoreDetails | undefined;
2221
- networkReachabilityDetails?: NetworkReachabilityDetails | undefined;
2222
- packageVulnerabilityDetails?: PackageVulnerabilityDetails | undefined;
2223
- fixAvailable?: FixAvailable | undefined;
2224
- exploitAvailable?: ExploitAvailable | undefined;
2225
- exploitabilityDetails?: ExploitabilityDetails | undefined;
2226
- codeVulnerabilityDetails?: CodeVulnerabilityDetails | undefined;
2227
- epss?: EpssDetails | undefined;
2228
- }
2229
- export interface GetCisScanReportRequest {
2230
- scanArn: string | undefined;
2231
- targetAccounts?: string[] | undefined;
2232
- reportFormat?: CisReportFormat | undefined;
2233
- }
2234
- export interface GetCisScanReportResponse {
2235
- url?: string | undefined;
2236
- status?: CisReportStatus | undefined;
2237
- }
2238
- export interface GetCisScanResultDetailsRequest {
2239
- scanArn: string | undefined;
2240
- targetResourceId: string | undefined;
2241
- accountId: string | undefined;
2242
- filterCriteria?: CisScanResultDetailsFilterCriteria | undefined;
2243
- sortBy?: CisScanResultDetailsSortBy | undefined;
2244
- sortOrder?: CisSortOrder | undefined;
2245
- nextToken?: string | undefined;
2246
- maxResults?: number | undefined;
2247
- }
2248
- export interface GetCisScanResultDetailsResponse {
2249
- scanResultDetails?: CisScanResultDetails[] | undefined;
2250
- nextToken?: string | undefined;
2251
- }
2252
- export interface GetClustersForImageRequest {
2253
- filter: ClusterForImageFilterCriteria | undefined;
2254
- maxResults?: number | undefined;
2255
- nextToken?: string | undefined;
2256
- }
2257
- export interface GetClustersForImageResponse {
2258
- cluster: ClusterInformation[] | undefined;
2259
- nextToken?: string | undefined;
2260
- }
2261
- export interface GetConfigurationRequest {}
2262
- export interface GetConfigurationResponse {
2263
- ecrConfiguration?: EcrConfigurationState | undefined;
2264
- ec2Configuration?: Ec2ConfigurationState | undefined;
2265
- }
2266
- export interface GetDelegatedAdminAccountRequest {}
2267
- export interface GetDelegatedAdminAccountResponse {
2268
- delegatedAdmin?: DelegatedAdmin | undefined;
2269
- }
2270
- export interface GetEc2DeepInspectionConfigurationRequest {}
2271
- export interface GetEc2DeepInspectionConfigurationResponse {
2272
- packagePaths?: string[] | undefined;
2273
- orgPackagePaths?: string[] | undefined;
2274
- status?: Ec2DeepInspectionStatus | undefined;
2275
- errorMessage?: string | undefined;
2276
- }
2277
- export interface GetEncryptionKeyRequest {
2278
- scanType: ScanType | undefined;
2279
- resourceType: ResourceType | undefined;
2280
- }
2281
- export interface GetEncryptionKeyResponse {
2282
- kmsKeyId: string | undefined;
2283
- }
2284
- export interface GetFindingsReportStatusRequest {
2285
- reportId?: string | undefined;
2286
- }
2287
- export declare const ReportingErrorCode: {
2288
- readonly BUCKET_NOT_FOUND: "BUCKET_NOT_FOUND";
2289
- readonly INCOMPATIBLE_BUCKET_REGION: "INCOMPATIBLE_BUCKET_REGION";
2290
- readonly INTERNAL_ERROR: "INTERNAL_ERROR";
2291
- readonly INVALID_PERMISSIONS: "INVALID_PERMISSIONS";
2292
- readonly MALFORMED_KMS_KEY: "MALFORMED_KMS_KEY";
2293
- readonly NO_FINDINGS_FOUND: "NO_FINDINGS_FOUND";
2294
- };
2295
- export type ReportingErrorCode =
2296
- (typeof ReportingErrorCode)[keyof typeof ReportingErrorCode];
2297
- export interface GetFindingsReportStatusResponse {
2298
- reportId?: string | undefined;
2299
- status?: ExternalReportStatus | undefined;
2300
- errorCode?: ReportingErrorCode | undefined;
2301
- errorMessage?: string | undefined;
2302
- destination?: Destination | undefined;
2303
- filterCriteria?: FilterCriteria | undefined;
2304
- }
2305
- export interface GetMemberRequest {
2306
- accountId: string | undefined;
2307
- }
2308
- export interface Member {
2309
- accountId?: string | undefined;
2310
- relationshipStatus?: RelationshipStatus | undefined;
2311
- delegatedAdminAccountId?: string | undefined;
2312
- updatedAt?: Date | undefined;
2313
- }
2314
- export interface GetMemberResponse {
2315
- member?: Member | undefined;
2316
- }
2317
- export interface GetSbomExportRequest {
2318
- reportId: string | undefined;
2319
- }
2400
+ export declare const CreateGitLabSelfManagedIntegrationDetailFilterSensitiveLog: (
2401
+ obj: CreateGitLabSelfManagedIntegrationDetail
2402
+ ) => any;
2403
+ export declare const CreateIntegrationDetailFilterSensitiveLog: (
2404
+ obj: CreateIntegrationDetail
2405
+ ) => any;
2406
+ export declare const CreateCodeSecurityIntegrationRequestFilterSensitiveLog: (
2407
+ obj: CreateCodeSecurityIntegrationRequest
2408
+ ) => any;
2409
+ export declare const CreateCodeSecurityIntegrationResponseFilterSensitiveLog: (
2410
+ obj: CreateCodeSecurityIntegrationResponse
2411
+ ) => any;