@aws-sdk/client-securityhub 3.458.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 +80 -0
- package/dist-cjs/SecurityHub.js +20 -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/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/index.js +10 -0
- package/dist-cjs/models/models_0.js +10 -1
- package/dist-cjs/models/models_2.js +34 -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 +943 -35
- package/dist-es/SecurityHub.js +20 -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/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/index.js +10 -0
- package/dist-es/models/models_0.js +9 -0
- package/dist-es/models/models_2.js +33 -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 +920 -33
- package/dist-types/SecurityHub.d.ts +70 -0
- package/dist-types/SecurityHubClient.d.ts +12 -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 +3 -0
- package/dist-types/commands/BatchGetConfigurationPolicyAssociationsCommand.d.ts +128 -0
- package/dist-types/commands/BatchGetSecurityControlsCommand.d.ts +22 -2
- package/dist-types/commands/BatchImportFindingsCommand.d.ts +4 -0
- package/dist-types/commands/BatchUpdateAutomationRulesCommand.d.ts +3 -0
- package/dist-types/commands/BatchUpdateStandardsControlAssociationsCommand.d.ts +3 -0
- package/dist-types/commands/CreateAutomationRuleCommand.d.ts +3 -0
- package/dist-types/commands/CreateConfigurationPolicyCommand.d.ts +189 -0
- package/dist-types/commands/CreateInsightCommand.d.ts +3 -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 +7 -0
- package/dist-types/commands/GetInsightsCommand.d.ts +3 -0
- package/dist-types/commands/GetSecurityControlDefinitionCommand.d.ts +35 -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 +6 -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 +3 -0
- package/dist-types/commands/UpdateInsightCommand.d.ts +3 -0
- package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +16 -2
- package/dist-types/commands/UpdateSecurityControlCommand.d.ts +23 -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 +10 -0
- package/dist-types/models/models_0.d.ts +86 -192
- package/dist-types/models/models_1.d.ts +192 -49
- package/dist-types/models/models_2.d.ts +1180 -37
- 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 +90 -0
- package/dist-types/ts3.4/SecurityHub.d.ts +200 -0
- package/dist-types/ts3.4/SecurityHubClient.d.ts +60 -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/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/index.d.ts +10 -0
- package/dist-types/ts3.4/models/models_0.d.ts +21 -26
- package/dist-types/ts3.4/models/models_1.d.ts +32 -9
- package/dist-types/ts3.4/models/models_2.d.ts +243 -4
- 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 +120 -0
- package/package.json +1 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StartConfigurationPolicyAssociationCommand = 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 StartConfigurationPolicyAssociationCommand 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, StartConfigurationPolicyAssociationCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "SecurityHubClient";
|
|
29
|
+
const commandName = "StartConfigurationPolicyAssociationCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "SecurityHubAPIService",
|
|
38
|
+
operation: "StartConfigurationPolicyAssociation",
|
|
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_StartConfigurationPolicyAssociationCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_StartConfigurationPolicyAssociationCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.StartConfigurationPolicyAssociationCommand = StartConfigurationPolicyAssociationCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StartConfigurationPolicyDisassociationCommand = 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 StartConfigurationPolicyDisassociationCommand 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, StartConfigurationPolicyDisassociationCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "SecurityHubClient";
|
|
29
|
+
const commandName = "StartConfigurationPolicyDisassociationCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "SecurityHubAPIService",
|
|
38
|
+
operation: "StartConfigurationPolicyDisassociation",
|
|
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_StartConfigurationPolicyDisassociationCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_StartConfigurationPolicyDisassociationCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.StartConfigurationPolicyDisassociationCommand = StartConfigurationPolicyDisassociationCommand;
|
|
@@ -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;
|
|
@@ -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);
|
|
@@ -52,6 +57,8 @@ tslib_1.__exportStar(require("./GetMembersCommand"), exports);
|
|
|
52
57
|
tslib_1.__exportStar(require("./GetSecurityControlDefinitionCommand"), exports);
|
|
53
58
|
tslib_1.__exportStar(require("./InviteMembersCommand"), exports);
|
|
54
59
|
tslib_1.__exportStar(require("./ListAutomationRulesCommand"), exports);
|
|
60
|
+
tslib_1.__exportStar(require("./ListConfigurationPoliciesCommand"), exports);
|
|
61
|
+
tslib_1.__exportStar(require("./ListConfigurationPolicyAssociationsCommand"), exports);
|
|
55
62
|
tslib_1.__exportStar(require("./ListEnabledProductsForImportCommand"), exports);
|
|
56
63
|
tslib_1.__exportStar(require("./ListFindingAggregatorsCommand"), exports);
|
|
57
64
|
tslib_1.__exportStar(require("./ListInvitationsCommand"), exports);
|
|
@@ -60,9 +67,12 @@ tslib_1.__exportStar(require("./ListOrganizationAdminAccountsCommand"), exports)
|
|
|
60
67
|
tslib_1.__exportStar(require("./ListSecurityControlDefinitionsCommand"), exports);
|
|
61
68
|
tslib_1.__exportStar(require("./ListStandardsControlAssociationsCommand"), exports);
|
|
62
69
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
70
|
+
tslib_1.__exportStar(require("./StartConfigurationPolicyAssociationCommand"), exports);
|
|
71
|
+
tslib_1.__exportStar(require("./StartConfigurationPolicyDisassociationCommand"), exports);
|
|
63
72
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
64
73
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
65
74
|
tslib_1.__exportStar(require("./UpdateActionTargetCommand"), exports);
|
|
75
|
+
tslib_1.__exportStar(require("./UpdateConfigurationPolicyCommand"), exports);
|
|
66
76
|
tslib_1.__exportStar(require("./UpdateFindingAggregatorCommand"), exports);
|
|
67
77
|
tslib_1.__exportStar(require("./UpdateFindingsCommand"), exports);
|
|
68
78
|
tslib_1.__exportStar(require("./UpdateInsightCommand"), 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.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;
|
|
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,22 @@ 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
|
+
};
|
|
58
74
|
var ParameterValue;
|
|
59
75
|
(function (ParameterValue) {
|
|
60
76
|
ParameterValue.visit = (value, visitor) => {
|
|
@@ -142,9 +158,26 @@ class ResourceConflictException extends SecurityHubServiceException_1.SecurityHu
|
|
|
142
158
|
}
|
|
143
159
|
}
|
|
144
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 = {}));
|
|
145
169
|
exports.SecurityControlProperty = {
|
|
146
170
|
Parameters: "Parameters",
|
|
147
171
|
};
|
|
172
|
+
exports.OrganizationConfigurationConfigurationType = {
|
|
173
|
+
CENTRAL: "CENTRAL",
|
|
174
|
+
LOCAL: "LOCAL",
|
|
175
|
+
};
|
|
176
|
+
exports.OrganizationConfigurationStatus = {
|
|
177
|
+
ENABLED: "ENABLED",
|
|
178
|
+
FAILED: "FAILED",
|
|
179
|
+
PENDING: "PENDING",
|
|
180
|
+
};
|
|
148
181
|
exports.IntegrationType = {
|
|
149
182
|
RECEIVE_FINDINGS_FROM_SECURITY_HUB: "RECEIVE_FINDINGS_FROM_SECURITY_HUB",
|
|
150
183
|
SEND_FINDINGS_TO_SECURITY_HUB: "SEND_FINDINGS_TO_SECURITY_HUB",
|
|
@@ -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);
|