@aws-sdk/client-securityhub 3.830.0 → 3.831.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 +208 -0
- package/dist-cjs/index.js +1956 -51
- package/dist-es/SecurityHub.js +52 -0
- package/dist-es/commands/BatchUpdateFindingsV2Command.js +22 -0
- package/dist-es/commands/ConnectorRegistrationsV2Command.js +22 -0
- package/dist-es/commands/CreateAggregatorV2Command.js +22 -0
- package/dist-es/commands/CreateAutomationRuleV2Command.js +22 -0
- package/dist-es/commands/CreateConnectorV2Command.js +23 -0
- package/dist-es/commands/CreateTicketV2Command.js +22 -0
- package/dist-es/commands/DeleteAggregatorV2Command.js +22 -0
- package/dist-es/commands/DeleteAutomationRuleV2Command.js +22 -0
- package/dist-es/commands/DeleteConnectorV2Command.js +22 -0
- package/dist-es/commands/DescribeProductsV2Command.js +22 -0
- package/dist-es/commands/DescribeSecurityHubV2Command.js +22 -0
- package/dist-es/commands/DisableSecurityHubV2Command.js +22 -0
- package/dist-es/commands/EnableSecurityHubV2Command.js +22 -0
- package/dist-es/commands/GetAggregatorV2Command.js +22 -0
- package/dist-es/commands/GetAutomationRuleV2Command.js +22 -0
- package/dist-es/commands/GetConnectorV2Command.js +22 -0
- package/dist-es/commands/GetFindingStatisticsV2Command.js +22 -0
- package/dist-es/commands/GetFindingsV2Command.js +22 -0
- package/dist-es/commands/GetResourcesStatisticsV2Command.js +22 -0
- package/dist-es/commands/GetResourcesV2Command.js +22 -0
- package/dist-es/commands/ListAggregatorsV2Command.js +22 -0
- package/dist-es/commands/ListAutomationRulesV2Command.js +22 -0
- package/dist-es/commands/ListConnectorsV2Command.js +22 -0
- package/dist-es/commands/UpdateAggregatorV2Command.js +22 -0
- package/dist-es/commands/UpdateAutomationRuleV2Command.js +22 -0
- package/dist-es/commands/UpdateConnectorV2Command.js +23 -0
- package/dist-es/commands/index.js +26 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +13 -0
- package/dist-es/models/models_2.js +193 -19
- package/dist-es/models/models_3.js +101 -0
- package/dist-es/pagination/DescribeProductsV2Paginator.js +4 -0
- package/dist-es/pagination/GetFindingsV2Paginator.js +4 -0
- package/dist-es/pagination/GetResourcesV2Paginator.js +4 -0
- package/dist-es/pagination/ListAggregatorsV2Paginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +1071 -32
- package/dist-types/SecurityHub.d.ts +192 -0
- package/dist-types/SecurityHubClient.d.ts +28 -2
- package/dist-types/commands/BatchGetAutomationRulesCommand.d.ts +5 -5
- package/dist-types/commands/BatchUpdateAutomationRulesCommand.d.ts +5 -5
- package/dist-types/commands/BatchUpdateFindingsCommand.d.ts +16 -12
- package/dist-types/commands/BatchUpdateFindingsV2Command.d.ts +129 -0
- package/dist-types/commands/ConnectorRegistrationsV2Command.d.ts +96 -0
- package/dist-types/commands/CreateAggregatorV2Command.d.ts +106 -0
- package/dist-types/commands/CreateAutomationRuleCommand.d.ts +5 -5
- package/dist-types/commands/CreateAutomationRuleV2Command.d.ts +174 -0
- package/dist-types/commands/CreateConnectorV2Command.d.ts +112 -0
- package/dist-types/commands/CreateInsightCommand.d.ts +5 -5
- package/dist-types/commands/CreateTicketV2Command.d.ts +97 -0
- package/dist-types/commands/DeleteAggregatorV2Command.d.ts +92 -0
- package/dist-types/commands/DeleteAutomationRuleV2Command.d.ts +92 -0
- package/dist-types/commands/DeleteConnectorV2Command.d.ts +92 -0
- package/dist-types/commands/DescribeProductsV2Command.d.ts +107 -0
- package/dist-types/commands/DescribeSecurityHubV2Command.d.ts +87 -0
- package/dist-types/commands/DisableOrganizationAdminAccountCommand.d.ts +1 -0
- package/dist-types/commands/DisableSecurityHubV2Command.d.ts +84 -0
- package/dist-types/commands/EnableOrganizationAdminAccountCommand.d.ts +6 -2
- package/dist-types/commands/EnableSecurityHubV2Command.d.ts +90 -0
- package/dist-types/commands/GetAggregatorV2Command.d.ts +99 -0
- package/dist-types/commands/GetAutomationRuleV2Command.d.ts +176 -0
- package/dist-types/commands/GetConnectorV2Command.d.ts +119 -0
- package/dist-types/commands/GetFindingHistoryCommand.d.ts +8 -2
- package/dist-types/commands/GetFindingStatisticsV2Command.d.ts +169 -0
- package/dist-types/commands/GetFindingsCommand.d.ts +7 -6
- package/dist-types/commands/GetFindingsV2Command.d.ts +163 -0
- package/dist-types/commands/GetInsightResultsCommand.d.ts +1 -1
- package/dist-types/commands/GetInsightsCommand.d.ts +6 -6
- package/dist-types/commands/GetInvitationsCountCommand.d.ts +1 -1
- package/dist-types/commands/GetMasterAccountCommand.d.ts +1 -1
- package/dist-types/commands/GetMembersCommand.d.ts +1 -1
- package/dist-types/commands/GetResourcesStatisticsV2Command.d.ts +162 -0
- package/dist-types/commands/GetResourcesV2Command.d.ts +190 -0
- package/dist-types/commands/GetSecurityControlDefinitionCommand.d.ts +1 -1
- package/dist-types/commands/InviteMembersCommand.d.ts +1 -1
- package/dist-types/commands/ListAggregatorsV2Command.d.ts +100 -0
- package/dist-types/commands/ListAutomationRulesCommand.d.ts +1 -1
- package/dist-types/commands/ListAutomationRulesV2Command.d.ts +109 -0
- package/dist-types/commands/ListConfigurationPoliciesCommand.d.ts +1 -1
- package/dist-types/commands/ListConfigurationPolicyAssociationsCommand.d.ts +1 -1
- package/dist-types/commands/ListConnectorsV2Command.d.ts +110 -0
- package/dist-types/commands/ListEnabledProductsForImportCommand.d.ts +1 -1
- package/dist-types/commands/ListFindingAggregatorsCommand.d.ts +1 -1
- package/dist-types/commands/ListInvitationsCommand.d.ts +1 -1
- package/dist-types/commands/ListMembersCommand.d.ts +1 -1
- package/dist-types/commands/ListOrganizationAdminAccountsCommand.d.ts +3 -1
- package/dist-types/commands/ListSecurityControlDefinitionsCommand.d.ts +1 -1
- package/dist-types/commands/ListStandardsControlAssociationsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/StartConfigurationPolicyAssociationCommand.d.ts +1 -1
- package/dist-types/commands/StartConfigurationPolicyDisassociationCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateActionTargetCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAggregatorV2Command.d.ts +103 -0
- package/dist-types/commands/UpdateAutomationRuleV2Command.d.ts +171 -0
- package/dist-types/commands/UpdateConfigurationPolicyCommand.d.ts +1 -1
- package/dist-types/commands/UpdateConnectorV2Command.d.ts +99 -0
- package/dist-types/commands/UpdateFindingAggregatorCommand.d.ts +1 -1
- package/dist-types/commands/UpdateFindingsCommand.d.ts +6 -6
- package/dist-types/commands/UpdateInsightCommand.d.ts +6 -6
- package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateSecurityControlCommand.d.ts +1 -1
- package/dist-types/commands/UpdateSecurityHubConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateStandardsControlCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +26 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +166 -320
- package/dist-types/models/models_1.d.ts +319 -343
- package/dist-types/models/models_2.d.ts +2465 -2269
- package/dist-types/models/models_3.d.ts +2386 -0
- package/dist-types/pagination/DescribeProductsV2Paginator.d.ts +7 -0
- package/dist-types/pagination/GetFindingsV2Paginator.d.ts +7 -0
- package/dist-types/pagination/GetResourcesV2Paginator.d.ts +7 -0
- package/dist-types/pagination/ListAggregatorsV2Paginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +234 -0
- package/dist-types/ts3.4/SecurityHub.d.ts +452 -0
- package/dist-types/ts3.4/SecurityHubClient.d.ts +156 -0
- package/dist-types/ts3.4/commands/BatchUpdateFindingsV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/ConnectorRegistrationsV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateAggregatorV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateAutomationRuleV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateConnectorV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateTicketV2Command.d.ts +50 -0
- package/dist-types/ts3.4/commands/DeleteAggregatorV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteAutomationRuleV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteConnectorV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeProductsV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeSecurityHubV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/DisableSecurityHubV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/EnableOrganizationAdminAccountCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/EnableSecurityHubV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAggregatorV2Command.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetAutomationRuleV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetConnectorV2Command.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetFindingStatisticsV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetFindingsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetFindingsV2Command.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetInsightResultsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetInsightsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetInvitationsCountCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetMasterAccountCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetMembersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetResourcesStatisticsV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetResourcesV2Command.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetSecurityControlDefinitionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/InviteMembersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListAggregatorsV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAutomationRulesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListAutomationRulesV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListConfigurationPoliciesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListConfigurationPolicyAssociationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListConnectorsV2Command.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListEnabledProductsForImportCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListFindingAggregatorsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListInvitationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListMembersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListOrganizationAdminAccountsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListSecurityControlDefinitionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListStandardsControlAssociationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartConfigurationPolicyAssociationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartConfigurationPolicyDisassociationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateActionTargetCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAggregatorV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateAutomationRuleV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateConfigurationPolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateConnectorV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateFindingAggregatorCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateFindingsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateInsightCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateOrganizationConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateSecurityControlCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateSecurityHubConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateStandardsControlCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +26 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +50 -57
- package/dist-types/ts3.4/models/models_1.d.ts +57 -66
- package/dist-types/ts3.4/models/models_2.d.ts +522 -310
- package/dist-types/ts3.4/models/models_3.d.ts +626 -0
- package/dist-types/ts3.4/pagination/DescribeProductsV2Paginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/GetFindingsV2Paginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/GetResourcesV2Paginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAggregatorsV2Paginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +312 -0
- package/package.json +4 -2
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
+
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
5
|
import { AccessDeniedException, InternalException, InvalidAccessException, InvalidInputException, LimitExceededException, ResourceNotFoundException, } from "../models/models_0";
|
|
5
|
-
import { ParameterValue, Policy, ResourceConflictException,
|
|
6
|
+
import { ConflictException, Criteria, InternalServerException, ParameterValue, Policy, ResourceConflictException, ThrottlingException, ValidationException, } from "../models/models_2";
|
|
7
|
+
import { ResourceInUseException, } from "../models/models_3";
|
|
6
8
|
import { SecurityHubServiceException as __BaseException } from "../models/SecurityHubServiceException";
|
|
7
9
|
export const se_AcceptAdministratorInvitationCommand = async (input, context) => {
|
|
8
10
|
const b = rb(input, context);
|
|
@@ -171,6 +173,23 @@ export const se_BatchUpdateFindingsCommand = async (input, context) => {
|
|
|
171
173
|
b.m("PATCH").h(headers).b(body);
|
|
172
174
|
return b.build();
|
|
173
175
|
};
|
|
176
|
+
export const se_BatchUpdateFindingsV2Command = async (input, context) => {
|
|
177
|
+
const b = rb(input, context);
|
|
178
|
+
const headers = {
|
|
179
|
+
"content-type": "application/json",
|
|
180
|
+
};
|
|
181
|
+
b.bp("/findingsv2/batchupdatev2");
|
|
182
|
+
let body;
|
|
183
|
+
body = JSON.stringify(take(input, {
|
|
184
|
+
Comment: [],
|
|
185
|
+
FindingIdentifiers: (_) => _json(_),
|
|
186
|
+
MetadataUids: (_) => _json(_),
|
|
187
|
+
SeverityId: [],
|
|
188
|
+
StatusId: [],
|
|
189
|
+
}));
|
|
190
|
+
b.m("PATCH").h(headers).b(body);
|
|
191
|
+
return b.build();
|
|
192
|
+
};
|
|
174
193
|
export const se_BatchUpdateStandardsControlAssociationsCommand = async (input, context) => {
|
|
175
194
|
const b = rb(input, context);
|
|
176
195
|
const headers = {
|
|
@@ -184,6 +203,20 @@ export const se_BatchUpdateStandardsControlAssociationsCommand = async (input, c
|
|
|
184
203
|
b.m("PATCH").h(headers).b(body);
|
|
185
204
|
return b.build();
|
|
186
205
|
};
|
|
206
|
+
export const se_ConnectorRegistrationsV2Command = async (input, context) => {
|
|
207
|
+
const b = rb(input, context);
|
|
208
|
+
const headers = {
|
|
209
|
+
"content-type": "application/json",
|
|
210
|
+
};
|
|
211
|
+
b.bp("/connectorsv2/registrations");
|
|
212
|
+
let body;
|
|
213
|
+
body = JSON.stringify(take(input, {
|
|
214
|
+
AuthCode: [],
|
|
215
|
+
AuthState: [],
|
|
216
|
+
}));
|
|
217
|
+
b.m("POST").h(headers).b(body);
|
|
218
|
+
return b.build();
|
|
219
|
+
};
|
|
187
220
|
export const se_CreateActionTargetCommand = async (input, context) => {
|
|
188
221
|
const b = rb(input, context);
|
|
189
222
|
const headers = {
|
|
@@ -199,6 +232,22 @@ export const se_CreateActionTargetCommand = async (input, context) => {
|
|
|
199
232
|
b.m("POST").h(headers).b(body);
|
|
200
233
|
return b.build();
|
|
201
234
|
};
|
|
235
|
+
export const se_CreateAggregatorV2Command = async (input, context) => {
|
|
236
|
+
const b = rb(input, context);
|
|
237
|
+
const headers = {
|
|
238
|
+
"content-type": "application/json",
|
|
239
|
+
};
|
|
240
|
+
b.bp("/aggregatorv2/create");
|
|
241
|
+
let body;
|
|
242
|
+
body = JSON.stringify(take(input, {
|
|
243
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
244
|
+
LinkedRegions: (_) => _json(_),
|
|
245
|
+
RegionLinkingMode: [],
|
|
246
|
+
Tags: (_) => _json(_),
|
|
247
|
+
}));
|
|
248
|
+
b.m("POST").h(headers).b(body);
|
|
249
|
+
return b.build();
|
|
250
|
+
};
|
|
202
251
|
export const se_CreateAutomationRuleCommand = async (input, context) => {
|
|
203
252
|
const b = rb(input, context);
|
|
204
253
|
const headers = {
|
|
@@ -219,6 +268,26 @@ export const se_CreateAutomationRuleCommand = async (input, context) => {
|
|
|
219
268
|
b.m("POST").h(headers).b(body);
|
|
220
269
|
return b.build();
|
|
221
270
|
};
|
|
271
|
+
export const se_CreateAutomationRuleV2Command = async (input, context) => {
|
|
272
|
+
const b = rb(input, context);
|
|
273
|
+
const headers = {
|
|
274
|
+
"content-type": "application/json",
|
|
275
|
+
};
|
|
276
|
+
b.bp("/automationrulesv2/create");
|
|
277
|
+
let body;
|
|
278
|
+
body = JSON.stringify(take(input, {
|
|
279
|
+
Actions: (_) => _json(_),
|
|
280
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
281
|
+
Criteria: (_) => se_Criteria(_, context),
|
|
282
|
+
Description: [],
|
|
283
|
+
RuleName: [],
|
|
284
|
+
RuleOrder: (_) => __serializeFloat(_),
|
|
285
|
+
RuleStatus: [],
|
|
286
|
+
Tags: (_) => _json(_),
|
|
287
|
+
}));
|
|
288
|
+
b.m("POST").h(headers).b(body);
|
|
289
|
+
return b.build();
|
|
290
|
+
};
|
|
222
291
|
export const se_CreateConfigurationPolicyCommand = async (input, context) => {
|
|
223
292
|
const b = rb(input, context);
|
|
224
293
|
const headers = {
|
|
@@ -235,6 +304,24 @@ export const se_CreateConfigurationPolicyCommand = async (input, context) => {
|
|
|
235
304
|
b.m("POST").h(headers).b(body);
|
|
236
305
|
return b.build();
|
|
237
306
|
};
|
|
307
|
+
export const se_CreateConnectorV2Command = async (input, context) => {
|
|
308
|
+
const b = rb(input, context);
|
|
309
|
+
const headers = {
|
|
310
|
+
"content-type": "application/json",
|
|
311
|
+
};
|
|
312
|
+
b.bp("/connectorsv2");
|
|
313
|
+
let body;
|
|
314
|
+
body = JSON.stringify(take(input, {
|
|
315
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
316
|
+
Description: [],
|
|
317
|
+
KmsKeyArn: [],
|
|
318
|
+
Name: [],
|
|
319
|
+
Provider: (_) => _json(_),
|
|
320
|
+
Tags: (_) => _json(_),
|
|
321
|
+
}));
|
|
322
|
+
b.m("POST").h(headers).b(body);
|
|
323
|
+
return b.build();
|
|
324
|
+
};
|
|
238
325
|
export const se_CreateFindingAggregatorCommand = async (input, context) => {
|
|
239
326
|
const b = rb(input, context);
|
|
240
327
|
const headers = {
|
|
@@ -277,6 +364,21 @@ export const se_CreateMembersCommand = async (input, context) => {
|
|
|
277
364
|
b.m("POST").h(headers).b(body);
|
|
278
365
|
return b.build();
|
|
279
366
|
};
|
|
367
|
+
export const se_CreateTicketV2Command = async (input, context) => {
|
|
368
|
+
const b = rb(input, context);
|
|
369
|
+
const headers = {
|
|
370
|
+
"content-type": "application/json",
|
|
371
|
+
};
|
|
372
|
+
b.bp("/ticketsv2");
|
|
373
|
+
let body;
|
|
374
|
+
body = JSON.stringify(take(input, {
|
|
375
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
376
|
+
ConnectorId: [],
|
|
377
|
+
FindingMetadataUid: [],
|
|
378
|
+
}));
|
|
379
|
+
b.m("POST").h(headers).b(body);
|
|
380
|
+
return b.build();
|
|
381
|
+
};
|
|
280
382
|
export const se_DeclineInvitationsCommand = async (input, context) => {
|
|
281
383
|
const b = rb(input, context);
|
|
282
384
|
const headers = {
|
|
@@ -299,6 +401,24 @@ export const se_DeleteActionTargetCommand = async (input, context) => {
|
|
|
299
401
|
b.m("DELETE").h(headers).b(body);
|
|
300
402
|
return b.build();
|
|
301
403
|
};
|
|
404
|
+
export const se_DeleteAggregatorV2Command = async (input, context) => {
|
|
405
|
+
const b = rb(input, context);
|
|
406
|
+
const headers = {};
|
|
407
|
+
b.bp("/aggregatorv2/delete/{AggregatorV2Arn+}");
|
|
408
|
+
b.p("AggregatorV2Arn", () => input.AggregatorV2Arn, "{AggregatorV2Arn+}", true);
|
|
409
|
+
let body;
|
|
410
|
+
b.m("DELETE").h(headers).b(body);
|
|
411
|
+
return b.build();
|
|
412
|
+
};
|
|
413
|
+
export const se_DeleteAutomationRuleV2Command = async (input, context) => {
|
|
414
|
+
const b = rb(input, context);
|
|
415
|
+
const headers = {};
|
|
416
|
+
b.bp("/automationrulesv2/{Identifier}");
|
|
417
|
+
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
418
|
+
let body;
|
|
419
|
+
b.m("DELETE").h(headers).b(body);
|
|
420
|
+
return b.build();
|
|
421
|
+
};
|
|
302
422
|
export const se_DeleteConfigurationPolicyCommand = async (input, context) => {
|
|
303
423
|
const b = rb(input, context);
|
|
304
424
|
const headers = {};
|
|
@@ -308,6 +428,15 @@ export const se_DeleteConfigurationPolicyCommand = async (input, context) => {
|
|
|
308
428
|
b.m("DELETE").h(headers).b(body);
|
|
309
429
|
return b.build();
|
|
310
430
|
};
|
|
431
|
+
export const se_DeleteConnectorV2Command = async (input, context) => {
|
|
432
|
+
const b = rb(input, context);
|
|
433
|
+
const headers = {};
|
|
434
|
+
b.bp("/connectorsv2/{ConnectorId+}");
|
|
435
|
+
b.p("ConnectorId", () => input.ConnectorId, "{ConnectorId+}", true);
|
|
436
|
+
let body;
|
|
437
|
+
b.m("DELETE").h(headers).b(body);
|
|
438
|
+
return b.build();
|
|
439
|
+
};
|
|
311
440
|
export const se_DeleteFindingAggregatorCommand = async (input, context) => {
|
|
312
441
|
const b = rb(input, context);
|
|
313
442
|
const headers = {};
|
|
@@ -399,6 +528,26 @@ export const se_DescribeProductsCommand = async (input, context) => {
|
|
|
399
528
|
b.m("GET").h(headers).q(query).b(body);
|
|
400
529
|
return b.build();
|
|
401
530
|
};
|
|
531
|
+
export const se_DescribeProductsV2Command = async (input, context) => {
|
|
532
|
+
const b = rb(input, context);
|
|
533
|
+
const headers = {};
|
|
534
|
+
b.bp("/productsV2");
|
|
535
|
+
const query = map({
|
|
536
|
+
[_NT]: [, input[_NT]],
|
|
537
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
538
|
+
});
|
|
539
|
+
let body;
|
|
540
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
541
|
+
return b.build();
|
|
542
|
+
};
|
|
543
|
+
export const se_DescribeSecurityHubV2Command = async (input, context) => {
|
|
544
|
+
const b = rb(input, context);
|
|
545
|
+
const headers = {};
|
|
546
|
+
b.bp("/hubv2");
|
|
547
|
+
let body;
|
|
548
|
+
b.m("GET").h(headers).b(body);
|
|
549
|
+
return b.build();
|
|
550
|
+
};
|
|
402
551
|
export const se_DescribeStandardsCommand = async (input, context) => {
|
|
403
552
|
const b = rb(input, context);
|
|
404
553
|
const headers = {};
|
|
@@ -442,6 +591,7 @@ export const se_DisableOrganizationAdminAccountCommand = async (input, context)
|
|
|
442
591
|
let body;
|
|
443
592
|
body = JSON.stringify(take(input, {
|
|
444
593
|
AdminAccountId: [],
|
|
594
|
+
Feature: [],
|
|
445
595
|
}));
|
|
446
596
|
b.m("POST").h(headers).b(body);
|
|
447
597
|
return b.build();
|
|
@@ -454,6 +604,14 @@ export const se_DisableSecurityHubCommand = async (input, context) => {
|
|
|
454
604
|
b.m("DELETE").h(headers).b(body);
|
|
455
605
|
return b.build();
|
|
456
606
|
};
|
|
607
|
+
export const se_DisableSecurityHubV2Command = async (input, context) => {
|
|
608
|
+
const b = rb(input, context);
|
|
609
|
+
const headers = {};
|
|
610
|
+
b.bp("/hubv2");
|
|
611
|
+
let body;
|
|
612
|
+
b.m("DELETE").h(headers).b(body);
|
|
613
|
+
return b.build();
|
|
614
|
+
};
|
|
457
615
|
export const se_DisassociateFromAdministratorAccountCommand = async (input, context) => {
|
|
458
616
|
const b = rb(input, context);
|
|
459
617
|
const headers = {};
|
|
@@ -505,6 +663,7 @@ export const se_EnableOrganizationAdminAccountCommand = async (input, context) =
|
|
|
505
663
|
let body;
|
|
506
664
|
body = JSON.stringify(take(input, {
|
|
507
665
|
AdminAccountId: [],
|
|
666
|
+
Feature: [],
|
|
508
667
|
}));
|
|
509
668
|
b.m("POST").h(headers).b(body);
|
|
510
669
|
return b.build();
|
|
@@ -524,6 +683,19 @@ export const se_EnableSecurityHubCommand = async (input, context) => {
|
|
|
524
683
|
b.m("POST").h(headers).b(body);
|
|
525
684
|
return b.build();
|
|
526
685
|
};
|
|
686
|
+
export const se_EnableSecurityHubV2Command = async (input, context) => {
|
|
687
|
+
const b = rb(input, context);
|
|
688
|
+
const headers = {
|
|
689
|
+
"content-type": "application/json",
|
|
690
|
+
};
|
|
691
|
+
b.bp("/hubv2");
|
|
692
|
+
let body;
|
|
693
|
+
body = JSON.stringify(take(input, {
|
|
694
|
+
Tags: (_) => _json(_),
|
|
695
|
+
}));
|
|
696
|
+
b.m("POST").h(headers).b(body);
|
|
697
|
+
return b.build();
|
|
698
|
+
};
|
|
527
699
|
export const se_GetAdministratorAccountCommand = async (input, context) => {
|
|
528
700
|
const b = rb(input, context);
|
|
529
701
|
const headers = {};
|
|
@@ -532,6 +704,24 @@ export const se_GetAdministratorAccountCommand = async (input, context) => {
|
|
|
532
704
|
b.m("GET").h(headers).b(body);
|
|
533
705
|
return b.build();
|
|
534
706
|
};
|
|
707
|
+
export const se_GetAggregatorV2Command = async (input, context) => {
|
|
708
|
+
const b = rb(input, context);
|
|
709
|
+
const headers = {};
|
|
710
|
+
b.bp("/aggregatorv2/get/{AggregatorV2Arn+}");
|
|
711
|
+
b.p("AggregatorV2Arn", () => input.AggregatorV2Arn, "{AggregatorV2Arn+}", true);
|
|
712
|
+
let body;
|
|
713
|
+
b.m("GET").h(headers).b(body);
|
|
714
|
+
return b.build();
|
|
715
|
+
};
|
|
716
|
+
export const se_GetAutomationRuleV2Command = async (input, context) => {
|
|
717
|
+
const b = rb(input, context);
|
|
718
|
+
const headers = {};
|
|
719
|
+
b.bp("/automationrulesv2/{Identifier}");
|
|
720
|
+
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
721
|
+
let body;
|
|
722
|
+
b.m("GET").h(headers).b(body);
|
|
723
|
+
return b.build();
|
|
724
|
+
};
|
|
535
725
|
export const se_GetConfigurationPolicyCommand = async (input, context) => {
|
|
536
726
|
const b = rb(input, context);
|
|
537
727
|
const headers = {};
|
|
@@ -554,6 +744,15 @@ export const se_GetConfigurationPolicyAssociationCommand = async (input, context
|
|
|
554
744
|
b.m("POST").h(headers).b(body);
|
|
555
745
|
return b.build();
|
|
556
746
|
};
|
|
747
|
+
export const se_GetConnectorV2Command = async (input, context) => {
|
|
748
|
+
const b = rb(input, context);
|
|
749
|
+
const headers = {};
|
|
750
|
+
b.bp("/connectorsv2/{ConnectorId+}");
|
|
751
|
+
b.p("ConnectorId", () => input.ConnectorId, "{ConnectorId+}", true);
|
|
752
|
+
let body;
|
|
753
|
+
b.m("GET").h(headers).b(body);
|
|
754
|
+
return b.build();
|
|
755
|
+
};
|
|
557
756
|
export const se_GetEnabledStandardsCommand = async (input, context) => {
|
|
558
757
|
const b = rb(input, context);
|
|
559
758
|
const headers = {
|
|
@@ -611,6 +810,37 @@ export const se_GetFindingsCommand = async (input, context) => {
|
|
|
611
810
|
b.m("POST").h(headers).b(body);
|
|
612
811
|
return b.build();
|
|
613
812
|
};
|
|
813
|
+
export const se_GetFindingStatisticsV2Command = async (input, context) => {
|
|
814
|
+
const b = rb(input, context);
|
|
815
|
+
const headers = {
|
|
816
|
+
"content-type": "application/json",
|
|
817
|
+
};
|
|
818
|
+
b.bp("/findingsv2/statistics");
|
|
819
|
+
let body;
|
|
820
|
+
body = JSON.stringify(take(input, {
|
|
821
|
+
GroupByRules: (_) => se_GroupByRules(_, context),
|
|
822
|
+
MaxStatisticResults: [],
|
|
823
|
+
SortOrder: [],
|
|
824
|
+
}));
|
|
825
|
+
b.m("POST").h(headers).b(body);
|
|
826
|
+
return b.build();
|
|
827
|
+
};
|
|
828
|
+
export const se_GetFindingsV2Command = async (input, context) => {
|
|
829
|
+
const b = rb(input, context);
|
|
830
|
+
const headers = {
|
|
831
|
+
"content-type": "application/json",
|
|
832
|
+
};
|
|
833
|
+
b.bp("/findingsv2");
|
|
834
|
+
let body;
|
|
835
|
+
body = JSON.stringify(take(input, {
|
|
836
|
+
Filters: (_) => se_OcsfFindingFilters(_, context),
|
|
837
|
+
MaxResults: [],
|
|
838
|
+
NextToken: [],
|
|
839
|
+
SortCriteria: (_) => _json(_),
|
|
840
|
+
}));
|
|
841
|
+
b.m("POST").h(headers).b(body);
|
|
842
|
+
return b.build();
|
|
843
|
+
};
|
|
614
844
|
export const se_GetInsightResultsCommand = async (input, context) => {
|
|
615
845
|
const b = rb(input, context);
|
|
616
846
|
const headers = {};
|
|
@@ -664,6 +894,37 @@ export const se_GetMembersCommand = async (input, context) => {
|
|
|
664
894
|
b.m("POST").h(headers).b(body);
|
|
665
895
|
return b.build();
|
|
666
896
|
};
|
|
897
|
+
export const se_GetResourcesStatisticsV2Command = async (input, context) => {
|
|
898
|
+
const b = rb(input, context);
|
|
899
|
+
const headers = {
|
|
900
|
+
"content-type": "application/json",
|
|
901
|
+
};
|
|
902
|
+
b.bp("/resourcesv2/statistics");
|
|
903
|
+
let body;
|
|
904
|
+
body = JSON.stringify(take(input, {
|
|
905
|
+
GroupByRules: (_) => se_ResourceGroupByRules(_, context),
|
|
906
|
+
MaxStatisticResults: [],
|
|
907
|
+
SortOrder: [],
|
|
908
|
+
}));
|
|
909
|
+
b.m("POST").h(headers).b(body);
|
|
910
|
+
return b.build();
|
|
911
|
+
};
|
|
912
|
+
export const se_GetResourcesV2Command = async (input, context) => {
|
|
913
|
+
const b = rb(input, context);
|
|
914
|
+
const headers = {
|
|
915
|
+
"content-type": "application/json",
|
|
916
|
+
};
|
|
917
|
+
b.bp("/resourcesv2");
|
|
918
|
+
let body;
|
|
919
|
+
body = JSON.stringify(take(input, {
|
|
920
|
+
Filters: (_) => se_ResourcesFilters(_, context),
|
|
921
|
+
MaxResults: [],
|
|
922
|
+
NextToken: [],
|
|
923
|
+
SortCriteria: (_) => _json(_),
|
|
924
|
+
}));
|
|
925
|
+
b.m("POST").h(headers).b(body);
|
|
926
|
+
return b.build();
|
|
927
|
+
};
|
|
667
928
|
export const se_GetSecurityControlDefinitionCommand = async (input, context) => {
|
|
668
929
|
const b = rb(input, context);
|
|
669
930
|
const headers = {};
|
|
@@ -688,6 +949,18 @@ export const se_InviteMembersCommand = async (input, context) => {
|
|
|
688
949
|
b.m("POST").h(headers).b(body);
|
|
689
950
|
return b.build();
|
|
690
951
|
};
|
|
952
|
+
export const se_ListAggregatorsV2Command = async (input, context) => {
|
|
953
|
+
const b = rb(input, context);
|
|
954
|
+
const headers = {};
|
|
955
|
+
b.bp("/aggregatorv2/list");
|
|
956
|
+
const query = map({
|
|
957
|
+
[_NT]: [, input[_NT]],
|
|
958
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
959
|
+
});
|
|
960
|
+
let body;
|
|
961
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
962
|
+
return b.build();
|
|
963
|
+
};
|
|
691
964
|
export const se_ListAutomationRulesCommand = async (input, context) => {
|
|
692
965
|
const b = rb(input, context);
|
|
693
966
|
const headers = {};
|
|
@@ -700,6 +973,18 @@ export const se_ListAutomationRulesCommand = async (input, context) => {
|
|
|
700
973
|
b.m("GET").h(headers).q(query).b(body);
|
|
701
974
|
return b.build();
|
|
702
975
|
};
|
|
976
|
+
export const se_ListAutomationRulesV2Command = async (input, context) => {
|
|
977
|
+
const b = rb(input, context);
|
|
978
|
+
const headers = {};
|
|
979
|
+
b.bp("/automationrulesv2/list");
|
|
980
|
+
const query = map({
|
|
981
|
+
[_NT]: [, input[_NT]],
|
|
982
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
983
|
+
});
|
|
984
|
+
let body;
|
|
985
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
986
|
+
return b.build();
|
|
987
|
+
};
|
|
703
988
|
export const se_ListConfigurationPoliciesCommand = async (input, context) => {
|
|
704
989
|
const b = rb(input, context);
|
|
705
990
|
const headers = {};
|
|
@@ -727,6 +1012,20 @@ export const se_ListConfigurationPolicyAssociationsCommand = async (input, conte
|
|
|
727
1012
|
b.m("POST").h(headers).b(body);
|
|
728
1013
|
return b.build();
|
|
729
1014
|
};
|
|
1015
|
+
export const se_ListConnectorsV2Command = async (input, context) => {
|
|
1016
|
+
const b = rb(input, context);
|
|
1017
|
+
const headers = {};
|
|
1018
|
+
b.bp("/connectorsv2");
|
|
1019
|
+
const query = map({
|
|
1020
|
+
[_NT]: [, input[_NT]],
|
|
1021
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
1022
|
+
[_PN]: [, input[_PN]],
|
|
1023
|
+
[_CS]: [, input[_CS]],
|
|
1024
|
+
});
|
|
1025
|
+
let body;
|
|
1026
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1027
|
+
return b.build();
|
|
1028
|
+
};
|
|
730
1029
|
export const se_ListEnabledProductsForImportCommand = async (input, context) => {
|
|
731
1030
|
const b = rb(input, context);
|
|
732
1031
|
const headers = {};
|
|
@@ -783,6 +1082,7 @@ export const se_ListOrganizationAdminAccountsCommand = async (input, context) =>
|
|
|
783
1082
|
const query = map({
|
|
784
1083
|
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
785
1084
|
[_NT]: [, input[_NT]],
|
|
1085
|
+
[_F]: [, input[_F]],
|
|
786
1086
|
});
|
|
787
1087
|
let body;
|
|
788
1088
|
b.m("GET").h(headers).q(query).b(body);
|
|
@@ -892,6 +1192,40 @@ export const se_UpdateActionTargetCommand = async (input, context) => {
|
|
|
892
1192
|
b.m("PATCH").h(headers).b(body);
|
|
893
1193
|
return b.build();
|
|
894
1194
|
};
|
|
1195
|
+
export const se_UpdateAggregatorV2Command = async (input, context) => {
|
|
1196
|
+
const b = rb(input, context);
|
|
1197
|
+
const headers = {
|
|
1198
|
+
"content-type": "application/json",
|
|
1199
|
+
};
|
|
1200
|
+
b.bp("/aggregatorv2/update/{AggregatorV2Arn+}");
|
|
1201
|
+
b.p("AggregatorV2Arn", () => input.AggregatorV2Arn, "{AggregatorV2Arn+}", true);
|
|
1202
|
+
let body;
|
|
1203
|
+
body = JSON.stringify(take(input, {
|
|
1204
|
+
LinkedRegions: (_) => _json(_),
|
|
1205
|
+
RegionLinkingMode: [],
|
|
1206
|
+
}));
|
|
1207
|
+
b.m("PATCH").h(headers).b(body);
|
|
1208
|
+
return b.build();
|
|
1209
|
+
};
|
|
1210
|
+
export const se_UpdateAutomationRuleV2Command = async (input, context) => {
|
|
1211
|
+
const b = rb(input, context);
|
|
1212
|
+
const headers = {
|
|
1213
|
+
"content-type": "application/json",
|
|
1214
|
+
};
|
|
1215
|
+
b.bp("/automationrulesv2/{Identifier}");
|
|
1216
|
+
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
1217
|
+
let body;
|
|
1218
|
+
body = JSON.stringify(take(input, {
|
|
1219
|
+
Actions: (_) => _json(_),
|
|
1220
|
+
Criteria: (_) => se_Criteria(_, context),
|
|
1221
|
+
Description: [],
|
|
1222
|
+
RuleName: [],
|
|
1223
|
+
RuleOrder: (_) => __serializeFloat(_),
|
|
1224
|
+
RuleStatus: [],
|
|
1225
|
+
}));
|
|
1226
|
+
b.m("PATCH").h(headers).b(body);
|
|
1227
|
+
return b.build();
|
|
1228
|
+
};
|
|
895
1229
|
export const se_UpdateConfigurationPolicyCommand = async (input, context) => {
|
|
896
1230
|
const b = rb(input, context);
|
|
897
1231
|
const headers = {
|
|
@@ -909,6 +1243,22 @@ export const se_UpdateConfigurationPolicyCommand = async (input, context) => {
|
|
|
909
1243
|
b.m("PATCH").h(headers).b(body);
|
|
910
1244
|
return b.build();
|
|
911
1245
|
};
|
|
1246
|
+
export const se_UpdateConnectorV2Command = async (input, context) => {
|
|
1247
|
+
const b = rb(input, context);
|
|
1248
|
+
const headers = {
|
|
1249
|
+
"content-type": "application/json",
|
|
1250
|
+
};
|
|
1251
|
+
b.bp("/connectorsv2/{ConnectorId+}");
|
|
1252
|
+
b.p("ConnectorId", () => input.ConnectorId, "{ConnectorId+}", true);
|
|
1253
|
+
let body;
|
|
1254
|
+
body = JSON.stringify(take(input, {
|
|
1255
|
+
ClientSecret: [],
|
|
1256
|
+
Description: [],
|
|
1257
|
+
Provider: (_) => _json(_),
|
|
1258
|
+
}));
|
|
1259
|
+
b.m("PATCH").h(headers).b(body);
|
|
1260
|
+
return b.build();
|
|
1261
|
+
};
|
|
912
1262
|
export const se_UpdateFindingAggregatorCommand = async (input, context) => {
|
|
913
1263
|
const b = rb(input, context);
|
|
914
1264
|
const headers = {
|
|
@@ -1183,7 +1533,7 @@ export const de_BatchUpdateFindingsCommand = async (output, context) => {
|
|
|
1183
1533
|
Object.assign(contents, doc);
|
|
1184
1534
|
return contents;
|
|
1185
1535
|
};
|
|
1186
|
-
export const
|
|
1536
|
+
export const de_BatchUpdateFindingsV2Command = async (output, context) => {
|
|
1187
1537
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1188
1538
|
return de_CommandError(output, context);
|
|
1189
1539
|
}
|
|
@@ -1192,8 +1542,38 @@ export const de_BatchUpdateStandardsControlAssociationsCommand = async (output,
|
|
|
1192
1542
|
});
|
|
1193
1543
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1194
1544
|
const doc = take(data, {
|
|
1195
|
-
|
|
1196
|
-
|
|
1545
|
+
ProcessedFindings: _json,
|
|
1546
|
+
UnprocessedFindings: _json,
|
|
1547
|
+
});
|
|
1548
|
+
Object.assign(contents, doc);
|
|
1549
|
+
return contents;
|
|
1550
|
+
};
|
|
1551
|
+
export const de_BatchUpdateStandardsControlAssociationsCommand = async (output, context) => {
|
|
1552
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1553
|
+
return de_CommandError(output, context);
|
|
1554
|
+
}
|
|
1555
|
+
const contents = map({
|
|
1556
|
+
$metadata: deserializeMetadata(output),
|
|
1557
|
+
});
|
|
1558
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1559
|
+
const doc = take(data, {
|
|
1560
|
+
UnprocessedAssociationUpdates: _json,
|
|
1561
|
+
});
|
|
1562
|
+
Object.assign(contents, doc);
|
|
1563
|
+
return contents;
|
|
1564
|
+
};
|
|
1565
|
+
export const de_ConnectorRegistrationsV2Command = async (output, context) => {
|
|
1566
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1567
|
+
return de_CommandError(output, context);
|
|
1568
|
+
}
|
|
1569
|
+
const contents = map({
|
|
1570
|
+
$metadata: deserializeMetadata(output),
|
|
1571
|
+
});
|
|
1572
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1573
|
+
const doc = take(data, {
|
|
1574
|
+
ConnectorArn: __expectString,
|
|
1575
|
+
ConnectorId: __expectString,
|
|
1576
|
+
});
|
|
1197
1577
|
Object.assign(contents, doc);
|
|
1198
1578
|
return contents;
|
|
1199
1579
|
};
|
|
@@ -1211,6 +1591,23 @@ export const de_CreateActionTargetCommand = async (output, context) => {
|
|
|
1211
1591
|
Object.assign(contents, doc);
|
|
1212
1592
|
return contents;
|
|
1213
1593
|
};
|
|
1594
|
+
export const de_CreateAggregatorV2Command = async (output, context) => {
|
|
1595
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1596
|
+
return de_CommandError(output, context);
|
|
1597
|
+
}
|
|
1598
|
+
const contents = map({
|
|
1599
|
+
$metadata: deserializeMetadata(output),
|
|
1600
|
+
});
|
|
1601
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1602
|
+
const doc = take(data, {
|
|
1603
|
+
AggregationRegion: __expectString,
|
|
1604
|
+
AggregatorV2Arn: __expectString,
|
|
1605
|
+
LinkedRegions: _json,
|
|
1606
|
+
RegionLinkingMode: __expectString,
|
|
1607
|
+
});
|
|
1608
|
+
Object.assign(contents, doc);
|
|
1609
|
+
return contents;
|
|
1610
|
+
};
|
|
1214
1611
|
export const de_CreateAutomationRuleCommand = async (output, context) => {
|
|
1215
1612
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1216
1613
|
return de_CommandError(output, context);
|
|
@@ -1225,6 +1622,21 @@ export const de_CreateAutomationRuleCommand = async (output, context) => {
|
|
|
1225
1622
|
Object.assign(contents, doc);
|
|
1226
1623
|
return contents;
|
|
1227
1624
|
};
|
|
1625
|
+
export const de_CreateAutomationRuleV2Command = async (output, context) => {
|
|
1626
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1627
|
+
return de_CommandError(output, context);
|
|
1628
|
+
}
|
|
1629
|
+
const contents = map({
|
|
1630
|
+
$metadata: deserializeMetadata(output),
|
|
1631
|
+
});
|
|
1632
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1633
|
+
const doc = take(data, {
|
|
1634
|
+
RuleArn: __expectString,
|
|
1635
|
+
RuleId: __expectString,
|
|
1636
|
+
});
|
|
1637
|
+
Object.assign(contents, doc);
|
|
1638
|
+
return contents;
|
|
1639
|
+
};
|
|
1228
1640
|
export const de_CreateConfigurationPolicyCommand = async (output, context) => {
|
|
1229
1641
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1230
1642
|
return de_CommandError(output, context);
|
|
@@ -1245,6 +1657,22 @@ export const de_CreateConfigurationPolicyCommand = async (output, context) => {
|
|
|
1245
1657
|
Object.assign(contents, doc);
|
|
1246
1658
|
return contents;
|
|
1247
1659
|
};
|
|
1660
|
+
export const de_CreateConnectorV2Command = async (output, context) => {
|
|
1661
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1662
|
+
return de_CommandError(output, context);
|
|
1663
|
+
}
|
|
1664
|
+
const contents = map({
|
|
1665
|
+
$metadata: deserializeMetadata(output),
|
|
1666
|
+
});
|
|
1667
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1668
|
+
const doc = take(data, {
|
|
1669
|
+
AuthUrl: __expectString,
|
|
1670
|
+
ConnectorArn: __expectString,
|
|
1671
|
+
ConnectorId: __expectString,
|
|
1672
|
+
});
|
|
1673
|
+
Object.assign(contents, doc);
|
|
1674
|
+
return contents;
|
|
1675
|
+
};
|
|
1248
1676
|
export const de_CreateFindingAggregatorCommand = async (output, context) => {
|
|
1249
1677
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1250
1678
|
return de_CommandError(output, context);
|
|
@@ -1290,6 +1718,21 @@ export const de_CreateMembersCommand = async (output, context) => {
|
|
|
1290
1718
|
Object.assign(contents, doc);
|
|
1291
1719
|
return contents;
|
|
1292
1720
|
};
|
|
1721
|
+
export const de_CreateTicketV2Command = async (output, context) => {
|
|
1722
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1723
|
+
return de_CommandError(output, context);
|
|
1724
|
+
}
|
|
1725
|
+
const contents = map({
|
|
1726
|
+
$metadata: deserializeMetadata(output),
|
|
1727
|
+
});
|
|
1728
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1729
|
+
const doc = take(data, {
|
|
1730
|
+
TicketId: __expectString,
|
|
1731
|
+
TicketSrcUrl: __expectString,
|
|
1732
|
+
});
|
|
1733
|
+
Object.assign(contents, doc);
|
|
1734
|
+
return contents;
|
|
1735
|
+
};
|
|
1293
1736
|
export const de_DeclineInvitationsCommand = async (output, context) => {
|
|
1294
1737
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1295
1738
|
return de_CommandError(output, context);
|
|
@@ -1318,6 +1761,26 @@ export const de_DeleteActionTargetCommand = async (output, context) => {
|
|
|
1318
1761
|
Object.assign(contents, doc);
|
|
1319
1762
|
return contents;
|
|
1320
1763
|
};
|
|
1764
|
+
export const de_DeleteAggregatorV2Command = async (output, context) => {
|
|
1765
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1766
|
+
return de_CommandError(output, context);
|
|
1767
|
+
}
|
|
1768
|
+
const contents = map({
|
|
1769
|
+
$metadata: deserializeMetadata(output),
|
|
1770
|
+
});
|
|
1771
|
+
await collectBody(output.body, context);
|
|
1772
|
+
return contents;
|
|
1773
|
+
};
|
|
1774
|
+
export const de_DeleteAutomationRuleV2Command = async (output, context) => {
|
|
1775
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1776
|
+
return de_CommandError(output, context);
|
|
1777
|
+
}
|
|
1778
|
+
const contents = map({
|
|
1779
|
+
$metadata: deserializeMetadata(output),
|
|
1780
|
+
});
|
|
1781
|
+
await collectBody(output.body, context);
|
|
1782
|
+
return contents;
|
|
1783
|
+
};
|
|
1321
1784
|
export const de_DeleteConfigurationPolicyCommand = async (output, context) => {
|
|
1322
1785
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1323
1786
|
return de_CommandError(output, context);
|
|
@@ -1328,6 +1791,16 @@ export const de_DeleteConfigurationPolicyCommand = async (output, context) => {
|
|
|
1328
1791
|
await collectBody(output.body, context);
|
|
1329
1792
|
return contents;
|
|
1330
1793
|
};
|
|
1794
|
+
export const de_DeleteConnectorV2Command = async (output, context) => {
|
|
1795
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1796
|
+
return de_CommandError(output, context);
|
|
1797
|
+
}
|
|
1798
|
+
const contents = map({
|
|
1799
|
+
$metadata: deserializeMetadata(output),
|
|
1800
|
+
});
|
|
1801
|
+
await collectBody(output.body, context);
|
|
1802
|
+
return contents;
|
|
1803
|
+
};
|
|
1331
1804
|
export const de_DeleteFindingAggregatorCommand = async (output, context) => {
|
|
1332
1805
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1333
1806
|
return de_CommandError(output, context);
|
|
@@ -1444,6 +1917,36 @@ export const de_DescribeProductsCommand = async (output, context) => {
|
|
|
1444
1917
|
Object.assign(contents, doc);
|
|
1445
1918
|
return contents;
|
|
1446
1919
|
};
|
|
1920
|
+
export const de_DescribeProductsV2Command = async (output, context) => {
|
|
1921
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1922
|
+
return de_CommandError(output, context);
|
|
1923
|
+
}
|
|
1924
|
+
const contents = map({
|
|
1925
|
+
$metadata: deserializeMetadata(output),
|
|
1926
|
+
});
|
|
1927
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1928
|
+
const doc = take(data, {
|
|
1929
|
+
NextToken: __expectString,
|
|
1930
|
+
ProductsV2: _json,
|
|
1931
|
+
});
|
|
1932
|
+
Object.assign(contents, doc);
|
|
1933
|
+
return contents;
|
|
1934
|
+
};
|
|
1935
|
+
export const de_DescribeSecurityHubV2Command = async (output, context) => {
|
|
1936
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1937
|
+
return de_CommandError(output, context);
|
|
1938
|
+
}
|
|
1939
|
+
const contents = map({
|
|
1940
|
+
$metadata: deserializeMetadata(output),
|
|
1941
|
+
});
|
|
1942
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1943
|
+
const doc = take(data, {
|
|
1944
|
+
HubV2Arn: __expectString,
|
|
1945
|
+
SubscribedAt: __expectString,
|
|
1946
|
+
});
|
|
1947
|
+
Object.assign(contents, doc);
|
|
1948
|
+
return contents;
|
|
1949
|
+
};
|
|
1447
1950
|
export const de_DescribeStandardsCommand = async (output, context) => {
|
|
1448
1951
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1449
1952
|
return de_CommandError(output, context);
|
|
@@ -1504,6 +2007,16 @@ export const de_DisableSecurityHubCommand = async (output, context) => {
|
|
|
1504
2007
|
await collectBody(output.body, context);
|
|
1505
2008
|
return contents;
|
|
1506
2009
|
};
|
|
2010
|
+
export const de_DisableSecurityHubV2Command = async (output, context) => {
|
|
2011
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2012
|
+
return de_CommandError(output, context);
|
|
2013
|
+
}
|
|
2014
|
+
const contents = map({
|
|
2015
|
+
$metadata: deserializeMetadata(output),
|
|
2016
|
+
});
|
|
2017
|
+
await collectBody(output.body, context);
|
|
2018
|
+
return contents;
|
|
2019
|
+
};
|
|
1507
2020
|
export const de_DisassociateFromAdministratorAccountCommand = async (output, context) => {
|
|
1508
2021
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1509
2022
|
return de_CommandError(output, context);
|
|
@@ -1555,7 +2068,12 @@ export const de_EnableOrganizationAdminAccountCommand = async (output, context)
|
|
|
1555
2068
|
const contents = map({
|
|
1556
2069
|
$metadata: deserializeMetadata(output),
|
|
1557
2070
|
});
|
|
1558
|
-
await
|
|
2071
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2072
|
+
const doc = take(data, {
|
|
2073
|
+
AdminAccountId: __expectString,
|
|
2074
|
+
Feature: __expectString,
|
|
2075
|
+
});
|
|
2076
|
+
Object.assign(contents, doc);
|
|
1559
2077
|
return contents;
|
|
1560
2078
|
};
|
|
1561
2079
|
export const de_EnableSecurityHubCommand = async (output, context) => {
|
|
@@ -1568,6 +2086,20 @@ export const de_EnableSecurityHubCommand = async (output, context) => {
|
|
|
1568
2086
|
await collectBody(output.body, context);
|
|
1569
2087
|
return contents;
|
|
1570
2088
|
};
|
|
2089
|
+
export const de_EnableSecurityHubV2Command = async (output, context) => {
|
|
2090
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2091
|
+
return de_CommandError(output, context);
|
|
2092
|
+
}
|
|
2093
|
+
const contents = map({
|
|
2094
|
+
$metadata: deserializeMetadata(output),
|
|
2095
|
+
});
|
|
2096
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2097
|
+
const doc = take(data, {
|
|
2098
|
+
HubV2Arn: __expectString,
|
|
2099
|
+
});
|
|
2100
|
+
Object.assign(contents, doc);
|
|
2101
|
+
return contents;
|
|
2102
|
+
};
|
|
1571
2103
|
export const de_GetAdministratorAccountCommand = async (output, context) => {
|
|
1572
2104
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1573
2105
|
return de_CommandError(output, context);
|
|
@@ -1582,6 +2114,46 @@ export const de_GetAdministratorAccountCommand = async (output, context) => {
|
|
|
1582
2114
|
Object.assign(contents, doc);
|
|
1583
2115
|
return contents;
|
|
1584
2116
|
};
|
|
2117
|
+
export const de_GetAggregatorV2Command = async (output, context) => {
|
|
2118
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2119
|
+
return de_CommandError(output, context);
|
|
2120
|
+
}
|
|
2121
|
+
const contents = map({
|
|
2122
|
+
$metadata: deserializeMetadata(output),
|
|
2123
|
+
});
|
|
2124
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2125
|
+
const doc = take(data, {
|
|
2126
|
+
AggregationRegion: __expectString,
|
|
2127
|
+
AggregatorV2Arn: __expectString,
|
|
2128
|
+
LinkedRegions: _json,
|
|
2129
|
+
RegionLinkingMode: __expectString,
|
|
2130
|
+
});
|
|
2131
|
+
Object.assign(contents, doc);
|
|
2132
|
+
return contents;
|
|
2133
|
+
};
|
|
2134
|
+
export const de_GetAutomationRuleV2Command = async (output, context) => {
|
|
2135
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2136
|
+
return de_CommandError(output, context);
|
|
2137
|
+
}
|
|
2138
|
+
const contents = map({
|
|
2139
|
+
$metadata: deserializeMetadata(output),
|
|
2140
|
+
});
|
|
2141
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2142
|
+
const doc = take(data, {
|
|
2143
|
+
Actions: _json,
|
|
2144
|
+
CreatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2145
|
+
Criteria: (_) => de_Criteria(__expectUnion(_), context),
|
|
2146
|
+
Description: __expectString,
|
|
2147
|
+
RuleArn: __expectString,
|
|
2148
|
+
RuleId: __expectString,
|
|
2149
|
+
RuleName: __expectString,
|
|
2150
|
+
RuleOrder: __limitedParseFloat32,
|
|
2151
|
+
RuleStatus: __expectString,
|
|
2152
|
+
UpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2153
|
+
});
|
|
2154
|
+
Object.assign(contents, doc);
|
|
2155
|
+
return contents;
|
|
2156
|
+
};
|
|
1585
2157
|
export const de_GetConfigurationPolicyCommand = async (output, context) => {
|
|
1586
2158
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1587
2159
|
return de_CommandError(output, context);
|
|
@@ -1622,6 +2194,28 @@ export const de_GetConfigurationPolicyAssociationCommand = async (output, contex
|
|
|
1622
2194
|
Object.assign(contents, doc);
|
|
1623
2195
|
return contents;
|
|
1624
2196
|
};
|
|
2197
|
+
export const de_GetConnectorV2Command = async (output, context) => {
|
|
2198
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2199
|
+
return de_CommandError(output, context);
|
|
2200
|
+
}
|
|
2201
|
+
const contents = map({
|
|
2202
|
+
$metadata: deserializeMetadata(output),
|
|
2203
|
+
});
|
|
2204
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2205
|
+
const doc = take(data, {
|
|
2206
|
+
ConnectorArn: __expectString,
|
|
2207
|
+
ConnectorId: __expectString,
|
|
2208
|
+
CreatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2209
|
+
Description: __expectString,
|
|
2210
|
+
Health: (_) => de_HealthCheck(_, context),
|
|
2211
|
+
KmsKeyArn: __expectString,
|
|
2212
|
+
LastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2213
|
+
Name: __expectString,
|
|
2214
|
+
ProviderDetail: (_) => _json(__expectUnion(_)),
|
|
2215
|
+
});
|
|
2216
|
+
Object.assign(contents, doc);
|
|
2217
|
+
return contents;
|
|
2218
|
+
};
|
|
1625
2219
|
export const de_GetEnabledStandardsCommand = async (output, context) => {
|
|
1626
2220
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1627
2221
|
return de_CommandError(output, context);
|
|
@@ -1663,13 +2257,114 @@ export const de_GetFindingHistoryCommand = async (output, context) => {
|
|
|
1663
2257
|
});
|
|
1664
2258
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1665
2259
|
const doc = take(data, {
|
|
1666
|
-
NextToken: __expectString,
|
|
1667
|
-
Records: (_) => de_FindingHistoryRecordList(_, context),
|
|
2260
|
+
NextToken: __expectString,
|
|
2261
|
+
Records: (_) => de_FindingHistoryRecordList(_, context),
|
|
2262
|
+
});
|
|
2263
|
+
Object.assign(contents, doc);
|
|
2264
|
+
return contents;
|
|
2265
|
+
};
|
|
2266
|
+
export const de_GetFindingsCommand = async (output, context) => {
|
|
2267
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2268
|
+
return de_CommandError(output, context);
|
|
2269
|
+
}
|
|
2270
|
+
const contents = map({
|
|
2271
|
+
$metadata: deserializeMetadata(output),
|
|
2272
|
+
});
|
|
2273
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2274
|
+
const doc = take(data, {
|
|
2275
|
+
Findings: (_) => de_AwsSecurityFindingList(_, context),
|
|
2276
|
+
NextToken: __expectString,
|
|
2277
|
+
});
|
|
2278
|
+
Object.assign(contents, doc);
|
|
2279
|
+
return contents;
|
|
2280
|
+
};
|
|
2281
|
+
export const de_GetFindingStatisticsV2Command = async (output, context) => {
|
|
2282
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2283
|
+
return de_CommandError(output, context);
|
|
2284
|
+
}
|
|
2285
|
+
const contents = map({
|
|
2286
|
+
$metadata: deserializeMetadata(output),
|
|
2287
|
+
});
|
|
2288
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2289
|
+
const doc = take(data, {
|
|
2290
|
+
GroupByResults: _json,
|
|
2291
|
+
});
|
|
2292
|
+
Object.assign(contents, doc);
|
|
2293
|
+
return contents;
|
|
2294
|
+
};
|
|
2295
|
+
export const de_GetFindingsV2Command = async (output, context) => {
|
|
2296
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2297
|
+
return de_CommandError(output, context);
|
|
2298
|
+
}
|
|
2299
|
+
const contents = map({
|
|
2300
|
+
$metadata: deserializeMetadata(output),
|
|
2301
|
+
});
|
|
2302
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2303
|
+
const doc = take(data, {
|
|
2304
|
+
Findings: (_) => de_OcsfFindingsList(_, context),
|
|
2305
|
+
NextToken: __expectString,
|
|
2306
|
+
});
|
|
2307
|
+
Object.assign(contents, doc);
|
|
2308
|
+
return contents;
|
|
2309
|
+
};
|
|
2310
|
+
export const de_GetInsightResultsCommand = async (output, context) => {
|
|
2311
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2312
|
+
return de_CommandError(output, context);
|
|
2313
|
+
}
|
|
2314
|
+
const contents = map({
|
|
2315
|
+
$metadata: deserializeMetadata(output),
|
|
2316
|
+
});
|
|
2317
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2318
|
+
const doc = take(data, {
|
|
2319
|
+
InsightResults: _json,
|
|
2320
|
+
});
|
|
2321
|
+
Object.assign(contents, doc);
|
|
2322
|
+
return contents;
|
|
2323
|
+
};
|
|
2324
|
+
export const de_GetInsightsCommand = async (output, context) => {
|
|
2325
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2326
|
+
return de_CommandError(output, context);
|
|
2327
|
+
}
|
|
2328
|
+
const contents = map({
|
|
2329
|
+
$metadata: deserializeMetadata(output),
|
|
2330
|
+
});
|
|
2331
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2332
|
+
const doc = take(data, {
|
|
2333
|
+
Insights: (_) => de_InsightList(_, context),
|
|
2334
|
+
NextToken: __expectString,
|
|
2335
|
+
});
|
|
2336
|
+
Object.assign(contents, doc);
|
|
2337
|
+
return contents;
|
|
2338
|
+
};
|
|
2339
|
+
export const de_GetInvitationsCountCommand = async (output, context) => {
|
|
2340
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2341
|
+
return de_CommandError(output, context);
|
|
2342
|
+
}
|
|
2343
|
+
const contents = map({
|
|
2344
|
+
$metadata: deserializeMetadata(output),
|
|
2345
|
+
});
|
|
2346
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2347
|
+
const doc = take(data, {
|
|
2348
|
+
InvitationsCount: __expectInt32,
|
|
2349
|
+
});
|
|
2350
|
+
Object.assign(contents, doc);
|
|
2351
|
+
return contents;
|
|
2352
|
+
};
|
|
2353
|
+
export const de_GetMasterAccountCommand = async (output, context) => {
|
|
2354
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2355
|
+
return de_CommandError(output, context);
|
|
2356
|
+
}
|
|
2357
|
+
const contents = map({
|
|
2358
|
+
$metadata: deserializeMetadata(output),
|
|
2359
|
+
});
|
|
2360
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2361
|
+
const doc = take(data, {
|
|
2362
|
+
Master: (_) => de_Invitation(_, context),
|
|
1668
2363
|
});
|
|
1669
2364
|
Object.assign(contents, doc);
|
|
1670
2365
|
return contents;
|
|
1671
2366
|
};
|
|
1672
|
-
export const
|
|
2367
|
+
export const de_GetMembersCommand = async (output, context) => {
|
|
1673
2368
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1674
2369
|
return de_CommandError(output, context);
|
|
1675
2370
|
}
|
|
@@ -1678,13 +2373,13 @@ export const de_GetFindingsCommand = async (output, context) => {
|
|
|
1678
2373
|
});
|
|
1679
2374
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1680
2375
|
const doc = take(data, {
|
|
1681
|
-
|
|
1682
|
-
|
|
2376
|
+
Members: (_) => de_MemberList(_, context),
|
|
2377
|
+
UnprocessedAccounts: _json,
|
|
1683
2378
|
});
|
|
1684
2379
|
Object.assign(contents, doc);
|
|
1685
2380
|
return contents;
|
|
1686
2381
|
};
|
|
1687
|
-
export const
|
|
2382
|
+
export const de_GetResourcesStatisticsV2Command = async (output, context) => {
|
|
1688
2383
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1689
2384
|
return de_CommandError(output, context);
|
|
1690
2385
|
}
|
|
@@ -1693,12 +2388,12 @@ export const de_GetInsightResultsCommand = async (output, context) => {
|
|
|
1693
2388
|
});
|
|
1694
2389
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1695
2390
|
const doc = take(data, {
|
|
1696
|
-
|
|
2391
|
+
GroupByResults: _json,
|
|
1697
2392
|
});
|
|
1698
2393
|
Object.assign(contents, doc);
|
|
1699
2394
|
return contents;
|
|
1700
2395
|
};
|
|
1701
|
-
export const
|
|
2396
|
+
export const de_GetResourcesV2Command = async (output, context) => {
|
|
1702
2397
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1703
2398
|
return de_CommandError(output, context);
|
|
1704
2399
|
}
|
|
@@ -1707,13 +2402,13 @@ export const de_GetInsightsCommand = async (output, context) => {
|
|
|
1707
2402
|
});
|
|
1708
2403
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1709
2404
|
const doc = take(data, {
|
|
1710
|
-
Insights: (_) => de_InsightList(_, context),
|
|
1711
2405
|
NextToken: __expectString,
|
|
2406
|
+
Resources: (_) => de_Resources(_, context),
|
|
1712
2407
|
});
|
|
1713
2408
|
Object.assign(contents, doc);
|
|
1714
2409
|
return contents;
|
|
1715
2410
|
};
|
|
1716
|
-
export const
|
|
2411
|
+
export const de_GetSecurityControlDefinitionCommand = async (output, context) => {
|
|
1717
2412
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1718
2413
|
return de_CommandError(output, context);
|
|
1719
2414
|
}
|
|
@@ -1722,12 +2417,12 @@ export const de_GetInvitationsCountCommand = async (output, context) => {
|
|
|
1722
2417
|
});
|
|
1723
2418
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1724
2419
|
const doc = take(data, {
|
|
1725
|
-
|
|
2420
|
+
SecurityControlDefinition: (_) => de_SecurityControlDefinition(_, context),
|
|
1726
2421
|
});
|
|
1727
2422
|
Object.assign(contents, doc);
|
|
1728
2423
|
return contents;
|
|
1729
2424
|
};
|
|
1730
|
-
export const
|
|
2425
|
+
export const de_InviteMembersCommand = async (output, context) => {
|
|
1731
2426
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1732
2427
|
return de_CommandError(output, context);
|
|
1733
2428
|
}
|
|
@@ -1736,12 +2431,12 @@ export const de_GetMasterAccountCommand = async (output, context) => {
|
|
|
1736
2431
|
});
|
|
1737
2432
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1738
2433
|
const doc = take(data, {
|
|
1739
|
-
|
|
2434
|
+
UnprocessedAccounts: _json,
|
|
1740
2435
|
});
|
|
1741
2436
|
Object.assign(contents, doc);
|
|
1742
2437
|
return contents;
|
|
1743
2438
|
};
|
|
1744
|
-
export const
|
|
2439
|
+
export const de_ListAggregatorsV2Command = async (output, context) => {
|
|
1745
2440
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1746
2441
|
return de_CommandError(output, context);
|
|
1747
2442
|
}
|
|
@@ -1750,13 +2445,13 @@ export const de_GetMembersCommand = async (output, context) => {
|
|
|
1750
2445
|
});
|
|
1751
2446
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1752
2447
|
const doc = take(data, {
|
|
1753
|
-
|
|
1754
|
-
|
|
2448
|
+
AggregatorsV2: _json,
|
|
2449
|
+
NextToken: __expectString,
|
|
1755
2450
|
});
|
|
1756
2451
|
Object.assign(contents, doc);
|
|
1757
2452
|
return contents;
|
|
1758
2453
|
};
|
|
1759
|
-
export const
|
|
2454
|
+
export const de_ListAutomationRulesCommand = async (output, context) => {
|
|
1760
2455
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1761
2456
|
return de_CommandError(output, context);
|
|
1762
2457
|
}
|
|
@@ -1765,12 +2460,13 @@ export const de_GetSecurityControlDefinitionCommand = async (output, context) =>
|
|
|
1765
2460
|
});
|
|
1766
2461
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1767
2462
|
const doc = take(data, {
|
|
1768
|
-
|
|
2463
|
+
AutomationRulesMetadata: (_) => de_AutomationRulesMetadataList(_, context),
|
|
2464
|
+
NextToken: __expectString,
|
|
1769
2465
|
});
|
|
1770
2466
|
Object.assign(contents, doc);
|
|
1771
2467
|
return contents;
|
|
1772
2468
|
};
|
|
1773
|
-
export const
|
|
2469
|
+
export const de_ListAutomationRulesV2Command = async (output, context) => {
|
|
1774
2470
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1775
2471
|
return de_CommandError(output, context);
|
|
1776
2472
|
}
|
|
@@ -1779,12 +2475,13 @@ export const de_InviteMembersCommand = async (output, context) => {
|
|
|
1779
2475
|
});
|
|
1780
2476
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1781
2477
|
const doc = take(data, {
|
|
1782
|
-
|
|
2478
|
+
NextToken: __expectString,
|
|
2479
|
+
Rules: (_) => de_AutomationRulesMetadataListV2(_, context),
|
|
1783
2480
|
});
|
|
1784
2481
|
Object.assign(contents, doc);
|
|
1785
2482
|
return contents;
|
|
1786
2483
|
};
|
|
1787
|
-
export const
|
|
2484
|
+
export const de_ListConfigurationPoliciesCommand = async (output, context) => {
|
|
1788
2485
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1789
2486
|
return de_CommandError(output, context);
|
|
1790
2487
|
}
|
|
@@ -1793,13 +2490,13 @@ export const de_ListAutomationRulesCommand = async (output, context) => {
|
|
|
1793
2490
|
});
|
|
1794
2491
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1795
2492
|
const doc = take(data, {
|
|
1796
|
-
|
|
2493
|
+
ConfigurationPolicySummaries: (_) => de_ConfigurationPolicySummaryList(_, context),
|
|
1797
2494
|
NextToken: __expectString,
|
|
1798
2495
|
});
|
|
1799
2496
|
Object.assign(contents, doc);
|
|
1800
2497
|
return contents;
|
|
1801
2498
|
};
|
|
1802
|
-
export const
|
|
2499
|
+
export const de_ListConfigurationPolicyAssociationsCommand = async (output, context) => {
|
|
1803
2500
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1804
2501
|
return de_CommandError(output, context);
|
|
1805
2502
|
}
|
|
@@ -1808,13 +2505,13 @@ export const de_ListConfigurationPoliciesCommand = async (output, context) => {
|
|
|
1808
2505
|
});
|
|
1809
2506
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1810
2507
|
const doc = take(data, {
|
|
1811
|
-
|
|
2508
|
+
ConfigurationPolicyAssociationSummaries: (_) => de_ConfigurationPolicyAssociationSummaryList(_, context),
|
|
1812
2509
|
NextToken: __expectString,
|
|
1813
2510
|
});
|
|
1814
2511
|
Object.assign(contents, doc);
|
|
1815
2512
|
return contents;
|
|
1816
2513
|
};
|
|
1817
|
-
export const
|
|
2514
|
+
export const de_ListConnectorsV2Command = async (output, context) => {
|
|
1818
2515
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1819
2516
|
return de_CommandError(output, context);
|
|
1820
2517
|
}
|
|
@@ -1823,7 +2520,7 @@ export const de_ListConfigurationPolicyAssociationsCommand = async (output, cont
|
|
|
1823
2520
|
});
|
|
1824
2521
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1825
2522
|
const doc = take(data, {
|
|
1826
|
-
|
|
2523
|
+
Connectors: (_) => de_ConnectorSummaryList(_, context),
|
|
1827
2524
|
NextToken: __expectString,
|
|
1828
2525
|
});
|
|
1829
2526
|
Object.assign(contents, doc);
|
|
@@ -1899,6 +2596,7 @@ export const de_ListOrganizationAdminAccountsCommand = async (output, context) =
|
|
|
1899
2596
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1900
2597
|
const doc = take(data, {
|
|
1901
2598
|
AdminAccounts: _json,
|
|
2599
|
+
Feature: __expectString,
|
|
1902
2600
|
NextToken: __expectString,
|
|
1903
2601
|
});
|
|
1904
2602
|
Object.assign(contents, doc);
|
|
@@ -2008,6 +2706,33 @@ export const de_UpdateActionTargetCommand = async (output, context) => {
|
|
|
2008
2706
|
await collectBody(output.body, context);
|
|
2009
2707
|
return contents;
|
|
2010
2708
|
};
|
|
2709
|
+
export const de_UpdateAggregatorV2Command = async (output, context) => {
|
|
2710
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2711
|
+
return de_CommandError(output, context);
|
|
2712
|
+
}
|
|
2713
|
+
const contents = map({
|
|
2714
|
+
$metadata: deserializeMetadata(output),
|
|
2715
|
+
});
|
|
2716
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2717
|
+
const doc = take(data, {
|
|
2718
|
+
AggregationRegion: __expectString,
|
|
2719
|
+
AggregatorV2Arn: __expectString,
|
|
2720
|
+
LinkedRegions: _json,
|
|
2721
|
+
RegionLinkingMode: __expectString,
|
|
2722
|
+
});
|
|
2723
|
+
Object.assign(contents, doc);
|
|
2724
|
+
return contents;
|
|
2725
|
+
};
|
|
2726
|
+
export const de_UpdateAutomationRuleV2Command = async (output, context) => {
|
|
2727
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2728
|
+
return de_CommandError(output, context);
|
|
2729
|
+
}
|
|
2730
|
+
const contents = map({
|
|
2731
|
+
$metadata: deserializeMetadata(output),
|
|
2732
|
+
});
|
|
2733
|
+
await collectBody(output.body, context);
|
|
2734
|
+
return contents;
|
|
2735
|
+
};
|
|
2011
2736
|
export const de_UpdateConfigurationPolicyCommand = async (output, context) => {
|
|
2012
2737
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2013
2738
|
return de_CommandError(output, context);
|
|
@@ -2028,6 +2753,16 @@ export const de_UpdateConfigurationPolicyCommand = async (output, context) => {
|
|
|
2028
2753
|
Object.assign(contents, doc);
|
|
2029
2754
|
return contents;
|
|
2030
2755
|
};
|
|
2756
|
+
export const de_UpdateConnectorV2Command = async (output, context) => {
|
|
2757
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2758
|
+
return de_CommandError(output, context);
|
|
2759
|
+
}
|
|
2760
|
+
const contents = map({
|
|
2761
|
+
$metadata: deserializeMetadata(output),
|
|
2762
|
+
});
|
|
2763
|
+
await collectBody(output.body, context);
|
|
2764
|
+
return contents;
|
|
2765
|
+
};
|
|
2031
2766
|
export const de_UpdateFindingAggregatorCommand = async (output, context) => {
|
|
2032
2767
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2033
2768
|
return de_CommandError(output, context);
|
|
@@ -2130,6 +2865,18 @@ const de_CommandError = async (output, context) => {
|
|
|
2130
2865
|
case "AccessDeniedException":
|
|
2131
2866
|
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
2132
2867
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2868
|
+
case "ConflictException":
|
|
2869
|
+
case "com.amazonaws.securityhub#ConflictException":
|
|
2870
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2871
|
+
case "InternalServerException":
|
|
2872
|
+
case "com.amazonaws.securityhub#InternalServerException":
|
|
2873
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2874
|
+
case "ThrottlingException":
|
|
2875
|
+
case "com.amazonaws.securityhub#ThrottlingException":
|
|
2876
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2877
|
+
case "ValidationException":
|
|
2878
|
+
case "com.amazonaws.securityhub#ValidationException":
|
|
2879
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2133
2880
|
case "ResourceConflictException":
|
|
2134
2881
|
case "com.amazonaws.securityhub#ResourceConflictException":
|
|
2135
2882
|
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
@@ -2160,6 +2907,20 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
2160
2907
|
});
|
|
2161
2908
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2162
2909
|
};
|
|
2910
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2911
|
+
const contents = map({});
|
|
2912
|
+
const data = parsedOutput.body;
|
|
2913
|
+
const doc = take(data, {
|
|
2914
|
+
Code: __expectString,
|
|
2915
|
+
Message: __expectString,
|
|
2916
|
+
});
|
|
2917
|
+
Object.assign(contents, doc);
|
|
2918
|
+
const exception = new ConflictException({
|
|
2919
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2920
|
+
...contents,
|
|
2921
|
+
});
|
|
2922
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2923
|
+
};
|
|
2163
2924
|
const de_InternalExceptionRes = async (parsedOutput, context) => {
|
|
2164
2925
|
const contents = map({});
|
|
2165
2926
|
const data = parsedOutput.body;
|
|
@@ -2174,6 +2935,20 @@ const de_InternalExceptionRes = async (parsedOutput, context) => {
|
|
|
2174
2935
|
});
|
|
2175
2936
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2176
2937
|
};
|
|
2938
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2939
|
+
const contents = map({});
|
|
2940
|
+
const data = parsedOutput.body;
|
|
2941
|
+
const doc = take(data, {
|
|
2942
|
+
Code: __expectString,
|
|
2943
|
+
Message: __expectString,
|
|
2944
|
+
});
|
|
2945
|
+
Object.assign(contents, doc);
|
|
2946
|
+
const exception = new InternalServerException({
|
|
2947
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2948
|
+
...contents,
|
|
2949
|
+
});
|
|
2950
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2951
|
+
};
|
|
2177
2952
|
const de_InvalidAccessExceptionRes = async (parsedOutput, context) => {
|
|
2178
2953
|
const contents = map({});
|
|
2179
2954
|
const data = parsedOutput.body;
|
|
@@ -2258,6 +3033,34 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2258
3033
|
});
|
|
2259
3034
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2260
3035
|
};
|
|
3036
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
3037
|
+
const contents = map({});
|
|
3038
|
+
const data = parsedOutput.body;
|
|
3039
|
+
const doc = take(data, {
|
|
3040
|
+
Code: __expectString,
|
|
3041
|
+
Message: __expectString,
|
|
3042
|
+
});
|
|
3043
|
+
Object.assign(contents, doc);
|
|
3044
|
+
const exception = new ThrottlingException({
|
|
3045
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3046
|
+
...contents,
|
|
3047
|
+
});
|
|
3048
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
3049
|
+
};
|
|
3050
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
3051
|
+
const contents = map({});
|
|
3052
|
+
const data = parsedOutput.body;
|
|
3053
|
+
const doc = take(data, {
|
|
3054
|
+
Code: __expectString,
|
|
3055
|
+
Message: __expectString,
|
|
3056
|
+
});
|
|
3057
|
+
Object.assign(contents, doc);
|
|
3058
|
+
const exception = new ValidationException({
|
|
3059
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3060
|
+
...contents,
|
|
3061
|
+
});
|
|
3062
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
3063
|
+
};
|
|
2261
3064
|
const se_Action = (input, context) => {
|
|
2262
3065
|
return take(input, {
|
|
2263
3066
|
ActionType: [],
|
|
@@ -2784,6 +3587,29 @@ const se_BatchImportFindingsRequestFindingList = (input, context) => {
|
|
|
2784
3587
|
return se_AwsSecurityFinding(entry, context);
|
|
2785
3588
|
});
|
|
2786
3589
|
};
|
|
3590
|
+
const se_CompositeFilter = (input, context) => {
|
|
3591
|
+
return take(input, {
|
|
3592
|
+
BooleanFilters: _json,
|
|
3593
|
+
DateFilters: _json,
|
|
3594
|
+
MapFilters: _json,
|
|
3595
|
+
NumberFilters: (_) => se_OcsfNumberFilterList(_, context),
|
|
3596
|
+
Operator: [],
|
|
3597
|
+
StringFilters: _json,
|
|
3598
|
+
});
|
|
3599
|
+
};
|
|
3600
|
+
const se_CompositeFilterList = (input, context) => {
|
|
3601
|
+
return input
|
|
3602
|
+
.filter((e) => e != null)
|
|
3603
|
+
.map((entry) => {
|
|
3604
|
+
return se_CompositeFilter(entry, context);
|
|
3605
|
+
});
|
|
3606
|
+
};
|
|
3607
|
+
const se_Criteria = (input, context) => {
|
|
3608
|
+
return Criteria.visit(input, {
|
|
3609
|
+
OcsfFindingCriteria: (value) => ({ OcsfFindingCriteria: se_OcsfFindingFilters(value, context) }),
|
|
3610
|
+
_: (name, value) => ({ [name]: value }),
|
|
3611
|
+
});
|
|
3612
|
+
};
|
|
2787
3613
|
const se_Cvss = (input, context) => {
|
|
2788
3614
|
return take(input, {
|
|
2789
3615
|
Adjustments: _json,
|
|
@@ -2811,6 +3637,19 @@ const se_GeoLocation = (input, context) => {
|
|
|
2811
3637
|
Lon: __serializeFloat,
|
|
2812
3638
|
});
|
|
2813
3639
|
};
|
|
3640
|
+
const se_GroupByRule = (input, context) => {
|
|
3641
|
+
return take(input, {
|
|
3642
|
+
Filters: (_) => se_OcsfFindingFilters(_, context),
|
|
3643
|
+
GroupByField: [],
|
|
3644
|
+
});
|
|
3645
|
+
};
|
|
3646
|
+
const se_GroupByRules = (input, context) => {
|
|
3647
|
+
return input
|
|
3648
|
+
.filter((e) => e != null)
|
|
3649
|
+
.map((entry) => {
|
|
3650
|
+
return se_GroupByRule(entry, context);
|
|
3651
|
+
});
|
|
3652
|
+
};
|
|
2814
3653
|
const se_NetworkConnectionAction = (input, context) => {
|
|
2815
3654
|
return take(input, {
|
|
2816
3655
|
Blocked: [],
|
|
@@ -2863,6 +3702,25 @@ const se_NumberFilterList = (input, context) => {
|
|
|
2863
3702
|
return se_NumberFilter(entry, context);
|
|
2864
3703
|
});
|
|
2865
3704
|
};
|
|
3705
|
+
const se_OcsfFindingFilters = (input, context) => {
|
|
3706
|
+
return take(input, {
|
|
3707
|
+
CompositeFilters: (_) => se_CompositeFilterList(_, context),
|
|
3708
|
+
CompositeOperator: [],
|
|
3709
|
+
});
|
|
3710
|
+
};
|
|
3711
|
+
const se_OcsfNumberFilter = (input, context) => {
|
|
3712
|
+
return take(input, {
|
|
3713
|
+
FieldName: [],
|
|
3714
|
+
Filter: (_) => se_NumberFilter(_, context),
|
|
3715
|
+
});
|
|
3716
|
+
};
|
|
3717
|
+
const se_OcsfNumberFilterList = (input, context) => {
|
|
3718
|
+
return input
|
|
3719
|
+
.filter((e) => e != null)
|
|
3720
|
+
.map((entry) => {
|
|
3721
|
+
return se_OcsfNumberFilter(entry, context);
|
|
3722
|
+
});
|
|
3723
|
+
};
|
|
2866
3724
|
const se_ParameterConfiguration = (input, context) => {
|
|
2867
3725
|
return take(input, {
|
|
2868
3726
|
Value: (_) => se_ParameterValue(_, context),
|
|
@@ -3034,6 +3892,19 @@ const se_ResourceDetails = (input, context) => {
|
|
|
3034
3892
|
Other: _json,
|
|
3035
3893
|
});
|
|
3036
3894
|
};
|
|
3895
|
+
const se_ResourceGroupByRule = (input, context) => {
|
|
3896
|
+
return take(input, {
|
|
3897
|
+
Filters: (_) => se_ResourcesFilters(_, context),
|
|
3898
|
+
GroupByField: [],
|
|
3899
|
+
});
|
|
3900
|
+
};
|
|
3901
|
+
const se_ResourceGroupByRules = (input, context) => {
|
|
3902
|
+
return input
|
|
3903
|
+
.filter((e) => e != null)
|
|
3904
|
+
.map((entry) => {
|
|
3905
|
+
return se_ResourceGroupByRule(entry, context);
|
|
3906
|
+
});
|
|
3907
|
+
};
|
|
3037
3908
|
const se_ResourceList = (input, context) => {
|
|
3038
3909
|
return input
|
|
3039
3910
|
.filter((e) => e != null)
|
|
@@ -3041,6 +3912,41 @@ const se_ResourceList = (input, context) => {
|
|
|
3041
3912
|
return se_Resource(entry, context);
|
|
3042
3913
|
});
|
|
3043
3914
|
};
|
|
3915
|
+
const se_ResourcesCompositeFilter = (input, context) => {
|
|
3916
|
+
return take(input, {
|
|
3917
|
+
DateFilters: _json,
|
|
3918
|
+
MapFilters: _json,
|
|
3919
|
+
NumberFilters: (_) => se_ResourcesNumberFilterList(_, context),
|
|
3920
|
+
Operator: [],
|
|
3921
|
+
StringFilters: _json,
|
|
3922
|
+
});
|
|
3923
|
+
};
|
|
3924
|
+
const se_ResourcesCompositeFilterList = (input, context) => {
|
|
3925
|
+
return input
|
|
3926
|
+
.filter((e) => e != null)
|
|
3927
|
+
.map((entry) => {
|
|
3928
|
+
return se_ResourcesCompositeFilter(entry, context);
|
|
3929
|
+
});
|
|
3930
|
+
};
|
|
3931
|
+
const se_ResourcesFilters = (input, context) => {
|
|
3932
|
+
return take(input, {
|
|
3933
|
+
CompositeFilters: (_) => se_ResourcesCompositeFilterList(_, context),
|
|
3934
|
+
CompositeOperator: [],
|
|
3935
|
+
});
|
|
3936
|
+
};
|
|
3937
|
+
const se_ResourcesNumberFilter = (input, context) => {
|
|
3938
|
+
return take(input, {
|
|
3939
|
+
FieldName: [],
|
|
3940
|
+
Filter: (_) => se_NumberFilter(_, context),
|
|
3941
|
+
});
|
|
3942
|
+
};
|
|
3943
|
+
const se_ResourcesNumberFilterList = (input, context) => {
|
|
3944
|
+
return input
|
|
3945
|
+
.filter((e) => e != null)
|
|
3946
|
+
.map((entry) => {
|
|
3947
|
+
return se_ResourcesNumberFilter(entry, context);
|
|
3948
|
+
});
|
|
3949
|
+
};
|
|
3044
3950
|
const se_SecurityControlCustomParameter = (input, context) => {
|
|
3045
3951
|
return take(input, {
|
|
3046
3952
|
Parameters: (_) => se_Parameters(_, context),
|
|
@@ -3290,6 +4196,27 @@ const de_AutomationRulesMetadataList = (output, context) => {
|
|
|
3290
4196
|
});
|
|
3291
4197
|
return retVal;
|
|
3292
4198
|
};
|
|
4199
|
+
const de_AutomationRulesMetadataListV2 = (output, context) => {
|
|
4200
|
+
const retVal = (output || [])
|
|
4201
|
+
.filter((e) => e != null)
|
|
4202
|
+
.map((entry) => {
|
|
4203
|
+
return de_AutomationRulesMetadataV2(entry, context);
|
|
4204
|
+
});
|
|
4205
|
+
return retVal;
|
|
4206
|
+
};
|
|
4207
|
+
const de_AutomationRulesMetadataV2 = (output, context) => {
|
|
4208
|
+
return take(output, {
|
|
4209
|
+
Actions: _json,
|
|
4210
|
+
CreatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4211
|
+
Description: __expectString,
|
|
4212
|
+
RuleArn: __expectString,
|
|
4213
|
+
RuleId: __expectString,
|
|
4214
|
+
RuleName: __expectString,
|
|
4215
|
+
RuleOrder: __limitedParseFloat32,
|
|
4216
|
+
RuleStatus: __expectString,
|
|
4217
|
+
UpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4218
|
+
});
|
|
4219
|
+
};
|
|
3293
4220
|
const de_AwsApiCallAction = (output, context) => {
|
|
3294
4221
|
return take(output, {
|
|
3295
4222
|
AffectedResources: _json,
|
|
@@ -3732,6 +4659,24 @@ const de_AwsSecurityFindingList = (output, context) => {
|
|
|
3732
4659
|
});
|
|
3733
4660
|
return retVal;
|
|
3734
4661
|
};
|
|
4662
|
+
const de_CompositeFilter = (output, context) => {
|
|
4663
|
+
return take(output, {
|
|
4664
|
+
BooleanFilters: _json,
|
|
4665
|
+
DateFilters: _json,
|
|
4666
|
+
MapFilters: _json,
|
|
4667
|
+
NumberFilters: (_) => de_OcsfNumberFilterList(_, context),
|
|
4668
|
+
Operator: __expectString,
|
|
4669
|
+
StringFilters: _json,
|
|
4670
|
+
});
|
|
4671
|
+
};
|
|
4672
|
+
const de_CompositeFilterList = (output, context) => {
|
|
4673
|
+
const retVal = (output || [])
|
|
4674
|
+
.filter((e) => e != null)
|
|
4675
|
+
.map((entry) => {
|
|
4676
|
+
return de_CompositeFilter(entry, context);
|
|
4677
|
+
});
|
|
4678
|
+
return retVal;
|
|
4679
|
+
};
|
|
3735
4680
|
const de_ConfigurationOptions = (output, context) => {
|
|
3736
4681
|
if (output.Boolean != null) {
|
|
3737
4682
|
return {
|
|
@@ -3820,6 +4765,32 @@ const de_ConfigurationPolicySummaryList = (output, context) => {
|
|
|
3820
4765
|
});
|
|
3821
4766
|
return retVal;
|
|
3822
4767
|
};
|
|
4768
|
+
const de_ConnectorSummary = (output, context) => {
|
|
4769
|
+
return take(output, {
|
|
4770
|
+
ConnectorArn: __expectString,
|
|
4771
|
+
ConnectorId: __expectString,
|
|
4772
|
+
CreatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4773
|
+
Description: __expectString,
|
|
4774
|
+
Name: __expectString,
|
|
4775
|
+
ProviderSummary: _json,
|
|
4776
|
+
});
|
|
4777
|
+
};
|
|
4778
|
+
const de_ConnectorSummaryList = (output, context) => {
|
|
4779
|
+
const retVal = (output || [])
|
|
4780
|
+
.filter((e) => e != null)
|
|
4781
|
+
.map((entry) => {
|
|
4782
|
+
return de_ConnectorSummary(entry, context);
|
|
4783
|
+
});
|
|
4784
|
+
return retVal;
|
|
4785
|
+
};
|
|
4786
|
+
const de_Criteria = (output, context) => {
|
|
4787
|
+
if (output.OcsfFindingCriteria != null) {
|
|
4788
|
+
return {
|
|
4789
|
+
OcsfFindingCriteria: de_OcsfFindingFilters(output.OcsfFindingCriteria, context),
|
|
4790
|
+
};
|
|
4791
|
+
}
|
|
4792
|
+
return { $unknown: Object.entries(output)[0] };
|
|
4793
|
+
};
|
|
3823
4794
|
const de_Cvss = (output, context) => {
|
|
3824
4795
|
return take(output, {
|
|
3825
4796
|
Adjustments: _json,
|
|
@@ -3873,6 +4844,13 @@ const de_GeoLocation = (output, context) => {
|
|
|
3873
4844
|
Lon: __limitedParseDouble,
|
|
3874
4845
|
});
|
|
3875
4846
|
};
|
|
4847
|
+
const de_HealthCheck = (output, context) => {
|
|
4848
|
+
return take(output, {
|
|
4849
|
+
ConnectorStatus: __expectString,
|
|
4850
|
+
LastCheckedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4851
|
+
Message: __expectString,
|
|
4852
|
+
});
|
|
4853
|
+
};
|
|
3876
4854
|
const de_Insight = (output, context) => {
|
|
3877
4855
|
return take(output, {
|
|
3878
4856
|
Filters: (_) => de_AwsSecurityFindingFilters(_, context),
|
|
@@ -3978,6 +4956,37 @@ const de_NumberFilterList = (output, context) => {
|
|
|
3978
4956
|
});
|
|
3979
4957
|
return retVal;
|
|
3980
4958
|
};
|
|
4959
|
+
const de_OcsfFinding = (output, context) => {
|
|
4960
|
+
return output;
|
|
4961
|
+
};
|
|
4962
|
+
const de_OcsfFindingFilters = (output, context) => {
|
|
4963
|
+
return take(output, {
|
|
4964
|
+
CompositeFilters: (_) => de_CompositeFilterList(_, context),
|
|
4965
|
+
CompositeOperator: __expectString,
|
|
4966
|
+
});
|
|
4967
|
+
};
|
|
4968
|
+
const de_OcsfFindingsList = (output, context) => {
|
|
4969
|
+
const retVal = (output || [])
|
|
4970
|
+
.filter((e) => e != null)
|
|
4971
|
+
.map((entry) => {
|
|
4972
|
+
return de_OcsfFinding(entry, context);
|
|
4973
|
+
});
|
|
4974
|
+
return retVal;
|
|
4975
|
+
};
|
|
4976
|
+
const de_OcsfNumberFilter = (output, context) => {
|
|
4977
|
+
return take(output, {
|
|
4978
|
+
FieldName: __expectString,
|
|
4979
|
+
Filter: (_) => de_NumberFilter(_, context),
|
|
4980
|
+
});
|
|
4981
|
+
};
|
|
4982
|
+
const de_OcsfNumberFilterList = (output, context) => {
|
|
4983
|
+
const retVal = (output || [])
|
|
4984
|
+
.filter((e) => e != null)
|
|
4985
|
+
.map((entry) => {
|
|
4986
|
+
return de_OcsfNumberFilter(entry, context);
|
|
4987
|
+
});
|
|
4988
|
+
return retVal;
|
|
4989
|
+
};
|
|
3981
4990
|
const de_ParameterConfiguration = (output, context) => {
|
|
3982
4991
|
return take(output, {
|
|
3983
4992
|
Value: (_) => de_ParameterValue(__expectUnion(_), context),
|
|
@@ -4084,6 +5093,9 @@ const de_Resource = (output, context) => {
|
|
|
4084
5093
|
Type: __expectString,
|
|
4085
5094
|
});
|
|
4086
5095
|
};
|
|
5096
|
+
const de_ResourceConfig = (output, context) => {
|
|
5097
|
+
return output;
|
|
5098
|
+
};
|
|
4087
5099
|
const de_ResourceDetails = (output, context) => {
|
|
4088
5100
|
return take(output, {
|
|
4089
5101
|
AwsAmazonMqBroker: _json,
|
|
@@ -4195,6 +5207,30 @@ const de_ResourceList = (output, context) => {
|
|
|
4195
5207
|
});
|
|
4196
5208
|
return retVal;
|
|
4197
5209
|
};
|
|
5210
|
+
const de_ResourceResult = (output, context) => {
|
|
5211
|
+
return take(output, {
|
|
5212
|
+
AccountId: __expectString,
|
|
5213
|
+
FindingsSummary: _json,
|
|
5214
|
+
Region: __expectString,
|
|
5215
|
+
ResourceArn: __expectString,
|
|
5216
|
+
ResourceCategory: __expectString,
|
|
5217
|
+
ResourceConfig: (_) => de_ResourceConfig(_, context),
|
|
5218
|
+
ResourceCreationTimeDt: __expectString,
|
|
5219
|
+
ResourceDetailCaptureTimeDt: __expectString,
|
|
5220
|
+
ResourceId: __expectString,
|
|
5221
|
+
ResourceName: __expectString,
|
|
5222
|
+
ResourceTags: _json,
|
|
5223
|
+
ResourceType: __expectString,
|
|
5224
|
+
});
|
|
5225
|
+
};
|
|
5226
|
+
const de_Resources = (output, context) => {
|
|
5227
|
+
const retVal = (output || [])
|
|
5228
|
+
.filter((e) => e != null)
|
|
5229
|
+
.map((entry) => {
|
|
5230
|
+
return de_ResourceResult(entry, context);
|
|
5231
|
+
});
|
|
5232
|
+
return retVal;
|
|
5233
|
+
};
|
|
4198
5234
|
const de_SecurityControl = (output, context) => {
|
|
4199
5235
|
return take(output, {
|
|
4200
5236
|
Description: __expectString,
|
|
@@ -4411,11 +5447,14 @@ const deserializeMetadata = (output) => ({
|
|
|
4411
5447
|
cfId: output.headers["x-amz-cf-id"],
|
|
4412
5448
|
});
|
|
4413
5449
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
5450
|
+
const _CS = "ConnectorStatus";
|
|
5451
|
+
const _F = "Feature";
|
|
4414
5452
|
const _HA = "HubArn";
|
|
4415
5453
|
const _MR = "MaxResults";
|
|
4416
5454
|
const _NT = "NextToken";
|
|
4417
5455
|
const _OA = "OnlyAssociated";
|
|
4418
5456
|
const _PA = "ProductArn";
|
|
5457
|
+
const _PN = "ProviderName";
|
|
4419
5458
|
const _SA = "StandardsArn";
|
|
4420
5459
|
const _SCI = "SecurityControlId";
|
|
4421
5460
|
const _TK = "TagKeys";
|