@aws-sdk/client-securityhub 3.451.0 → 3.458.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 (43) hide show
  1. package/README.md +83 -67
  2. package/dist-cjs/SecurityHub.js +4 -0
  3. package/dist-cjs/commands/GetSecurityControlDefinitionCommand.js +51 -0
  4. package/dist-cjs/commands/UpdateSecurityControlCommand.js +51 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_2.js +71 -1
  7. package/dist-cjs/protocols/Aws_restJson1.js +349 -5
  8. package/dist-es/SecurityHub.js +4 -0
  9. package/dist-es/commands/GetSecurityControlDefinitionCommand.js +47 -0
  10. package/dist-es/commands/UpdateSecurityControlCommand.js +47 -0
  11. package/dist-es/commands/index.js +2 -0
  12. package/dist-es/models/models_2.js +69 -0
  13. package/dist-es/protocols/Aws_restJson1.js +343 -3
  14. package/dist-types/SecurityHub.d.ts +14 -0
  15. package/dist-types/SecurityHubClient.d.ts +4 -2
  16. package/dist-types/commands/BatchGetAutomationRulesCommand.d.ts +4 -0
  17. package/dist-types/commands/BatchGetSecurityControlsCommand.d.ts +23 -0
  18. package/dist-types/commands/BatchImportFindingsCommand.d.ts +9 -3
  19. package/dist-types/commands/BatchUpdateAutomationRulesCommand.d.ts +4 -0
  20. package/dist-types/commands/CreateAutomationRuleCommand.d.ts +4 -0
  21. package/dist-types/commands/CreateInsightCommand.d.ts +14 -0
  22. package/dist-types/commands/GetFindingsCommand.d.ts +23 -3
  23. package/dist-types/commands/GetInsightsCommand.d.ts +14 -0
  24. package/dist-types/commands/GetSecurityControlDefinitionCommand.d.ts +158 -0
  25. package/dist-types/commands/ListSecurityControlDefinitionsCommand.d.ts +59 -0
  26. package/dist-types/commands/UpdateFindingsCommand.d.ts +14 -0
  27. package/dist-types/commands/UpdateInsightCommand.d.ts +14 -0
  28. package/dist-types/commands/UpdateSecurityControlCommand.d.ts +118 -0
  29. package/dist-types/commands/index.d.ts +2 -0
  30. package/dist-types/models/models_0.d.ts +15 -1
  31. package/dist-types/models/models_1.d.ts +29 -37
  32. package/dist-types/models/models_2.d.ts +987 -147
  33. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  34. package/dist-types/ts3.4/SecurityHub.d.ts +34 -0
  35. package/dist-types/ts3.4/SecurityHubClient.d.ts +12 -0
  36. package/dist-types/ts3.4/commands/GetSecurityControlDefinitionCommand.d.ts +42 -0
  37. package/dist-types/ts3.4/commands/UpdateSecurityControlCommand.d.ts +42 -0
  38. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  39. package/dist-types/ts3.4/models/models_0.d.ts +2 -0
  40. package/dist-types/ts3.4/models/models_1.d.ts +5 -6
  41. package/dist-types/ts3.4/models/models_2.d.ts +361 -15
  42. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  43. package/package.json +3 -3
@@ -50,6 +50,7 @@ const GetInsightsCommand_1 = require("./commands/GetInsightsCommand");
50
50
  const GetInvitationsCountCommand_1 = require("./commands/GetInvitationsCountCommand");
51
51
  const GetMasterAccountCommand_1 = require("./commands/GetMasterAccountCommand");
52
52
  const GetMembersCommand_1 = require("./commands/GetMembersCommand");
53
+ const GetSecurityControlDefinitionCommand_1 = require("./commands/GetSecurityControlDefinitionCommand");
53
54
  const InviteMembersCommand_1 = require("./commands/InviteMembersCommand");
54
55
  const ListAutomationRulesCommand_1 = require("./commands/ListAutomationRulesCommand");
55
56
  const ListEnabledProductsForImportCommand_1 = require("./commands/ListEnabledProductsForImportCommand");
@@ -67,6 +68,7 @@ const UpdateFindingAggregatorCommand_1 = require("./commands/UpdateFindingAggreg
67
68
  const UpdateFindingsCommand_1 = require("./commands/UpdateFindingsCommand");
68
69
  const UpdateInsightCommand_1 = require("./commands/UpdateInsightCommand");
69
70
  const UpdateOrganizationConfigurationCommand_1 = require("./commands/UpdateOrganizationConfigurationCommand");
71
+ const UpdateSecurityControlCommand_1 = require("./commands/UpdateSecurityControlCommand");
70
72
  const UpdateSecurityHubConfigurationCommand_1 = require("./commands/UpdateSecurityHubConfigurationCommand");
71
73
  const UpdateStandardsControlCommand_1 = require("./commands/UpdateStandardsControlCommand");
72
74
  const SecurityHubClient_1 = require("./SecurityHubClient");
@@ -119,6 +121,7 @@ const commands = {
119
121
  GetInvitationsCountCommand: GetInvitationsCountCommand_1.GetInvitationsCountCommand,
120
122
  GetMasterAccountCommand: GetMasterAccountCommand_1.GetMasterAccountCommand,
121
123
  GetMembersCommand: GetMembersCommand_1.GetMembersCommand,
124
+ GetSecurityControlDefinitionCommand: GetSecurityControlDefinitionCommand_1.GetSecurityControlDefinitionCommand,
122
125
  InviteMembersCommand: InviteMembersCommand_1.InviteMembersCommand,
123
126
  ListAutomationRulesCommand: ListAutomationRulesCommand_1.ListAutomationRulesCommand,
124
127
  ListEnabledProductsForImportCommand: ListEnabledProductsForImportCommand_1.ListEnabledProductsForImportCommand,
@@ -136,6 +139,7 @@ const commands = {
136
139
  UpdateFindingsCommand: UpdateFindingsCommand_1.UpdateFindingsCommand,
137
140
  UpdateInsightCommand: UpdateInsightCommand_1.UpdateInsightCommand,
138
141
  UpdateOrganizationConfigurationCommand: UpdateOrganizationConfigurationCommand_1.UpdateOrganizationConfigurationCommand,
142
+ UpdateSecurityControlCommand: UpdateSecurityControlCommand_1.UpdateSecurityControlCommand,
139
143
  UpdateSecurityHubConfigurationCommand: UpdateSecurityHubConfigurationCommand_1.UpdateSecurityHubConfigurationCommand,
140
144
  UpdateStandardsControlCommand: UpdateStandardsControlCommand_1.UpdateStandardsControlCommand,
141
145
  };
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetSecurityControlDefinitionCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class GetSecurityControlDefinitionCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetSecurityControlDefinitionCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "SecurityHubClient";
29
+ const commandName = "GetSecurityControlDefinitionCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "SecurityHubAPIService",
38
+ operation: "GetSecurityControlDefinition",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_GetSecurityControlDefinitionCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_GetSecurityControlDefinitionCommand)(output, context);
49
+ }
50
+ }
51
+ exports.GetSecurityControlDefinitionCommand = GetSecurityControlDefinitionCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateSecurityControlCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class UpdateSecurityControlCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateSecurityControlCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "SecurityHubClient";
29
+ const commandName = "UpdateSecurityControlCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "SecurityHubAPIService",
38
+ operation: "UpdateSecurityControl",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_UpdateSecurityControlCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_UpdateSecurityControlCommand)(output, context);
49
+ }
50
+ }
51
+ exports.UpdateSecurityControlCommand = UpdateSecurityControlCommand;
@@ -49,6 +49,7 @@ tslib_1.__exportStar(require("./GetInsightsCommand"), exports);
49
49
  tslib_1.__exportStar(require("./GetInvitationsCountCommand"), exports);
50
50
  tslib_1.__exportStar(require("./GetMasterAccountCommand"), exports);
51
51
  tslib_1.__exportStar(require("./GetMembersCommand"), exports);
52
+ tslib_1.__exportStar(require("./GetSecurityControlDefinitionCommand"), exports);
52
53
  tslib_1.__exportStar(require("./InviteMembersCommand"), exports);
53
54
  tslib_1.__exportStar(require("./ListAutomationRulesCommand"), exports);
54
55
  tslib_1.__exportStar(require("./ListEnabledProductsForImportCommand"), exports);
@@ -66,5 +67,6 @@ tslib_1.__exportStar(require("./UpdateFindingAggregatorCommand"), exports);
66
67
  tslib_1.__exportStar(require("./UpdateFindingsCommand"), exports);
67
68
  tslib_1.__exportStar(require("./UpdateInsightCommand"), exports);
68
69
  tslib_1.__exportStar(require("./UpdateOrganizationConfigurationCommand"), exports);
70
+ tslib_1.__exportStar(require("./UpdateSecurityControlCommand"), exports);
69
71
  tslib_1.__exportStar(require("./UpdateSecurityHubConfigurationCommand"), exports);
70
72
  tslib_1.__exportStar(require("./UpdateStandardsControlCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RegionAvailabilityStatus = exports.SortOrder = exports.FindingHistoryUpdateSourceType = exports.IntegrationType = exports.ResourceConflictException = exports.ControlFindingGenerator = exports.UnprocessedErrorCode = exports.SeverityRating = exports.ControlStatus = exports.StatusReasonCode = exports.StandardsStatus = exports.WorkflowState = exports.VulnerabilityFixAvailable = exports.VulnerabilityExploitAvailable = exports.ThreatIntelIndicatorType = exports.ThreatIntelIndicatorCategory = exports.Partition = void 0;
3
+ exports.ResourceInUseException = exports.RegionAvailabilityStatus = exports.SortOrder = exports.FindingHistoryUpdateSourceType = exports.IntegrationType = exports.SecurityControlProperty = exports.ResourceConflictException = exports.ControlFindingGenerator = exports.ConfigurationOptions = exports.UnprocessedErrorCode = exports.UpdateStatus = exports.SeverityRating = exports.ControlStatus = exports.ParameterValueType = exports.ParameterValue = exports.StatusReasonCode = exports.StandardsStatus = exports.WorkflowState = exports.VulnerabilityFixAvailable = exports.VulnerabilityExploitAvailable = exports.ThreatIntelIndicatorType = exports.ThreatIntelIndicatorCategory = exports.Partition = void 0;
4
4
  const SecurityHubServiceException_1 = require("./SecurityHubServiceException");
5
5
  exports.Partition = {
6
6
  AWS: "aws",
@@ -55,6 +55,32 @@ exports.StatusReasonCode = {
55
55
  INTERNAL_ERROR: "INTERNAL_ERROR",
56
56
  NO_AVAILABLE_CONFIGURATION_RECORDER: "NO_AVAILABLE_CONFIGURATION_RECORDER",
57
57
  };
58
+ var ParameterValue;
59
+ (function (ParameterValue) {
60
+ ParameterValue.visit = (value, visitor) => {
61
+ if (value.Integer !== undefined)
62
+ return visitor.Integer(value.Integer);
63
+ if (value.IntegerList !== undefined)
64
+ return visitor.IntegerList(value.IntegerList);
65
+ if (value.Double !== undefined)
66
+ return visitor.Double(value.Double);
67
+ if (value.String !== undefined)
68
+ return visitor.String(value.String);
69
+ if (value.StringList !== undefined)
70
+ return visitor.StringList(value.StringList);
71
+ if (value.Boolean !== undefined)
72
+ return visitor.Boolean(value.Boolean);
73
+ if (value.Enum !== undefined)
74
+ return visitor.Enum(value.Enum);
75
+ if (value.EnumList !== undefined)
76
+ return visitor.EnumList(value.EnumList);
77
+ return visitor._(value.$unknown[0], value.$unknown[1]);
78
+ };
79
+ })(ParameterValue = exports.ParameterValue || (exports.ParameterValue = {}));
80
+ exports.ParameterValueType = {
81
+ CUSTOM: "CUSTOM",
82
+ DEFAULT: "DEFAULT",
83
+ };
58
84
  exports.ControlStatus = {
59
85
  DISABLED: "DISABLED",
60
86
  ENABLED: "ENABLED",
@@ -65,12 +91,38 @@ exports.SeverityRating = {
65
91
  LOW: "LOW",
66
92
  MEDIUM: "MEDIUM",
67
93
  };
94
+ exports.UpdateStatus = {
95
+ READY: "READY",
96
+ UPDATING: "UPDATING",
97
+ };
68
98
  exports.UnprocessedErrorCode = {
69
99
  ACCESS_DENIED: "ACCESS_DENIED",
70
100
  INVALID_INPUT: "INVALID_INPUT",
71
101
  LIMIT_EXCEEDED: "LIMIT_EXCEEDED",
72
102
  NOT_FOUND: "NOT_FOUND",
73
103
  };
104
+ var ConfigurationOptions;
105
+ (function (ConfigurationOptions) {
106
+ ConfigurationOptions.visit = (value, visitor) => {
107
+ if (value.Integer !== undefined)
108
+ return visitor.Integer(value.Integer);
109
+ if (value.IntegerList !== undefined)
110
+ return visitor.IntegerList(value.IntegerList);
111
+ if (value.Double !== undefined)
112
+ return visitor.Double(value.Double);
113
+ if (value.String !== undefined)
114
+ return visitor.String(value.String);
115
+ if (value.StringList !== undefined)
116
+ return visitor.StringList(value.StringList);
117
+ if (value.Boolean !== undefined)
118
+ return visitor.Boolean(value.Boolean);
119
+ if (value.Enum !== undefined)
120
+ return visitor.Enum(value.Enum);
121
+ if (value.EnumList !== undefined)
122
+ return visitor.EnumList(value.EnumList);
123
+ return visitor._(value.$unknown[0], value.$unknown[1]);
124
+ };
125
+ })(ConfigurationOptions = exports.ConfigurationOptions || (exports.ConfigurationOptions = {}));
74
126
  exports.ControlFindingGenerator = {
75
127
  SECURITY_CONTROL: "SECURITY_CONTROL",
76
128
  STANDARD_CONTROL: "STANDARD_CONTROL",
@@ -90,6 +142,9 @@ class ResourceConflictException extends SecurityHubServiceException_1.SecurityHu
90
142
  }
91
143
  }
92
144
  exports.ResourceConflictException = ResourceConflictException;
145
+ exports.SecurityControlProperty = {
146
+ Parameters: "Parameters",
147
+ };
93
148
  exports.IntegrationType = {
94
149
  RECEIVE_FINDINGS_FROM_SECURITY_HUB: "RECEIVE_FINDINGS_FROM_SECURITY_HUB",
95
150
  SEND_FINDINGS_TO_SECURITY_HUB: "SEND_FINDINGS_TO_SECURITY_HUB",
@@ -107,3 +162,18 @@ exports.RegionAvailabilityStatus = {
107
162
  AVAILABLE: "AVAILABLE",
108
163
  UNAVAILABLE: "UNAVAILABLE",
109
164
  };
165
+ class ResourceInUseException extends SecurityHubServiceException_1.SecurityHubServiceException {
166
+ constructor(opts) {
167
+ super({
168
+ name: "ResourceInUseException",
169
+ $fault: "client",
170
+ ...opts,
171
+ });
172
+ this.name = "ResourceInUseException";
173
+ this.$fault = "client";
174
+ Object.setPrototypeOf(this, ResourceInUseException.prototype);
175
+ this.Message = opts.Message;
176
+ this.Code = opts.Code;
177
+ }
178
+ }
179
+ exports.ResourceInUseException = ResourceInUseException;