@aws-sdk/client-inspector2 3.218.0 → 3.222.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.
@@ -18,6 +18,7 @@ export declare enum Status {
18
18
  export interface ResourceStatus {
19
19
  ec2: Status | string | undefined;
20
20
  ecr: Status | string | undefined;
21
+ lambda?: Status | string;
21
22
  }
22
23
  export interface Account {
23
24
  accountId: string | undefined;
@@ -31,6 +32,7 @@ export declare enum AggregationFindingType {
31
32
  export declare enum AggregationResourceType {
32
33
  AWS_EC2_INSTANCE = "AWS_EC2_INSTANCE",
33
34
  AWS_ECR_CONTAINER_IMAGE = "AWS_ECR_CONTAINER_IMAGE",
35
+ AWS_LAMBDA_FUNCTION = "AWS_LAMBDA_FUNCTION",
34
36
  }
35
37
  export declare enum AccountSortBy {
36
38
  ALL = "ALL",
@@ -81,6 +83,7 @@ export interface State {
81
83
  export interface ResourceState {
82
84
  ec2: State | undefined;
83
85
  ecr: State | undefined;
86
+ lambda?: State;
84
87
  }
85
88
  export interface AccountState {
86
89
  accountId: string | undefined;
@@ -166,6 +169,31 @@ export interface ImageLayerAggregation {
166
169
  sortOrder?: SortOrder | string;
167
170
  sortBy?: ImageLayerSortBy | string;
168
171
  }
172
+ export declare enum LambdaFunctionSortBy {
173
+ ALL = "ALL",
174
+ CRITICAL = "CRITICAL",
175
+ HIGH = "HIGH",
176
+ }
177
+ export interface LambdaFunctionAggregation {
178
+ resourceIds?: StringFilter[];
179
+ functionNames?: StringFilter[];
180
+ runtimes?: StringFilter[];
181
+ functionTags?: MapFilter[];
182
+ sortOrder?: SortOrder | string;
183
+ sortBy?: LambdaFunctionSortBy | string;
184
+ }
185
+ export declare enum LambdaLayerSortBy {
186
+ ALL = "ALL",
187
+ CRITICAL = "CRITICAL",
188
+ HIGH = "HIGH",
189
+ }
190
+ export interface LambdaLayerAggregation {
191
+ functionNames?: StringFilter[];
192
+ resourceIds?: StringFilter[];
193
+ layerArns?: StringFilter[];
194
+ sortOrder?: SortOrder | string;
195
+ sortBy?: LambdaLayerSortBy | string;
196
+ }
169
197
  export declare enum PackageSortBy {
170
198
  ALL = "ALL",
171
199
  CRITICAL = "CRITICAL",
@@ -206,6 +234,8 @@ export declare type AggregationRequest =
206
234
  | AggregationRequest.Ec2InstanceAggregationMember
207
235
  | AggregationRequest.FindingTypeAggregationMember
208
236
  | AggregationRequest.ImageLayerAggregationMember
237
+ | AggregationRequest.LambdaFunctionAggregationMember
238
+ | AggregationRequest.LambdaLayerAggregationMember
209
239
  | AggregationRequest.PackageAggregationMember
210
240
  | AggregationRequest.RepositoryAggregationMember
211
241
  | AggregationRequest.TitleAggregationMember
@@ -221,6 +251,8 @@ export declare namespace AggregationRequest {
221
251
  packageAggregation?: never;
222
252
  repositoryAggregation?: never;
223
253
  titleAggregation?: never;
254
+ lambdaLayerAggregation?: never;
255
+ lambdaFunctionAggregation?: never;
224
256
  $unknown?: never;
225
257
  }
226
258
  interface AmiAggregationMember {
@@ -233,6 +265,8 @@ export declare namespace AggregationRequest {
233
265
  packageAggregation?: never;
234
266
  repositoryAggregation?: never;
235
267
  titleAggregation?: never;
268
+ lambdaLayerAggregation?: never;
269
+ lambdaFunctionAggregation?: never;
236
270
  $unknown?: never;
237
271
  }
238
272
  interface AwsEcrContainerAggregationMember {
@@ -245,6 +279,8 @@ export declare namespace AggregationRequest {
245
279
  packageAggregation?: never;
246
280
  repositoryAggregation?: never;
247
281
  titleAggregation?: never;
282
+ lambdaLayerAggregation?: never;
283
+ lambdaFunctionAggregation?: never;
248
284
  $unknown?: never;
249
285
  }
250
286
  interface Ec2InstanceAggregationMember {
@@ -257,6 +293,8 @@ export declare namespace AggregationRequest {
257
293
  packageAggregation?: never;
258
294
  repositoryAggregation?: never;
259
295
  titleAggregation?: never;
296
+ lambdaLayerAggregation?: never;
297
+ lambdaFunctionAggregation?: never;
260
298
  $unknown?: never;
261
299
  }
262
300
  interface FindingTypeAggregationMember {
@@ -269,6 +307,8 @@ export declare namespace AggregationRequest {
269
307
  packageAggregation?: never;
270
308
  repositoryAggregation?: never;
271
309
  titleAggregation?: never;
310
+ lambdaLayerAggregation?: never;
311
+ lambdaFunctionAggregation?: never;
272
312
  $unknown?: never;
273
313
  }
274
314
  interface ImageLayerAggregationMember {
@@ -281,6 +321,8 @@ export declare namespace AggregationRequest {
281
321
  packageAggregation?: never;
282
322
  repositoryAggregation?: never;
283
323
  titleAggregation?: never;
324
+ lambdaLayerAggregation?: never;
325
+ lambdaFunctionAggregation?: never;
284
326
  $unknown?: never;
285
327
  }
286
328
  interface PackageAggregationMember {
@@ -293,6 +335,8 @@ export declare namespace AggregationRequest {
293
335
  packageAggregation: PackageAggregation;
294
336
  repositoryAggregation?: never;
295
337
  titleAggregation?: never;
338
+ lambdaLayerAggregation?: never;
339
+ lambdaFunctionAggregation?: never;
296
340
  $unknown?: never;
297
341
  }
298
342
  interface RepositoryAggregationMember {
@@ -305,6 +349,8 @@ export declare namespace AggregationRequest {
305
349
  packageAggregation?: never;
306
350
  repositoryAggregation: RepositoryAggregation;
307
351
  titleAggregation?: never;
352
+ lambdaLayerAggregation?: never;
353
+ lambdaFunctionAggregation?: never;
308
354
  $unknown?: never;
309
355
  }
310
356
  interface TitleAggregationMember {
@@ -317,6 +363,36 @@ export declare namespace AggregationRequest {
317
363
  packageAggregation?: never;
318
364
  repositoryAggregation?: never;
319
365
  titleAggregation: TitleAggregation;
366
+ lambdaLayerAggregation?: never;
367
+ lambdaFunctionAggregation?: never;
368
+ $unknown?: never;
369
+ }
370
+ interface LambdaLayerAggregationMember {
371
+ accountAggregation?: never;
372
+ amiAggregation?: never;
373
+ awsEcrContainerAggregation?: never;
374
+ ec2InstanceAggregation?: never;
375
+ findingTypeAggregation?: never;
376
+ imageLayerAggregation?: never;
377
+ packageAggregation?: never;
378
+ repositoryAggregation?: never;
379
+ titleAggregation?: never;
380
+ lambdaLayerAggregation: LambdaLayerAggregation;
381
+ lambdaFunctionAggregation?: never;
382
+ $unknown?: never;
383
+ }
384
+ interface LambdaFunctionAggregationMember {
385
+ accountAggregation?: never;
386
+ amiAggregation?: never;
387
+ awsEcrContainerAggregation?: never;
388
+ ec2InstanceAggregation?: never;
389
+ findingTypeAggregation?: never;
390
+ imageLayerAggregation?: never;
391
+ packageAggregation?: never;
392
+ repositoryAggregation?: never;
393
+ titleAggregation?: never;
394
+ lambdaLayerAggregation?: never;
395
+ lambdaFunctionAggregation: LambdaFunctionAggregation;
320
396
  $unknown?: never;
321
397
  }
322
398
  interface $UnknownMember {
@@ -329,6 +405,8 @@ export declare namespace AggregationRequest {
329
405
  packageAggregation?: never;
330
406
  repositoryAggregation?: never;
331
407
  titleAggregation?: never;
408
+ lambdaLayerAggregation?: never;
409
+ lambdaFunctionAggregation?: never;
332
410
  $unknown: [string, any];
333
411
  }
334
412
  interface Visitor<T> {
@@ -341,6 +419,8 @@ export declare namespace AggregationRequest {
341
419
  packageAggregation: (value: PackageAggregation) => T;
342
420
  repositoryAggregation: (value: RepositoryAggregation) => T;
343
421
  titleAggregation: (value: TitleAggregation) => T;
422
+ lambdaLayerAggregation: (value: LambdaLayerAggregation) => T;
423
+ lambdaFunctionAggregation: (value: LambdaFunctionAggregation) => T;
344
424
  _: (name: string, value: any) => T;
345
425
  }
346
426
  const visit: <T>(value: AggregationRequest, visitor: Visitor<T>) => T;
@@ -380,6 +460,22 @@ export interface ImageLayerAggregationResponse {
380
460
  accountId: string | undefined;
381
461
  severityCounts?: SeverityCounts;
382
462
  }
463
+ export interface LambdaFunctionAggregationResponse {
464
+ resourceId: string | undefined;
465
+ functionName?: string;
466
+ runtime?: string;
467
+ lambdaTags?: Record<string, string>;
468
+ accountId?: string;
469
+ severityCounts?: SeverityCounts;
470
+ lastModifiedAt?: Date;
471
+ }
472
+ export interface LambdaLayerAggregationResponse {
473
+ functionName: string | undefined;
474
+ resourceId: string | undefined;
475
+ layerArn: string | undefined;
476
+ accountId: string | undefined;
477
+ severityCounts?: SeverityCounts;
478
+ }
383
479
  export interface PackageAggregationResponse {
384
480
  packageName: string | undefined;
385
481
  accountId?: string;
@@ -404,6 +500,8 @@ export declare type AggregationResponse =
404
500
  | AggregationResponse.Ec2InstanceAggregationMember
405
501
  | AggregationResponse.FindingTypeAggregationMember
406
502
  | AggregationResponse.ImageLayerAggregationMember
503
+ | AggregationResponse.LambdaFunctionAggregationMember
504
+ | AggregationResponse.LambdaLayerAggregationMember
407
505
  | AggregationResponse.PackageAggregationMember
408
506
  | AggregationResponse.RepositoryAggregationMember
409
507
  | AggregationResponse.TitleAggregationMember
@@ -419,6 +517,8 @@ export declare namespace AggregationResponse {
419
517
  packageAggregation?: never;
420
518
  repositoryAggregation?: never;
421
519
  titleAggregation?: never;
520
+ lambdaLayerAggregation?: never;
521
+ lambdaFunctionAggregation?: never;
422
522
  $unknown?: never;
423
523
  }
424
524
  interface AmiAggregationMember {
@@ -431,6 +531,8 @@ export declare namespace AggregationResponse {
431
531
  packageAggregation?: never;
432
532
  repositoryAggregation?: never;
433
533
  titleAggregation?: never;
534
+ lambdaLayerAggregation?: never;
535
+ lambdaFunctionAggregation?: never;
434
536
  $unknown?: never;
435
537
  }
436
538
  interface AwsEcrContainerAggregationMember {
@@ -443,6 +545,8 @@ export declare namespace AggregationResponse {
443
545
  packageAggregation?: never;
444
546
  repositoryAggregation?: never;
445
547
  titleAggregation?: never;
548
+ lambdaLayerAggregation?: never;
549
+ lambdaFunctionAggregation?: never;
446
550
  $unknown?: never;
447
551
  }
448
552
  interface Ec2InstanceAggregationMember {
@@ -455,6 +559,8 @@ export declare namespace AggregationResponse {
455
559
  packageAggregation?: never;
456
560
  repositoryAggregation?: never;
457
561
  titleAggregation?: never;
562
+ lambdaLayerAggregation?: never;
563
+ lambdaFunctionAggregation?: never;
458
564
  $unknown?: never;
459
565
  }
460
566
  interface FindingTypeAggregationMember {
@@ -467,6 +573,8 @@ export declare namespace AggregationResponse {
467
573
  packageAggregation?: never;
468
574
  repositoryAggregation?: never;
469
575
  titleAggregation?: never;
576
+ lambdaLayerAggregation?: never;
577
+ lambdaFunctionAggregation?: never;
470
578
  $unknown?: never;
471
579
  }
472
580
  interface ImageLayerAggregationMember {
@@ -479,6 +587,8 @@ export declare namespace AggregationResponse {
479
587
  packageAggregation?: never;
480
588
  repositoryAggregation?: never;
481
589
  titleAggregation?: never;
590
+ lambdaLayerAggregation?: never;
591
+ lambdaFunctionAggregation?: never;
482
592
  $unknown?: never;
483
593
  }
484
594
  interface PackageAggregationMember {
@@ -491,6 +601,8 @@ export declare namespace AggregationResponse {
491
601
  packageAggregation: PackageAggregationResponse;
492
602
  repositoryAggregation?: never;
493
603
  titleAggregation?: never;
604
+ lambdaLayerAggregation?: never;
605
+ lambdaFunctionAggregation?: never;
494
606
  $unknown?: never;
495
607
  }
496
608
  interface RepositoryAggregationMember {
@@ -503,6 +615,8 @@ export declare namespace AggregationResponse {
503
615
  packageAggregation?: never;
504
616
  repositoryAggregation: RepositoryAggregationResponse;
505
617
  titleAggregation?: never;
618
+ lambdaLayerAggregation?: never;
619
+ lambdaFunctionAggregation?: never;
506
620
  $unknown?: never;
507
621
  }
508
622
  interface TitleAggregationMember {
@@ -515,6 +629,36 @@ export declare namespace AggregationResponse {
515
629
  packageAggregation?: never;
516
630
  repositoryAggregation?: never;
517
631
  titleAggregation: TitleAggregationResponse;
632
+ lambdaLayerAggregation?: never;
633
+ lambdaFunctionAggregation?: never;
634
+ $unknown?: never;
635
+ }
636
+ interface LambdaLayerAggregationMember {
637
+ accountAggregation?: never;
638
+ amiAggregation?: never;
639
+ awsEcrContainerAggregation?: never;
640
+ ec2InstanceAggregation?: never;
641
+ findingTypeAggregation?: never;
642
+ imageLayerAggregation?: never;
643
+ packageAggregation?: never;
644
+ repositoryAggregation?: never;
645
+ titleAggregation?: never;
646
+ lambdaLayerAggregation: LambdaLayerAggregationResponse;
647
+ lambdaFunctionAggregation?: never;
648
+ $unknown?: never;
649
+ }
650
+ interface LambdaFunctionAggregationMember {
651
+ accountAggregation?: never;
652
+ amiAggregation?: never;
653
+ awsEcrContainerAggregation?: never;
654
+ ec2InstanceAggregation?: never;
655
+ findingTypeAggregation?: never;
656
+ imageLayerAggregation?: never;
657
+ packageAggregation?: never;
658
+ repositoryAggregation?: never;
659
+ titleAggregation?: never;
660
+ lambdaLayerAggregation?: never;
661
+ lambdaFunctionAggregation: LambdaFunctionAggregationResponse;
518
662
  $unknown?: never;
519
663
  }
520
664
  interface $UnknownMember {
@@ -527,6 +671,8 @@ export declare namespace AggregationResponse {
527
671
  packageAggregation?: never;
528
672
  repositoryAggregation?: never;
529
673
  titleAggregation?: never;
674
+ lambdaLayerAggregation?: never;
675
+ lambdaFunctionAggregation?: never;
530
676
  $unknown: [string, any];
531
677
  }
532
678
  interface Visitor<T> {
@@ -541,6 +687,8 @@ export declare namespace AggregationResponse {
541
687
  packageAggregation: (value: PackageAggregationResponse) => T;
542
688
  repositoryAggregation: (value: RepositoryAggregationResponse) => T;
543
689
  titleAggregation: (value: TitleAggregationResponse) => T;
690
+ lambdaLayerAggregation: (value: LambdaLayerAggregationResponse) => T;
691
+ lambdaFunctionAggregation: (value: LambdaFunctionAggregationResponse) => T;
544
692
  _: (name: string, value: any) => T;
545
693
  }
546
694
  const visit: <T>(value: AggregationResponse, visitor: Visitor<T>) => T;
@@ -550,12 +698,18 @@ export declare enum AggregationType {
550
698
  AMI = "AMI",
551
699
  AWS_EC2_INSTANCE = "AWS_EC2_INSTANCE",
552
700
  AWS_ECR_CONTAINER = "AWS_ECR_CONTAINER",
701
+ AWS_LAMBDA_FUNCTION = "AWS_LAMBDA_FUNCTION",
553
702
  FINDING_TYPE = "FINDING_TYPE",
554
703
  IMAGE_LAYER = "IMAGE_LAYER",
704
+ LAMBDA_LAYER = "LAMBDA_LAYER",
555
705
  PACKAGE = "PACKAGE",
556
706
  REPOSITORY = "REPOSITORY",
557
707
  TITLE = "TITLE",
558
708
  }
709
+ export declare enum Architecture {
710
+ ARM64 = "ARM64",
711
+ X86_64 = "X86_64",
712
+ }
559
713
  export interface AssociateMemberRequest {
560
714
  accountId: string | undefined;
561
715
  }
@@ -574,6 +728,10 @@ export declare class InternalServerException extends __BaseException {
574
728
  export declare class ThrottlingException extends __BaseException {
575
729
  readonly name: "ThrottlingException";
576
730
  readonly $fault: "client";
731
+ $retryable: {
732
+ throttling: boolean;
733
+ };
734
+ retryAfterSeconds?: number;
577
735
  constructor(
578
736
  opts: __ExceptionOptionType<ThrottlingException, __BaseException>
579
737
  );
@@ -599,6 +757,7 @@ export declare class ValidationException extends __BaseException {
599
757
  export interface AutoEnable {
600
758
  ec2: boolean | undefined;
601
759
  ecr: boolean | undefined;
760
+ lambda?: boolean;
602
761
  }
603
762
  export interface AwsEc2InstanceDetails {
604
763
  type?: string;
@@ -622,6 +781,40 @@ export interface AwsEcrContainerImageDetails {
622
781
  registry: string | undefined;
623
782
  platform?: string;
624
783
  }
784
+ export declare enum PackageType {
785
+ IMAGE = "IMAGE",
786
+ ZIP = "ZIP",
787
+ }
788
+ export declare enum Runtime {
789
+ JAVA_11 = "JAVA_11",
790
+ JAVA_8 = "JAVA_8",
791
+ JAVA_8_AL2 = "JAVA_8_AL2",
792
+ NODEJS = "NODEJS",
793
+ NODEJS_12_X = "NODEJS_12_X",
794
+ NODEJS_14_X = "NODEJS_14_X",
795
+ NODEJS_16_X = "NODEJS_16_X",
796
+ PYTHON_3_7 = "PYTHON_3_7",
797
+ PYTHON_3_8 = "PYTHON_3_8",
798
+ PYTHON_3_9 = "PYTHON_3_9",
799
+ UNSUPPORTED = "UNSUPPORTED",
800
+ }
801
+ export interface LambdaVpcConfig {
802
+ subnetIds?: string[];
803
+ securityGroupIds?: string[];
804
+ vpcId?: string;
805
+ }
806
+ export interface AwsLambdaFunctionDetails {
807
+ functionName: string | undefined;
808
+ runtime: Runtime | string | undefined;
809
+ codeSha256: string | undefined;
810
+ version: string | undefined;
811
+ executionRoleArn: string | undefined;
812
+ layers?: string[];
813
+ vpcConfig?: LambdaVpcConfig;
814
+ packageType?: PackageType | string;
815
+ architectures?: (Architecture | string)[];
816
+ lastModifiedAt?: Date;
817
+ }
625
818
  export declare class BadRequestException extends __BaseException {
626
819
  readonly name: "BadRequestException";
627
820
  readonly $fault: "client";
@@ -660,6 +853,7 @@ export declare enum FreeTrialStatus {
660
853
  export declare enum FreeTrialType {
661
854
  EC2 = "EC2",
662
855
  ECR = "ECR",
856
+ LAMBDA = "LAMBDA",
663
857
  }
664
858
  export interface FreeTrialInfo {
665
859
  type: FreeTrialType | string | undefined;
@@ -734,11 +928,15 @@ export interface CoverageFilterCriteria {
734
928
  ecrRepositoryName?: CoverageStringFilter[];
735
929
  ecrImageTags?: CoverageStringFilter[];
736
930
  ec2InstanceTags?: CoverageMapFilter[];
931
+ lambdaFunctionName?: CoverageStringFilter[];
932
+ lambdaFunctionTags?: CoverageMapFilter[];
933
+ lambdaFunctionRuntime?: CoverageStringFilter[];
737
934
  }
738
935
  export declare enum CoverageResourceType {
739
936
  AWS_EC2_INSTANCE = "AWS_EC2_INSTANCE",
740
937
  AWS_ECR_CONTAINER_IMAGE = "AWS_ECR_CONTAINER_IMAGE",
741
938
  AWS_ECR_REPOSITORY = "AWS_ECR_REPOSITORY",
939
+ AWS_LAMBDA_FUNCTION = "AWS_LAMBDA_FUNCTION",
742
940
  }
743
941
  export declare enum Ec2Platform {
744
942
  LINUX = "LINUX",
@@ -762,14 +960,22 @@ export interface EcrRepositoryMetadata {
762
960
  name?: string;
763
961
  scanFrequency?: EcrScanFrequency | string;
764
962
  }
963
+ export interface LambdaFunctionMetadata {
964
+ functionTags?: Record<string, string>;
965
+ layers?: string[];
966
+ functionName?: string;
967
+ runtime?: Runtime | string;
968
+ }
765
969
  export interface ResourceScanMetadata {
766
970
  ecrRepository?: EcrRepositoryMetadata;
767
971
  ecrImage?: EcrContainerImageMetadata;
768
972
  ec2?: Ec2Metadata;
973
+ lambdaFunction?: LambdaFunctionMetadata;
769
974
  }
770
975
  export declare enum ScanStatusReason {
771
976
  ACCESS_DENIED = "ACCESS_DENIED",
772
977
  EC2_INSTANCE_STOPPED = "EC2_INSTANCE_STOPPED",
978
+ EXCLUDED_BY_TAG = "EXCLUDED_BY_TAG",
773
979
  IMAGE_SIZE_EXCEEDED = "IMAGE_SIZE_EXCEEDED",
774
980
  INTERNAL_ERROR = "INTERNAL_ERROR",
775
981
  NO_INVENTORY = "NO_INVENTORY",
@@ -784,6 +990,7 @@ export declare enum ScanStatusReason {
784
990
  SUCCESSFUL = "SUCCESSFUL",
785
991
  UNMANAGED_EC2_INSTANCE = "UNMANAGED_EC2_INSTANCE",
786
992
  UNSUPPORTED_OS = "UNSUPPORTED_OS",
993
+ UNSUPPORTED_RUNTIME = "UNSUPPORTED_RUNTIME",
787
994
  }
788
995
  export declare enum ScanStatusCode {
789
996
  ACTIVE = "ACTIVE",
@@ -828,6 +1035,7 @@ export interface PackageFilter {
828
1035
  release?: StringFilter;
829
1036
  architecture?: StringFilter;
830
1037
  sourceLayerHash?: StringFilter;
1038
+ sourceLambdaLayerArn?: StringFilter;
831
1039
  }
832
1040
  export interface FilterCriteria {
833
1041
  findingArn?: StringFilter[];
@@ -862,6 +1070,12 @@ export interface FilterCriteria {
862
1070
  vulnerablePackages?: PackageFilter[];
863
1071
  relatedVulnerabilities?: StringFilter[];
864
1072
  fixAvailable?: StringFilter[];
1073
+ lambdaFunctionName?: StringFilter[];
1074
+ lambdaFunctionLayers?: StringFilter[];
1075
+ lambdaFunctionRuntime?: StringFilter[];
1076
+ lambdaFunctionLastModifiedAt?: DateFilter[];
1077
+ lambdaFunctionExecutionRoleArn?: StringFilter[];
1078
+ exploitAvailable?: StringFilter[];
865
1079
  }
866
1080
  export interface CreateFilterRequest {
867
1081
  action: FilterAction | string | undefined;
@@ -960,6 +1174,7 @@ export interface DescribeOrganizationConfigurationResponse {
960
1174
  export declare enum ResourceScanType {
961
1175
  EC2 = "EC2",
962
1176
  ECR = "ECR",
1177
+ LAMBDA = "LAMBDA",
963
1178
  }
964
1179
  export interface DisableRequest {
965
1180
  accountIds?: string[];
@@ -1018,6 +1233,13 @@ export interface EnableDelegatedAdminAccountRequest {
1018
1233
  export interface EnableDelegatedAdminAccountResponse {
1019
1234
  delegatedAdminAccountId: string | undefined;
1020
1235
  }
1236
+ export interface ExploitabilityDetails {
1237
+ lastKnownExploitAt?: Date;
1238
+ }
1239
+ export declare enum ExploitAvailable {
1240
+ NO = "NO",
1241
+ YES = "YES",
1242
+ }
1021
1243
  export declare enum ExternalReportStatus {
1022
1244
  CANCELLED = "CANCELLED",
1023
1245
  FAILED = "FAILED",
@@ -1093,6 +1315,7 @@ export interface VulnerablePackage {
1093
1315
  filePath?: string;
1094
1316
  fixedInVersion?: string;
1095
1317
  remediation?: string;
1318
+ sourceLambdaLayerArn?: string;
1096
1319
  }
1097
1320
  export interface PackageVulnerabilityDetails {
1098
1321
  vulnerabilityId: string | undefined;
@@ -1116,11 +1339,13 @@ export interface Remediation {
1116
1339
  export interface ResourceDetails {
1117
1340
  awsEc2Instance?: AwsEc2InstanceDetails;
1118
1341
  awsEcrContainerImage?: AwsEcrContainerImageDetails;
1342
+ awsLambdaFunction?: AwsLambdaFunctionDetails;
1119
1343
  }
1120
1344
  export declare enum ResourceType {
1121
1345
  AWS_EC2_INSTANCE = "AWS_EC2_INSTANCE",
1122
1346
  AWS_ECR_CONTAINER_IMAGE = "AWS_ECR_CONTAINER_IMAGE",
1123
1347
  AWS_ECR_REPOSITORY = "AWS_ECR_REPOSITORY",
1348
+ AWS_LAMBDA_FUNCTION = "AWS_LAMBDA_FUNCTION",
1124
1349
  }
1125
1350
  export interface Resource {
1126
1351
  type: ResourceType | string | undefined;
@@ -1165,6 +1390,8 @@ export interface Finding {
1165
1390
  networkReachabilityDetails?: NetworkReachabilityDetails;
1166
1391
  packageVulnerabilityDetails?: PackageVulnerabilityDetails;
1167
1392
  fixAvailable?: FixAvailable | string;
1393
+ exploitAvailable?: ExploitAvailable | string;
1394
+ exploitabilityDetails?: ExploitabilityDetails;
1168
1395
  }
1169
1396
  export interface GetConfigurationRequest {}
1170
1397
  export interface GetConfigurationResponse {
@@ -1208,6 +1435,7 @@ export interface GetMemberResponse {
1208
1435
  export declare enum Service {
1209
1436
  EC2 = "EC2",
1210
1437
  ECR = "ECR",
1438
+ LAMBDA = "LAMBDA",
1211
1439
  }
1212
1440
  export interface ListAccountPermissionsRequest {
1213
1441
  service?: Service | string;
@@ -1333,6 +1561,7 @@ export declare enum UsageType {
1333
1561
  EC2_INSTANCE_HOURS = "EC2_INSTANCE_HOURS",
1334
1562
  ECR_INITIAL_SCAN = "ECR_INITIAL_SCAN",
1335
1563
  ECR_RESCAN = "ECR_RESCAN",
1564
+ LAMBDA_FUNCTION_HOURS = "LAMBDA_FUNCTION_HOURS",
1336
1565
  }
1337
1566
  export interface Usage {
1338
1567
  type?: UsageType | string;
@@ -1414,6 +1643,12 @@ export declare const FindingTypeAggregationFilterSensitiveLog: (
1414
1643
  export declare const ImageLayerAggregationFilterSensitiveLog: (
1415
1644
  obj: ImageLayerAggregation
1416
1645
  ) => any;
1646
+ export declare const LambdaFunctionAggregationFilterSensitiveLog: (
1647
+ obj: LambdaFunctionAggregation
1648
+ ) => any;
1649
+ export declare const LambdaLayerAggregationFilterSensitiveLog: (
1650
+ obj: LambdaLayerAggregation
1651
+ ) => any;
1417
1652
  export declare const PackageAggregationFilterSensitiveLog: (
1418
1653
  obj: PackageAggregation
1419
1654
  ) => any;
@@ -1441,6 +1676,12 @@ export declare const FindingTypeAggregationResponseFilterSensitiveLog: (
1441
1676
  export declare const ImageLayerAggregationResponseFilterSensitiveLog: (
1442
1677
  obj: ImageLayerAggregationResponse
1443
1678
  ) => any;
1679
+ export declare const LambdaFunctionAggregationResponseFilterSensitiveLog: (
1680
+ obj: LambdaFunctionAggregationResponse
1681
+ ) => any;
1682
+ export declare const LambdaLayerAggregationResponseFilterSensitiveLog: (
1683
+ obj: LambdaLayerAggregationResponse
1684
+ ) => any;
1444
1685
  export declare const PackageAggregationResponseFilterSensitiveLog: (
1445
1686
  obj: PackageAggregationResponse
1446
1687
  ) => any;
@@ -1469,6 +1710,12 @@ export declare const AwsEc2InstanceDetailsFilterSensitiveLog: (
1469
1710
  export declare const AwsEcrContainerImageDetailsFilterSensitiveLog: (
1470
1711
  obj: AwsEcrContainerImageDetails
1471
1712
  ) => any;
1713
+ export declare const LambdaVpcConfigFilterSensitiveLog: (
1714
+ obj: LambdaVpcConfig
1715
+ ) => any;
1716
+ export declare const AwsLambdaFunctionDetailsFilterSensitiveLog: (
1717
+ obj: AwsLambdaFunctionDetails
1718
+ ) => any;
1472
1719
  export declare const BatchGetAccountStatusRequestFilterSensitiveLog: (
1473
1720
  obj: BatchGetAccountStatusRequest
1474
1721
  ) => any;
@@ -1516,6 +1763,9 @@ export declare const EcrContainerImageMetadataFilterSensitiveLog: (
1516
1763
  export declare const EcrRepositoryMetadataFilterSensitiveLog: (
1517
1764
  obj: EcrRepositoryMetadata
1518
1765
  ) => any;
1766
+ export declare const LambdaFunctionMetadataFilterSensitiveLog: (
1767
+ obj: LambdaFunctionMetadata
1768
+ ) => any;
1519
1769
  export declare const ResourceScanMetadataFilterSensitiveLog: (
1520
1770
  obj: ResourceScanMetadata
1521
1771
  ) => any;
@@ -1611,6 +1861,9 @@ export declare const EnableDelegatedAdminAccountRequestFilterSensitiveLog: (
1611
1861
  export declare const EnableDelegatedAdminAccountResponseFilterSensitiveLog: (
1612
1862
  obj: EnableDelegatedAdminAccountResponse
1613
1863
  ) => any;
1864
+ export declare const ExploitabilityDetailsFilterSensitiveLog: (
1865
+ obj: ExploitabilityDetails
1866
+ ) => any;
1614
1867
  export declare const FilterFilterSensitiveLog: (obj: Filter) => any;
1615
1868
  export declare const InspectorScoreDetailsFilterSensitiveLog: (
1616
1869
  obj: InspectorScoreDetails
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-inspector2",
3
3
  "description": "AWS SDK for JavaScript Inspector2 Client for Node.js, Browser and React Native",
4
- "version": "3.218.0",
4
+ "version": "3.222.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,36 +19,37 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.218.0",
23
- "@aws-sdk/config-resolver": "3.215.0",
24
- "@aws-sdk/credential-provider-node": "3.218.0",
25
- "@aws-sdk/fetch-http-handler": "3.215.0",
26
- "@aws-sdk/hash-node": "3.215.0",
27
- "@aws-sdk/invalid-dependency": "3.215.0",
28
- "@aws-sdk/middleware-content-length": "3.215.0",
29
- "@aws-sdk/middleware-endpoint": "3.215.0",
30
- "@aws-sdk/middleware-host-header": "3.215.0",
31
- "@aws-sdk/middleware-logger": "3.215.0",
32
- "@aws-sdk/middleware-recursion-detection": "3.215.0",
33
- "@aws-sdk/middleware-retry": "3.215.0",
34
- "@aws-sdk/middleware-serde": "3.215.0",
35
- "@aws-sdk/middleware-signing": "3.215.0",
36
- "@aws-sdk/middleware-stack": "3.215.0",
37
- "@aws-sdk/middleware-user-agent": "3.215.0",
38
- "@aws-sdk/node-config-provider": "3.215.0",
39
- "@aws-sdk/node-http-handler": "3.215.0",
40
- "@aws-sdk/protocol-http": "3.215.0",
41
- "@aws-sdk/smithy-client": "3.215.0",
42
- "@aws-sdk/types": "3.215.0",
43
- "@aws-sdk/url-parser": "3.215.0",
22
+ "@aws-sdk/client-sts": "3.222.0",
23
+ "@aws-sdk/config-resolver": "3.222.0",
24
+ "@aws-sdk/credential-provider-node": "3.222.0",
25
+ "@aws-sdk/fetch-http-handler": "3.222.0",
26
+ "@aws-sdk/hash-node": "3.222.0",
27
+ "@aws-sdk/invalid-dependency": "3.222.0",
28
+ "@aws-sdk/middleware-content-length": "3.222.0",
29
+ "@aws-sdk/middleware-endpoint": "3.222.0",
30
+ "@aws-sdk/middleware-host-header": "3.222.0",
31
+ "@aws-sdk/middleware-logger": "3.222.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.222.0",
33
+ "@aws-sdk/middleware-retry": "3.222.0",
34
+ "@aws-sdk/middleware-serde": "3.222.0",
35
+ "@aws-sdk/middleware-signing": "3.222.0",
36
+ "@aws-sdk/middleware-stack": "3.222.0",
37
+ "@aws-sdk/middleware-user-agent": "3.222.0",
38
+ "@aws-sdk/node-config-provider": "3.222.0",
39
+ "@aws-sdk/node-http-handler": "3.222.0",
40
+ "@aws-sdk/protocol-http": "3.222.0",
41
+ "@aws-sdk/smithy-client": "3.222.0",
42
+ "@aws-sdk/types": "3.222.0",
43
+ "@aws-sdk/url-parser": "3.222.0",
44
44
  "@aws-sdk/util-base64": "3.208.0",
45
45
  "@aws-sdk/util-body-length-browser": "3.188.0",
46
46
  "@aws-sdk/util-body-length-node": "3.208.0",
47
- "@aws-sdk/util-defaults-mode-browser": "3.215.0",
48
- "@aws-sdk/util-defaults-mode-node": "3.215.0",
49
- "@aws-sdk/util-endpoints": "3.216.0",
50
- "@aws-sdk/util-user-agent-browser": "3.215.0",
51
- "@aws-sdk/util-user-agent-node": "3.215.0",
47
+ "@aws-sdk/util-defaults-mode-browser": "3.222.0",
48
+ "@aws-sdk/util-defaults-mode-node": "3.222.0",
49
+ "@aws-sdk/util-endpoints": "3.222.0",
50
+ "@aws-sdk/util-retry": "3.222.0",
51
+ "@aws-sdk/util-user-agent-browser": "3.222.0",
52
+ "@aws-sdk/util-user-agent-node": "3.222.0",
52
53
  "@aws-sdk/util-utf8-browser": "3.188.0",
53
54
  "@aws-sdk/util-utf8-node": "3.208.0",
54
55
  "tslib": "^2.3.1",