@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,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_UpdateSecurityControlCommand, se_UpdateSecurityControlCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdateSecurityControlCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateSecurityControlCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "SecurityHubClient";
|
|
26
|
+
const commandName = "UpdateSecurityControlCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "SecurityHubAPIService",
|
|
35
|
+
operation: "UpdateSecurityControl",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_UpdateSecurityControlCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_UpdateSecurityControlCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -4,6 +4,7 @@ export * from "./BatchDeleteAutomationRulesCommand";
|
|
|
4
4
|
export * from "./BatchDisableStandardsCommand";
|
|
5
5
|
export * from "./BatchEnableStandardsCommand";
|
|
6
6
|
export * from "./BatchGetAutomationRulesCommand";
|
|
7
|
+
export * from "./BatchGetConfigurationPolicyAssociationsCommand";
|
|
7
8
|
export * from "./BatchGetSecurityControlsCommand";
|
|
8
9
|
export * from "./BatchGetStandardsControlAssociationsCommand";
|
|
9
10
|
export * from "./BatchImportFindingsCommand";
|
|
@@ -12,11 +13,13 @@ export * from "./BatchUpdateFindingsCommand";
|
|
|
12
13
|
export * from "./BatchUpdateStandardsControlAssociationsCommand";
|
|
13
14
|
export * from "./CreateActionTargetCommand";
|
|
14
15
|
export * from "./CreateAutomationRuleCommand";
|
|
16
|
+
export * from "./CreateConfigurationPolicyCommand";
|
|
15
17
|
export * from "./CreateFindingAggregatorCommand";
|
|
16
18
|
export * from "./CreateInsightCommand";
|
|
17
19
|
export * from "./CreateMembersCommand";
|
|
18
20
|
export * from "./DeclineInvitationsCommand";
|
|
19
21
|
export * from "./DeleteActionTargetCommand";
|
|
22
|
+
export * from "./DeleteConfigurationPolicyCommand";
|
|
20
23
|
export * from "./DeleteFindingAggregatorCommand";
|
|
21
24
|
export * from "./DeleteInsightCommand";
|
|
22
25
|
export * from "./DeleteInvitationsCommand";
|
|
@@ -37,6 +40,8 @@ export * from "./EnableImportFindingsForProductCommand";
|
|
|
37
40
|
export * from "./EnableOrganizationAdminAccountCommand";
|
|
38
41
|
export * from "./EnableSecurityHubCommand";
|
|
39
42
|
export * from "./GetAdministratorAccountCommand";
|
|
43
|
+
export * from "./GetConfigurationPolicyAssociationCommand";
|
|
44
|
+
export * from "./GetConfigurationPolicyCommand";
|
|
40
45
|
export * from "./GetEnabledStandardsCommand";
|
|
41
46
|
export * from "./GetFindingAggregatorCommand";
|
|
42
47
|
export * from "./GetFindingHistoryCommand";
|
|
@@ -46,8 +51,11 @@ export * from "./GetInsightsCommand";
|
|
|
46
51
|
export * from "./GetInvitationsCountCommand";
|
|
47
52
|
export * from "./GetMasterAccountCommand";
|
|
48
53
|
export * from "./GetMembersCommand";
|
|
54
|
+
export * from "./GetSecurityControlDefinitionCommand";
|
|
49
55
|
export * from "./InviteMembersCommand";
|
|
50
56
|
export * from "./ListAutomationRulesCommand";
|
|
57
|
+
export * from "./ListConfigurationPoliciesCommand";
|
|
58
|
+
export * from "./ListConfigurationPolicyAssociationsCommand";
|
|
51
59
|
export * from "./ListEnabledProductsForImportCommand";
|
|
52
60
|
export * from "./ListFindingAggregatorsCommand";
|
|
53
61
|
export * from "./ListInvitationsCommand";
|
|
@@ -56,12 +64,16 @@ export * from "./ListOrganizationAdminAccountsCommand";
|
|
|
56
64
|
export * from "./ListSecurityControlDefinitionsCommand";
|
|
57
65
|
export * from "./ListStandardsControlAssociationsCommand";
|
|
58
66
|
export * from "./ListTagsForResourceCommand";
|
|
67
|
+
export * from "./StartConfigurationPolicyAssociationCommand";
|
|
68
|
+
export * from "./StartConfigurationPolicyDisassociationCommand";
|
|
59
69
|
export * from "./TagResourceCommand";
|
|
60
70
|
export * from "./UntagResourceCommand";
|
|
61
71
|
export * from "./UpdateActionTargetCommand";
|
|
72
|
+
export * from "./UpdateConfigurationPolicyCommand";
|
|
62
73
|
export * from "./UpdateFindingAggregatorCommand";
|
|
63
74
|
export * from "./UpdateFindingsCommand";
|
|
64
75
|
export * from "./UpdateInsightCommand";
|
|
65
76
|
export * from "./UpdateOrganizationConfigurationCommand";
|
|
77
|
+
export * from "./UpdateSecurityControlCommand";
|
|
66
78
|
export * from "./UpdateSecurityHubConfigurationCommand";
|
|
67
79
|
export * from "./UpdateStandardsControlCommand";
|
|
@@ -109,6 +109,15 @@ export const AdminStatus = {
|
|
|
109
109
|
DISABLE_IN_PROGRESS: "DISABLE_IN_PROGRESS",
|
|
110
110
|
ENABLED: "ENABLED",
|
|
111
111
|
};
|
|
112
|
+
export const ConfigurationPolicyAssociationStatus = {
|
|
113
|
+
FAILED: "FAILED",
|
|
114
|
+
PENDING: "PENDING",
|
|
115
|
+
SUCCESS: "SUCCESS",
|
|
116
|
+
};
|
|
117
|
+
export const AssociationType = {
|
|
118
|
+
APPLIED: "APPLIED",
|
|
119
|
+
INHERITED: "INHERITED",
|
|
120
|
+
};
|
|
112
121
|
export const AssociationStatus = {
|
|
113
122
|
DISABLED: "DISABLED",
|
|
114
123
|
ENABLED: "ENABLED",
|
|
@@ -52,6 +52,48 @@ export const StatusReasonCode = {
|
|
|
52
52
|
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
53
53
|
NO_AVAILABLE_CONFIGURATION_RECORDER: "NO_AVAILABLE_CONFIGURATION_RECORDER",
|
|
54
54
|
};
|
|
55
|
+
export var Target;
|
|
56
|
+
(function (Target) {
|
|
57
|
+
Target.visit = (value, visitor) => {
|
|
58
|
+
if (value.AccountId !== undefined)
|
|
59
|
+
return visitor.AccountId(value.AccountId);
|
|
60
|
+
if (value.OrganizationalUnitId !== undefined)
|
|
61
|
+
return visitor.OrganizationalUnitId(value.OrganizationalUnitId);
|
|
62
|
+
if (value.RootId !== undefined)
|
|
63
|
+
return visitor.RootId(value.RootId);
|
|
64
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
65
|
+
};
|
|
66
|
+
})(Target || (Target = {}));
|
|
67
|
+
export const TargetType = {
|
|
68
|
+
ACCOUNT: "ACCOUNT",
|
|
69
|
+
ORGANIZATIONAL_UNIT: "ORGANIZATIONAL_UNIT",
|
|
70
|
+
};
|
|
71
|
+
export var ParameterValue;
|
|
72
|
+
(function (ParameterValue) {
|
|
73
|
+
ParameterValue.visit = (value, visitor) => {
|
|
74
|
+
if (value.Integer !== undefined)
|
|
75
|
+
return visitor.Integer(value.Integer);
|
|
76
|
+
if (value.IntegerList !== undefined)
|
|
77
|
+
return visitor.IntegerList(value.IntegerList);
|
|
78
|
+
if (value.Double !== undefined)
|
|
79
|
+
return visitor.Double(value.Double);
|
|
80
|
+
if (value.String !== undefined)
|
|
81
|
+
return visitor.String(value.String);
|
|
82
|
+
if (value.StringList !== undefined)
|
|
83
|
+
return visitor.StringList(value.StringList);
|
|
84
|
+
if (value.Boolean !== undefined)
|
|
85
|
+
return visitor.Boolean(value.Boolean);
|
|
86
|
+
if (value.Enum !== undefined)
|
|
87
|
+
return visitor.Enum(value.Enum);
|
|
88
|
+
if (value.EnumList !== undefined)
|
|
89
|
+
return visitor.EnumList(value.EnumList);
|
|
90
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
91
|
+
};
|
|
92
|
+
})(ParameterValue || (ParameterValue = {}));
|
|
93
|
+
export const ParameterValueType = {
|
|
94
|
+
CUSTOM: "CUSTOM",
|
|
95
|
+
DEFAULT: "DEFAULT",
|
|
96
|
+
};
|
|
55
97
|
export const ControlStatus = {
|
|
56
98
|
DISABLED: "DISABLED",
|
|
57
99
|
ENABLED: "ENABLED",
|
|
@@ -62,12 +104,38 @@ export const SeverityRating = {
|
|
|
62
104
|
LOW: "LOW",
|
|
63
105
|
MEDIUM: "MEDIUM",
|
|
64
106
|
};
|
|
107
|
+
export const UpdateStatus = {
|
|
108
|
+
READY: "READY",
|
|
109
|
+
UPDATING: "UPDATING",
|
|
110
|
+
};
|
|
65
111
|
export const UnprocessedErrorCode = {
|
|
66
112
|
ACCESS_DENIED: "ACCESS_DENIED",
|
|
67
113
|
INVALID_INPUT: "INVALID_INPUT",
|
|
68
114
|
LIMIT_EXCEEDED: "LIMIT_EXCEEDED",
|
|
69
115
|
NOT_FOUND: "NOT_FOUND",
|
|
70
116
|
};
|
|
117
|
+
export var ConfigurationOptions;
|
|
118
|
+
(function (ConfigurationOptions) {
|
|
119
|
+
ConfigurationOptions.visit = (value, visitor) => {
|
|
120
|
+
if (value.Integer !== undefined)
|
|
121
|
+
return visitor.Integer(value.Integer);
|
|
122
|
+
if (value.IntegerList !== undefined)
|
|
123
|
+
return visitor.IntegerList(value.IntegerList);
|
|
124
|
+
if (value.Double !== undefined)
|
|
125
|
+
return visitor.Double(value.Double);
|
|
126
|
+
if (value.String !== undefined)
|
|
127
|
+
return visitor.String(value.String);
|
|
128
|
+
if (value.StringList !== undefined)
|
|
129
|
+
return visitor.StringList(value.StringList);
|
|
130
|
+
if (value.Boolean !== undefined)
|
|
131
|
+
return visitor.Boolean(value.Boolean);
|
|
132
|
+
if (value.Enum !== undefined)
|
|
133
|
+
return visitor.Enum(value.Enum);
|
|
134
|
+
if (value.EnumList !== undefined)
|
|
135
|
+
return visitor.EnumList(value.EnumList);
|
|
136
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
137
|
+
};
|
|
138
|
+
})(ConfigurationOptions || (ConfigurationOptions = {}));
|
|
71
139
|
export const ControlFindingGenerator = {
|
|
72
140
|
SECURITY_CONTROL: "SECURITY_CONTROL",
|
|
73
141
|
STANDARD_CONTROL: "STANDARD_CONTROL",
|
|
@@ -86,6 +154,26 @@ export class ResourceConflictException extends __BaseException {
|
|
|
86
154
|
this.Code = opts.Code;
|
|
87
155
|
}
|
|
88
156
|
}
|
|
157
|
+
export var Policy;
|
|
158
|
+
(function (Policy) {
|
|
159
|
+
Policy.visit = (value, visitor) => {
|
|
160
|
+
if (value.SecurityHub !== undefined)
|
|
161
|
+
return visitor.SecurityHub(value.SecurityHub);
|
|
162
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
163
|
+
};
|
|
164
|
+
})(Policy || (Policy = {}));
|
|
165
|
+
export const SecurityControlProperty = {
|
|
166
|
+
Parameters: "Parameters",
|
|
167
|
+
};
|
|
168
|
+
export const OrganizationConfigurationConfigurationType = {
|
|
169
|
+
CENTRAL: "CENTRAL",
|
|
170
|
+
LOCAL: "LOCAL",
|
|
171
|
+
};
|
|
172
|
+
export const OrganizationConfigurationStatus = {
|
|
173
|
+
ENABLED: "ENABLED",
|
|
174
|
+
FAILED: "FAILED",
|
|
175
|
+
PENDING: "PENDING",
|
|
176
|
+
};
|
|
89
177
|
export const IntegrationType = {
|
|
90
178
|
RECEIVE_FINDINGS_FROM_SECURITY_HUB: "RECEIVE_FINDINGS_FROM_SECURITY_HUB",
|
|
91
179
|
SEND_FINDINGS_TO_SECURITY_HUB: "SEND_FINDINGS_TO_SECURITY_HUB",
|
|
@@ -103,3 +191,17 @@ export const RegionAvailabilityStatus = {
|
|
|
103
191
|
AVAILABLE: "AVAILABLE",
|
|
104
192
|
UNAVAILABLE: "UNAVAILABLE",
|
|
105
193
|
};
|
|
194
|
+
export class ResourceInUseException extends __BaseException {
|
|
195
|
+
constructor(opts) {
|
|
196
|
+
super({
|
|
197
|
+
name: "ResourceInUseException",
|
|
198
|
+
$fault: "client",
|
|
199
|
+
...opts,
|
|
200
|
+
});
|
|
201
|
+
this.name = "ResourceInUseException";
|
|
202
|
+
this.$fault = "client";
|
|
203
|
+
Object.setPrototypeOf(this, ResourceInUseException.prototype);
|
|
204
|
+
this.Message = opts.Message;
|
|
205
|
+
this.Code = opts.Code;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListConfigurationPoliciesCommand, } from "../commands/ListConfigurationPoliciesCommand";
|
|
2
|
+
import { SecurityHubClient } from "../SecurityHubClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListConfigurationPoliciesCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListConfigurationPolicies(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.NextToken = token;
|
|
12
|
+
input["MaxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof SecurityHubClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.NextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListConfigurationPolicyAssociationsCommand, } from "../commands/ListConfigurationPolicyAssociationsCommand";
|
|
2
|
+
import { SecurityHubClient } from "../SecurityHubClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListConfigurationPolicyAssociationsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListConfigurationPolicyAssociations(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.NextToken = token;
|
|
12
|
+
input["MaxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof SecurityHubClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.NextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -7,6 +7,8 @@ export * from "./GetFindingHistoryPaginator";
|
|
|
7
7
|
export * from "./GetFindingsPaginator";
|
|
8
8
|
export * from "./GetInsightsPaginator";
|
|
9
9
|
export * from "./Interfaces";
|
|
10
|
+
export * from "./ListConfigurationPoliciesPaginator";
|
|
11
|
+
export * from "./ListConfigurationPolicyAssociationsPaginator";
|
|
10
12
|
export * from "./ListEnabledProductsForImportPaginator";
|
|
11
13
|
export * from "./ListFindingAggregatorsPaginator";
|
|
12
14
|
export * from "./ListInvitationsPaginator";
|