@aws-sdk/client-inspector2 3.354.0 → 3.357.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 (60) hide show
  1. package/README.md +56 -0
  2. package/dist-cjs/Inspector2.js +14 -0
  3. package/dist-cjs/commands/BatchGetCodeSnippetCommand.js +46 -0
  4. package/dist-cjs/commands/CancelSbomExportCommand.js +46 -0
  5. package/dist-cjs/commands/CreateSbomExportCommand.js +46 -0
  6. package/dist-cjs/commands/GetEncryptionKeyCommand.js +46 -0
  7. package/dist-cjs/commands/GetSbomExportCommand.js +46 -0
  8. package/dist-cjs/commands/ResetEncryptionKeyCommand.js +46 -0
  9. package/dist-cjs/commands/UpdateEncryptionKeyCommand.js +46 -0
  10. package/dist-cjs/commands/index.js +7 -0
  11. package/dist-cjs/models/models_0.js +28 -2
  12. package/dist-cjs/protocols/Aws_restJson1.js +492 -13
  13. package/dist-es/Inspector2.js +14 -0
  14. package/dist-es/commands/BatchGetCodeSnippetCommand.js +42 -0
  15. package/dist-es/commands/CancelSbomExportCommand.js +42 -0
  16. package/dist-es/commands/CreateSbomExportCommand.js +42 -0
  17. package/dist-es/commands/GetEncryptionKeyCommand.js +42 -0
  18. package/dist-es/commands/GetSbomExportCommand.js +42 -0
  19. package/dist-es/commands/ResetEncryptionKeyCommand.js +42 -0
  20. package/dist-es/commands/UpdateEncryptionKeyCommand.js +42 -0
  21. package/dist-es/commands/index.js +7 -0
  22. package/dist-es/models/models_0.js +26 -0
  23. package/dist-es/protocols/Aws_restJson1.js +472 -7
  24. package/dist-types/Inspector2.d.ts +49 -0
  25. package/dist-types/Inspector2Client.d.ts +10 -3
  26. package/dist-types/commands/BatchGetAccountStatusCommand.d.ts +6 -0
  27. package/dist-types/commands/BatchGetCodeSnippetCommand.d.ts +113 -0
  28. package/dist-types/commands/CancelSbomExportCommand.d.ts +89 -0
  29. package/dist-types/commands/CreateFilterCommand.d.ts +9 -0
  30. package/dist-types/commands/CreateFindingsReportCommand.d.ts +9 -0
  31. package/dist-types/commands/CreateSbomExportCommand.d.ts +141 -0
  32. package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +1 -0
  33. package/dist-types/commands/DisableCommand.d.ts +2 -0
  34. package/dist-types/commands/EnableCommand.d.ts +2 -0
  35. package/dist-types/commands/GetEncryptionKeyCommand.d.ts +90 -0
  36. package/dist-types/commands/GetFindingsReportStatusCommand.d.ts +9 -0
  37. package/dist-types/commands/GetSbomExportCommand.d.ts +145 -0
  38. package/dist-types/commands/ListFiltersCommand.d.ts +9 -0
  39. package/dist-types/commands/ListFindingAggregationsCommand.d.ts +1 -0
  40. package/dist-types/commands/ListFindingsCommand.d.ts +33 -0
  41. package/dist-types/commands/ResetEncryptionKeyCommand.d.ts +88 -0
  42. package/dist-types/commands/UpdateEncryptionKeyCommand.d.ts +89 -0
  43. package/dist-types/commands/UpdateFilterCommand.d.ts +9 -0
  44. package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +2 -0
  45. package/dist-types/commands/index.d.ts +7 -0
  46. package/dist-types/models/models_0.d.ts +485 -1
  47. package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
  48. package/dist-types/ts3.4/Inspector2.d.ts +119 -0
  49. package/dist-types/ts3.4/Inspector2Client.d.ts +42 -0
  50. package/dist-types/ts3.4/commands/BatchGetCodeSnippetCommand.d.ts +39 -0
  51. package/dist-types/ts3.4/commands/CancelSbomExportCommand.d.ts +38 -0
  52. package/dist-types/ts3.4/commands/CreateSbomExportCommand.d.ts +38 -0
  53. package/dist-types/ts3.4/commands/GetEncryptionKeyCommand.d.ts +38 -0
  54. package/dist-types/ts3.4/commands/GetSbomExportCommand.d.ts +38 -0
  55. package/dist-types/ts3.4/commands/ResetEncryptionKeyCommand.d.ts +39 -0
  56. package/dist-types/ts3.4/commands/UpdateEncryptionKeyCommand.d.ts +39 -0
  57. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  58. package/dist-types/ts3.4/models/models_0.d.ts +153 -0
  59. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
  60. package/package.json +28 -28
@@ -45,6 +45,11 @@ export interface ResourceStatus {
45
45
  * <p>The status of Amazon Inspector scanning for AWS Lambda function.</p>
46
46
  */
47
47
  lambda?: Status | string;
48
+ /**
49
+ * <p>The status of Amazon Inspector scanning for custom application code for Amazon Web Services Lambda functions.
50
+ * </p>
51
+ */
52
+ lambdaCode?: Status | string;
48
53
  }
49
54
  /**
50
55
  * @public
@@ -69,6 +74,7 @@ export interface Account {
69
74
  * @enum
70
75
  */
71
76
  export declare const AggregationFindingType: {
77
+ readonly CODE_VULNERABILITY: "CODE_VULNERABILITY";
72
78
  readonly NETWORK_REACHABILITY: "NETWORK_REACHABILITY";
73
79
  readonly PACKAGE_VULNERABILITY: "PACKAGE_VULNERABILITY";
74
80
  };
@@ -232,6 +238,10 @@ export interface ResourceState {
232
238
  * <p>An object that described the state of Amazon Inspector scans for an account.</p>
233
239
  */
234
240
  lambda?: State;
241
+ /**
242
+ * <p>An object that described the state of Amazon Inspector scans for an account.</p>
243
+ */
244
+ lambdaCode?: State;
235
245
  }
236
246
  /**
237
247
  * @public
@@ -690,6 +700,10 @@ export interface TitleAggregation {
690
700
  * <p>The value to sort results by.</p>
691
701
  */
692
702
  sortBy?: TitleSortBy | string;
703
+ /**
704
+ * <p>The type of finding to aggregate on.</p>
705
+ */
706
+ findingType?: AggregationFindingType | string;
693
707
  }
694
708
  /**
695
709
  * @public
@@ -1586,6 +1600,12 @@ export interface AutoEnable {
1586
1600
  * </p>
1587
1601
  */
1588
1602
  lambda?: boolean;
1603
+ /**
1604
+ * <p>Represents whether AWS Lambda code scans are automatically enabled for new members of your Amazon Inspector organization.
1605
+ *
1606
+ * </p>
1607
+ */
1608
+ lambdaCode?: boolean;
1589
1609
  }
1590
1610
  /**
1591
1611
  * @public
@@ -1690,6 +1710,7 @@ export type PackageType = (typeof PackageType)[keyof typeof PackageType];
1690
1710
  export declare const Runtime: {
1691
1711
  readonly GO_1_X: "GO_1_X";
1692
1712
  readonly JAVA_11: "JAVA_11";
1713
+ readonly JAVA_17: "JAVA_17";
1693
1714
  readonly JAVA_8: "JAVA_8";
1694
1715
  readonly JAVA_8_AL2: "JAVA_8_AL2";
1695
1716
  readonly NODEJS: "NODEJS";
@@ -1697,6 +1718,7 @@ export declare const Runtime: {
1697
1718
  readonly NODEJS_14_X: "NODEJS_14_X";
1698
1719
  readonly NODEJS_16_X: "NODEJS_16_X";
1699
1720
  readonly NODEJS_18_X: "NODEJS_18_X";
1721
+ readonly PYTHON_3_10: "PYTHON_3_10";
1700
1722
  readonly PYTHON_3_7: "PYTHON_3_7";
1701
1723
  readonly PYTHON_3_8: "PYTHON_3_8";
1702
1724
  readonly PYTHON_3_9: "PYTHON_3_9";
@@ -1845,6 +1867,114 @@ export declare class ResourceNotFoundException extends __BaseException {
1845
1867
  */
1846
1868
  constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
1847
1869
  }
1870
+ /**
1871
+ * @public
1872
+ */
1873
+ export interface BatchGetCodeSnippetRequest {
1874
+ /**
1875
+ * <p>An array of finding ARNs for the findings you want to retrieve code snippets from.</p>
1876
+ */
1877
+ findingArns: string[] | undefined;
1878
+ }
1879
+ /**
1880
+ * @public
1881
+ * <p>Contains information on the lines of code associated with a code snippet.</p>
1882
+ */
1883
+ export interface CodeLine {
1884
+ /**
1885
+ * <p>The content of a line of code</p>
1886
+ */
1887
+ content: string | undefined;
1888
+ /**
1889
+ * <p>The line number that a section of code is located at.</p>
1890
+ */
1891
+ lineNumber: number | undefined;
1892
+ }
1893
+ /**
1894
+ * @public
1895
+ * <p>A suggested fix for a vulnerability in your Lambda function code.</p>
1896
+ */
1897
+ export interface SuggestedFix {
1898
+ /**
1899
+ * <p>The fix's description.</p>
1900
+ */
1901
+ description?: string;
1902
+ /**
1903
+ * <p>The fix's code.</p>
1904
+ */
1905
+ code?: string;
1906
+ }
1907
+ /**
1908
+ * @public
1909
+ * <p>Contains information on a code snippet retrieved by Amazon Inspector from a code vulnerability finding.</p>
1910
+ */
1911
+ export interface CodeSnippetResult {
1912
+ /**
1913
+ * <p>The ARN of a finding that the code snippet is associated with.</p>
1914
+ */
1915
+ findingArn?: string;
1916
+ /**
1917
+ * <p>The line number of the first line of a code snippet.</p>
1918
+ */
1919
+ startLine?: number;
1920
+ /**
1921
+ * <p>The line number of the last line of a code snippet.</p>
1922
+ */
1923
+ endLine?: number;
1924
+ /**
1925
+ * <p>Contains information on the retrieved code snippet.</p>
1926
+ */
1927
+ codeSnippet?: CodeLine[];
1928
+ /**
1929
+ * <p>Details of a suggested code fix.</p>
1930
+ */
1931
+ suggestedFixes?: SuggestedFix[];
1932
+ }
1933
+ /**
1934
+ * @public
1935
+ * @enum
1936
+ */
1937
+ export declare const CodeSnippetErrorCode: {
1938
+ readonly ACCESS_DENIED: "ACCESS_DENIED";
1939
+ readonly CODE_SNIPPET_NOT_FOUND: "CODE_SNIPPET_NOT_FOUND";
1940
+ readonly INTERNAL_ERROR: "INTERNAL_ERROR";
1941
+ readonly INVALID_INPUT: "INVALID_INPUT";
1942
+ };
1943
+ /**
1944
+ * @public
1945
+ */
1946
+ export type CodeSnippetErrorCode = (typeof CodeSnippetErrorCode)[keyof typeof CodeSnippetErrorCode];
1947
+ /**
1948
+ * @public
1949
+ * <p>Contains information about any errors encountered while trying to retrieve a code snippet.</p>
1950
+ */
1951
+ export interface CodeSnippetError {
1952
+ /**
1953
+ * <p>The ARN of the finding that a code snippet couldn't be retrieved for.</p>
1954
+ */
1955
+ findingArn: string | undefined;
1956
+ /**
1957
+ * <p>The error code for the error that prevented a code snippet from being retrieved.</p>
1958
+ */
1959
+ errorCode: CodeSnippetErrorCode | string | undefined;
1960
+ /**
1961
+ * <p>The error message received when Amazon Inspector failed to retrieve a code snippet.</p>
1962
+ */
1963
+ errorMessage: string | undefined;
1964
+ }
1965
+ /**
1966
+ * @public
1967
+ */
1968
+ export interface BatchGetCodeSnippetResponse {
1969
+ /**
1970
+ * <p>The retrieved code snippets associated with the provided finding ARNs.</p>
1971
+ */
1972
+ codeSnippetResults?: CodeSnippetResult[];
1973
+ /**
1974
+ * <p>Any errors Amazon Inspector encountered while trying to retrieve the requested code snippets.</p>
1975
+ */
1976
+ errors?: CodeSnippetError[];
1977
+ }
1848
1978
  /**
1849
1979
  * @public
1850
1980
  */
@@ -1874,6 +2004,7 @@ export declare const FreeTrialType: {
1874
2004
  readonly EC2: "EC2";
1875
2005
  readonly ECR: "ECR";
1876
2006
  readonly LAMBDA: "LAMBDA";
2007
+ readonly LAMBDA_CODE: "LAMBDA_CODE";
1877
2008
  };
1878
2009
  /**
1879
2010
  * @public
@@ -2093,6 +2224,24 @@ export interface CancelFindingsReportResponse {
2093
2224
  */
2094
2225
  reportId: string | undefined;
2095
2226
  }
2227
+ /**
2228
+ * @public
2229
+ */
2230
+ export interface CancelSbomExportRequest {
2231
+ /**
2232
+ * <p>The report ID of the SBOM export to cancel.</p>
2233
+ */
2234
+ reportId: string | undefined;
2235
+ }
2236
+ /**
2237
+ * @public
2238
+ */
2239
+ export interface CancelSbomExportResponse {
2240
+ /**
2241
+ * <p>The report ID of the canceled SBOM export.</p>
2242
+ */
2243
+ reportId?: string;
2244
+ }
2096
2245
  /**
2097
2246
  * @public
2098
2247
  * <p>The Cybersecurity and Infrastructure Security Agency (CISA) details for a specific vulnerability.</p>
@@ -2111,6 +2260,67 @@ export interface CisaData {
2111
2260
  */
2112
2261
  action?: string;
2113
2262
  }
2263
+ /**
2264
+ * @public
2265
+ * <p>Contains information on where a code vulnerability is located in your Lambda function.</p>
2266
+ */
2267
+ export interface CodeFilePath {
2268
+ /**
2269
+ * <p>The name of the file the code vulnerability was found in.</p>
2270
+ */
2271
+ fileName: string | undefined;
2272
+ /**
2273
+ * <p>The file path to the code that a vulnerability was found in.</p>
2274
+ */
2275
+ filePath: string | undefined;
2276
+ /**
2277
+ * <p>The line number of the first line of code that a vulnerability was found in.</p>
2278
+ */
2279
+ startLine: number | undefined;
2280
+ /**
2281
+ * <p>The line number of the last line of code that a vulnerability was found in.</p>
2282
+ */
2283
+ endLine: number | undefined;
2284
+ }
2285
+ /**
2286
+ * @public
2287
+ * <p>Contains information on the code vulnerability identified in your Lambda function.</p>
2288
+ */
2289
+ export interface CodeVulnerabilityDetails {
2290
+ /**
2291
+ * <p>Contains information on where the code vulnerability is located in your code.</p>
2292
+ */
2293
+ filePath: CodeFilePath | undefined;
2294
+ /**
2295
+ * <p>The detector tag associated with the vulnerability. Detector tags group related vulnerabilities by common themes or tactics. For a list of available tags by programming language, see <a href="https://docs.aws.amazon.com/codeguru/detector-library/java/tags/">Java tags</a>, or <a href="https://docs.aws.amazon.com/codeguru/detector-library/python/tags/">Python tags</a>. </p>
2296
+ */
2297
+ detectorTags?: string[];
2298
+ /**
2299
+ * <p>A URL containing supporting documentation about the code vulnerability detected.</p>
2300
+ */
2301
+ referenceUrls?: string[];
2302
+ /**
2303
+ * <p>The identifier for a rule that was used to detect the code vulnerability.</p>
2304
+ */
2305
+ ruleId?: string;
2306
+ /**
2307
+ * <p>The Amazon Resource Name (ARN) of the Lambda layer that the code vulnerability was detected in.</p>
2308
+ */
2309
+ sourceLambdaLayerArn?: string;
2310
+ /**
2311
+ * <p>The ID for the Amazon CodeGuru detector associated with the finding. For more information on detectors see <a href="https://docs.aws.amazon.com/codeguru/detector-library">Amazon CodeGuru
2312
+ * Detector Library</a>.</p>
2313
+ */
2314
+ detectorId: string | undefined;
2315
+ /**
2316
+ * <p>The name of the detector used to identify the code vulnerability. For more information on detectors see <a href="https://docs.aws.amazon.com/codeguru/detector-library">CodeGuru Detector Library</a>.</p>
2317
+ */
2318
+ detectorName: string | undefined;
2319
+ /**
2320
+ * <p>The Common Weakness Enumeration (CWE) item associated with the detected vulnerability.</p>
2321
+ */
2322
+ cwes: string[] | undefined;
2323
+ }
2114
2324
  /**
2115
2325
  * @public
2116
2326
  * <p>A conflict occurred.</p>
@@ -2478,6 +2688,7 @@ export interface ScanStatus {
2478
2688
  * @enum
2479
2689
  */
2480
2690
  export declare const ScanType: {
2691
+ readonly CODE: "CODE";
2481
2692
  readonly NETWORK: "NETWORK";
2482
2693
  readonly PACKAGE: "PACKAGE";
2483
2694
  };
@@ -2766,6 +2977,22 @@ export interface FilterCriteria {
2766
2977
  * <p>Filters the list of AWS Lambda findings by the availability of exploits.</p>
2767
2978
  */
2768
2979
  exploitAvailable?: StringFilter[];
2980
+ /**
2981
+ * <p>The name of the detector used to identify a code vulnerability in a Lambda function used to filter findings.</p>
2982
+ */
2983
+ codeVulnerabilityDetectorName?: StringFilter[];
2984
+ /**
2985
+ * <p>The detector type tag associated with the vulnerability used to filter findings. Detector tags group related vulnerabilities by common themes or tactics. For a list of available tags by programming language, see <a href="https://docs.aws.amazon.com/codeguru/detector-library/java/tags/">Java tags</a>, or <a href="https://docs.aws.amazon.com/codeguru/detector-library/python/tags/">Python tags</a>. </p>
2986
+ */
2987
+ codeVulnerabilityDetectorTags?: StringFilter[];
2988
+ /**
2989
+ * <p>The file path to the file in a Lambda function that contains a code vulnerability used to filter findings.</p>
2990
+ */
2991
+ codeVulnerabilityFilePath?: StringFilter[];
2992
+ /**
2993
+ * <p>The EPSS score used to filter findings.</p>
2994
+ */
2995
+ epssScore?: NumberFilter[];
2769
2996
  }
2770
2997
  /**
2771
2998
  * @public
@@ -2880,6 +3107,137 @@ export interface CreateFindingsReportResponse {
2880
3107
  */
2881
3108
  reportId?: string;
2882
3109
  }
3110
+ /**
3111
+ * @public
3112
+ * @enum
3113
+ */
3114
+ export declare const SbomReportFormat: {
3115
+ readonly CYCLONEDX_1_4: "CYCLONEDX_1_4";
3116
+ readonly SPDX_2_3: "SPDX_2_3";
3117
+ };
3118
+ /**
3119
+ * @public
3120
+ */
3121
+ export type SbomReportFormat = (typeof SbomReportFormat)[keyof typeof SbomReportFormat];
3122
+ /**
3123
+ * @public
3124
+ * @enum
3125
+ */
3126
+ export declare const ResourceStringComparison: {
3127
+ readonly EQUALS: "EQUALS";
3128
+ readonly NOT_EQUALS: "NOT_EQUALS";
3129
+ };
3130
+ /**
3131
+ * @public
3132
+ */
3133
+ export type ResourceStringComparison = (typeof ResourceStringComparison)[keyof typeof ResourceStringComparison];
3134
+ /**
3135
+ * @public
3136
+ * <p>A resource string filter for a software bill of materials report.</p>
3137
+ */
3138
+ export interface ResourceStringFilter {
3139
+ /**
3140
+ * <p>The filter's comparison.</p>
3141
+ */
3142
+ comparison: ResourceStringComparison | string | undefined;
3143
+ /**
3144
+ * <p>The filter's value.</p>
3145
+ */
3146
+ value: string | undefined;
3147
+ }
3148
+ /**
3149
+ * @public
3150
+ * @enum
3151
+ */
3152
+ export declare const ResourceMapComparison: {
3153
+ readonly EQUALS: "EQUALS";
3154
+ };
3155
+ /**
3156
+ * @public
3157
+ */
3158
+ export type ResourceMapComparison = (typeof ResourceMapComparison)[keyof typeof ResourceMapComparison];
3159
+ /**
3160
+ * @public
3161
+ * <p>A resource map filter for a software bill of material report.</p>
3162
+ */
3163
+ export interface ResourceMapFilter {
3164
+ /**
3165
+ * <p>The filter's comparison.</p>
3166
+ */
3167
+ comparison: ResourceMapComparison | string | undefined;
3168
+ /**
3169
+ * <p>The filter's key.</p>
3170
+ */
3171
+ key: string | undefined;
3172
+ /**
3173
+ * <p>The filter's value.</p>
3174
+ */
3175
+ value?: string;
3176
+ }
3177
+ /**
3178
+ * @public
3179
+ * <p>The resource filter criteria for a Software bill of materials (SBOM) report.</p>
3180
+ */
3181
+ export interface ResourceFilterCriteria {
3182
+ /**
3183
+ * <p>The account IDs used as resource filter criteria.</p>
3184
+ */
3185
+ accountId?: ResourceStringFilter[];
3186
+ /**
3187
+ * <p>The resource IDs used as resource filter criteria.</p>
3188
+ */
3189
+ resourceId?: ResourceStringFilter[];
3190
+ /**
3191
+ * <p>The resource types used as resource filter criteria.</p>
3192
+ */
3193
+ resourceType?: ResourceStringFilter[];
3194
+ /**
3195
+ * <p>The ECR repository names used as resource filter criteria.</p>
3196
+ */
3197
+ ecrRepositoryName?: ResourceStringFilter[];
3198
+ /**
3199
+ * <p>The AWS Lambda function name used as resource filter criteria.</p>
3200
+ */
3201
+ lambdaFunctionName?: ResourceStringFilter[];
3202
+ /**
3203
+ * <p>The ECR image tags used as resource filter criteria.</p>
3204
+ */
3205
+ ecrImageTags?: ResourceStringFilter[];
3206
+ /**
3207
+ * <p>The EC2 instance tags used as resource filter criteria.</p>
3208
+ */
3209
+ ec2InstanceTags?: ResourceMapFilter[];
3210
+ /**
3211
+ * <p>The AWS Lambda function tags used as resource filter criteria.</p>
3212
+ */
3213
+ lambdaFunctionTags?: ResourceMapFilter[];
3214
+ }
3215
+ /**
3216
+ * @public
3217
+ */
3218
+ export interface CreateSbomExportRequest {
3219
+ /**
3220
+ * <p>The resource filter criteria for the software bill of materials (SBOM) report.</p>
3221
+ */
3222
+ resourceFilterCriteria?: ResourceFilterCriteria;
3223
+ /**
3224
+ * <p>The output format for the software bill of materials (SBOM) report.</p>
3225
+ */
3226
+ reportFormat: SbomReportFormat | string | undefined;
3227
+ /**
3228
+ * <p>Contains details of the Amazon S3 bucket and KMS key used to export findings.</p>
3229
+ */
3230
+ s3Destination: Destination | undefined;
3231
+ }
3232
+ /**
3233
+ * @public
3234
+ */
3235
+ export interface CreateSbomExportResponse {
3236
+ /**
3237
+ * <p>The report ID for the software bill of materials (SBOM) report.</p>
3238
+ */
3239
+ reportId?: string;
3240
+ }
2883
3241
  /**
2884
3242
  * @public
2885
3243
  * @enum
@@ -3091,6 +3449,7 @@ export declare const ResourceScanType: {
3091
3449
  readonly EC2: "EC2";
3092
3450
  readonly ECR: "ECR";
3093
3451
  readonly LAMBDA: "LAMBDA";
3452
+ readonly LAMBDA_CODE: "LAMBDA_CODE";
3094
3453
  };
3095
3454
  /**
3096
3455
  * @public
@@ -3288,6 +3647,16 @@ export interface Epss {
3288
3647
  */
3289
3648
  score?: number;
3290
3649
  }
3650
+ /**
3651
+ * @public
3652
+ * <p>Details about the Exploit Prediction Scoring System (EPSS) score for a finding.</p>
3653
+ */
3654
+ export interface EpssDetails {
3655
+ /**
3656
+ * <p>The EPSS score.</p>
3657
+ */
3658
+ score?: number;
3659
+ }
3291
3660
  /**
3292
3661
  * @public
3293
3662
  * <p>The details of an exploit available for a finding discovered in your environment.</p>
@@ -3718,6 +4087,7 @@ export type FindingStatus = (typeof FindingStatus)[keyof typeof FindingStatus];
3718
4087
  * @enum
3719
4088
  */
3720
4089
  export declare const FindingType: {
4090
+ readonly CODE_VULNERABILITY: "CODE_VULNERABILITY";
3721
4091
  readonly NETWORK_REACHABILITY: "NETWORK_REACHABILITY";
3722
4092
  readonly PACKAGE_VULNERABILITY: "PACKAGE_VULNERABILITY";
3723
4093
  };
@@ -3806,6 +4176,14 @@ export interface Finding {
3806
4176
  * <p>The details of an exploit available for a finding discovered in your environment.</p>
3807
4177
  */
3808
4178
  exploitabilityDetails?: ExploitabilityDetails;
4179
+ /**
4180
+ * <p>Details about the code vulnerability identified in a Lambda function used to filter findings.</p>
4181
+ */
4182
+ codeVulnerabilityDetails?: CodeVulnerabilityDetails;
4183
+ /**
4184
+ * <p>The finding's EPSS score.</p>
4185
+ */
4186
+ epss?: EpssDetails;
3809
4187
  }
3810
4188
  /**
3811
4189
  * @public
@@ -3861,6 +4239,28 @@ export interface GetEc2DeepInspectionConfigurationResponse {
3861
4239
  */
3862
4240
  errorMessage?: string;
3863
4241
  }
4242
+ /**
4243
+ * @public
4244
+ */
4245
+ export interface GetEncryptionKeyRequest {
4246
+ /**
4247
+ * <p>The scan type the key encrypts.</p>
4248
+ */
4249
+ scanType: ScanType | string | undefined;
4250
+ /**
4251
+ * <p>The resource type the key encrypts.</p>
4252
+ */
4253
+ resourceType: ResourceType | string | undefined;
4254
+ }
4255
+ /**
4256
+ * @public
4257
+ */
4258
+ export interface GetEncryptionKeyResponse {
4259
+ /**
4260
+ * <p>A kms key ID.</p>
4261
+ */
4262
+ kmsKeyId: string | undefined;
4263
+ }
3864
4264
  /**
3865
4265
  * @public
3866
4266
  */
@@ -3955,6 +4355,48 @@ export interface GetMemberResponse {
3955
4355
  */
3956
4356
  member?: Member;
3957
4357
  }
4358
+ /**
4359
+ * @public
4360
+ */
4361
+ export interface GetSbomExportRequest {
4362
+ /**
4363
+ * <p>The report ID of the SBOM export to get details for.</p>
4364
+ */
4365
+ reportId: string | undefined;
4366
+ }
4367
+ /**
4368
+ * @public
4369
+ */
4370
+ export interface GetSbomExportResponse {
4371
+ /**
4372
+ * <p>The report ID of the software bill of materials (SBOM) report.</p>
4373
+ */
4374
+ reportId?: string;
4375
+ /**
4376
+ * <p>The format of the software bill of materials (SBOM) report.</p>
4377
+ */
4378
+ format?: SbomReportFormat | string;
4379
+ /**
4380
+ * <p>The status of the software bill of materials (SBOM) report.</p>
4381
+ */
4382
+ status?: ExternalReportStatus | string;
4383
+ /**
4384
+ * <p>An error code.</p>
4385
+ */
4386
+ errorCode?: ReportingErrorCode | string;
4387
+ /**
4388
+ * <p>An error message.</p>
4389
+ */
4390
+ errorMessage?: string;
4391
+ /**
4392
+ * <p>Contains details of the Amazon S3 bucket and KMS key used to export findings.</p>
4393
+ */
4394
+ s3Destination?: Destination;
4395
+ /**
4396
+ * <p>Contains details about the resource filter criteria used for the software bill of materials (SBOM) report.</p>
4397
+ */
4398
+ filterCriteria?: ResourceFilterCriteria;
4399
+ }
3958
4400
  /**
3959
4401
  * @public
3960
4402
  * @enum
@@ -4240,6 +4682,7 @@ export declare const SortField: {
4240
4682
  readonly ECR_IMAGE_PUSHED_AT: "ECR_IMAGE_PUSHED_AT";
4241
4683
  readonly ECR_IMAGE_REGISTRY: "ECR_IMAGE_REGISTRY";
4242
4684
  readonly ECR_IMAGE_REPOSITORY_NAME: "ECR_IMAGE_REPOSITORY_NAME";
4685
+ readonly EPSS_SCORE: "EPSS_SCORE";
4243
4686
  readonly FINDING_STATUS: "FINDING_STATUS";
4244
4687
  readonly FINDING_TYPE: "FINDING_TYPE";
4245
4688
  readonly FIRST_OBSERVED_AT: "FIRST_OBSERVED_AT";
@@ -4391,6 +4834,7 @@ export declare const UsageType: {
4391
4834
  readonly EC2_INSTANCE_HOURS: "EC2_INSTANCE_HOURS";
4392
4835
  readonly ECR_INITIAL_SCAN: "ECR_INITIAL_SCAN";
4393
4836
  readonly ECR_RESCAN: "ECR_RESCAN";
4837
+ readonly LAMBDA_FUNCTION_CODE_HOURS: "LAMBDA_FUNCTION_CODE_HOURS";
4394
4838
  readonly LAMBDA_FUNCTION_HOURS: "LAMBDA_FUNCTION_HOURS";
4395
4839
  };
4396
4840
  /**
@@ -4446,6 +4890,24 @@ export interface ListUsageTotalsResponse {
4446
4890
  */
4447
4891
  totals?: UsageTotal[];
4448
4892
  }
4893
+ /**
4894
+ * @public
4895
+ */
4896
+ export interface ResetEncryptionKeyRequest {
4897
+ /**
4898
+ * <p>The scan type the key encrypts.</p>
4899
+ */
4900
+ scanType: ScanType | string | undefined;
4901
+ /**
4902
+ * <p>The resource type the key encrypts.</p>
4903
+ */
4904
+ resourceType: ResourceType | string | undefined;
4905
+ }
4906
+ /**
4907
+ * @public
4908
+ */
4909
+ export interface ResetEncryptionKeyResponse {
4910
+ }
4449
4911
  /**
4450
4912
  * @public
4451
4913
  * <p>Details on the criteria used to define the filter for a vulnerability search.
@@ -4554,7 +5016,7 @@ export interface Vulnerability {
4554
5016
  */
4555
5017
  detectionPlatforms?: string[];
4556
5018
  /**
4557
- * <p>An object that contains the Exploit Prediction Scoring System (EPSS) score.</p>
5019
+ * <p>An object that contains the Exploit Prediction Scoring System (EPSS) score for a vulnerability.</p>
4558
5020
  */
4559
5021
  epss?: Epss;
4560
5022
  }
@@ -4655,6 +5117,28 @@ export interface UpdateEc2DeepInspectionConfigurationResponse {
4655
5117
  */
4656
5118
  errorMessage?: string;
4657
5119
  }
5120
+ /**
5121
+ * @public
5122
+ */
5123
+ export interface UpdateEncryptionKeyRequest {
5124
+ /**
5125
+ * <p>A KMS key ID for the encryption key.</p>
5126
+ */
5127
+ kmsKeyId: string | undefined;
5128
+ /**
5129
+ * <p>The scan type for the encryption key.</p>
5130
+ */
5131
+ scanType: ScanType | string | undefined;
5132
+ /**
5133
+ * <p>The resource type for the encryption key.</p>
5134
+ */
5135
+ resourceType: ResourceType | string | undefined;
5136
+ }
5137
+ /**
5138
+ * @public
5139
+ */
5140
+ export interface UpdateEncryptionKeyResponse {
5141
+ }
4658
5142
  /**
4659
5143
  * @public
4660
5144
  */