aws-sdk-inspector2 1.15.0 → 1.16.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.
@@ -437,12 +437,18 @@ module Aws::Inspector2
437
437
  # enabled for new members of your Amazon Inspector organization.
438
438
  # @return [Boolean]
439
439
  #
440
+ # @!attribute [rw] lambda_code
441
+ # Represents whether AWS Lambda code scans are automatically enabled
442
+ # for new members of your Amazon Inspector organization. </p>
443
+ # @return [Boolean]
444
+ #
440
445
  # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/AutoEnable AWS API Documentation
441
446
  #
442
447
  class AutoEnable < Struct.new(
443
448
  :ec2,
444
449
  :ecr,
445
- :lambda)
450
+ :lambda,
451
+ :lambda_code)
446
452
  SENSITIVE = []
447
453
  include Aws::Structure
448
454
  end
@@ -762,6 +768,38 @@ module Aws::Inspector2
762
768
  include Aws::Structure
763
769
  end
764
770
 
771
+ # @!attribute [rw] finding_arns
772
+ # An array of finding ARNs for the findings you want to retrieve code
773
+ # snippets from.
774
+ # @return [Array<String>]
775
+ #
776
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/BatchGetCodeSnippetRequest AWS API Documentation
777
+ #
778
+ class BatchGetCodeSnippetRequest < Struct.new(
779
+ :finding_arns)
780
+ SENSITIVE = []
781
+ include Aws::Structure
782
+ end
783
+
784
+ # @!attribute [rw] code_snippet_results
785
+ # The retrieved code snippets associated with the provided finding
786
+ # ARNs.
787
+ # @return [Array<Types::CodeSnippetResult>]
788
+ #
789
+ # @!attribute [rw] errors
790
+ # Any errors Amazon Inspector encountered while trying to retrieve the
791
+ # requested code snippets.
792
+ # @return [Array<Types::CodeSnippetError>]
793
+ #
794
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/BatchGetCodeSnippetResponse AWS API Documentation
795
+ #
796
+ class BatchGetCodeSnippetResponse < Struct.new(
797
+ :code_snippet_results,
798
+ :errors)
799
+ SENSITIVE = []
800
+ include Aws::Structure
801
+ end
802
+
765
803
  # @!attribute [rw] account_ids
766
804
  # The account IDs to get free trial status for.
767
805
  # @return [Array<String>]
@@ -885,6 +923,30 @@ module Aws::Inspector2
885
923
  include Aws::Structure
886
924
  end
887
925
 
926
+ # @!attribute [rw] report_id
927
+ # The report ID of the SBOM export to cancel.
928
+ # @return [String]
929
+ #
930
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/CancelSbomExportRequest AWS API Documentation
931
+ #
932
+ class CancelSbomExportRequest < Struct.new(
933
+ :report_id)
934
+ SENSITIVE = []
935
+ include Aws::Structure
936
+ end
937
+
938
+ # @!attribute [rw] report_id
939
+ # The report ID of the canceled SBOM export.
940
+ # @return [String]
941
+ #
942
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/CancelSbomExportResponse AWS API Documentation
943
+ #
944
+ class CancelSbomExportResponse < Struct.new(
945
+ :report_id)
946
+ SENSITIVE = []
947
+ include Aws::Structure
948
+ end
949
+
888
950
  # The Cybersecurity and Infrastructure Security Agency (CISA) details
889
951
  # for a specific vulnerability.
890
952
  #
@@ -911,6 +973,196 @@ module Aws::Inspector2
911
973
  include Aws::Structure
912
974
  end
913
975
 
976
+ # Contains information on where a code vulnerability is located in your
977
+ # Lambda function.
978
+ #
979
+ # @!attribute [rw] end_line
980
+ # The line number of the last line of code that a vulnerability was
981
+ # found in.
982
+ # @return [Integer]
983
+ #
984
+ # @!attribute [rw] file_name
985
+ # The name of the file the code vulnerability was found in.
986
+ # @return [String]
987
+ #
988
+ # @!attribute [rw] file_path
989
+ # The file path to the code that a vulnerability was found in.
990
+ # @return [String]
991
+ #
992
+ # @!attribute [rw] start_line
993
+ # The line number of the first line of code that a vulnerability was
994
+ # found in.
995
+ # @return [Integer]
996
+ #
997
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/CodeFilePath AWS API Documentation
998
+ #
999
+ class CodeFilePath < Struct.new(
1000
+ :end_line,
1001
+ :file_name,
1002
+ :file_path,
1003
+ :start_line)
1004
+ SENSITIVE = []
1005
+ include Aws::Structure
1006
+ end
1007
+
1008
+ # Contains information on the lines of code associated with a code
1009
+ # snippet.
1010
+ #
1011
+ # @!attribute [rw] content
1012
+ # The content of a line of code
1013
+ # @return [String]
1014
+ #
1015
+ # @!attribute [rw] line_number
1016
+ # The line number that a section of code is located at.
1017
+ # @return [Integer]
1018
+ #
1019
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/CodeLine AWS API Documentation
1020
+ #
1021
+ class CodeLine < Struct.new(
1022
+ :content,
1023
+ :line_number)
1024
+ SENSITIVE = []
1025
+ include Aws::Structure
1026
+ end
1027
+
1028
+ # Contains information about any errors encountered while trying to
1029
+ # retrieve a code snippet.
1030
+ #
1031
+ # @!attribute [rw] error_code
1032
+ # The error code for the error that prevented a code snippet from
1033
+ # being retrieved.
1034
+ # @return [String]
1035
+ #
1036
+ # @!attribute [rw] error_message
1037
+ # The error message received when Amazon Inspector failed to retrieve
1038
+ # a code snippet.
1039
+ # @return [String]
1040
+ #
1041
+ # @!attribute [rw] finding_arn
1042
+ # The ARN of the finding that a code snippet couldn't be retrieved
1043
+ # for.
1044
+ # @return [String]
1045
+ #
1046
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/CodeSnippetError AWS API Documentation
1047
+ #
1048
+ class CodeSnippetError < Struct.new(
1049
+ :error_code,
1050
+ :error_message,
1051
+ :finding_arn)
1052
+ SENSITIVE = []
1053
+ include Aws::Structure
1054
+ end
1055
+
1056
+ # Contains information on a code snippet retrieved by Amazon Inspector
1057
+ # from a code vulnerability finding.
1058
+ #
1059
+ # @!attribute [rw] code_snippet
1060
+ # Contains information on the retrieved code snippet.
1061
+ # @return [Array<Types::CodeLine>]
1062
+ #
1063
+ # @!attribute [rw] end_line
1064
+ # The line number of the last line of a code snippet.
1065
+ # @return [Integer]
1066
+ #
1067
+ # @!attribute [rw] finding_arn
1068
+ # The ARN of a finding that the code snippet is associated with.
1069
+ # @return [String]
1070
+ #
1071
+ # @!attribute [rw] start_line
1072
+ # The line number of the first line of a code snippet.
1073
+ # @return [Integer]
1074
+ #
1075
+ # @!attribute [rw] suggested_fixes
1076
+ # Details of a suggested code fix.
1077
+ # @return [Array<Types::SuggestedFix>]
1078
+ #
1079
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/CodeSnippetResult AWS API Documentation
1080
+ #
1081
+ class CodeSnippetResult < Struct.new(
1082
+ :code_snippet,
1083
+ :end_line,
1084
+ :finding_arn,
1085
+ :start_line,
1086
+ :suggested_fixes)
1087
+ SENSITIVE = []
1088
+ include Aws::Structure
1089
+ end
1090
+
1091
+ # Contains information on the code vulnerability identified in your
1092
+ # Lambda function.
1093
+ #
1094
+ # @!attribute [rw] cwes
1095
+ # The Common Weakness Enumeration (CWE) item associated with the
1096
+ # detected vulnerability.
1097
+ # @return [Array<String>]
1098
+ #
1099
+ # @!attribute [rw] detector_id
1100
+ # The ID for the Amazon CodeGuru detector associated with the finding.
1101
+ # For more information on detectors see [Amazon CodeGuru Detector
1102
+ # Library][1].
1103
+ #
1104
+ #
1105
+ #
1106
+ # [1]: https://docs.aws.amazon.com/codeguru/detector-library
1107
+ # @return [String]
1108
+ #
1109
+ # @!attribute [rw] detector_name
1110
+ # The name of the detector used to identify the code vulnerability.
1111
+ # For more information on detectors see [CodeGuru Detector
1112
+ # Library][1].
1113
+ #
1114
+ #
1115
+ #
1116
+ # [1]: https://docs.aws.amazon.com/codeguru/detector-library
1117
+ # @return [String]
1118
+ #
1119
+ # @!attribute [rw] detector_tags
1120
+ # The detector tag associated with the vulnerability. Detector tags
1121
+ # group related vulnerabilities by common themes or tactics. For a
1122
+ # list of available tags by programming language, see [Java tags][1],
1123
+ # or [Python tags][2].
1124
+ #
1125
+ #
1126
+ #
1127
+ # [1]: https://docs.aws.amazon.com/codeguru/detector-library/java/tags/
1128
+ # [2]: https://docs.aws.amazon.com/codeguru/detector-library/python/tags/
1129
+ # @return [Array<String>]
1130
+ #
1131
+ # @!attribute [rw] file_path
1132
+ # Contains information on where the code vulnerability is located in
1133
+ # your code.
1134
+ # @return [Types::CodeFilePath]
1135
+ #
1136
+ # @!attribute [rw] reference_urls
1137
+ # A URL containing supporting documentation about the code
1138
+ # vulnerability detected.
1139
+ # @return [Array<String>]
1140
+ #
1141
+ # @!attribute [rw] rule_id
1142
+ # The identifier for a rule that was used to detect the code
1143
+ # vulnerability.
1144
+ # @return [String]
1145
+ #
1146
+ # @!attribute [rw] source_lambda_layer_arn
1147
+ # The Amazon Resource Name (ARN) of the Lambda layer that the code
1148
+ # vulnerability was detected in.
1149
+ # @return [String]
1150
+ #
1151
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/CodeVulnerabilityDetails AWS API Documentation
1152
+ #
1153
+ class CodeVulnerabilityDetails < Struct.new(
1154
+ :cwes,
1155
+ :detector_id,
1156
+ :detector_name,
1157
+ :detector_tags,
1158
+ :file_path,
1159
+ :reference_urls,
1160
+ :rule_id,
1161
+ :source_lambda_layer_arn)
1162
+ SENSITIVE = []
1163
+ include Aws::Structure
1164
+ end
1165
+
914
1166
  # A conflict occurred.
915
1167
  #
916
1168
  # @!attribute [rw] message
@@ -1234,6 +1486,42 @@ module Aws::Inspector2
1234
1486
  include Aws::Structure
1235
1487
  end
1236
1488
 
1489
+ # @!attribute [rw] report_format
1490
+ # The output format for the software bill of materials (SBOM) report.
1491
+ # @return [String]
1492
+ #
1493
+ # @!attribute [rw] resource_filter_criteria
1494
+ # The resource filter criteria for the software bill of materials
1495
+ # (SBOM) report.
1496
+ # @return [Types::ResourceFilterCriteria]
1497
+ #
1498
+ # @!attribute [rw] s3_destination
1499
+ # Contains details of the Amazon S3 bucket and KMS key used to export
1500
+ # findings.
1501
+ # @return [Types::Destination]
1502
+ #
1503
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/CreateSbomExportRequest AWS API Documentation
1504
+ #
1505
+ class CreateSbomExportRequest < Struct.new(
1506
+ :report_format,
1507
+ :resource_filter_criteria,
1508
+ :s3_destination)
1509
+ SENSITIVE = []
1510
+ include Aws::Structure
1511
+ end
1512
+
1513
+ # @!attribute [rw] report_id
1514
+ # The report ID for the software bill of materials (SBOM) report.
1515
+ # @return [String]
1516
+ #
1517
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/CreateSbomExportResponse AWS API Documentation
1518
+ #
1519
+ class CreateSbomExportResponse < Struct.new(
1520
+ :report_id)
1521
+ SENSITIVE = []
1522
+ include Aws::Structure
1523
+ end
1524
+
1237
1525
  # The Common Vulnerability Scoring System (CVSS) version 2 details for
1238
1526
  # the vulnerability.
1239
1527
  #
@@ -1891,6 +2179,21 @@ module Aws::Inspector2
1891
2179
  include Aws::Structure
1892
2180
  end
1893
2181
 
2182
+ # Details about the Exploit Prediction Scoring System (EPSS) score for a
2183
+ # finding.
2184
+ #
2185
+ # @!attribute [rw] score
2186
+ # The EPSS score.
2187
+ # @return [Float]
2188
+ #
2189
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/EpssDetails AWS API Documentation
2190
+ #
2191
+ class EpssDetails < Struct.new(
2192
+ :score)
2193
+ SENSITIVE = []
2194
+ include Aws::Structure
2195
+ end
2196
+
1894
2197
  # Contains information on when this exploit was observed.
1895
2198
  #
1896
2199
  # @!attribute [rw] first_seen
@@ -2061,6 +2364,28 @@ module Aws::Inspector2
2061
2364
  # findings.
2062
2365
  # @return [Array<Types::StringFilter>]
2063
2366
  #
2367
+ # @!attribute [rw] code_vulnerability_detector_name
2368
+ # The name of the detector used to identify a code vulnerability in a
2369
+ # Lambda function used to filter findings.
2370
+ # @return [Array<Types::StringFilter>]
2371
+ #
2372
+ # @!attribute [rw] code_vulnerability_detector_tags
2373
+ # The detector type tag associated with the vulnerability used to
2374
+ # filter findings. Detector tags group related vulnerabilities by
2375
+ # common themes or tactics. For a list of available tags by
2376
+ # programming language, see [Java tags][1], or [Python tags][2].
2377
+ #
2378
+ #
2379
+ #
2380
+ # [1]: https://docs.aws.amazon.com/codeguru/detector-library/java/tags/
2381
+ # [2]: https://docs.aws.amazon.com/codeguru/detector-library/python/tags/
2382
+ # @return [Array<Types::StringFilter>]
2383
+ #
2384
+ # @!attribute [rw] code_vulnerability_file_path
2385
+ # The file path to the file in a Lambda function that contains a code
2386
+ # vulnerability used to filter findings.
2387
+ # @return [Array<Types::StringFilter>]
2388
+ #
2064
2389
  # @!attribute [rw] component_id
2065
2390
  # Details of the component IDs used to filter findings.
2066
2391
  # @return [Array<Types::StringFilter>]
@@ -2110,6 +2435,10 @@ module Aws::Inspector2
2110
2435
  # The tags attached to the Amazon ECR container image.
2111
2436
  # @return [Array<Types::StringFilter>]
2112
2437
  #
2438
+ # @!attribute [rw] epss_score
2439
+ # The EPSS score used to filter findings.
2440
+ # @return [Array<Types::NumberFilter>]
2441
+ #
2113
2442
  # @!attribute [rw] exploit_available
2114
2443
  # Filters the list of AWS Lambda findings by the availability of
2115
2444
  # exploits.
@@ -2237,6 +2566,9 @@ module Aws::Inspector2
2237
2566
  #
2238
2567
  class FilterCriteria < Struct.new(
2239
2568
  :aws_account_id,
2569
+ :code_vulnerability_detector_name,
2570
+ :code_vulnerability_detector_tags,
2571
+ :code_vulnerability_file_path,
2240
2572
  :component_id,
2241
2573
  :component_type,
2242
2574
  :ec2_instance_image_id,
@@ -2248,6 +2580,7 @@ module Aws::Inspector2
2248
2580
  :ecr_image_registry,
2249
2581
  :ecr_image_repository_name,
2250
2582
  :ecr_image_tags,
2583
+ :epss_score,
2251
2584
  :exploit_available,
2252
2585
  :finding_arn,
2253
2586
  :finding_status,
@@ -2284,10 +2617,19 @@ module Aws::Inspector2
2284
2617
  # The Amazon Web Services account ID associated with the finding.
2285
2618
  # @return [String]
2286
2619
  #
2620
+ # @!attribute [rw] code_vulnerability_details
2621
+ # Details about the code vulnerability identified in a Lambda function
2622
+ # used to filter findings.
2623
+ # @return [Types::CodeVulnerabilityDetails]
2624
+ #
2287
2625
  # @!attribute [rw] description
2288
2626
  # The description of the finding.
2289
2627
  # @return [String]
2290
2628
  #
2629
+ # @!attribute [rw] epss
2630
+ # The finding's EPSS score.
2631
+ # @return [Types::EpssDetails]
2632
+ #
2291
2633
  # @!attribute [rw] exploit_available
2292
2634
  # If a finding discovered in your environment has an exploit
2293
2635
  # available.
@@ -2368,7 +2710,9 @@ module Aws::Inspector2
2368
2710
  #
2369
2711
  class Finding < Struct.new(
2370
2712
  :aws_account_id,
2713
+ :code_vulnerability_details,
2371
2714
  :description,
2715
+ :epss,
2372
2716
  :exploit_available,
2373
2717
  :exploitability_details,
2374
2718
  :finding_arn,
@@ -2592,6 +2936,35 @@ module Aws::Inspector2
2592
2936
  include Aws::Structure
2593
2937
  end
2594
2938
 
2939
+ # @!attribute [rw] resource_type
2940
+ # The resource type the key encrypts.
2941
+ # @return [String]
2942
+ #
2943
+ # @!attribute [rw] scan_type
2944
+ # The scan type the key encrypts.
2945
+ # @return [String]
2946
+ #
2947
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/GetEncryptionKeyRequest AWS API Documentation
2948
+ #
2949
+ class GetEncryptionKeyRequest < Struct.new(
2950
+ :resource_type,
2951
+ :scan_type)
2952
+ SENSITIVE = []
2953
+ include Aws::Structure
2954
+ end
2955
+
2956
+ # @!attribute [rw] kms_key_id
2957
+ # A kms key ID.
2958
+ # @return [String]
2959
+ #
2960
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/GetEncryptionKeyResponse AWS API Documentation
2961
+ #
2962
+ class GetEncryptionKeyResponse < Struct.new(
2963
+ :kms_key_id)
2964
+ SENSITIVE = []
2965
+ include Aws::Structure
2966
+ end
2967
+
2595
2968
  # @!attribute [rw] report_id
2596
2969
  # The ID of the report to retrieve the status of.
2597
2970
  # @return [String]
@@ -2666,6 +3039,62 @@ module Aws::Inspector2
2666
3039
  include Aws::Structure
2667
3040
  end
2668
3041
 
3042
+ # @!attribute [rw] report_id
3043
+ # The report ID of the SBOM export to get details for.
3044
+ # @return [String]
3045
+ #
3046
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/GetSbomExportRequest AWS API Documentation
3047
+ #
3048
+ class GetSbomExportRequest < Struct.new(
3049
+ :report_id)
3050
+ SENSITIVE = []
3051
+ include Aws::Structure
3052
+ end
3053
+
3054
+ # @!attribute [rw] error_code
3055
+ # An error code.
3056
+ # @return [String]
3057
+ #
3058
+ # @!attribute [rw] error_message
3059
+ # An error message.
3060
+ # @return [String]
3061
+ #
3062
+ # @!attribute [rw] filter_criteria
3063
+ # Contains details about the resource filter criteria used for the
3064
+ # software bill of materials (SBOM) report.
3065
+ # @return [Types::ResourceFilterCriteria]
3066
+ #
3067
+ # @!attribute [rw] format
3068
+ # The format of the software bill of materials (SBOM) report.
3069
+ # @return [String]
3070
+ #
3071
+ # @!attribute [rw] report_id
3072
+ # The report ID of the software bill of materials (SBOM) report.
3073
+ # @return [String]
3074
+ #
3075
+ # @!attribute [rw] s3_destination
3076
+ # Contains details of the Amazon S3 bucket and KMS key used to export
3077
+ # findings.
3078
+ # @return [Types::Destination]
3079
+ #
3080
+ # @!attribute [rw] status
3081
+ # The status of the software bill of materials (SBOM) report.
3082
+ # @return [String]
3083
+ #
3084
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/GetSbomExportResponse AWS API Documentation
3085
+ #
3086
+ class GetSbomExportResponse < Struct.new(
3087
+ :error_code,
3088
+ :error_message,
3089
+ :filter_criteria,
3090
+ :format,
3091
+ :report_id,
3092
+ :s3_destination,
3093
+ :status)
3094
+ SENSITIVE = []
3095
+ include Aws::Structure
3096
+ end
3097
+
2669
3098
  # The details that define an aggregation based on container image
2670
3099
  # layers.
2671
3100
  #
@@ -3942,6 +4371,27 @@ module Aws::Inspector2
3942
4371
  include Aws::Structure
3943
4372
  end
3944
4373
 
4374
+ # @!attribute [rw] resource_type
4375
+ # The resource type the key encrypts.
4376
+ # @return [String]
4377
+ #
4378
+ # @!attribute [rw] scan_type
4379
+ # The scan type the key encrypts.
4380
+ # @return [String]
4381
+ #
4382
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ResetEncryptionKeyRequest AWS API Documentation
4383
+ #
4384
+ class ResetEncryptionKeyRequest < Struct.new(
4385
+ :resource_type,
4386
+ :scan_type)
4387
+ SENSITIVE = []
4388
+ include Aws::Structure
4389
+ end
4390
+
4391
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ResetEncryptionKeyResponse AWS API Documentation
4392
+ #
4393
+ class ResetEncryptionKeyResponse < Aws::EmptyStructure; end
4394
+
3945
4395
  # Details about the resource involved in a finding.
3946
4396
  #
3947
4397
  # @!attribute [rw] details
@@ -4009,6 +4459,80 @@ module Aws::Inspector2
4009
4459
  include Aws::Structure
4010
4460
  end
4011
4461
 
4462
+ # The resource filter criteria for a Software bill of materials (SBOM)
4463
+ # report.
4464
+ #
4465
+ # @!attribute [rw] account_id
4466
+ # The account IDs used as resource filter criteria.
4467
+ # @return [Array<Types::ResourceStringFilter>]
4468
+ #
4469
+ # @!attribute [rw] ec2_instance_tags
4470
+ # The EC2 instance tags used as resource filter criteria.
4471
+ # @return [Array<Types::ResourceMapFilter>]
4472
+ #
4473
+ # @!attribute [rw] ecr_image_tags
4474
+ # The ECR image tags used as resource filter criteria.
4475
+ # @return [Array<Types::ResourceStringFilter>]
4476
+ #
4477
+ # @!attribute [rw] ecr_repository_name
4478
+ # The ECR repository names used as resource filter criteria.
4479
+ # @return [Array<Types::ResourceStringFilter>]
4480
+ #
4481
+ # @!attribute [rw] lambda_function_name
4482
+ # The AWS Lambda function name used as resource filter criteria.
4483
+ # @return [Array<Types::ResourceStringFilter>]
4484
+ #
4485
+ # @!attribute [rw] lambda_function_tags
4486
+ # The AWS Lambda function tags used as resource filter criteria.
4487
+ # @return [Array<Types::ResourceMapFilter>]
4488
+ #
4489
+ # @!attribute [rw] resource_id
4490
+ # The resource IDs used as resource filter criteria.
4491
+ # @return [Array<Types::ResourceStringFilter>]
4492
+ #
4493
+ # @!attribute [rw] resource_type
4494
+ # The resource types used as resource filter criteria.
4495
+ # @return [Array<Types::ResourceStringFilter>]
4496
+ #
4497
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ResourceFilterCriteria AWS API Documentation
4498
+ #
4499
+ class ResourceFilterCriteria < Struct.new(
4500
+ :account_id,
4501
+ :ec2_instance_tags,
4502
+ :ecr_image_tags,
4503
+ :ecr_repository_name,
4504
+ :lambda_function_name,
4505
+ :lambda_function_tags,
4506
+ :resource_id,
4507
+ :resource_type)
4508
+ SENSITIVE = []
4509
+ include Aws::Structure
4510
+ end
4511
+
4512
+ # A resource map filter for a software bill of material report.
4513
+ #
4514
+ # @!attribute [rw] comparison
4515
+ # The filter's comparison.
4516
+ # @return [String]
4517
+ #
4518
+ # @!attribute [rw] key
4519
+ # The filter's key.
4520
+ # @return [String]
4521
+ #
4522
+ # @!attribute [rw] value
4523
+ # The filter's value.
4524
+ # @return [String]
4525
+ #
4526
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ResourceMapFilter AWS API Documentation
4527
+ #
4528
+ class ResourceMapFilter < Struct.new(
4529
+ :comparison,
4530
+ :key,
4531
+ :value)
4532
+ SENSITIVE = []
4533
+ include Aws::Structure
4534
+ end
4535
+
4012
4536
  # The operation tried to access an invalid resource. Make sure the
4013
4537
  # resource is specified correctly.
4014
4538
  #
@@ -4073,12 +4597,18 @@ module Aws::Inspector2
4073
4597
  # account.
4074
4598
  # @return [Types::State]
4075
4599
  #
4600
+ # @!attribute [rw] lambda_code
4601
+ # An object that described the state of Amazon Inspector scans for an
4602
+ # account.
4603
+ # @return [Types::State]
4604
+ #
4076
4605
  # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ResourceState AWS API Documentation
4077
4606
  #
4078
4607
  class ResourceState < Struct.new(
4079
4608
  :ec2,
4080
4609
  :ecr,
4081
- :lambda)
4610
+ :lambda,
4611
+ :lambda_code)
4082
4612
  SENSITIVE = []
4083
4613
  include Aws::Structure
4084
4614
  end
@@ -4098,12 +4628,37 @@ module Aws::Inspector2
4098
4628
  # The status of Amazon Inspector scanning for AWS Lambda function.
4099
4629
  # @return [String]
4100
4630
  #
4631
+ # @!attribute [rw] lambda_code
4632
+ # The status of Amazon Inspector scanning for custom application code
4633
+ # for Amazon Web Services Lambda functions.
4634
+ # @return [String]
4635
+ #
4101
4636
  # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ResourceStatus AWS API Documentation
4102
4637
  #
4103
4638
  class ResourceStatus < Struct.new(
4104
4639
  :ec2,
4105
4640
  :ecr,
4106
- :lambda)
4641
+ :lambda,
4642
+ :lambda_code)
4643
+ SENSITIVE = []
4644
+ include Aws::Structure
4645
+ end
4646
+
4647
+ # A resource string filter for a software bill of materials report.
4648
+ #
4649
+ # @!attribute [rw] comparison
4650
+ # The filter's comparison.
4651
+ # @return [String]
4652
+ #
4653
+ # @!attribute [rw] value
4654
+ # The filter's value.
4655
+ # @return [String]
4656
+ #
4657
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ResourceStringFilter AWS API Documentation
4658
+ #
4659
+ class ResourceStringFilter < Struct.new(
4660
+ :comparison,
4661
+ :value)
4107
4662
  SENSITIVE = []
4108
4663
  include Aws::Structure
4109
4664
  end
@@ -4314,6 +4869,25 @@ module Aws::Inspector2
4314
4869
  include Aws::Structure
4315
4870
  end
4316
4871
 
4872
+ # A suggested fix for a vulnerability in your Lambda function code.
4873
+ #
4874
+ # @!attribute [rw] code
4875
+ # The fix's code.
4876
+ # @return [String]
4877
+ #
4878
+ # @!attribute [rw] description
4879
+ # The fix's description.
4880
+ # @return [String]
4881
+ #
4882
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/SuggestedFix AWS API Documentation
4883
+ #
4884
+ class SuggestedFix < Struct.new(
4885
+ :code,
4886
+ :description)
4887
+ SENSITIVE = []
4888
+ include Aws::Structure
4889
+ end
4890
+
4317
4891
  # @!attribute [rw] resource_arn
4318
4892
  # The Amazon Resource Name (ARN) of the resource to apply a tag to.
4319
4893
  # @return [String]
@@ -4355,6 +4929,10 @@ module Aws::Inspector2
4355
4929
 
4356
4930
  # The details that define an aggregation based on finding title.
4357
4931
  #
4932
+ # @!attribute [rw] finding_type
4933
+ # The type of finding to aggregate on.
4934
+ # @return [String]
4935
+ #
4358
4936
  # @!attribute [rw] resource_type
4359
4937
  # The resource type to aggregate on.
4360
4938
  # @return [String]
@@ -4378,6 +4956,7 @@ module Aws::Inspector2
4378
4956
  # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/TitleAggregation AWS API Documentation
4379
4957
  #
4380
4958
  class TitleAggregation < Struct.new(
4959
+ :finding_type,
4381
4960
  :resource_type,
4382
4961
  :sort_by,
4383
4962
  :sort_order,
@@ -4512,6 +5091,32 @@ module Aws::Inspector2
4512
5091
  include Aws::Structure
4513
5092
  end
4514
5093
 
5094
+ # @!attribute [rw] kms_key_id
5095
+ # A KMS key ID for the encryption key.
5096
+ # @return [String]
5097
+ #
5098
+ # @!attribute [rw] resource_type
5099
+ # The resource type for the encryption key.
5100
+ # @return [String]
5101
+ #
5102
+ # @!attribute [rw] scan_type
5103
+ # The scan type for the encryption key.
5104
+ # @return [String]
5105
+ #
5106
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/UpdateEncryptionKeyRequest AWS API Documentation
5107
+ #
5108
+ class UpdateEncryptionKeyRequest < Struct.new(
5109
+ :kms_key_id,
5110
+ :resource_type,
5111
+ :scan_type)
5112
+ SENSITIVE = []
5113
+ include Aws::Structure
5114
+ end
5115
+
5116
+ # @see http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/UpdateEncryptionKeyResponse AWS API Documentation
5117
+ #
5118
+ class UpdateEncryptionKeyResponse < Aws::EmptyStructure; end
5119
+
4515
5120
  # @!attribute [rw] action
4516
5121
  # Specifies the action that is to be applied to the findings that
4517
5122
  # match the filter.
@@ -4735,7 +5340,7 @@ module Aws::Inspector2
4735
5340
  #
4736
5341
  # @!attribute [rw] epss
4737
5342
  # An object that contains the Exploit Prediction Scoring System (EPSS)
4738
- # score.
5343
+ # score for a vulnerability.
4739
5344
  # @return [Types::Epss]
4740
5345
  #
4741
5346
  # @!attribute [rw] exploit_observed