@aws-sdk/client-securityhub 3.454.0 → 3.459.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 +163 -67
- package/dist-cjs/SecurityHub.js +24 -0
- package/dist-cjs/commands/BatchGetConfigurationPolicyAssociationsCommand.js +51 -0
- package/dist-cjs/commands/CreateConfigurationPolicyCommand.js +51 -0
- package/dist-cjs/commands/DeleteConfigurationPolicyCommand.js +51 -0
- package/dist-cjs/commands/GetConfigurationPolicyAssociationCommand.js +51 -0
- package/dist-cjs/commands/GetConfigurationPolicyCommand.js +51 -0
- package/dist-cjs/commands/GetSecurityControlDefinitionCommand.js +51 -0
- package/dist-cjs/commands/ListConfigurationPoliciesCommand.js +51 -0
- package/dist-cjs/commands/ListConfigurationPolicyAssociationsCommand.js +51 -0
- package/dist-cjs/commands/StartConfigurationPolicyAssociationCommand.js +51 -0
- package/dist-cjs/commands/StartConfigurationPolicyDisassociationCommand.js +51 -0
- package/dist-cjs/commands/UpdateConfigurationPolicyCommand.js +51 -0
- package/dist-cjs/commands/UpdateSecurityControlCommand.js +51 -0
- package/dist-cjs/commands/index.js +12 -0
- package/dist-cjs/models/models_0.js +10 -1
- package/dist-cjs/models/models_2.js +104 -1
- package/dist-cjs/pagination/ListConfigurationPoliciesPaginator.js +29 -0
- package/dist-cjs/pagination/ListConfigurationPolicyAssociationsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1283 -31
- package/dist-es/SecurityHub.js +24 -0
- package/dist-es/commands/BatchGetConfigurationPolicyAssociationsCommand.js +47 -0
- package/dist-es/commands/CreateConfigurationPolicyCommand.js +47 -0
- package/dist-es/commands/DeleteConfigurationPolicyCommand.js +47 -0
- package/dist-es/commands/GetConfigurationPolicyAssociationCommand.js +47 -0
- package/dist-es/commands/GetConfigurationPolicyCommand.js +47 -0
- package/dist-es/commands/GetSecurityControlDefinitionCommand.js +47 -0
- package/dist-es/commands/ListConfigurationPoliciesCommand.js +47 -0
- package/dist-es/commands/ListConfigurationPolicyAssociationsCommand.js +47 -0
- package/dist-es/commands/StartConfigurationPolicyAssociationCommand.js +47 -0
- package/dist-es/commands/StartConfigurationPolicyDisassociationCommand.js +47 -0
- package/dist-es/commands/UpdateConfigurationPolicyCommand.js +47 -0
- package/dist-es/commands/UpdateSecurityControlCommand.js +47 -0
- package/dist-es/commands/index.js +12 -0
- package/dist-es/models/models_0.js +9 -0
- package/dist-es/models/models_2.js +102 -0
- package/dist-es/pagination/ListConfigurationPoliciesPaginator.js +25 -0
- package/dist-es/pagination/ListConfigurationPolicyAssociationsPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +1258 -31
- package/dist-types/SecurityHub.d.ts +84 -0
- package/dist-types/SecurityHubClient.d.ts +14 -2
- package/dist-types/commands/BatchDisableStandardsCommand.d.ts +3 -0
- package/dist-types/commands/BatchEnableStandardsCommand.d.ts +3 -0
- package/dist-types/commands/BatchGetAutomationRulesCommand.d.ts +7 -0
- package/dist-types/commands/BatchGetConfigurationPolicyAssociationsCommand.d.ts +128 -0
- package/dist-types/commands/BatchGetSecurityControlsCommand.d.ts +45 -2
- package/dist-types/commands/BatchImportFindingsCommand.d.ts +13 -3
- package/dist-types/commands/BatchUpdateAutomationRulesCommand.d.ts +7 -0
- package/dist-types/commands/BatchUpdateStandardsControlAssociationsCommand.d.ts +3 -0
- package/dist-types/commands/CreateAutomationRuleCommand.d.ts +7 -0
- package/dist-types/commands/CreateConfigurationPolicyCommand.d.ts +189 -0
- package/dist-types/commands/CreateInsightCommand.d.ts +17 -0
- package/dist-types/commands/CreateMembersCommand.d.ts +3 -0
- package/dist-types/commands/DeleteConfigurationPolicyCommand.d.ts +98 -0
- package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +7 -2
- package/dist-types/commands/DisableOrganizationAdminAccountCommand.d.ts +3 -0
- package/dist-types/commands/DisableSecurityHubCommand.d.ts +3 -0
- package/dist-types/commands/DisassociateMembersCommand.d.ts +3 -0
- package/dist-types/commands/EnableOrganizationAdminAccountCommand.d.ts +3 -0
- package/dist-types/commands/GetConfigurationPolicyAssociationCommand.d.ts +107 -0
- package/dist-types/commands/GetConfigurationPolicyCommand.d.ts +143 -0
- package/dist-types/commands/GetFindingsCommand.d.ts +30 -3
- package/dist-types/commands/GetInsightsCommand.d.ts +17 -0
- package/dist-types/commands/GetSecurityControlDefinitionCommand.d.ts +193 -0
- package/dist-types/commands/ListConfigurationPoliciesCommand.d.ts +104 -0
- package/dist-types/commands/ListConfigurationPolicyAssociationsCommand.d.ts +110 -0
- package/dist-types/commands/ListSecurityControlDefinitionsCommand.d.ts +65 -0
- package/dist-types/commands/StartConfigurationPolicyAssociationCommand.d.ts +108 -0
- package/dist-types/commands/StartConfigurationPolicyDisassociationCommand.d.ts +102 -0
- package/dist-types/commands/UpdateConfigurationPolicyCommand.d.ts +191 -0
- package/dist-types/commands/UpdateFindingsCommand.d.ts +17 -0
- package/dist-types/commands/UpdateInsightCommand.d.ts +17 -0
- package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +16 -2
- package/dist-types/commands/UpdateSecurityControlCommand.d.ts +141 -0
- package/dist-types/commands/UpdateSecurityHubConfigurationCommand.d.ts +3 -0
- package/dist-types/commands/UpdateStandardsControlCommand.d.ts +3 -0
- package/dist-types/commands/index.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +101 -193
- package/dist-types/models/models_1.d.ts +221 -86
- package/dist-types/models/models_2.d.ts +2377 -394
- package/dist-types/pagination/ListConfigurationPoliciesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListConfigurationPolicyAssociationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +108 -0
- package/dist-types/ts3.4/SecurityHub.d.ts +234 -0
- package/dist-types/ts3.4/SecurityHubClient.d.ts +72 -0
- package/dist-types/ts3.4/commands/BatchGetConfigurationPolicyAssociationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateConfigurationPolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteConfigurationPolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetConfigurationPolicyAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetConfigurationPolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetSecurityControlDefinitionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListConfigurationPoliciesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListConfigurationPolicyAssociationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartConfigurationPolicyAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartConfigurationPolicyDisassociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateConfigurationPolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateSecurityControlCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +12 -0
- package/dist-types/ts3.4/models/models_0.d.ts +23 -26
- package/dist-types/ts3.4/models/models_1.d.ts +37 -15
- package/dist-types/ts3.4/models/models_2.d.ts +602 -17
- package/dist-types/ts3.4/pagination/ListConfigurationPoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListConfigurationPolicyAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +144 -0
- package/package.json +3 -3
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateConfigurationPolicyCommand = 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 UpdateConfigurationPolicyCommand 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, UpdateConfigurationPolicyCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "SecurityHubClient";
|
|
29
|
+
const commandName = "UpdateConfigurationPolicyCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "SecurityHubAPIService",
|
|
38
|
+
operation: "UpdateConfigurationPolicy",
|
|
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_UpdateConfigurationPolicyCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_UpdateConfigurationPolicyCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.UpdateConfigurationPolicyCommand = UpdateConfigurationPolicyCommand;
|
|
@@ -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;
|
|
@@ -7,6 +7,7 @@ tslib_1.__exportStar(require("./BatchDeleteAutomationRulesCommand"), exports);
|
|
|
7
7
|
tslib_1.__exportStar(require("./BatchDisableStandardsCommand"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./BatchEnableStandardsCommand"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./BatchGetAutomationRulesCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./BatchGetConfigurationPolicyAssociationsCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./BatchGetSecurityControlsCommand"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./BatchGetStandardsControlAssociationsCommand"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./BatchImportFindingsCommand"), exports);
|
|
@@ -15,11 +16,13 @@ tslib_1.__exportStar(require("./BatchUpdateFindingsCommand"), exports);
|
|
|
15
16
|
tslib_1.__exportStar(require("./BatchUpdateStandardsControlAssociationsCommand"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./CreateActionTargetCommand"), exports);
|
|
17
18
|
tslib_1.__exportStar(require("./CreateAutomationRuleCommand"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./CreateConfigurationPolicyCommand"), exports);
|
|
18
20
|
tslib_1.__exportStar(require("./CreateFindingAggregatorCommand"), exports);
|
|
19
21
|
tslib_1.__exportStar(require("./CreateInsightCommand"), exports);
|
|
20
22
|
tslib_1.__exportStar(require("./CreateMembersCommand"), exports);
|
|
21
23
|
tslib_1.__exportStar(require("./DeclineInvitationsCommand"), exports);
|
|
22
24
|
tslib_1.__exportStar(require("./DeleteActionTargetCommand"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./DeleteConfigurationPolicyCommand"), exports);
|
|
23
26
|
tslib_1.__exportStar(require("./DeleteFindingAggregatorCommand"), exports);
|
|
24
27
|
tslib_1.__exportStar(require("./DeleteInsightCommand"), exports);
|
|
25
28
|
tslib_1.__exportStar(require("./DeleteInvitationsCommand"), exports);
|
|
@@ -40,6 +43,8 @@ tslib_1.__exportStar(require("./EnableImportFindingsForProductCommand"), exports
|
|
|
40
43
|
tslib_1.__exportStar(require("./EnableOrganizationAdminAccountCommand"), exports);
|
|
41
44
|
tslib_1.__exportStar(require("./EnableSecurityHubCommand"), exports);
|
|
42
45
|
tslib_1.__exportStar(require("./GetAdministratorAccountCommand"), exports);
|
|
46
|
+
tslib_1.__exportStar(require("./GetConfigurationPolicyAssociationCommand"), exports);
|
|
47
|
+
tslib_1.__exportStar(require("./GetConfigurationPolicyCommand"), exports);
|
|
43
48
|
tslib_1.__exportStar(require("./GetEnabledStandardsCommand"), exports);
|
|
44
49
|
tslib_1.__exportStar(require("./GetFindingAggregatorCommand"), exports);
|
|
45
50
|
tslib_1.__exportStar(require("./GetFindingHistoryCommand"), exports);
|
|
@@ -49,8 +54,11 @@ tslib_1.__exportStar(require("./GetInsightsCommand"), exports);
|
|
|
49
54
|
tslib_1.__exportStar(require("./GetInvitationsCountCommand"), exports);
|
|
50
55
|
tslib_1.__exportStar(require("./GetMasterAccountCommand"), exports);
|
|
51
56
|
tslib_1.__exportStar(require("./GetMembersCommand"), exports);
|
|
57
|
+
tslib_1.__exportStar(require("./GetSecurityControlDefinitionCommand"), exports);
|
|
52
58
|
tslib_1.__exportStar(require("./InviteMembersCommand"), exports);
|
|
53
59
|
tslib_1.__exportStar(require("./ListAutomationRulesCommand"), exports);
|
|
60
|
+
tslib_1.__exportStar(require("./ListConfigurationPoliciesCommand"), exports);
|
|
61
|
+
tslib_1.__exportStar(require("./ListConfigurationPolicyAssociationsCommand"), exports);
|
|
54
62
|
tslib_1.__exportStar(require("./ListEnabledProductsForImportCommand"), exports);
|
|
55
63
|
tslib_1.__exportStar(require("./ListFindingAggregatorsCommand"), exports);
|
|
56
64
|
tslib_1.__exportStar(require("./ListInvitationsCommand"), exports);
|
|
@@ -59,12 +67,16 @@ tslib_1.__exportStar(require("./ListOrganizationAdminAccountsCommand"), exports)
|
|
|
59
67
|
tslib_1.__exportStar(require("./ListSecurityControlDefinitionsCommand"), exports);
|
|
60
68
|
tslib_1.__exportStar(require("./ListStandardsControlAssociationsCommand"), exports);
|
|
61
69
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
70
|
+
tslib_1.__exportStar(require("./StartConfigurationPolicyAssociationCommand"), exports);
|
|
71
|
+
tslib_1.__exportStar(require("./StartConfigurationPolicyDisassociationCommand"), exports);
|
|
62
72
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
63
73
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
64
74
|
tslib_1.__exportStar(require("./UpdateActionTargetCommand"), exports);
|
|
75
|
+
tslib_1.__exportStar(require("./UpdateConfigurationPolicyCommand"), exports);
|
|
65
76
|
tslib_1.__exportStar(require("./UpdateFindingAggregatorCommand"), exports);
|
|
66
77
|
tslib_1.__exportStar(require("./UpdateFindingsCommand"), exports);
|
|
67
78
|
tslib_1.__exportStar(require("./UpdateInsightCommand"), exports);
|
|
68
79
|
tslib_1.__exportStar(require("./UpdateOrganizationConfigurationCommand"), exports);
|
|
80
|
+
tslib_1.__exportStar(require("./UpdateSecurityControlCommand"), exports);
|
|
69
81
|
tslib_1.__exportStar(require("./UpdateSecurityHubConfigurationCommand"), exports);
|
|
70
82
|
tslib_1.__exportStar(require("./UpdateStandardsControlCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RuleStatus = exports.MapFilterComparison = exports.DateRangeUnit = exports.StringFilterComparison = exports.AutoEnableStandards = exports.AssociationStatus = exports.AdminStatus = exports.AutomationRulesActionType = exports.WorkflowStatus = exports.VerificationState = exports.SeverityLabel = exports.AccessDeniedException = exports.ResourceNotFoundException = exports.LimitExceededException = exports.InvalidInputException = exports.InvalidAccessException = exports.InternalException = void 0;
|
|
3
|
+
exports.RuleStatus = exports.MapFilterComparison = exports.DateRangeUnit = exports.StringFilterComparison = exports.AutoEnableStandards = exports.AssociationStatus = exports.AssociationType = exports.ConfigurationPolicyAssociationStatus = exports.AdminStatus = exports.AutomationRulesActionType = exports.WorkflowStatus = exports.VerificationState = exports.SeverityLabel = exports.AccessDeniedException = exports.ResourceNotFoundException = exports.LimitExceededException = exports.InvalidInputException = exports.InvalidAccessException = exports.InternalException = void 0;
|
|
4
4
|
const SecurityHubServiceException_1 = require("./SecurityHubServiceException");
|
|
5
5
|
class InternalException extends SecurityHubServiceException_1.SecurityHubServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -118,6 +118,15 @@ exports.AdminStatus = {
|
|
|
118
118
|
DISABLE_IN_PROGRESS: "DISABLE_IN_PROGRESS",
|
|
119
119
|
ENABLED: "ENABLED",
|
|
120
120
|
};
|
|
121
|
+
exports.ConfigurationPolicyAssociationStatus = {
|
|
122
|
+
FAILED: "FAILED",
|
|
123
|
+
PENDING: "PENDING",
|
|
124
|
+
SUCCESS: "SUCCESS",
|
|
125
|
+
};
|
|
126
|
+
exports.AssociationType = {
|
|
127
|
+
APPLIED: "APPLIED",
|
|
128
|
+
INHERITED: "INHERITED",
|
|
129
|
+
};
|
|
121
130
|
exports.AssociationStatus = {
|
|
122
131
|
DISABLED: "DISABLED",
|
|
123
132
|
ENABLED: "ENABLED",
|
|
@@ -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.OrganizationConfigurationStatus = exports.OrganizationConfigurationConfigurationType = exports.SecurityControlProperty = exports.Policy = exports.ResourceConflictException = exports.ControlFindingGenerator = exports.ConfigurationOptions = exports.UnprocessedErrorCode = exports.UpdateStatus = exports.SeverityRating = exports.ControlStatus = exports.ParameterValueType = exports.ParameterValue = exports.TargetType = exports.Target = 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,48 @@ exports.StatusReasonCode = {
|
|
|
55
55
|
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
56
56
|
NO_AVAILABLE_CONFIGURATION_RECORDER: "NO_AVAILABLE_CONFIGURATION_RECORDER",
|
|
57
57
|
};
|
|
58
|
+
var Target;
|
|
59
|
+
(function (Target) {
|
|
60
|
+
Target.visit = (value, visitor) => {
|
|
61
|
+
if (value.AccountId !== undefined)
|
|
62
|
+
return visitor.AccountId(value.AccountId);
|
|
63
|
+
if (value.OrganizationalUnitId !== undefined)
|
|
64
|
+
return visitor.OrganizationalUnitId(value.OrganizationalUnitId);
|
|
65
|
+
if (value.RootId !== undefined)
|
|
66
|
+
return visitor.RootId(value.RootId);
|
|
67
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
68
|
+
};
|
|
69
|
+
})(Target = exports.Target || (exports.Target = {}));
|
|
70
|
+
exports.TargetType = {
|
|
71
|
+
ACCOUNT: "ACCOUNT",
|
|
72
|
+
ORGANIZATIONAL_UNIT: "ORGANIZATIONAL_UNIT",
|
|
73
|
+
};
|
|
74
|
+
var ParameterValue;
|
|
75
|
+
(function (ParameterValue) {
|
|
76
|
+
ParameterValue.visit = (value, visitor) => {
|
|
77
|
+
if (value.Integer !== undefined)
|
|
78
|
+
return visitor.Integer(value.Integer);
|
|
79
|
+
if (value.IntegerList !== undefined)
|
|
80
|
+
return visitor.IntegerList(value.IntegerList);
|
|
81
|
+
if (value.Double !== undefined)
|
|
82
|
+
return visitor.Double(value.Double);
|
|
83
|
+
if (value.String !== undefined)
|
|
84
|
+
return visitor.String(value.String);
|
|
85
|
+
if (value.StringList !== undefined)
|
|
86
|
+
return visitor.StringList(value.StringList);
|
|
87
|
+
if (value.Boolean !== undefined)
|
|
88
|
+
return visitor.Boolean(value.Boolean);
|
|
89
|
+
if (value.Enum !== undefined)
|
|
90
|
+
return visitor.Enum(value.Enum);
|
|
91
|
+
if (value.EnumList !== undefined)
|
|
92
|
+
return visitor.EnumList(value.EnumList);
|
|
93
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
94
|
+
};
|
|
95
|
+
})(ParameterValue = exports.ParameterValue || (exports.ParameterValue = {}));
|
|
96
|
+
exports.ParameterValueType = {
|
|
97
|
+
CUSTOM: "CUSTOM",
|
|
98
|
+
DEFAULT: "DEFAULT",
|
|
99
|
+
};
|
|
58
100
|
exports.ControlStatus = {
|
|
59
101
|
DISABLED: "DISABLED",
|
|
60
102
|
ENABLED: "ENABLED",
|
|
@@ -65,12 +107,38 @@ exports.SeverityRating = {
|
|
|
65
107
|
LOW: "LOW",
|
|
66
108
|
MEDIUM: "MEDIUM",
|
|
67
109
|
};
|
|
110
|
+
exports.UpdateStatus = {
|
|
111
|
+
READY: "READY",
|
|
112
|
+
UPDATING: "UPDATING",
|
|
113
|
+
};
|
|
68
114
|
exports.UnprocessedErrorCode = {
|
|
69
115
|
ACCESS_DENIED: "ACCESS_DENIED",
|
|
70
116
|
INVALID_INPUT: "INVALID_INPUT",
|
|
71
117
|
LIMIT_EXCEEDED: "LIMIT_EXCEEDED",
|
|
72
118
|
NOT_FOUND: "NOT_FOUND",
|
|
73
119
|
};
|
|
120
|
+
var ConfigurationOptions;
|
|
121
|
+
(function (ConfigurationOptions) {
|
|
122
|
+
ConfigurationOptions.visit = (value, visitor) => {
|
|
123
|
+
if (value.Integer !== undefined)
|
|
124
|
+
return visitor.Integer(value.Integer);
|
|
125
|
+
if (value.IntegerList !== undefined)
|
|
126
|
+
return visitor.IntegerList(value.IntegerList);
|
|
127
|
+
if (value.Double !== undefined)
|
|
128
|
+
return visitor.Double(value.Double);
|
|
129
|
+
if (value.String !== undefined)
|
|
130
|
+
return visitor.String(value.String);
|
|
131
|
+
if (value.StringList !== undefined)
|
|
132
|
+
return visitor.StringList(value.StringList);
|
|
133
|
+
if (value.Boolean !== undefined)
|
|
134
|
+
return visitor.Boolean(value.Boolean);
|
|
135
|
+
if (value.Enum !== undefined)
|
|
136
|
+
return visitor.Enum(value.Enum);
|
|
137
|
+
if (value.EnumList !== undefined)
|
|
138
|
+
return visitor.EnumList(value.EnumList);
|
|
139
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
140
|
+
};
|
|
141
|
+
})(ConfigurationOptions = exports.ConfigurationOptions || (exports.ConfigurationOptions = {}));
|
|
74
142
|
exports.ControlFindingGenerator = {
|
|
75
143
|
SECURITY_CONTROL: "SECURITY_CONTROL",
|
|
76
144
|
STANDARD_CONTROL: "STANDARD_CONTROL",
|
|
@@ -90,6 +158,26 @@ class ResourceConflictException extends SecurityHubServiceException_1.SecurityHu
|
|
|
90
158
|
}
|
|
91
159
|
}
|
|
92
160
|
exports.ResourceConflictException = ResourceConflictException;
|
|
161
|
+
var Policy;
|
|
162
|
+
(function (Policy) {
|
|
163
|
+
Policy.visit = (value, visitor) => {
|
|
164
|
+
if (value.SecurityHub !== undefined)
|
|
165
|
+
return visitor.SecurityHub(value.SecurityHub);
|
|
166
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
167
|
+
};
|
|
168
|
+
})(Policy = exports.Policy || (exports.Policy = {}));
|
|
169
|
+
exports.SecurityControlProperty = {
|
|
170
|
+
Parameters: "Parameters",
|
|
171
|
+
};
|
|
172
|
+
exports.OrganizationConfigurationConfigurationType = {
|
|
173
|
+
CENTRAL: "CENTRAL",
|
|
174
|
+
LOCAL: "LOCAL",
|
|
175
|
+
};
|
|
176
|
+
exports.OrganizationConfigurationStatus = {
|
|
177
|
+
ENABLED: "ENABLED",
|
|
178
|
+
FAILED: "FAILED",
|
|
179
|
+
PENDING: "PENDING",
|
|
180
|
+
};
|
|
93
181
|
exports.IntegrationType = {
|
|
94
182
|
RECEIVE_FINDINGS_FROM_SECURITY_HUB: "RECEIVE_FINDINGS_FROM_SECURITY_HUB",
|
|
95
183
|
SEND_FINDINGS_TO_SECURITY_HUB: "SEND_FINDINGS_TO_SECURITY_HUB",
|
|
@@ -107,3 +195,18 @@ exports.RegionAvailabilityStatus = {
|
|
|
107
195
|
AVAILABLE: "AVAILABLE",
|
|
108
196
|
UNAVAILABLE: "UNAVAILABLE",
|
|
109
197
|
};
|
|
198
|
+
class ResourceInUseException extends SecurityHubServiceException_1.SecurityHubServiceException {
|
|
199
|
+
constructor(opts) {
|
|
200
|
+
super({
|
|
201
|
+
name: "ResourceInUseException",
|
|
202
|
+
$fault: "client",
|
|
203
|
+
...opts,
|
|
204
|
+
});
|
|
205
|
+
this.name = "ResourceInUseException";
|
|
206
|
+
this.$fault = "client";
|
|
207
|
+
Object.setPrototypeOf(this, ResourceInUseException.prototype);
|
|
208
|
+
this.Message = opts.Message;
|
|
209
|
+
this.Code = opts.Code;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
exports.ResourceInUseException = ResourceInUseException;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListConfigurationPolicies = void 0;
|
|
4
|
+
const ListConfigurationPoliciesCommand_1 = require("../commands/ListConfigurationPoliciesCommand");
|
|
5
|
+
const SecurityHubClient_1 = require("../SecurityHubClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListConfigurationPoliciesCommand_1.ListConfigurationPoliciesCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListConfigurationPolicies(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.NextToken = token;
|
|
15
|
+
input["MaxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof SecurityHubClient_1.SecurityHubClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.NextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListConfigurationPolicies = paginateListConfigurationPolicies;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListConfigurationPolicyAssociations = void 0;
|
|
4
|
+
const ListConfigurationPolicyAssociationsCommand_1 = require("../commands/ListConfigurationPolicyAssociationsCommand");
|
|
5
|
+
const SecurityHubClient_1 = require("../SecurityHubClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListConfigurationPolicyAssociationsCommand_1.ListConfigurationPolicyAssociationsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListConfigurationPolicyAssociations(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.NextToken = token;
|
|
15
|
+
input["MaxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof SecurityHubClient_1.SecurityHubClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.NextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListConfigurationPolicyAssociations = paginateListConfigurationPolicyAssociations;
|
|
@@ -10,6 +10,8 @@ tslib_1.__exportStar(require("./GetFindingHistoryPaginator"), exports);
|
|
|
10
10
|
tslib_1.__exportStar(require("./GetFindingsPaginator"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("./GetInsightsPaginator"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./ListConfigurationPoliciesPaginator"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./ListConfigurationPolicyAssociationsPaginator"), exports);
|
|
13
15
|
tslib_1.__exportStar(require("./ListEnabledProductsForImportPaginator"), exports);
|
|
14
16
|
tslib_1.__exportStar(require("./ListFindingAggregatorsPaginator"), exports);
|
|
15
17
|
tslib_1.__exportStar(require("./ListInvitationsPaginator"), exports);
|