@aws-sdk/client-inspector2 3.121.0 → 3.130.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.
@@ -12,6 +12,7 @@ import { DisableDelegatedAdminAccountCommand, } from "./commands/DisableDelegate
12
12
  import { DisassociateMemberCommand, } from "./commands/DisassociateMemberCommand";
13
13
  import { EnableCommand } from "./commands/EnableCommand";
14
14
  import { EnableDelegatedAdminAccountCommand, } from "./commands/EnableDelegatedAdminAccountCommand";
15
+ import { GetConfigurationCommand, } from "./commands/GetConfigurationCommand";
15
16
  import { GetDelegatedAdminAccountCommand, } from "./commands/GetDelegatedAdminAccountCommand";
16
17
  import { GetFindingsReportStatusCommand, } from "./commands/GetFindingsReportStatusCommand";
17
18
  import { GetMemberCommand } from "./commands/GetMemberCommand";
@@ -27,6 +28,7 @@ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceComma
27
28
  import { ListUsageTotalsCommand, } from "./commands/ListUsageTotalsCommand";
28
29
  import { TagResourceCommand } from "./commands/TagResourceCommand";
29
30
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
31
+ import { UpdateConfigurationCommand, } from "./commands/UpdateConfigurationCommand";
30
32
  import { UpdateFilterCommand, } from "./commands/UpdateFilterCommand";
31
33
  import { UpdateOrganizationConfigurationCommand, } from "./commands/UpdateOrganizationConfigurationCommand";
32
34
  import { Inspector2Client } from "./Inspector2Client";
@@ -217,6 +219,20 @@ var Inspector2 = (function (_super) {
217
219
  return this.send(command, optionsOrCb);
218
220
  }
219
221
  };
222
+ Inspector2.prototype.getConfiguration = function (args, optionsOrCb, cb) {
223
+ var command = new GetConfigurationCommand(args);
224
+ if (typeof optionsOrCb === "function") {
225
+ this.send(command, optionsOrCb);
226
+ }
227
+ else if (typeof cb === "function") {
228
+ if (typeof optionsOrCb !== "object")
229
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
230
+ this.send(command, optionsOrCb || {}, cb);
231
+ }
232
+ else {
233
+ return this.send(command, optionsOrCb);
234
+ }
235
+ };
220
236
  Inspector2.prototype.getDelegatedAdminAccount = function (args, optionsOrCb, cb) {
221
237
  var command = new GetDelegatedAdminAccountCommand(args);
222
238
  if (typeof optionsOrCb === "function") {
@@ -427,6 +443,20 @@ var Inspector2 = (function (_super) {
427
443
  return this.send(command, optionsOrCb);
428
444
  }
429
445
  };
446
+ Inspector2.prototype.updateConfiguration = function (args, optionsOrCb, cb) {
447
+ var command = new UpdateConfigurationCommand(args);
448
+ if (typeof optionsOrCb === "function") {
449
+ this.send(command, optionsOrCb);
450
+ }
451
+ else if (typeof cb === "function") {
452
+ if (typeof optionsOrCb !== "object")
453
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
454
+ this.send(command, optionsOrCb || {}, cb);
455
+ }
456
+ else {
457
+ return this.send(command, optionsOrCb);
458
+ }
459
+ };
430
460
  Inspector2.prototype.updateFilter = function (args, optionsOrCb, cb) {
431
461
  var command = new UpdateFilterCommand(args);
432
462
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetConfigurationRequest, GetConfigurationResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1GetConfigurationCommand, serializeAws_restJson1GetConfigurationCommand, } from "../protocols/Aws_restJson1";
6
+ var GetConfigurationCommand = (function (_super) {
7
+ __extends(GetConfigurationCommand, _super);
8
+ function GetConfigurationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ GetConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "Inspector2Client";
18
+ var commandName = "GetConfigurationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: GetConfigurationRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: GetConfigurationResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetConfigurationCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1GetConfigurationCommand(input, context);
33
+ };
34
+ GetConfigurationCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1GetConfigurationCommand(output, context);
36
+ };
37
+ return GetConfigurationCommand;
38
+ }($Command));
39
+ export { GetConfigurationCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateConfigurationRequest, UpdateConfigurationResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1UpdateConfigurationCommand, serializeAws_restJson1UpdateConfigurationCommand, } from "../protocols/Aws_restJson1";
6
+ var UpdateConfigurationCommand = (function (_super) {
7
+ __extends(UpdateConfigurationCommand, _super);
8
+ function UpdateConfigurationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ UpdateConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "Inspector2Client";
18
+ var commandName = "UpdateConfigurationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: UpdateConfigurationRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: UpdateConfigurationResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateConfigurationCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1UpdateConfigurationCommand(input, context);
33
+ };
34
+ UpdateConfigurationCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1UpdateConfigurationCommand(output, context);
36
+ };
37
+ return UpdateConfigurationCommand;
38
+ }($Command));
39
+ export { UpdateConfigurationCommand };
@@ -11,6 +11,7 @@ export * from "./DisableDelegatedAdminAccountCommand";
11
11
  export * from "./DisassociateMemberCommand";
12
12
  export * from "./EnableCommand";
13
13
  export * from "./EnableDelegatedAdminAccountCommand";
14
+ export * from "./GetConfigurationCommand";
14
15
  export * from "./GetDelegatedAdminAccountCommand";
15
16
  export * from "./GetFindingsReportStatusCommand";
16
17
  export * from "./GetMemberCommand";
@@ -26,5 +27,6 @@ export * from "./ListTagsForResourceCommand";
26
27
  export * from "./ListUsageTotalsCommand";
27
28
  export * from "./TagResourceCommand";
28
29
  export * from "./UntagResourceCommand";
30
+ export * from "./UpdateConfigurationCommand";
29
31
  export * from "./UpdateFilterCommand";
30
32
  export * from "./UpdateOrganizationConfigurationCommand";
@@ -65,6 +65,7 @@ export var AccountAggregationResponse;
65
65
  export var ErrorCode;
66
66
  (function (ErrorCode) {
67
67
  ErrorCode["ACCESS_DENIED"] = "ACCESS_DENIED";
68
+ ErrorCode["ACCOUNT_IS_ISOLATED"] = "ACCOUNT_IS_ISOLATED";
68
69
  ErrorCode["ALREADY_ENABLED"] = "ALREADY_ENABLED";
69
70
  ErrorCode["DISABLE_IN_PROGRESS"] = "DISABLE_IN_PROGRESS";
70
71
  ErrorCode["DISASSOCIATE_ALL_MEMBERS"] = "DISASSOCIATE_ALL_MEMBERS";
@@ -570,6 +571,7 @@ export var ScanStatusReason;
570
571
  ScanStatusReason["IMAGE_SIZE_EXCEEDED"] = "IMAGE_SIZE_EXCEEDED";
571
572
  ScanStatusReason["INTERNAL_ERROR"] = "INTERNAL_ERROR";
572
573
  ScanStatusReason["NO_RESOURCES_FOUND"] = "NO_RESOURCES_FOUND";
574
+ ScanStatusReason["PENDING_DISABLE"] = "PENDING_DISABLE";
573
575
  ScanStatusReason["PENDING_INITIAL_SCAN"] = "PENDING_INITIAL_SCAN";
574
576
  ScanStatusReason["RESOURCE_TERMINATED"] = "RESOURCE_TERMINATED";
575
577
  ScanStatusReason["SCAN_ELIGIBILITY_EXPIRED"] = "SCAN_ELIGIBILITY_EXPIRED";
@@ -749,6 +751,30 @@ export var DisassociateMemberResponse;
749
751
  (function (DisassociateMemberResponse) {
750
752
  DisassociateMemberResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
751
753
  })(DisassociateMemberResponse || (DisassociateMemberResponse = {}));
754
+ export var EcrRescanDuration;
755
+ (function (EcrRescanDuration) {
756
+ EcrRescanDuration["DAYS_180"] = "DAYS_180";
757
+ EcrRescanDuration["DAYS_30"] = "DAYS_30";
758
+ EcrRescanDuration["LIFETIME"] = "LIFETIME";
759
+ })(EcrRescanDuration || (EcrRescanDuration = {}));
760
+ export var EcrConfiguration;
761
+ (function (EcrConfiguration) {
762
+ EcrConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
763
+ })(EcrConfiguration || (EcrConfiguration = {}));
764
+ export var EcrRescanDurationStatus;
765
+ (function (EcrRescanDurationStatus) {
766
+ EcrRescanDurationStatus["FAILED"] = "FAILED";
767
+ EcrRescanDurationStatus["PENDING"] = "PENDING";
768
+ EcrRescanDurationStatus["SUCCESS"] = "SUCCESS";
769
+ })(EcrRescanDurationStatus || (EcrRescanDurationStatus = {}));
770
+ export var EcrRescanDurationState;
771
+ (function (EcrRescanDurationState) {
772
+ EcrRescanDurationState.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
773
+ })(EcrRescanDurationState || (EcrRescanDurationState = {}));
774
+ export var EcrConfigurationState;
775
+ (function (EcrConfigurationState) {
776
+ EcrConfigurationState.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
777
+ })(EcrConfigurationState || (EcrConfigurationState = {}));
752
778
  export var EnableRequest;
753
779
  (function (EnableRequest) {
754
780
  EnableRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -809,11 +835,15 @@ export var PackageManager;
809
835
  PackageManager["GOBINARY"] = "GOBINARY";
810
836
  PackageManager["GOMOD"] = "GOMOD";
811
837
  PackageManager["JAR"] = "JAR";
838
+ PackageManager["NODEPKG"] = "NODEPKG";
812
839
  PackageManager["NPM"] = "NPM";
813
840
  PackageManager["NUGET"] = "NUGET";
814
841
  PackageManager["OS"] = "OS";
842
+ PackageManager["PIP"] = "PIP";
815
843
  PackageManager["PIPENV"] = "PIPENV";
816
844
  PackageManager["POETRY"] = "POETRY";
845
+ PackageManager["POM"] = "POM";
846
+ PackageManager["PYTHONPKG"] = "PYTHONPKG";
817
847
  PackageManager["YARN"] = "YARN";
818
848
  })(PackageManager || (PackageManager = {}));
819
849
  export var VulnerablePackage;
@@ -870,6 +900,14 @@ export var Finding;
870
900
  (function (Finding) {
871
901
  Finding.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
872
902
  })(Finding || (Finding = {}));
903
+ export var GetConfigurationRequest;
904
+ (function (GetConfigurationRequest) {
905
+ GetConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
906
+ })(GetConfigurationRequest || (GetConfigurationRequest = {}));
907
+ export var GetConfigurationResponse;
908
+ (function (GetConfigurationResponse) {
909
+ GetConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
910
+ })(GetConfigurationResponse || (GetConfigurationResponse = {}));
873
911
  export var GetDelegatedAdminAccountRequest;
874
912
  (function (GetDelegatedAdminAccountRequest) {
875
913
  GetDelegatedAdminAccountRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -884,8 +922,12 @@ export var GetFindingsReportStatusRequest;
884
922
  })(GetFindingsReportStatusRequest || (GetFindingsReportStatusRequest = {}));
885
923
  export var ReportingErrorCode;
886
924
  (function (ReportingErrorCode) {
925
+ ReportingErrorCode["BUCKET_NOT_FOUND"] = "BUCKET_NOT_FOUND";
926
+ ReportingErrorCode["INCOMPATIBLE_BUCKET_REGION"] = "INCOMPATIBLE_BUCKET_REGION";
887
927
  ReportingErrorCode["INTERNAL_ERROR"] = "INTERNAL_ERROR";
888
928
  ReportingErrorCode["INVALID_PERMISSIONS"] = "INVALID_PERMISSIONS";
929
+ ReportingErrorCode["MALFORMED_KMS_KEY"] = "MALFORMED_KMS_KEY";
930
+ ReportingErrorCode["NO_FINDINGS_FOUND"] = "NO_FINDINGS_FOUND";
889
931
  })(ReportingErrorCode || (ReportingErrorCode = {}));
890
932
  export var GetFindingsReportStatusResponse;
891
933
  (function (GetFindingsReportStatusResponse) {
@@ -1054,6 +1096,14 @@ export var UntagResourceResponse;
1054
1096
  (function (UntagResourceResponse) {
1055
1097
  UntagResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1056
1098
  })(UntagResourceResponse || (UntagResourceResponse = {}));
1099
+ export var UpdateConfigurationRequest;
1100
+ (function (UpdateConfigurationRequest) {
1101
+ UpdateConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1102
+ })(UpdateConfigurationRequest || (UpdateConfigurationRequest = {}));
1103
+ export var UpdateConfigurationResponse;
1104
+ (function (UpdateConfigurationResponse) {
1105
+ UpdateConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1106
+ })(UpdateConfigurationResponse || (UpdateConfigurationResponse = {}));
1057
1107
  export var UpdateFilterRequest;
1058
1108
  (function (UpdateFilterRequest) {
1059
1109
  UpdateFilterRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };