@aws-sdk/client-inspector2 3.165.0 → 3.166.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/CHANGELOG.md +11 -0
- package/dist-cjs/models/models_0.js +13 -5
- package/dist-cjs/protocols/Aws_restJson1.js +6 -0
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/protocols/Aws_restJson1.js +6 -1
- package/dist-types/models/models_0.d.ts +20 -1
- package/dist-types/ts3.4/models/models_0.d.ts +14 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.166.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.165.0...v3.166.0) (2022-09-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-inspector2:** This release adds new fields like fixAvailable, fixedInVersion and remediation to the finding model. The requirement to have vulnerablePackages in the finding model has also been removed. The documentation has been updated to reflect these changes. ([aa99840](https://github.com/aws/aws-sdk-js-v3/commit/aa99840297a368adf80fedc508442b3eba4b0803))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.165.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.164.0...v3.165.0) (2022-09-06)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-inspector2
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.UpdateOrganizationConfigurationResponseFilterSensitiveLog = exports.UpdateOrganizationConfigurationRequestFilterSensitiveLog = void 0;
|
|
3
|
+
exports.FixAvailable = exports.ExternalReportStatus = exports.EcrRescanDurationStatus = exports.EcrRescanDuration = exports.ResourceScanType = exports.DelegatedAdminStatus = exports.RelationshipStatus = exports.Currency = 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.FreeTrialInfoErrorCode = exports.FreeTrialType = exports.FreeTrialStatus = exports.ResourceNotFoundException = exports.BadRequestException = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.InternalServerException = exports.AggregationType = exports.AggregationResponse = exports.AggregationRequest = exports.TitleSortBy = exports.RepositorySortBy = exports.PackageSortBy = 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.FreeTrialInfoFilterSensitiveLog = exports.BatchGetFreeTrialInfoRequestFilterSensitiveLog = exports.BatchGetAccountStatusResponseFilterSensitiveLog = exports.FailedAccountFilterSensitiveLog = exports.BatchGetAccountStatusRequestFilterSensitiveLog = exports.AwsEcrContainerImageDetailsFilterSensitiveLog = exports.AwsEc2InstanceDetailsFilterSensitiveLog = exports.AutoEnableFilterSensitiveLog = exports.ValidationExceptionFieldFilterSensitiveLog = exports.AssociateMemberResponseFilterSensitiveLog = exports.AssociateMemberRequestFilterSensitiveLog = exports.AggregationResponseFilterSensitiveLog = exports.TitleAggregationResponseFilterSensitiveLog = exports.RepositoryAggregationResponseFilterSensitiveLog = exports.PackageAggregationResponseFilterSensitiveLog = exports.ImageLayerAggregationResponseFilterSensitiveLog = exports.FindingTypeAggregationResponseFilterSensitiveLog = exports.Ec2InstanceAggregationResponseFilterSensitiveLog = exports.AwsEcrContainerAggregationResponseFilterSensitiveLog = exports.AmiAggregationResponseFilterSensitiveLog = exports.AggregationRequestFilterSensitiveLog = exports.TitleAggregationFilterSensitiveLog = exports.RepositoryAggregationFilterSensitiveLog = exports.PackageAggregationFilterSensitiveLog = exports.ImageLayerAggregationFilterSensitiveLog = exports.FindingTypeAggregationFilterSensitiveLog = exports.Ec2InstanceAggregationFilterSensitiveLog = exports.MapFilterFilterSensitiveLog = exports.AwsEcrContainerAggregationFilterSensitiveLog = exports.AmiAggregationFilterSensitiveLog = exports.StringFilterFilterSensitiveLog = exports.AccountStateFilterSensitiveLog = exports.ResourceStateFilterSensitiveLog = exports.StateFilterSensitiveLog = exports.AccountAggregationResponseFilterSensitiveLog = exports.SeverityCountsFilterSensitiveLog = exports.AccountAggregationFilterSensitiveLog = exports.AccountFilterSensitiveLog = exports.ResourceStatusFilterSensitiveLog = exports.UsageType = exports.SortField = exports.Operation = exports.Service = exports.ReportingErrorCode = exports.FindingType = exports.FindingStatus = exports.Severity = exports.ResourceType = exports.PackageManager = exports.NetworkProtocol = void 0;
|
|
5
|
+
exports.StepFilterSensitiveLog = exports.InspectorScoreDetailsFilterSensitiveLog = exports.FilterFilterSensitiveLog = exports.EnableDelegatedAdminAccountResponseFilterSensitiveLog = exports.EnableDelegatedAdminAccountRequestFilterSensitiveLog = exports.EnableResponseFilterSensitiveLog = exports.EnableRequestFilterSensitiveLog = exports.EcrConfigurationStateFilterSensitiveLog = exports.EcrRescanDurationStateFilterSensitiveLog = exports.EcrConfigurationFilterSensitiveLog = exports.DisassociateMemberResponseFilterSensitiveLog = exports.DisassociateMemberRequestFilterSensitiveLog = exports.DisableDelegatedAdminAccountResponseFilterSensitiveLog = exports.DisableDelegatedAdminAccountRequestFilterSensitiveLog = exports.DisableResponseFilterSensitiveLog = exports.DisableRequestFilterSensitiveLog = exports.DescribeOrganizationConfigurationResponseFilterSensitiveLog = exports.DescribeOrganizationConfigurationRequestFilterSensitiveLog = exports.DeleteFilterResponseFilterSensitiveLog = exports.DeleteFilterRequestFilterSensitiveLog = exports.DelegatedAdminAccountFilterSensitiveLog = exports.DelegatedAdminFilterSensitiveLog = exports.CvssScoreDetailsFilterSensitiveLog = exports.CvssScoreAdjustmentFilterSensitiveLog = exports.CvssScoreFilterSensitiveLog = exports.CreateFindingsReportResponseFilterSensitiveLog = exports.CreateFindingsReportRequestFilterSensitiveLog = exports.DestinationFilterSensitiveLog = exports.CreateFilterResponseFilterSensitiveLog = exports.CreateFilterRequestFilterSensitiveLog = exports.FilterCriteriaFilterSensitiveLog = exports.PackageFilterFilterSensitiveLog = exports.PortRangeFilterFilterSensitiveLog = exports.NumberFilterFilterSensitiveLog = exports.DateFilterFilterSensitiveLog = exports.CoveredResourceFilterSensitiveLog = exports.ScanStatusFilterSensitiveLog = exports.ResourceScanMetadataFilterSensitiveLog = exports.EcrRepositoryMetadataFilterSensitiveLog = exports.EcrContainerImageMetadataFilterSensitiveLog = exports.Ec2MetadataFilterSensitiveLog = exports.CoverageFilterCriteriaFilterSensitiveLog = exports.CoverageMapFilterFilterSensitiveLog = exports.CoverageStringFilterFilterSensitiveLog = exports.CountsFilterSensitiveLog = exports.CancelFindingsReportResponseFilterSensitiveLog = exports.CancelFindingsReportRequestFilterSensitiveLog = exports.BatchGetFreeTrialInfoResponseFilterSensitiveLog = exports.FreeTrialInfoErrorFilterSensitiveLog = exports.FreeTrialAccountInfoFilterSensitiveLog = void 0;
|
|
6
|
+
exports.UpdateFilterRequestFilterSensitiveLog = exports.UpdateConfigurationResponseFilterSensitiveLog = exports.UpdateConfigurationRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.ListUsageTotalsResponseFilterSensitiveLog = exports.UsageTotalFilterSensitiveLog = exports.UsageFilterSensitiveLog = exports.ListUsageTotalsRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListMembersResponseFilterSensitiveLog = exports.ListMembersRequestFilterSensitiveLog = exports.ListFindingsResponseFilterSensitiveLog = exports.ListFindingsRequestFilterSensitiveLog = exports.SortCriteriaFilterSensitiveLog = exports.ListFindingAggregationsResponseFilterSensitiveLog = exports.ListFindingAggregationsRequestFilterSensitiveLog = exports.ListFiltersResponseFilterSensitiveLog = exports.ListFiltersRequestFilterSensitiveLog = exports.ListDelegatedAdminAccountsResponseFilterSensitiveLog = exports.ListDelegatedAdminAccountsRequestFilterSensitiveLog = exports.ListCoverageStatisticsResponseFilterSensitiveLog = exports.ListCoverageStatisticsRequestFilterSensitiveLog = exports.ListCoverageResponseFilterSensitiveLog = exports.ListCoverageRequestFilterSensitiveLog = exports.ListAccountPermissionsResponseFilterSensitiveLog = exports.PermissionFilterSensitiveLog = exports.ListAccountPermissionsRequestFilterSensitiveLog = exports.GetMemberResponseFilterSensitiveLog = exports.MemberFilterSensitiveLog = exports.GetMemberRequestFilterSensitiveLog = exports.GetFindingsReportStatusResponseFilterSensitiveLog = exports.GetFindingsReportStatusRequestFilterSensitiveLog = exports.GetDelegatedAdminAccountResponseFilterSensitiveLog = exports.GetDelegatedAdminAccountRequestFilterSensitiveLog = exports.GetConfigurationResponseFilterSensitiveLog = exports.GetConfigurationRequestFilterSensitiveLog = exports.FindingFilterSensitiveLog = exports.ResourceFilterSensitiveLog = exports.ResourceDetailsFilterSensitiveLog = exports.RemediationFilterSensitiveLog = exports.RecommendationFilterSensitiveLog = exports.PackageVulnerabilityDetailsFilterSensitiveLog = exports.VulnerablePackageFilterSensitiveLog = exports.NetworkReachabilityDetailsFilterSensitiveLog = exports.PortRangeFilterSensitiveLog = exports.NetworkPathFilterSensitiveLog = void 0;
|
|
7
|
+
exports.UpdateOrganizationConfigurationResponseFilterSensitiveLog = exports.UpdateOrganizationConfigurationRequestFilterSensitiveLog = exports.UpdateFilterResponseFilterSensitiveLog = void 0;
|
|
8
8
|
const Inspector2ServiceException_1 = require("./Inspector2ServiceException");
|
|
9
9
|
class AccessDeniedException extends Inspector2ServiceException_1.Inspector2ServiceException {
|
|
10
10
|
constructor(opts) {
|
|
@@ -333,6 +333,7 @@ var ScanStatusReason;
|
|
|
333
333
|
ScanStatusReason["EC2_INSTANCE_STOPPED"] = "EC2_INSTANCE_STOPPED";
|
|
334
334
|
ScanStatusReason["IMAGE_SIZE_EXCEEDED"] = "IMAGE_SIZE_EXCEEDED";
|
|
335
335
|
ScanStatusReason["INTERNAL_ERROR"] = "INTERNAL_ERROR";
|
|
336
|
+
ScanStatusReason["NO_INVENTORY"] = "NO_INVENTORY";
|
|
336
337
|
ScanStatusReason["NO_RESOURCES_FOUND"] = "NO_RESOURCES_FOUND";
|
|
337
338
|
ScanStatusReason["PENDING_DISABLE"] = "PENDING_DISABLE";
|
|
338
339
|
ScanStatusReason["PENDING_INITIAL_SCAN"] = "PENDING_INITIAL_SCAN";
|
|
@@ -340,6 +341,7 @@ var ScanStatusReason;
|
|
|
340
341
|
ScanStatusReason["SCAN_ELIGIBILITY_EXPIRED"] = "SCAN_ELIGIBILITY_EXPIRED";
|
|
341
342
|
ScanStatusReason["SCAN_FREQUENCY_MANUAL"] = "SCAN_FREQUENCY_MANUAL";
|
|
342
343
|
ScanStatusReason["SCAN_FREQUENCY_SCAN_ON_PUSH"] = "SCAN_FREQUENCY_SCAN_ON_PUSH";
|
|
344
|
+
ScanStatusReason["STALE_INVENTORY"] = "STALE_INVENTORY";
|
|
343
345
|
ScanStatusReason["SUCCESSFUL"] = "SUCCESSFUL";
|
|
344
346
|
ScanStatusReason["UNMANAGED_EC2_INSTANCE"] = "UNMANAGED_EC2_INSTANCE";
|
|
345
347
|
ScanStatusReason["UNSUPPORTED_OS"] = "UNSUPPORTED_OS";
|
|
@@ -426,6 +428,12 @@ var ExternalReportStatus;
|
|
|
426
428
|
ExternalReportStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
427
429
|
ExternalReportStatus["SUCCEEDED"] = "SUCCEEDED";
|
|
428
430
|
})(ExternalReportStatus = exports.ExternalReportStatus || (exports.ExternalReportStatus = {}));
|
|
431
|
+
var FixAvailable;
|
|
432
|
+
(function (FixAvailable) {
|
|
433
|
+
FixAvailable["NO"] = "NO";
|
|
434
|
+
FixAvailable["PARTIAL"] = "PARTIAL";
|
|
435
|
+
FixAvailable["YES"] = "YES";
|
|
436
|
+
})(FixAvailable = exports.FixAvailable || (exports.FixAvailable = {}));
|
|
429
437
|
var NetworkProtocol;
|
|
430
438
|
(function (NetworkProtocol) {
|
|
431
439
|
NetworkProtocol["TCP"] = "TCP";
|
|
@@ -2557,6 +2557,9 @@ const serializeAws_restJson1FilterCriteria = (input, context) => {
|
|
|
2557
2557
|
...(input.firstObservedAt != null && {
|
|
2558
2558
|
firstObservedAt: serializeAws_restJson1DateFilterList(input.firstObservedAt, context),
|
|
2559
2559
|
}),
|
|
2560
|
+
...(input.fixAvailable != null && {
|
|
2561
|
+
fixAvailable: serializeAws_restJson1StringFilterList(input.fixAvailable, context),
|
|
2562
|
+
}),
|
|
2560
2563
|
...(input.inspectorScore != null && {
|
|
2561
2564
|
inspectorScore: serializeAws_restJson1NumberFilterList(input.inspectorScore, context),
|
|
2562
2565
|
}),
|
|
@@ -3169,6 +3172,7 @@ const deserializeAws_restJson1FilterCriteria = (output, context) => {
|
|
|
3169
3172
|
firstObservedAt: output.firstObservedAt != null
|
|
3170
3173
|
? deserializeAws_restJson1DateFilterList(output.firstObservedAt, context)
|
|
3171
3174
|
: undefined,
|
|
3175
|
+
fixAvailable: output.fixAvailable != null ? deserializeAws_restJson1StringFilterList(output.fixAvailable, context) : undefined,
|
|
3172
3176
|
inspectorScore: output.inspectorScore != null
|
|
3173
3177
|
? deserializeAws_restJson1NumberFilterList(output.inspectorScore, context)
|
|
3174
3178
|
: undefined,
|
|
@@ -3221,6 +3225,7 @@ const deserializeAws_restJson1Finding = (output, context) => {
|
|
|
3221
3225
|
firstObservedAt: output.firstObservedAt != null
|
|
3222
3226
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.firstObservedAt)))
|
|
3223
3227
|
: undefined,
|
|
3228
|
+
fixAvailable: (0, smithy_client_1.expectString)(output.fixAvailable),
|
|
3224
3229
|
inspectorScore: (0, smithy_client_1.limitedParseDouble)(output.inspectorScore),
|
|
3225
3230
|
inspectorScoreDetails: output.inspectorScoreDetails != null
|
|
3226
3231
|
? deserializeAws_restJson1InspectorScoreDetails(output.inspectorScoreDetails, context)
|
|
@@ -3786,6 +3791,7 @@ const deserializeAws_restJson1VulnerablePackage = (output, context) => {
|
|
|
3786
3791
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
3787
3792
|
packageManager: (0, smithy_client_1.expectString)(output.packageManager),
|
|
3788
3793
|
release: (0, smithy_client_1.expectString)(output.release),
|
|
3794
|
+
remediation: (0, smithy_client_1.expectString)(output.remediation),
|
|
3789
3795
|
sourceLayerHash: (0, smithy_client_1.expectString)(output.sourceLayerHash),
|
|
3790
3796
|
version: (0, smithy_client_1.expectString)(output.version),
|
|
3791
3797
|
};
|
|
@@ -320,6 +320,7 @@ export var ScanStatusReason;
|
|
|
320
320
|
ScanStatusReason["EC2_INSTANCE_STOPPED"] = "EC2_INSTANCE_STOPPED";
|
|
321
321
|
ScanStatusReason["IMAGE_SIZE_EXCEEDED"] = "IMAGE_SIZE_EXCEEDED";
|
|
322
322
|
ScanStatusReason["INTERNAL_ERROR"] = "INTERNAL_ERROR";
|
|
323
|
+
ScanStatusReason["NO_INVENTORY"] = "NO_INVENTORY";
|
|
323
324
|
ScanStatusReason["NO_RESOURCES_FOUND"] = "NO_RESOURCES_FOUND";
|
|
324
325
|
ScanStatusReason["PENDING_DISABLE"] = "PENDING_DISABLE";
|
|
325
326
|
ScanStatusReason["PENDING_INITIAL_SCAN"] = "PENDING_INITIAL_SCAN";
|
|
@@ -327,6 +328,7 @@ export var ScanStatusReason;
|
|
|
327
328
|
ScanStatusReason["SCAN_ELIGIBILITY_EXPIRED"] = "SCAN_ELIGIBILITY_EXPIRED";
|
|
328
329
|
ScanStatusReason["SCAN_FREQUENCY_MANUAL"] = "SCAN_FREQUENCY_MANUAL";
|
|
329
330
|
ScanStatusReason["SCAN_FREQUENCY_SCAN_ON_PUSH"] = "SCAN_FREQUENCY_SCAN_ON_PUSH";
|
|
331
|
+
ScanStatusReason["STALE_INVENTORY"] = "STALE_INVENTORY";
|
|
330
332
|
ScanStatusReason["SUCCESSFUL"] = "SUCCESSFUL";
|
|
331
333
|
ScanStatusReason["UNMANAGED_EC2_INSTANCE"] = "UNMANAGED_EC2_INSTANCE";
|
|
332
334
|
ScanStatusReason["UNSUPPORTED_OS"] = "UNSUPPORTED_OS";
|
|
@@ -412,6 +414,12 @@ export var ExternalReportStatus;
|
|
|
412
414
|
ExternalReportStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
413
415
|
ExternalReportStatus["SUCCEEDED"] = "SUCCEEDED";
|
|
414
416
|
})(ExternalReportStatus || (ExternalReportStatus = {}));
|
|
417
|
+
export var FixAvailable;
|
|
418
|
+
(function (FixAvailable) {
|
|
419
|
+
FixAvailable["NO"] = "NO";
|
|
420
|
+
FixAvailable["PARTIAL"] = "PARTIAL";
|
|
421
|
+
FixAvailable["YES"] = "YES";
|
|
422
|
+
})(FixAvailable || (FixAvailable = {}));
|
|
415
423
|
export var NetworkProtocol;
|
|
416
424
|
(function (NetworkProtocol) {
|
|
417
425
|
NetworkProtocol["TCP"] = "TCP";
|
|
@@ -3329,7 +3329,7 @@ var serializeAws_restJson1FilterArnList = function (input, context) {
|
|
|
3329
3329
|
});
|
|
3330
3330
|
};
|
|
3331
3331
|
var serializeAws_restJson1FilterCriteria = function (input, context) {
|
|
3332
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.awsAccountId != null && {
|
|
3332
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.awsAccountId != null && {
|
|
3333
3333
|
awsAccountId: serializeAws_restJson1StringFilterList(input.awsAccountId, context),
|
|
3334
3334
|
})), (input.componentId != null && {
|
|
3335
3335
|
componentId: serializeAws_restJson1StringFilterList(input.componentId, context),
|
|
@@ -3359,6 +3359,8 @@ var serializeAws_restJson1FilterCriteria = function (input, context) {
|
|
|
3359
3359
|
findingType: serializeAws_restJson1StringFilterList(input.findingType, context),
|
|
3360
3360
|
})), (input.firstObservedAt != null && {
|
|
3361
3361
|
firstObservedAt: serializeAws_restJson1DateFilterList(input.firstObservedAt, context),
|
|
3362
|
+
})), (input.fixAvailable != null && {
|
|
3363
|
+
fixAvailable: serializeAws_restJson1StringFilterList(input.fixAvailable, context),
|
|
3362
3364
|
})), (input.inspectorScore != null && {
|
|
3363
3365
|
inspectorScore: serializeAws_restJson1NumberFilterList(input.inspectorScore, context),
|
|
3364
3366
|
})), (input.lastObservedAt != null && {
|
|
@@ -3907,6 +3909,7 @@ var deserializeAws_restJson1FilterCriteria = function (output, context) {
|
|
|
3907
3909
|
firstObservedAt: output.firstObservedAt != null
|
|
3908
3910
|
? deserializeAws_restJson1DateFilterList(output.firstObservedAt, context)
|
|
3909
3911
|
: undefined,
|
|
3912
|
+
fixAvailable: output.fixAvailable != null ? deserializeAws_restJson1StringFilterList(output.fixAvailable, context) : undefined,
|
|
3910
3913
|
inspectorScore: output.inspectorScore != null
|
|
3911
3914
|
? deserializeAws_restJson1NumberFilterList(output.inspectorScore, context)
|
|
3912
3915
|
: undefined,
|
|
@@ -3959,6 +3962,7 @@ var deserializeAws_restJson1Finding = function (output, context) {
|
|
|
3959
3962
|
firstObservedAt: output.firstObservedAt != null
|
|
3960
3963
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.firstObservedAt)))
|
|
3961
3964
|
: undefined,
|
|
3965
|
+
fixAvailable: __expectString(output.fixAvailable),
|
|
3962
3966
|
inspectorScore: __limitedParseDouble(output.inspectorScore),
|
|
3963
3967
|
inspectorScoreDetails: output.inspectorScoreDetails != null
|
|
3964
3968
|
? deserializeAws_restJson1InspectorScoreDetails(output.inspectorScoreDetails, context)
|
|
@@ -4523,6 +4527,7 @@ var deserializeAws_restJson1VulnerablePackage = function (output, context) {
|
|
|
4523
4527
|
name: __expectString(output.name),
|
|
4524
4528
|
packageManager: __expectString(output.packageManager),
|
|
4525
4529
|
release: __expectString(output.release),
|
|
4530
|
+
remediation: __expectString(output.remediation),
|
|
4526
4531
|
sourceLayerHash: __expectString(output.sourceLayerHash),
|
|
4527
4532
|
version: __expectString(output.version),
|
|
4528
4533
|
};
|
|
@@ -1514,6 +1514,7 @@ export declare enum ScanStatusReason {
|
|
|
1514
1514
|
EC2_INSTANCE_STOPPED = "EC2_INSTANCE_STOPPED",
|
|
1515
1515
|
IMAGE_SIZE_EXCEEDED = "IMAGE_SIZE_EXCEEDED",
|
|
1516
1516
|
INTERNAL_ERROR = "INTERNAL_ERROR",
|
|
1517
|
+
NO_INVENTORY = "NO_INVENTORY",
|
|
1517
1518
|
NO_RESOURCES_FOUND = "NO_RESOURCES_FOUND",
|
|
1518
1519
|
PENDING_DISABLE = "PENDING_DISABLE",
|
|
1519
1520
|
PENDING_INITIAL_SCAN = "PENDING_INITIAL_SCAN",
|
|
@@ -1521,6 +1522,7 @@ export declare enum ScanStatusReason {
|
|
|
1521
1522
|
SCAN_ELIGIBILITY_EXPIRED = "SCAN_ELIGIBILITY_EXPIRED",
|
|
1522
1523
|
SCAN_FREQUENCY_MANUAL = "SCAN_FREQUENCY_MANUAL",
|
|
1523
1524
|
SCAN_FREQUENCY_SCAN_ON_PUSH = "SCAN_FREQUENCY_SCAN_ON_PUSH",
|
|
1525
|
+
STALE_INVENTORY = "STALE_INVENTORY",
|
|
1524
1526
|
SUCCESSFUL = "SUCCESSFUL",
|
|
1525
1527
|
UNMANAGED_EC2_INSTANCE = "UNMANAGED_EC2_INSTANCE",
|
|
1526
1528
|
UNSUPPORTED_OS = "UNSUPPORTED_OS"
|
|
@@ -1775,6 +1777,10 @@ export interface FilterCriteria {
|
|
|
1775
1777
|
* <p>Details on the related vulnerabilities used to filter findings.</p>
|
|
1776
1778
|
*/
|
|
1777
1779
|
relatedVulnerabilities?: StringFilter[];
|
|
1780
|
+
/**
|
|
1781
|
+
* <p>Details on whether a fix is available through a version update. This value can be <code>YES</code>, <code>NO</code>, or <code>PARTIAL</code>. A <code>PARTIAL</code> fix means that some, but not all, of the packages identified in the finding have fixes available through updated versions.</p>
|
|
1782
|
+
*/
|
|
1783
|
+
fixAvailable?: StringFilter[];
|
|
1778
1784
|
}
|
|
1779
1785
|
export interface CreateFilterRequest {
|
|
1780
1786
|
/**
|
|
@@ -2189,6 +2195,11 @@ export interface Filter {
|
|
|
2189
2195
|
*/
|
|
2190
2196
|
tags?: Record<string, string>;
|
|
2191
2197
|
}
|
|
2198
|
+
export declare enum FixAvailable {
|
|
2199
|
+
NO = "NO",
|
|
2200
|
+
PARTIAL = "PARTIAL",
|
|
2201
|
+
YES = "YES"
|
|
2202
|
+
}
|
|
2192
2203
|
/**
|
|
2193
2204
|
* <p>Information about the Amazon Inspector score given to a finding.</p>
|
|
2194
2205
|
*/
|
|
@@ -2312,6 +2323,10 @@ export interface VulnerablePackage {
|
|
|
2312
2323
|
* <p>The version of the package that contains the vulnerability fix.</p>
|
|
2313
2324
|
*/
|
|
2314
2325
|
fixedInVersion?: string;
|
|
2326
|
+
/**
|
|
2327
|
+
* <p>The code to run in your environment to update packages with a fix available.</p>
|
|
2328
|
+
*/
|
|
2329
|
+
remediation?: string;
|
|
2315
2330
|
}
|
|
2316
2331
|
/**
|
|
2317
2332
|
* <p>Information about a package vulnerability finding.</p>
|
|
@@ -2324,7 +2339,7 @@ export interface PackageVulnerabilityDetails {
|
|
|
2324
2339
|
/**
|
|
2325
2340
|
* <p>The packages impacted by this vulnerability.</p>
|
|
2326
2341
|
*/
|
|
2327
|
-
vulnerablePackages
|
|
2342
|
+
vulnerablePackages?: VulnerablePackage[];
|
|
2328
2343
|
/**
|
|
2329
2344
|
* <p>The source of the vulnerability information.</p>
|
|
2330
2345
|
*/
|
|
@@ -2512,6 +2527,10 @@ export interface Finding {
|
|
|
2512
2527
|
* <p>An object that contains the details of a package vulnerability finding.</p>
|
|
2513
2528
|
*/
|
|
2514
2529
|
packageVulnerabilityDetails?: PackageVulnerabilityDetails;
|
|
2530
|
+
/**
|
|
2531
|
+
* <p>Details on whether a fix is available through a version update. This value can be <code>YES</code>, <code>NO</code>, or <code>PARTIAL</code>. A <code>PARTIAL</code> fix means that some, but not all, of the packages identified in the finding have fixes available through updated versions.</p>
|
|
2532
|
+
*/
|
|
2533
|
+
fixAvailable?: FixAvailable | string;
|
|
2515
2534
|
}
|
|
2516
2535
|
export interface GetConfigurationRequest {
|
|
2517
2536
|
}
|
|
@@ -996,6 +996,7 @@ export declare enum ScanStatusReason {
|
|
|
996
996
|
EC2_INSTANCE_STOPPED = "EC2_INSTANCE_STOPPED",
|
|
997
997
|
IMAGE_SIZE_EXCEEDED = "IMAGE_SIZE_EXCEEDED",
|
|
998
998
|
INTERNAL_ERROR = "INTERNAL_ERROR",
|
|
999
|
+
NO_INVENTORY = "NO_INVENTORY",
|
|
999
1000
|
NO_RESOURCES_FOUND = "NO_RESOURCES_FOUND",
|
|
1000
1001
|
PENDING_DISABLE = "PENDING_DISABLE",
|
|
1001
1002
|
PENDING_INITIAL_SCAN = "PENDING_INITIAL_SCAN",
|
|
@@ -1003,6 +1004,7 @@ export declare enum ScanStatusReason {
|
|
|
1003
1004
|
SCAN_ELIGIBILITY_EXPIRED = "SCAN_ELIGIBILITY_EXPIRED",
|
|
1004
1005
|
SCAN_FREQUENCY_MANUAL = "SCAN_FREQUENCY_MANUAL",
|
|
1005
1006
|
SCAN_FREQUENCY_SCAN_ON_PUSH = "SCAN_FREQUENCY_SCAN_ON_PUSH",
|
|
1007
|
+
STALE_INVENTORY = "STALE_INVENTORY",
|
|
1006
1008
|
SUCCESSFUL = "SUCCESSFUL",
|
|
1007
1009
|
UNMANAGED_EC2_INSTANCE = "UNMANAGED_EC2_INSTANCE",
|
|
1008
1010
|
UNSUPPORTED_OS = "UNSUPPORTED_OS"
|
|
@@ -1141,6 +1143,8 @@ export interface FilterCriteria {
|
|
|
1141
1143
|
vulnerablePackages?: PackageFilter[];
|
|
1142
1144
|
|
|
1143
1145
|
relatedVulnerabilities?: StringFilter[];
|
|
1146
|
+
|
|
1147
|
+
fixAvailable?: StringFilter[];
|
|
1144
1148
|
}
|
|
1145
1149
|
export interface CreateFilterRequest {
|
|
1146
1150
|
|
|
@@ -1392,6 +1396,11 @@ export interface Filter {
|
|
|
1392
1396
|
|
|
1393
1397
|
tags?: Record<string, string>;
|
|
1394
1398
|
}
|
|
1399
|
+
export declare enum FixAvailable {
|
|
1400
|
+
NO = "NO",
|
|
1401
|
+
PARTIAL = "PARTIAL",
|
|
1402
|
+
YES = "YES"
|
|
1403
|
+
}
|
|
1395
1404
|
|
|
1396
1405
|
export interface InspectorScoreDetails {
|
|
1397
1406
|
|
|
@@ -1467,13 +1476,15 @@ export interface VulnerablePackage {
|
|
|
1467
1476
|
filePath?: string;
|
|
1468
1477
|
|
|
1469
1478
|
fixedInVersion?: string;
|
|
1479
|
+
|
|
1480
|
+
remediation?: string;
|
|
1470
1481
|
}
|
|
1471
1482
|
|
|
1472
1483
|
export interface PackageVulnerabilityDetails {
|
|
1473
1484
|
|
|
1474
1485
|
vulnerabilityId: string | undefined;
|
|
1475
1486
|
|
|
1476
|
-
vulnerablePackages
|
|
1487
|
+
vulnerablePackages?: VulnerablePackage[];
|
|
1477
1488
|
|
|
1478
1489
|
source: string | undefined;
|
|
1479
1490
|
|
|
@@ -1581,6 +1592,8 @@ export interface Finding {
|
|
|
1581
1592
|
networkReachabilityDetails?: NetworkReachabilityDetails;
|
|
1582
1593
|
|
|
1583
1594
|
packageVulnerabilityDetails?: PackageVulnerabilityDetails;
|
|
1595
|
+
|
|
1596
|
+
fixAvailable?: FixAvailable | string;
|
|
1584
1597
|
}
|
|
1585
1598
|
export interface GetConfigurationRequest {
|
|
1586
1599
|
}
|
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.
|
|
4
|
+
"version": "3.166.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",
|