@aws-sdk/client-inspector2 3.354.0 → 3.358.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.
- package/README.md +56 -0
- package/dist-cjs/Inspector2.js +14 -0
- package/dist-cjs/commands/BatchGetCodeSnippetCommand.js +46 -0
- package/dist-cjs/commands/CancelSbomExportCommand.js +46 -0
- package/dist-cjs/commands/CreateSbomExportCommand.js +46 -0
- package/dist-cjs/commands/GetEncryptionKeyCommand.js +46 -0
- package/dist-cjs/commands/GetSbomExportCommand.js +46 -0
- package/dist-cjs/commands/ResetEncryptionKeyCommand.js +46 -0
- package/dist-cjs/commands/UpdateEncryptionKeyCommand.js +46 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/models/models_0.js +28 -2
- package/dist-cjs/protocols/Aws_restJson1.js +492 -13
- package/dist-es/Inspector2.js +14 -0
- package/dist-es/commands/BatchGetCodeSnippetCommand.js +42 -0
- package/dist-es/commands/CancelSbomExportCommand.js +42 -0
- package/dist-es/commands/CreateSbomExportCommand.js +42 -0
- package/dist-es/commands/GetEncryptionKeyCommand.js +42 -0
- package/dist-es/commands/GetSbomExportCommand.js +42 -0
- package/dist-es/commands/ResetEncryptionKeyCommand.js +42 -0
- package/dist-es/commands/UpdateEncryptionKeyCommand.js +42 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/models/models_0.js +26 -0
- package/dist-es/protocols/Aws_restJson1.js +472 -7
- package/dist-types/Inspector2.d.ts +49 -0
- package/dist-types/Inspector2Client.d.ts +10 -3
- package/dist-types/commands/BatchGetAccountStatusCommand.d.ts +6 -0
- package/dist-types/commands/BatchGetCodeSnippetCommand.d.ts +113 -0
- package/dist-types/commands/CancelSbomExportCommand.d.ts +89 -0
- package/dist-types/commands/CreateFilterCommand.d.ts +9 -0
- package/dist-types/commands/CreateFindingsReportCommand.d.ts +9 -0
- package/dist-types/commands/CreateSbomExportCommand.d.ts +141 -0
- package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/DisableCommand.d.ts +2 -0
- package/dist-types/commands/EnableCommand.d.ts +2 -0
- package/dist-types/commands/GetEncryptionKeyCommand.d.ts +90 -0
- package/dist-types/commands/GetFindingsReportStatusCommand.d.ts +9 -0
- package/dist-types/commands/GetSbomExportCommand.d.ts +145 -0
- package/dist-types/commands/ListFiltersCommand.d.ts +9 -0
- package/dist-types/commands/ListFindingAggregationsCommand.d.ts +1 -0
- package/dist-types/commands/ListFindingsCommand.d.ts +33 -0
- package/dist-types/commands/ResetEncryptionKeyCommand.d.ts +88 -0
- package/dist-types/commands/UpdateEncryptionKeyCommand.d.ts +89 -0
- package/dist-types/commands/UpdateFilterCommand.d.ts +9 -0
- package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +2 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/models/models_0.d.ts +485 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
- package/dist-types/ts3.4/Inspector2.d.ts +119 -0
- package/dist-types/ts3.4/Inspector2Client.d.ts +42 -0
- package/dist-types/ts3.4/commands/BatchGetCodeSnippetCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CancelSbomExportCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateSbomExportCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetEncryptionKeyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetSbomExportCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ResetEncryptionKeyCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateEncryptionKeyCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +153 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
- package/package.json +28 -28
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.VulnerabilitySource = exports.UsageType = exports.SortField = exports.Operation = exports.Service = exports.ReportingErrorCode = exports.FindingType = exports.FindingStatus = exports.Severity = exports.ResourceType = exports.PackageManager = exports.NetworkProtocol = exports.FixAvailable = exports.ExternalReportStatus = exports.ExploitAvailable = exports.EcrRescanDurationStatus = exports.EcrRescanDuration = exports.ResourceScanType = exports.DelegatedAdminStatus = void 0;
|
|
3
|
+
exports.SbomReportFormat = exports.ReportFormat = exports.ServiceQuotaExceededException = exports.FilterAction = exports.ScanType = exports.ScanStatusCode = exports.ScanStatusReason = exports.EcrScanFrequency = exports.Ec2Platform = exports.CoverageResourceType = exports.CoverageMapComparison = exports.CoverageStringComparison = exports.GroupKey = exports.ConflictException = exports.Ec2DeepInspectionStatus = exports.FreeTrialInfoErrorCode = exports.FreeTrialType = exports.FreeTrialStatus = exports.CodeSnippetErrorCode = exports.ResourceNotFoundException = exports.BadRequestException = exports.Runtime = exports.PackageType = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.InternalServerException = exports.Architecture = exports.AggregationType = exports.AggregationResponse = exports.AggregationRequest = exports.TitleSortBy = exports.RepositorySortBy = exports.PackageSortBy = exports.LambdaLayerSortBy = exports.LambdaFunctionSortBy = exports.ImageLayerSortBy = exports.FindingTypeSortBy = exports.Ec2InstanceSortBy = exports.MapComparison = exports.AwsEcrContainerSortBy = exports.AmiSortBy = exports.StringComparison = exports.ErrorCode = exports.SortOrder = exports.AccountSortBy = exports.AggregationResourceType = exports.AggregationFindingType = exports.Status = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.VulnerabilitySource = exports.UsageType = exports.SortField = exports.Operation = exports.Service = exports.ReportingErrorCode = exports.FindingType = exports.FindingStatus = exports.Severity = exports.ResourceType = exports.PackageManager = exports.NetworkProtocol = exports.FixAvailable = exports.ExternalReportStatus = exports.ExploitAvailable = exports.EcrRescanDurationStatus = exports.EcrRescanDuration = exports.ResourceScanType = exports.DelegatedAdminStatus = exports.RelationshipStatus = exports.Currency = exports.ResourceMapComparison = exports.ResourceStringComparison = void 0;
|
|
5
5
|
const Inspector2ServiceException_1 = require("./Inspector2ServiceException");
|
|
6
6
|
class AccessDeniedException extends Inspector2ServiceException_1.Inspector2ServiceException {
|
|
7
7
|
constructor(opts) {
|
|
@@ -25,6 +25,7 @@ exports.Status = {
|
|
|
25
25
|
SUSPENDING: "SUSPENDING",
|
|
26
26
|
};
|
|
27
27
|
exports.AggregationFindingType = {
|
|
28
|
+
CODE_VULNERABILITY: "CODE_VULNERABILITY",
|
|
28
29
|
NETWORK_REACHABILITY: "NETWORK_REACHABILITY",
|
|
29
30
|
PACKAGE_VULNERABILITY: "PACKAGE_VULNERABILITY",
|
|
30
31
|
};
|
|
@@ -251,6 +252,7 @@ exports.PackageType = {
|
|
|
251
252
|
exports.Runtime = {
|
|
252
253
|
GO_1_X: "GO_1_X",
|
|
253
254
|
JAVA_11: "JAVA_11",
|
|
255
|
+
JAVA_17: "JAVA_17",
|
|
254
256
|
JAVA_8: "JAVA_8",
|
|
255
257
|
JAVA_8_AL2: "JAVA_8_AL2",
|
|
256
258
|
NODEJS: "NODEJS",
|
|
@@ -258,6 +260,7 @@ exports.Runtime = {
|
|
|
258
260
|
NODEJS_14_X: "NODEJS_14_X",
|
|
259
261
|
NODEJS_16_X: "NODEJS_16_X",
|
|
260
262
|
NODEJS_18_X: "NODEJS_18_X",
|
|
263
|
+
PYTHON_3_10: "PYTHON_3_10",
|
|
261
264
|
PYTHON_3_7: "PYTHON_3_7",
|
|
262
265
|
PYTHON_3_8: "PYTHON_3_8",
|
|
263
266
|
PYTHON_3_9: "PYTHON_3_9",
|
|
@@ -289,6 +292,12 @@ class ResourceNotFoundException extends Inspector2ServiceException_1.Inspector2S
|
|
|
289
292
|
}
|
|
290
293
|
}
|
|
291
294
|
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
295
|
+
exports.CodeSnippetErrorCode = {
|
|
296
|
+
ACCESS_DENIED: "ACCESS_DENIED",
|
|
297
|
+
CODE_SNIPPET_NOT_FOUND: "CODE_SNIPPET_NOT_FOUND",
|
|
298
|
+
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
299
|
+
INVALID_INPUT: "INVALID_INPUT",
|
|
300
|
+
};
|
|
292
301
|
exports.FreeTrialStatus = {
|
|
293
302
|
ACTIVE: "ACTIVE",
|
|
294
303
|
INACTIVE: "INACTIVE",
|
|
@@ -297,6 +306,7 @@ exports.FreeTrialType = {
|
|
|
297
306
|
EC2: "EC2",
|
|
298
307
|
ECR: "ECR",
|
|
299
308
|
LAMBDA: "LAMBDA",
|
|
309
|
+
LAMBDA_CODE: "LAMBDA_CODE",
|
|
300
310
|
};
|
|
301
311
|
exports.FreeTrialInfoErrorCode = {
|
|
302
312
|
ACCESS_DENIED: "ACCESS_DENIED",
|
|
@@ -384,6 +394,7 @@ exports.ScanStatusCode = {
|
|
|
384
394
|
INACTIVE: "INACTIVE",
|
|
385
395
|
};
|
|
386
396
|
exports.ScanType = {
|
|
397
|
+
CODE: "CODE",
|
|
387
398
|
NETWORK: "NETWORK",
|
|
388
399
|
PACKAGE: "PACKAGE",
|
|
389
400
|
};
|
|
@@ -409,6 +420,17 @@ exports.ReportFormat = {
|
|
|
409
420
|
CSV: "CSV",
|
|
410
421
|
JSON: "JSON",
|
|
411
422
|
};
|
|
423
|
+
exports.SbomReportFormat = {
|
|
424
|
+
CYCLONEDX_1_4: "CYCLONEDX_1_4",
|
|
425
|
+
SPDX_2_3: "SPDX_2_3",
|
|
426
|
+
};
|
|
427
|
+
exports.ResourceStringComparison = {
|
|
428
|
+
EQUALS: "EQUALS",
|
|
429
|
+
NOT_EQUALS: "NOT_EQUALS",
|
|
430
|
+
};
|
|
431
|
+
exports.ResourceMapComparison = {
|
|
432
|
+
EQUALS: "EQUALS",
|
|
433
|
+
};
|
|
412
434
|
exports.Currency = {
|
|
413
435
|
USD: "USD",
|
|
414
436
|
};
|
|
@@ -434,6 +456,7 @@ exports.ResourceScanType = {
|
|
|
434
456
|
EC2: "EC2",
|
|
435
457
|
ECR: "ECR",
|
|
436
458
|
LAMBDA: "LAMBDA",
|
|
459
|
+
LAMBDA_CODE: "LAMBDA_CODE",
|
|
437
460
|
};
|
|
438
461
|
exports.EcrRescanDuration = {
|
|
439
462
|
DAYS_180: "DAYS_180",
|
|
@@ -503,6 +526,7 @@ exports.FindingStatus = {
|
|
|
503
526
|
SUPPRESSED: "SUPPRESSED",
|
|
504
527
|
};
|
|
505
528
|
exports.FindingType = {
|
|
529
|
+
CODE_VULNERABILITY: "CODE_VULNERABILITY",
|
|
506
530
|
NETWORK_REACHABILITY: "NETWORK_REACHABILITY",
|
|
507
531
|
PACKAGE_VULNERABILITY: "PACKAGE_VULNERABILITY",
|
|
508
532
|
};
|
|
@@ -531,6 +555,7 @@ exports.SortField = {
|
|
|
531
555
|
ECR_IMAGE_PUSHED_AT: "ECR_IMAGE_PUSHED_AT",
|
|
532
556
|
ECR_IMAGE_REGISTRY: "ECR_IMAGE_REGISTRY",
|
|
533
557
|
ECR_IMAGE_REPOSITORY_NAME: "ECR_IMAGE_REPOSITORY_NAME",
|
|
558
|
+
EPSS_SCORE: "EPSS_SCORE",
|
|
534
559
|
FINDING_STATUS: "FINDING_STATUS",
|
|
535
560
|
FINDING_TYPE: "FINDING_TYPE",
|
|
536
561
|
FIRST_OBSERVED_AT: "FIRST_OBSERVED_AT",
|
|
@@ -547,6 +572,7 @@ exports.UsageType = {
|
|
|
547
572
|
EC2_INSTANCE_HOURS: "EC2_INSTANCE_HOURS",
|
|
548
573
|
ECR_INITIAL_SCAN: "ECR_INITIAL_SCAN",
|
|
549
574
|
ECR_RESCAN: "ECR_RESCAN",
|
|
575
|
+
LAMBDA_FUNCTION_CODE_HOURS: "LAMBDA_FUNCTION_CODE_HOURS",
|
|
550
576
|
LAMBDA_FUNCTION_HOURS: "LAMBDA_FUNCTION_HOURS",
|
|
551
577
|
};
|
|
552
578
|
exports.VulnerabilitySource = {
|