@aws-sdk/client-securityhub 3.458.0 → 3.459.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +80 -0
- package/dist-cjs/SecurityHub.js +20 -0
- package/dist-cjs/commands/BatchGetConfigurationPolicyAssociationsCommand.js +51 -0
- package/dist-cjs/commands/CreateConfigurationPolicyCommand.js +51 -0
- package/dist-cjs/commands/DeleteConfigurationPolicyCommand.js +51 -0
- package/dist-cjs/commands/GetConfigurationPolicyAssociationCommand.js +51 -0
- package/dist-cjs/commands/GetConfigurationPolicyCommand.js +51 -0
- package/dist-cjs/commands/ListConfigurationPoliciesCommand.js +51 -0
- package/dist-cjs/commands/ListConfigurationPolicyAssociationsCommand.js +51 -0
- package/dist-cjs/commands/StartConfigurationPolicyAssociationCommand.js +51 -0
- package/dist-cjs/commands/StartConfigurationPolicyDisassociationCommand.js +51 -0
- package/dist-cjs/commands/UpdateConfigurationPolicyCommand.js +51 -0
- package/dist-cjs/commands/index.js +10 -0
- package/dist-cjs/models/models_0.js +10 -1
- package/dist-cjs/models/models_2.js +34 -1
- package/dist-cjs/pagination/ListConfigurationPoliciesPaginator.js +29 -0
- package/dist-cjs/pagination/ListConfigurationPolicyAssociationsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +943 -35
- package/dist-es/SecurityHub.js +20 -0
- package/dist-es/commands/BatchGetConfigurationPolicyAssociationsCommand.js +47 -0
- package/dist-es/commands/CreateConfigurationPolicyCommand.js +47 -0
- package/dist-es/commands/DeleteConfigurationPolicyCommand.js +47 -0
- package/dist-es/commands/GetConfigurationPolicyAssociationCommand.js +47 -0
- package/dist-es/commands/GetConfigurationPolicyCommand.js +47 -0
- package/dist-es/commands/ListConfigurationPoliciesCommand.js +47 -0
- package/dist-es/commands/ListConfigurationPolicyAssociationsCommand.js +47 -0
- package/dist-es/commands/StartConfigurationPolicyAssociationCommand.js +47 -0
- package/dist-es/commands/StartConfigurationPolicyDisassociationCommand.js +47 -0
- package/dist-es/commands/UpdateConfigurationPolicyCommand.js +47 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/models/models_0.js +9 -0
- package/dist-es/models/models_2.js +33 -0
- package/dist-es/pagination/ListConfigurationPoliciesPaginator.js +25 -0
- package/dist-es/pagination/ListConfigurationPolicyAssociationsPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +920 -33
- package/dist-types/SecurityHub.d.ts +70 -0
- package/dist-types/SecurityHubClient.d.ts +12 -2
- package/dist-types/commands/BatchDisableStandardsCommand.d.ts +3 -0
- package/dist-types/commands/BatchEnableStandardsCommand.d.ts +3 -0
- package/dist-types/commands/BatchGetAutomationRulesCommand.d.ts +3 -0
- package/dist-types/commands/BatchGetConfigurationPolicyAssociationsCommand.d.ts +128 -0
- package/dist-types/commands/BatchGetSecurityControlsCommand.d.ts +22 -2
- package/dist-types/commands/BatchImportFindingsCommand.d.ts +4 -0
- package/dist-types/commands/BatchUpdateAutomationRulesCommand.d.ts +3 -0
- package/dist-types/commands/BatchUpdateStandardsControlAssociationsCommand.d.ts +3 -0
- package/dist-types/commands/CreateAutomationRuleCommand.d.ts +3 -0
- package/dist-types/commands/CreateConfigurationPolicyCommand.d.ts +189 -0
- package/dist-types/commands/CreateInsightCommand.d.ts +3 -0
- package/dist-types/commands/CreateMembersCommand.d.ts +3 -0
- package/dist-types/commands/DeleteConfigurationPolicyCommand.d.ts +98 -0
- package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +7 -2
- package/dist-types/commands/DisableOrganizationAdminAccountCommand.d.ts +3 -0
- package/dist-types/commands/DisableSecurityHubCommand.d.ts +3 -0
- package/dist-types/commands/DisassociateMembersCommand.d.ts +3 -0
- package/dist-types/commands/EnableOrganizationAdminAccountCommand.d.ts +3 -0
- package/dist-types/commands/GetConfigurationPolicyAssociationCommand.d.ts +107 -0
- package/dist-types/commands/GetConfigurationPolicyCommand.d.ts +143 -0
- package/dist-types/commands/GetFindingsCommand.d.ts +7 -0
- package/dist-types/commands/GetInsightsCommand.d.ts +3 -0
- package/dist-types/commands/GetSecurityControlDefinitionCommand.d.ts +35 -0
- package/dist-types/commands/ListConfigurationPoliciesCommand.d.ts +104 -0
- package/dist-types/commands/ListConfigurationPolicyAssociationsCommand.d.ts +110 -0
- package/dist-types/commands/ListSecurityControlDefinitionsCommand.d.ts +6 -0
- package/dist-types/commands/StartConfigurationPolicyAssociationCommand.d.ts +108 -0
- package/dist-types/commands/StartConfigurationPolicyDisassociationCommand.d.ts +102 -0
- package/dist-types/commands/UpdateConfigurationPolicyCommand.d.ts +191 -0
- package/dist-types/commands/UpdateFindingsCommand.d.ts +3 -0
- package/dist-types/commands/UpdateInsightCommand.d.ts +3 -0
- package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +16 -2
- package/dist-types/commands/UpdateSecurityControlCommand.d.ts +23 -0
- package/dist-types/commands/UpdateSecurityHubConfigurationCommand.d.ts +3 -0
- package/dist-types/commands/UpdateStandardsControlCommand.d.ts +3 -0
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +86 -192
- package/dist-types/models/models_1.d.ts +192 -49
- package/dist-types/models/models_2.d.ts +1180 -37
- package/dist-types/pagination/ListConfigurationPoliciesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListConfigurationPolicyAssociationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
- package/dist-types/ts3.4/SecurityHub.d.ts +200 -0
- package/dist-types/ts3.4/SecurityHubClient.d.ts +60 -0
- package/dist-types/ts3.4/commands/BatchGetConfigurationPolicyAssociationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateConfigurationPolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteConfigurationPolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetConfigurationPolicyAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetConfigurationPolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListConfigurationPoliciesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListConfigurationPolicyAssociationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartConfigurationPolicyAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartConfigurationPolicyDisassociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateConfigurationPolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +10 -0
- package/dist-types/ts3.4/models/models_0.d.ts +21 -26
- package/dist-types/ts3.4/models/models_1.d.ts +32 -9
- package/dist-types/ts3.4/models/models_2.d.ts +243 -4
- package/dist-types/ts3.4/pagination/ListConfigurationPoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListConfigurationPolicyAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +120 -0
- package/package.json +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
3
|
+
exports.se_GetInsightsCommand = exports.se_GetInsightResultsCommand = exports.se_GetFindingsCommand = exports.se_GetFindingHistoryCommand = exports.se_GetFindingAggregatorCommand = exports.se_GetEnabledStandardsCommand = exports.se_GetConfigurationPolicyAssociationCommand = exports.se_GetConfigurationPolicyCommand = exports.se_GetAdministratorAccountCommand = exports.se_EnableSecurityHubCommand = exports.se_EnableOrganizationAdminAccountCommand = exports.se_EnableImportFindingsForProductCommand = exports.se_DisassociateMembersCommand = exports.se_DisassociateFromMasterAccountCommand = exports.se_DisassociateFromAdministratorAccountCommand = exports.se_DisableSecurityHubCommand = exports.se_DisableOrganizationAdminAccountCommand = exports.se_DisableImportFindingsForProductCommand = exports.se_DescribeStandardsControlsCommand = exports.se_DescribeStandardsCommand = exports.se_DescribeProductsCommand = exports.se_DescribeOrganizationConfigurationCommand = exports.se_DescribeHubCommand = exports.se_DescribeActionTargetsCommand = exports.se_DeleteMembersCommand = exports.se_DeleteInvitationsCommand = exports.se_DeleteInsightCommand = exports.se_DeleteFindingAggregatorCommand = exports.se_DeleteConfigurationPolicyCommand = exports.se_DeleteActionTargetCommand = exports.se_DeclineInvitationsCommand = exports.se_CreateMembersCommand = exports.se_CreateInsightCommand = exports.se_CreateFindingAggregatorCommand = exports.se_CreateConfigurationPolicyCommand = exports.se_CreateAutomationRuleCommand = exports.se_CreateActionTargetCommand = exports.se_BatchUpdateStandardsControlAssociationsCommand = exports.se_BatchUpdateFindingsCommand = exports.se_BatchUpdateAutomationRulesCommand = exports.se_BatchImportFindingsCommand = exports.se_BatchGetStandardsControlAssociationsCommand = exports.se_BatchGetSecurityControlsCommand = exports.se_BatchGetConfigurationPolicyAssociationsCommand = exports.se_BatchGetAutomationRulesCommand = exports.se_BatchEnableStandardsCommand = exports.se_BatchDisableStandardsCommand = exports.se_BatchDeleteAutomationRulesCommand = exports.se_AcceptInvitationCommand = exports.se_AcceptAdministratorInvitationCommand = void 0;
|
|
4
|
+
exports.de_DeleteActionTargetCommand = exports.de_DeclineInvitationsCommand = exports.de_CreateMembersCommand = exports.de_CreateInsightCommand = exports.de_CreateFindingAggregatorCommand = exports.de_CreateConfigurationPolicyCommand = exports.de_CreateAutomationRuleCommand = exports.de_CreateActionTargetCommand = exports.de_BatchUpdateStandardsControlAssociationsCommand = exports.de_BatchUpdateFindingsCommand = exports.de_BatchUpdateAutomationRulesCommand = exports.de_BatchImportFindingsCommand = exports.de_BatchGetStandardsControlAssociationsCommand = exports.de_BatchGetSecurityControlsCommand = exports.de_BatchGetConfigurationPolicyAssociationsCommand = exports.de_BatchGetAutomationRulesCommand = exports.de_BatchEnableStandardsCommand = exports.de_BatchDisableStandardsCommand = exports.de_BatchDeleteAutomationRulesCommand = exports.de_AcceptInvitationCommand = exports.de_AcceptAdministratorInvitationCommand = exports.se_UpdateStandardsControlCommand = exports.se_UpdateSecurityHubConfigurationCommand = exports.se_UpdateSecurityControlCommand = exports.se_UpdateOrganizationConfigurationCommand = exports.se_UpdateInsightCommand = exports.se_UpdateFindingsCommand = exports.se_UpdateFindingAggregatorCommand = exports.se_UpdateConfigurationPolicyCommand = exports.se_UpdateActionTargetCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartConfigurationPolicyDisassociationCommand = exports.se_StartConfigurationPolicyAssociationCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStandardsControlAssociationsCommand = exports.se_ListSecurityControlDefinitionsCommand = exports.se_ListOrganizationAdminAccountsCommand = exports.se_ListMembersCommand = exports.se_ListInvitationsCommand = exports.se_ListFindingAggregatorsCommand = exports.se_ListEnabledProductsForImportCommand = exports.se_ListConfigurationPolicyAssociationsCommand = exports.se_ListConfigurationPoliciesCommand = exports.se_ListAutomationRulesCommand = exports.se_InviteMembersCommand = exports.se_GetSecurityControlDefinitionCommand = exports.se_GetMembersCommand = exports.se_GetMasterAccountCommand = exports.se_GetInvitationsCountCommand = void 0;
|
|
5
|
+
exports.de_UpdateActionTargetCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartConfigurationPolicyDisassociationCommand = exports.de_StartConfigurationPolicyAssociationCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStandardsControlAssociationsCommand = exports.de_ListSecurityControlDefinitionsCommand = exports.de_ListOrganizationAdminAccountsCommand = exports.de_ListMembersCommand = exports.de_ListInvitationsCommand = exports.de_ListFindingAggregatorsCommand = exports.de_ListEnabledProductsForImportCommand = exports.de_ListConfigurationPolicyAssociationsCommand = exports.de_ListConfigurationPoliciesCommand = exports.de_ListAutomationRulesCommand = exports.de_InviteMembersCommand = exports.de_GetSecurityControlDefinitionCommand = exports.de_GetMembersCommand = exports.de_GetMasterAccountCommand = exports.de_GetInvitationsCountCommand = exports.de_GetInsightsCommand = exports.de_GetInsightResultsCommand = exports.de_GetFindingsCommand = exports.de_GetFindingHistoryCommand = exports.de_GetFindingAggregatorCommand = exports.de_GetEnabledStandardsCommand = exports.de_GetConfigurationPolicyAssociationCommand = exports.de_GetConfigurationPolicyCommand = exports.de_GetAdministratorAccountCommand = exports.de_EnableSecurityHubCommand = exports.de_EnableOrganizationAdminAccountCommand = exports.de_EnableImportFindingsForProductCommand = exports.de_DisassociateMembersCommand = exports.de_DisassociateFromMasterAccountCommand = exports.de_DisassociateFromAdministratorAccountCommand = exports.de_DisableSecurityHubCommand = exports.de_DisableOrganizationAdminAccountCommand = exports.de_DisableImportFindingsForProductCommand = exports.de_DescribeStandardsControlsCommand = exports.de_DescribeStandardsCommand = exports.de_DescribeProductsCommand = exports.de_DescribeOrganizationConfigurationCommand = exports.de_DescribeHubCommand = exports.de_DescribeActionTargetsCommand = exports.de_DeleteMembersCommand = exports.de_DeleteInvitationsCommand = exports.de_DeleteInsightCommand = exports.de_DeleteFindingAggregatorCommand = exports.de_DeleteConfigurationPolicyCommand = void 0;
|
|
6
|
+
exports.de_UpdateStandardsControlCommand = exports.de_UpdateSecurityHubConfigurationCommand = exports.de_UpdateSecurityControlCommand = exports.de_UpdateOrganizationConfigurationCommand = exports.de_UpdateInsightCommand = exports.de_UpdateFindingsCommand = exports.de_UpdateFindingAggregatorCommand = exports.de_UpdateConfigurationPolicyCommand = void 0;
|
|
6
7
|
const core_1 = require("@aws-sdk/core");
|
|
7
8
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
8
9
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
@@ -137,6 +138,27 @@ const se_BatchGetAutomationRulesCommand = async (input, context) => {
|
|
|
137
138
|
});
|
|
138
139
|
};
|
|
139
140
|
exports.se_BatchGetAutomationRulesCommand = se_BatchGetAutomationRulesCommand;
|
|
141
|
+
const se_BatchGetConfigurationPolicyAssociationsCommand = async (input, context) => {
|
|
142
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
143
|
+
const headers = {
|
|
144
|
+
"content-type": "application/json",
|
|
145
|
+
};
|
|
146
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicyAssociation/batchget";
|
|
147
|
+
let body;
|
|
148
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
149
|
+
ConfigurationPolicyAssociationIdentifiers: (_) => (0, smithy_client_1._json)(_),
|
|
150
|
+
}));
|
|
151
|
+
return new protocol_http_1.HttpRequest({
|
|
152
|
+
protocol,
|
|
153
|
+
hostname,
|
|
154
|
+
port,
|
|
155
|
+
method: "POST",
|
|
156
|
+
headers,
|
|
157
|
+
path: resolvedPath,
|
|
158
|
+
body,
|
|
159
|
+
});
|
|
160
|
+
};
|
|
161
|
+
exports.se_BatchGetConfigurationPolicyAssociationsCommand = se_BatchGetConfigurationPolicyAssociationsCommand;
|
|
140
162
|
const se_BatchGetSecurityControlsCommand = async (input, context) => {
|
|
141
163
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
142
164
|
const headers = {
|
|
@@ -323,6 +345,30 @@ const se_CreateAutomationRuleCommand = async (input, context) => {
|
|
|
323
345
|
});
|
|
324
346
|
};
|
|
325
347
|
exports.se_CreateAutomationRuleCommand = se_CreateAutomationRuleCommand;
|
|
348
|
+
const se_CreateConfigurationPolicyCommand = async (input, context) => {
|
|
349
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
350
|
+
const headers = {
|
|
351
|
+
"content-type": "application/json",
|
|
352
|
+
};
|
|
353
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicy/create";
|
|
354
|
+
let body;
|
|
355
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
356
|
+
ConfigurationPolicy: (_) => se_Policy(_, context),
|
|
357
|
+
Description: [],
|
|
358
|
+
Name: [],
|
|
359
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
360
|
+
}));
|
|
361
|
+
return new protocol_http_1.HttpRequest({
|
|
362
|
+
protocol,
|
|
363
|
+
hostname,
|
|
364
|
+
port,
|
|
365
|
+
method: "POST",
|
|
366
|
+
headers,
|
|
367
|
+
path: resolvedPath,
|
|
368
|
+
body,
|
|
369
|
+
});
|
|
370
|
+
};
|
|
371
|
+
exports.se_CreateConfigurationPolicyCommand = se_CreateConfigurationPolicyCommand;
|
|
326
372
|
const se_CreateFindingAggregatorCommand = async (input, context) => {
|
|
327
373
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
328
374
|
const headers = {
|
|
@@ -427,6 +473,23 @@ const se_DeleteActionTargetCommand = async (input, context) => {
|
|
|
427
473
|
});
|
|
428
474
|
};
|
|
429
475
|
exports.se_DeleteActionTargetCommand = se_DeleteActionTargetCommand;
|
|
476
|
+
const se_DeleteConfigurationPolicyCommand = async (input, context) => {
|
|
477
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
478
|
+
const headers = {};
|
|
479
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicy/{Identifier}";
|
|
480
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
|
|
481
|
+
let body;
|
|
482
|
+
return new protocol_http_1.HttpRequest({
|
|
483
|
+
protocol,
|
|
484
|
+
hostname,
|
|
485
|
+
port,
|
|
486
|
+
method: "DELETE",
|
|
487
|
+
headers,
|
|
488
|
+
path: resolvedPath,
|
|
489
|
+
body,
|
|
490
|
+
});
|
|
491
|
+
};
|
|
492
|
+
exports.se_DeleteConfigurationPolicyCommand = se_DeleteConfigurationPolicyCommand;
|
|
430
493
|
const se_DeleteFindingAggregatorCommand = async (input, context) => {
|
|
431
494
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
432
495
|
const headers = {};
|
|
@@ -833,6 +896,44 @@ const se_GetAdministratorAccountCommand = async (input, context) => {
|
|
|
833
896
|
});
|
|
834
897
|
};
|
|
835
898
|
exports.se_GetAdministratorAccountCommand = se_GetAdministratorAccountCommand;
|
|
899
|
+
const se_GetConfigurationPolicyCommand = async (input, context) => {
|
|
900
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
901
|
+
const headers = {};
|
|
902
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicy/get/{Identifier}";
|
|
903
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
|
|
904
|
+
let body;
|
|
905
|
+
return new protocol_http_1.HttpRequest({
|
|
906
|
+
protocol,
|
|
907
|
+
hostname,
|
|
908
|
+
port,
|
|
909
|
+
method: "GET",
|
|
910
|
+
headers,
|
|
911
|
+
path: resolvedPath,
|
|
912
|
+
body,
|
|
913
|
+
});
|
|
914
|
+
};
|
|
915
|
+
exports.se_GetConfigurationPolicyCommand = se_GetConfigurationPolicyCommand;
|
|
916
|
+
const se_GetConfigurationPolicyAssociationCommand = async (input, context) => {
|
|
917
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
918
|
+
const headers = {
|
|
919
|
+
"content-type": "application/json",
|
|
920
|
+
};
|
|
921
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicyAssociation/get";
|
|
922
|
+
let body;
|
|
923
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
924
|
+
Target: (_) => (0, smithy_client_1._json)(_),
|
|
925
|
+
}));
|
|
926
|
+
return new protocol_http_1.HttpRequest({
|
|
927
|
+
protocol,
|
|
928
|
+
hostname,
|
|
929
|
+
port,
|
|
930
|
+
method: "POST",
|
|
931
|
+
headers,
|
|
932
|
+
path: resolvedPath,
|
|
933
|
+
body,
|
|
934
|
+
});
|
|
935
|
+
};
|
|
936
|
+
exports.se_GetConfigurationPolicyAssociationCommand = se_GetConfigurationPolicyAssociationCommand;
|
|
836
937
|
const se_GetEnabledStandardsCommand = async (input, context) => {
|
|
837
938
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
838
939
|
const headers = {
|
|
@@ -1084,6 +1185,50 @@ const se_ListAutomationRulesCommand = async (input, context) => {
|
|
|
1084
1185
|
});
|
|
1085
1186
|
};
|
|
1086
1187
|
exports.se_ListAutomationRulesCommand = se_ListAutomationRulesCommand;
|
|
1188
|
+
const se_ListConfigurationPoliciesCommand = async (input, context) => {
|
|
1189
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1190
|
+
const headers = {};
|
|
1191
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicy/list";
|
|
1192
|
+
const query = (0, smithy_client_1.map)({
|
|
1193
|
+
NextToken: [, input.NextToken],
|
|
1194
|
+
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1195
|
+
});
|
|
1196
|
+
let body;
|
|
1197
|
+
return new protocol_http_1.HttpRequest({
|
|
1198
|
+
protocol,
|
|
1199
|
+
hostname,
|
|
1200
|
+
port,
|
|
1201
|
+
method: "GET",
|
|
1202
|
+
headers,
|
|
1203
|
+
path: resolvedPath,
|
|
1204
|
+
query,
|
|
1205
|
+
body,
|
|
1206
|
+
});
|
|
1207
|
+
};
|
|
1208
|
+
exports.se_ListConfigurationPoliciesCommand = se_ListConfigurationPoliciesCommand;
|
|
1209
|
+
const se_ListConfigurationPolicyAssociationsCommand = async (input, context) => {
|
|
1210
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1211
|
+
const headers = {
|
|
1212
|
+
"content-type": "application/json",
|
|
1213
|
+
};
|
|
1214
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicyAssociation/list";
|
|
1215
|
+
let body;
|
|
1216
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1217
|
+
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
1218
|
+
MaxResults: [],
|
|
1219
|
+
NextToken: [],
|
|
1220
|
+
}));
|
|
1221
|
+
return new protocol_http_1.HttpRequest({
|
|
1222
|
+
protocol,
|
|
1223
|
+
hostname,
|
|
1224
|
+
port,
|
|
1225
|
+
method: "POST",
|
|
1226
|
+
headers,
|
|
1227
|
+
path: resolvedPath,
|
|
1228
|
+
body,
|
|
1229
|
+
});
|
|
1230
|
+
};
|
|
1231
|
+
exports.se_ListConfigurationPolicyAssociationsCommand = se_ListConfigurationPolicyAssociationsCommand;
|
|
1087
1232
|
const se_ListEnabledProductsForImportCommand = async (input, context) => {
|
|
1088
1233
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1089
1234
|
const headers = {};
|
|
@@ -1251,6 +1396,51 @@ const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
1251
1396
|
});
|
|
1252
1397
|
};
|
|
1253
1398
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
1399
|
+
const se_StartConfigurationPolicyAssociationCommand = async (input, context) => {
|
|
1400
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1401
|
+
const headers = {
|
|
1402
|
+
"content-type": "application/json",
|
|
1403
|
+
};
|
|
1404
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicyAssociation/associate";
|
|
1405
|
+
let body;
|
|
1406
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1407
|
+
ConfigurationPolicyIdentifier: [],
|
|
1408
|
+
Target: (_) => (0, smithy_client_1._json)(_),
|
|
1409
|
+
}));
|
|
1410
|
+
return new protocol_http_1.HttpRequest({
|
|
1411
|
+
protocol,
|
|
1412
|
+
hostname,
|
|
1413
|
+
port,
|
|
1414
|
+
method: "POST",
|
|
1415
|
+
headers,
|
|
1416
|
+
path: resolvedPath,
|
|
1417
|
+
body,
|
|
1418
|
+
});
|
|
1419
|
+
};
|
|
1420
|
+
exports.se_StartConfigurationPolicyAssociationCommand = se_StartConfigurationPolicyAssociationCommand;
|
|
1421
|
+
const se_StartConfigurationPolicyDisassociationCommand = async (input, context) => {
|
|
1422
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1423
|
+
const headers = {
|
|
1424
|
+
"content-type": "application/json",
|
|
1425
|
+
};
|
|
1426
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1427
|
+
"/configurationPolicyAssociation/disassociate";
|
|
1428
|
+
let body;
|
|
1429
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1430
|
+
ConfigurationPolicyIdentifier: [],
|
|
1431
|
+
Target: (_) => (0, smithy_client_1._json)(_),
|
|
1432
|
+
}));
|
|
1433
|
+
return new protocol_http_1.HttpRequest({
|
|
1434
|
+
protocol,
|
|
1435
|
+
hostname,
|
|
1436
|
+
port,
|
|
1437
|
+
method: "POST",
|
|
1438
|
+
headers,
|
|
1439
|
+
path: resolvedPath,
|
|
1440
|
+
body,
|
|
1441
|
+
});
|
|
1442
|
+
};
|
|
1443
|
+
exports.se_StartConfigurationPolicyDisassociationCommand = se_StartConfigurationPolicyDisassociationCommand;
|
|
1254
1444
|
const se_TagResourceCommand = async (input, context) => {
|
|
1255
1445
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1256
1446
|
const headers = {
|
|
@@ -1320,6 +1510,31 @@ const se_UpdateActionTargetCommand = async (input, context) => {
|
|
|
1320
1510
|
});
|
|
1321
1511
|
};
|
|
1322
1512
|
exports.se_UpdateActionTargetCommand = se_UpdateActionTargetCommand;
|
|
1513
|
+
const se_UpdateConfigurationPolicyCommand = async (input, context) => {
|
|
1514
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1515
|
+
const headers = {
|
|
1516
|
+
"content-type": "application/json",
|
|
1517
|
+
};
|
|
1518
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicy/{Identifier}";
|
|
1519
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
|
|
1520
|
+
let body;
|
|
1521
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1522
|
+
ConfigurationPolicy: (_) => se_Policy(_, context),
|
|
1523
|
+
Description: [],
|
|
1524
|
+
Name: [],
|
|
1525
|
+
UpdatedReason: [],
|
|
1526
|
+
}));
|
|
1527
|
+
return new protocol_http_1.HttpRequest({
|
|
1528
|
+
protocol,
|
|
1529
|
+
hostname,
|
|
1530
|
+
port,
|
|
1531
|
+
method: "PATCH",
|
|
1532
|
+
headers,
|
|
1533
|
+
path: resolvedPath,
|
|
1534
|
+
body,
|
|
1535
|
+
});
|
|
1536
|
+
};
|
|
1537
|
+
exports.se_UpdateConfigurationPolicyCommand = se_UpdateConfigurationPolicyCommand;
|
|
1323
1538
|
const se_UpdateFindingAggregatorCommand = async (input, context) => {
|
|
1324
1539
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1325
1540
|
const headers = {
|
|
@@ -1400,6 +1615,7 @@ const se_UpdateOrganizationConfigurationCommand = async (input, context) => {
|
|
|
1400
1615
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1401
1616
|
AutoEnable: [],
|
|
1402
1617
|
AutoEnableStandards: [],
|
|
1618
|
+
OrganizationConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
1403
1619
|
}));
|
|
1404
1620
|
return new protocol_http_1.HttpRequest({
|
|
1405
1621
|
protocol,
|
|
@@ -1633,6 +1849,9 @@ const de_BatchDisableStandardsCommandError = async (output, context) => {
|
|
|
1633
1849
|
};
|
|
1634
1850
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1635
1851
|
switch (errorCode) {
|
|
1852
|
+
case "AccessDeniedException":
|
|
1853
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
1854
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1636
1855
|
case "InternalException":
|
|
1637
1856
|
case "com.amazonaws.securityhub#InternalException":
|
|
1638
1857
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -1676,6 +1895,9 @@ const de_BatchEnableStandardsCommandError = async (output, context) => {
|
|
|
1676
1895
|
};
|
|
1677
1896
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1678
1897
|
switch (errorCode) {
|
|
1898
|
+
case "AccessDeniedException":
|
|
1899
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
1900
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1679
1901
|
case "InternalException":
|
|
1680
1902
|
case "com.amazonaws.securityhub#InternalException":
|
|
1681
1903
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -1747,6 +1969,56 @@ const de_BatchGetAutomationRulesCommandError = async (output, context) => {
|
|
|
1747
1969
|
});
|
|
1748
1970
|
}
|
|
1749
1971
|
};
|
|
1972
|
+
const de_BatchGetConfigurationPolicyAssociationsCommand = async (output, context) => {
|
|
1973
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1974
|
+
return de_BatchGetConfigurationPolicyAssociationsCommandError(output, context);
|
|
1975
|
+
}
|
|
1976
|
+
const contents = (0, smithy_client_1.map)({
|
|
1977
|
+
$metadata: deserializeMetadata(output),
|
|
1978
|
+
});
|
|
1979
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1980
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1981
|
+
ConfigurationPolicyAssociations: (_) => de_ConfigurationPolicyAssociationList(_, context),
|
|
1982
|
+
UnprocessedConfigurationPolicyAssociations: smithy_client_1._json,
|
|
1983
|
+
});
|
|
1984
|
+
Object.assign(contents, doc);
|
|
1985
|
+
return contents;
|
|
1986
|
+
};
|
|
1987
|
+
exports.de_BatchGetConfigurationPolicyAssociationsCommand = de_BatchGetConfigurationPolicyAssociationsCommand;
|
|
1988
|
+
const de_BatchGetConfigurationPolicyAssociationsCommandError = async (output, context) => {
|
|
1989
|
+
const parsedOutput = {
|
|
1990
|
+
...output,
|
|
1991
|
+
body: await parseErrorBody(output.body, context),
|
|
1992
|
+
};
|
|
1993
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1994
|
+
switch (errorCode) {
|
|
1995
|
+
case "AccessDeniedException":
|
|
1996
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
1997
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1998
|
+
case "InternalException":
|
|
1999
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
2000
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2001
|
+
case "InvalidAccessException":
|
|
2002
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2003
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2004
|
+
case "InvalidInputException":
|
|
2005
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2006
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2007
|
+
case "LimitExceededException":
|
|
2008
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2009
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2010
|
+
case "ResourceNotFoundException":
|
|
2011
|
+
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
2012
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2013
|
+
default:
|
|
2014
|
+
const parsedBody = parsedOutput.body;
|
|
2015
|
+
return throwDefaultError({
|
|
2016
|
+
output,
|
|
2017
|
+
parsedBody,
|
|
2018
|
+
errorCode,
|
|
2019
|
+
});
|
|
2020
|
+
}
|
|
2021
|
+
};
|
|
1750
2022
|
const de_BatchGetSecurityControlsCommand = async (output, context) => {
|
|
1751
2023
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1752
2024
|
return de_BatchGetSecurityControlsCommandError(output, context);
|
|
@@ -1993,6 +2265,9 @@ const de_BatchUpdateStandardsControlAssociationsCommandError = async (output, co
|
|
|
1993
2265
|
};
|
|
1994
2266
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1995
2267
|
switch (errorCode) {
|
|
2268
|
+
case "AccessDeniedException":
|
|
2269
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
2270
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1996
2271
|
case "InternalException":
|
|
1997
2272
|
case "com.amazonaws.securityhub#InternalException":
|
|
1998
2273
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -2106,25 +2381,28 @@ const de_CreateAutomationRuleCommandError = async (output, context) => {
|
|
|
2106
2381
|
});
|
|
2107
2382
|
}
|
|
2108
2383
|
};
|
|
2109
|
-
const
|
|
2384
|
+
const de_CreateConfigurationPolicyCommand = async (output, context) => {
|
|
2110
2385
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2111
|
-
return
|
|
2386
|
+
return de_CreateConfigurationPolicyCommandError(output, context);
|
|
2112
2387
|
}
|
|
2113
2388
|
const contents = (0, smithy_client_1.map)({
|
|
2114
2389
|
$metadata: deserializeMetadata(output),
|
|
2115
2390
|
});
|
|
2116
2391
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2117
2392
|
const doc = (0, smithy_client_1.take)(data, {
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2393
|
+
Arn: smithy_client_1.expectString,
|
|
2394
|
+
ConfigurationPolicy: (_) => de_Policy((0, core_1.awsExpectUnion)(_), context),
|
|
2395
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2396
|
+
Description: smithy_client_1.expectString,
|
|
2397
|
+
Id: smithy_client_1.expectString,
|
|
2398
|
+
Name: smithy_client_1.expectString,
|
|
2399
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2122
2400
|
});
|
|
2123
2401
|
Object.assign(contents, doc);
|
|
2124
2402
|
return contents;
|
|
2125
2403
|
};
|
|
2126
|
-
exports.
|
|
2127
|
-
const
|
|
2404
|
+
exports.de_CreateConfigurationPolicyCommand = de_CreateConfigurationPolicyCommand;
|
|
2405
|
+
const de_CreateConfigurationPolicyCommandError = async (output, context) => {
|
|
2128
2406
|
const parsedOutput = {
|
|
2129
2407
|
...output,
|
|
2130
2408
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2146,6 +2424,9 @@ const de_CreateFindingAggregatorCommandError = async (output, context) => {
|
|
|
2146
2424
|
case "LimitExceededException":
|
|
2147
2425
|
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2148
2426
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2427
|
+
case "ResourceConflictException":
|
|
2428
|
+
case "com.amazonaws.securityhub#ResourceConflictException":
|
|
2429
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2149
2430
|
default:
|
|
2150
2431
|
const parsedBody = parsedOutput.body;
|
|
2151
2432
|
return throwDefaultError({
|
|
@@ -2155,28 +2436,34 @@ const de_CreateFindingAggregatorCommandError = async (output, context) => {
|
|
|
2155
2436
|
});
|
|
2156
2437
|
}
|
|
2157
2438
|
};
|
|
2158
|
-
const
|
|
2439
|
+
const de_CreateFindingAggregatorCommand = async (output, context) => {
|
|
2159
2440
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2160
|
-
return
|
|
2441
|
+
return de_CreateFindingAggregatorCommandError(output, context);
|
|
2161
2442
|
}
|
|
2162
2443
|
const contents = (0, smithy_client_1.map)({
|
|
2163
2444
|
$metadata: deserializeMetadata(output),
|
|
2164
2445
|
});
|
|
2165
2446
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2166
2447
|
const doc = (0, smithy_client_1.take)(data, {
|
|
2167
|
-
|
|
2448
|
+
FindingAggregationRegion: smithy_client_1.expectString,
|
|
2449
|
+
FindingAggregatorArn: smithy_client_1.expectString,
|
|
2450
|
+
RegionLinkingMode: smithy_client_1.expectString,
|
|
2451
|
+
Regions: smithy_client_1._json,
|
|
2168
2452
|
});
|
|
2169
2453
|
Object.assign(contents, doc);
|
|
2170
2454
|
return contents;
|
|
2171
2455
|
};
|
|
2172
|
-
exports.
|
|
2173
|
-
const
|
|
2456
|
+
exports.de_CreateFindingAggregatorCommand = de_CreateFindingAggregatorCommand;
|
|
2457
|
+
const de_CreateFindingAggregatorCommandError = async (output, context) => {
|
|
2174
2458
|
const parsedOutput = {
|
|
2175
2459
|
...output,
|
|
2176
2460
|
body: await parseErrorBody(output.body, context),
|
|
2177
2461
|
};
|
|
2178
2462
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2179
2463
|
switch (errorCode) {
|
|
2464
|
+
case "AccessDeniedException":
|
|
2465
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
2466
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2180
2467
|
case "InternalException":
|
|
2181
2468
|
case "com.amazonaws.securityhub#InternalException":
|
|
2182
2469
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -2189,7 +2476,50 @@ const de_CreateInsightCommandError = async (output, context) => {
|
|
|
2189
2476
|
case "LimitExceededException":
|
|
2190
2477
|
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2191
2478
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2192
|
-
|
|
2479
|
+
default:
|
|
2480
|
+
const parsedBody = parsedOutput.body;
|
|
2481
|
+
return throwDefaultError({
|
|
2482
|
+
output,
|
|
2483
|
+
parsedBody,
|
|
2484
|
+
errorCode,
|
|
2485
|
+
});
|
|
2486
|
+
}
|
|
2487
|
+
};
|
|
2488
|
+
const de_CreateInsightCommand = async (output, context) => {
|
|
2489
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2490
|
+
return de_CreateInsightCommandError(output, context);
|
|
2491
|
+
}
|
|
2492
|
+
const contents = (0, smithy_client_1.map)({
|
|
2493
|
+
$metadata: deserializeMetadata(output),
|
|
2494
|
+
});
|
|
2495
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2496
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2497
|
+
InsightArn: smithy_client_1.expectString,
|
|
2498
|
+
});
|
|
2499
|
+
Object.assign(contents, doc);
|
|
2500
|
+
return contents;
|
|
2501
|
+
};
|
|
2502
|
+
exports.de_CreateInsightCommand = de_CreateInsightCommand;
|
|
2503
|
+
const de_CreateInsightCommandError = async (output, context) => {
|
|
2504
|
+
const parsedOutput = {
|
|
2505
|
+
...output,
|
|
2506
|
+
body: await parseErrorBody(output.body, context),
|
|
2507
|
+
};
|
|
2508
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2509
|
+
switch (errorCode) {
|
|
2510
|
+
case "InternalException":
|
|
2511
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
2512
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2513
|
+
case "InvalidAccessException":
|
|
2514
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2515
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2516
|
+
case "InvalidInputException":
|
|
2517
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2518
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2519
|
+
case "LimitExceededException":
|
|
2520
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2521
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2522
|
+
case "ResourceConflictException":
|
|
2193
2523
|
case "com.amazonaws.securityhub#ResourceConflictException":
|
|
2194
2524
|
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2195
2525
|
default:
|
|
@@ -2223,6 +2553,9 @@ const de_CreateMembersCommandError = async (output, context) => {
|
|
|
2223
2553
|
};
|
|
2224
2554
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2225
2555
|
switch (errorCode) {
|
|
2556
|
+
case "AccessDeniedException":
|
|
2557
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
2558
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2226
2559
|
case "InternalException":
|
|
2227
2560
|
case "com.amazonaws.securityhub#InternalException":
|
|
2228
2561
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -2333,6 +2666,54 @@ const de_DeleteActionTargetCommandError = async (output, context) => {
|
|
|
2333
2666
|
});
|
|
2334
2667
|
}
|
|
2335
2668
|
};
|
|
2669
|
+
const de_DeleteConfigurationPolicyCommand = async (output, context) => {
|
|
2670
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2671
|
+
return de_DeleteConfigurationPolicyCommandError(output, context);
|
|
2672
|
+
}
|
|
2673
|
+
const contents = (0, smithy_client_1.map)({
|
|
2674
|
+
$metadata: deserializeMetadata(output),
|
|
2675
|
+
});
|
|
2676
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2677
|
+
return contents;
|
|
2678
|
+
};
|
|
2679
|
+
exports.de_DeleteConfigurationPolicyCommand = de_DeleteConfigurationPolicyCommand;
|
|
2680
|
+
const de_DeleteConfigurationPolicyCommandError = async (output, context) => {
|
|
2681
|
+
const parsedOutput = {
|
|
2682
|
+
...output,
|
|
2683
|
+
body: await parseErrorBody(output.body, context),
|
|
2684
|
+
};
|
|
2685
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2686
|
+
switch (errorCode) {
|
|
2687
|
+
case "AccessDeniedException":
|
|
2688
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
2689
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2690
|
+
case "InternalException":
|
|
2691
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
2692
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2693
|
+
case "InvalidAccessException":
|
|
2694
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2695
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2696
|
+
case "InvalidInputException":
|
|
2697
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2698
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2699
|
+
case "LimitExceededException":
|
|
2700
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2701
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2702
|
+
case "ResourceConflictException":
|
|
2703
|
+
case "com.amazonaws.securityhub#ResourceConflictException":
|
|
2704
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2705
|
+
case "ResourceNotFoundException":
|
|
2706
|
+
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
2707
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2708
|
+
default:
|
|
2709
|
+
const parsedBody = parsedOutput.body;
|
|
2710
|
+
return throwDefaultError({
|
|
2711
|
+
output,
|
|
2712
|
+
parsedBody,
|
|
2713
|
+
errorCode,
|
|
2714
|
+
});
|
|
2715
|
+
}
|
|
2716
|
+
};
|
|
2336
2717
|
const de_DeleteFindingAggregatorCommand = async (output, context) => {
|
|
2337
2718
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2338
2719
|
return de_DeleteFindingAggregatorCommandError(output, context);
|
|
@@ -2621,6 +3002,7 @@ const de_DescribeOrganizationConfigurationCommand = async (output, context) => {
|
|
|
2621
3002
|
AutoEnable: smithy_client_1.expectBoolean,
|
|
2622
3003
|
AutoEnableStandards: smithy_client_1.expectString,
|
|
2623
3004
|
MemberAccountLimitReached: smithy_client_1.expectBoolean,
|
|
3005
|
+
OrganizationConfiguration: smithy_client_1._json,
|
|
2624
3006
|
});
|
|
2625
3007
|
Object.assign(contents, doc);
|
|
2626
3008
|
return contents;
|
|
@@ -2843,6 +3225,9 @@ const de_DisableOrganizationAdminAccountCommandError = async (output, context) =
|
|
|
2843
3225
|
};
|
|
2844
3226
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2845
3227
|
switch (errorCode) {
|
|
3228
|
+
case "AccessDeniedException":
|
|
3229
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
3230
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2846
3231
|
case "InternalException":
|
|
2847
3232
|
case "com.amazonaws.securityhub#InternalException":
|
|
2848
3233
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -2882,6 +3267,9 @@ const de_DisableSecurityHubCommandError = async (output, context) => {
|
|
|
2882
3267
|
};
|
|
2883
3268
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2884
3269
|
switch (errorCode) {
|
|
3270
|
+
case "AccessDeniedException":
|
|
3271
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
3272
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2885
3273
|
case "InternalException":
|
|
2886
3274
|
case "com.amazonaws.securityhub#InternalException":
|
|
2887
3275
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -3005,6 +3393,9 @@ const de_DisassociateMembersCommandError = async (output, context) => {
|
|
|
3005
3393
|
};
|
|
3006
3394
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3007
3395
|
switch (errorCode) {
|
|
3396
|
+
case "AccessDeniedException":
|
|
3397
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
3398
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3008
3399
|
case "InternalException":
|
|
3009
3400
|
case "com.amazonaws.securityhub#InternalException":
|
|
3010
3401
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -3093,6 +3484,9 @@ const de_EnableOrganizationAdminAccountCommandError = async (output, context) =>
|
|
|
3093
3484
|
};
|
|
3094
3485
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3095
3486
|
switch (errorCode) {
|
|
3487
|
+
case "AccessDeniedException":
|
|
3488
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
3489
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3096
3490
|
case "InternalException":
|
|
3097
3491
|
case "com.amazonaws.securityhub#InternalException":
|
|
3098
3492
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -3202,6 +3596,116 @@ const de_GetAdministratorAccountCommandError = async (output, context) => {
|
|
|
3202
3596
|
});
|
|
3203
3597
|
}
|
|
3204
3598
|
};
|
|
3599
|
+
const de_GetConfigurationPolicyCommand = async (output, context) => {
|
|
3600
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3601
|
+
return de_GetConfigurationPolicyCommandError(output, context);
|
|
3602
|
+
}
|
|
3603
|
+
const contents = (0, smithy_client_1.map)({
|
|
3604
|
+
$metadata: deserializeMetadata(output),
|
|
3605
|
+
});
|
|
3606
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3607
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3608
|
+
Arn: smithy_client_1.expectString,
|
|
3609
|
+
ConfigurationPolicy: (_) => de_Policy((0, core_1.awsExpectUnion)(_), context),
|
|
3610
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3611
|
+
Description: smithy_client_1.expectString,
|
|
3612
|
+
Id: smithy_client_1.expectString,
|
|
3613
|
+
Name: smithy_client_1.expectString,
|
|
3614
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3615
|
+
});
|
|
3616
|
+
Object.assign(contents, doc);
|
|
3617
|
+
return contents;
|
|
3618
|
+
};
|
|
3619
|
+
exports.de_GetConfigurationPolicyCommand = de_GetConfigurationPolicyCommand;
|
|
3620
|
+
const de_GetConfigurationPolicyCommandError = async (output, context) => {
|
|
3621
|
+
const parsedOutput = {
|
|
3622
|
+
...output,
|
|
3623
|
+
body: await parseErrorBody(output.body, context),
|
|
3624
|
+
};
|
|
3625
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3626
|
+
switch (errorCode) {
|
|
3627
|
+
case "AccessDeniedException":
|
|
3628
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
3629
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3630
|
+
case "InternalException":
|
|
3631
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
3632
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3633
|
+
case "InvalidAccessException":
|
|
3634
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3635
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3636
|
+
case "InvalidInputException":
|
|
3637
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3638
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3639
|
+
case "LimitExceededException":
|
|
3640
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3641
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3642
|
+
case "ResourceNotFoundException":
|
|
3643
|
+
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
3644
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3645
|
+
default:
|
|
3646
|
+
const parsedBody = parsedOutput.body;
|
|
3647
|
+
return throwDefaultError({
|
|
3648
|
+
output,
|
|
3649
|
+
parsedBody,
|
|
3650
|
+
errorCode,
|
|
3651
|
+
});
|
|
3652
|
+
}
|
|
3653
|
+
};
|
|
3654
|
+
const de_GetConfigurationPolicyAssociationCommand = async (output, context) => {
|
|
3655
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3656
|
+
return de_GetConfigurationPolicyAssociationCommandError(output, context);
|
|
3657
|
+
}
|
|
3658
|
+
const contents = (0, smithy_client_1.map)({
|
|
3659
|
+
$metadata: deserializeMetadata(output),
|
|
3660
|
+
});
|
|
3661
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3662
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3663
|
+
AssociationStatus: smithy_client_1.expectString,
|
|
3664
|
+
AssociationStatusMessage: smithy_client_1.expectString,
|
|
3665
|
+
AssociationType: smithy_client_1.expectString,
|
|
3666
|
+
ConfigurationPolicyId: smithy_client_1.expectString,
|
|
3667
|
+
TargetId: smithy_client_1.expectString,
|
|
3668
|
+
TargetType: smithy_client_1.expectString,
|
|
3669
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3670
|
+
});
|
|
3671
|
+
Object.assign(contents, doc);
|
|
3672
|
+
return contents;
|
|
3673
|
+
};
|
|
3674
|
+
exports.de_GetConfigurationPolicyAssociationCommand = de_GetConfigurationPolicyAssociationCommand;
|
|
3675
|
+
const de_GetConfigurationPolicyAssociationCommandError = async (output, context) => {
|
|
3676
|
+
const parsedOutput = {
|
|
3677
|
+
...output,
|
|
3678
|
+
body: await parseErrorBody(output.body, context),
|
|
3679
|
+
};
|
|
3680
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3681
|
+
switch (errorCode) {
|
|
3682
|
+
case "AccessDeniedException":
|
|
3683
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
3684
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3685
|
+
case "InternalException":
|
|
3686
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
3687
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3688
|
+
case "InvalidAccessException":
|
|
3689
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3690
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3691
|
+
case "InvalidInputException":
|
|
3692
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3693
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3694
|
+
case "LimitExceededException":
|
|
3695
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3696
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3697
|
+
case "ResourceNotFoundException":
|
|
3698
|
+
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
3699
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3700
|
+
default:
|
|
3701
|
+
const parsedBody = parsedOutput.body;
|
|
3702
|
+
return throwDefaultError({
|
|
3703
|
+
output,
|
|
3704
|
+
parsedBody,
|
|
3705
|
+
errorCode,
|
|
3706
|
+
});
|
|
3707
|
+
}
|
|
3708
|
+
};
|
|
3205
3709
|
const de_GetEnabledStandardsCommand = async (output, context) => {
|
|
3206
3710
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3207
3711
|
return de_GetEnabledStandardsCommandError(output, context);
|
|
@@ -3629,14 +4133,110 @@ const de_GetSecurityControlDefinitionCommand = async (output, context) => {
|
|
|
3629
4133
|
Object.assign(contents, doc);
|
|
3630
4134
|
return contents;
|
|
3631
4135
|
};
|
|
3632
|
-
exports.de_GetSecurityControlDefinitionCommand = de_GetSecurityControlDefinitionCommand;
|
|
3633
|
-
const de_GetSecurityControlDefinitionCommandError = async (output, context) => {
|
|
4136
|
+
exports.de_GetSecurityControlDefinitionCommand = de_GetSecurityControlDefinitionCommand;
|
|
4137
|
+
const de_GetSecurityControlDefinitionCommandError = async (output, context) => {
|
|
4138
|
+
const parsedOutput = {
|
|
4139
|
+
...output,
|
|
4140
|
+
body: await parseErrorBody(output.body, context),
|
|
4141
|
+
};
|
|
4142
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4143
|
+
switch (errorCode) {
|
|
4144
|
+
case "InternalException":
|
|
4145
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
4146
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4147
|
+
case "InvalidAccessException":
|
|
4148
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4149
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4150
|
+
case "InvalidInputException":
|
|
4151
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4152
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4153
|
+
case "LimitExceededException":
|
|
4154
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4155
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4156
|
+
case "ResourceNotFoundException":
|
|
4157
|
+
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
4158
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4159
|
+
default:
|
|
4160
|
+
const parsedBody = parsedOutput.body;
|
|
4161
|
+
return throwDefaultError({
|
|
4162
|
+
output,
|
|
4163
|
+
parsedBody,
|
|
4164
|
+
errorCode,
|
|
4165
|
+
});
|
|
4166
|
+
}
|
|
4167
|
+
};
|
|
4168
|
+
const de_InviteMembersCommand = async (output, context) => {
|
|
4169
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4170
|
+
return de_InviteMembersCommandError(output, context);
|
|
4171
|
+
}
|
|
4172
|
+
const contents = (0, smithy_client_1.map)({
|
|
4173
|
+
$metadata: deserializeMetadata(output),
|
|
4174
|
+
});
|
|
4175
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4176
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4177
|
+
UnprocessedAccounts: smithy_client_1._json,
|
|
4178
|
+
});
|
|
4179
|
+
Object.assign(contents, doc);
|
|
4180
|
+
return contents;
|
|
4181
|
+
};
|
|
4182
|
+
exports.de_InviteMembersCommand = de_InviteMembersCommand;
|
|
4183
|
+
const de_InviteMembersCommandError = async (output, context) => {
|
|
4184
|
+
const parsedOutput = {
|
|
4185
|
+
...output,
|
|
4186
|
+
body: await parseErrorBody(output.body, context),
|
|
4187
|
+
};
|
|
4188
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4189
|
+
switch (errorCode) {
|
|
4190
|
+
case "InternalException":
|
|
4191
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
4192
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4193
|
+
case "InvalidAccessException":
|
|
4194
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4195
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4196
|
+
case "InvalidInputException":
|
|
4197
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4198
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4199
|
+
case "LimitExceededException":
|
|
4200
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4201
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4202
|
+
case "ResourceNotFoundException":
|
|
4203
|
+
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
4204
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4205
|
+
default:
|
|
4206
|
+
const parsedBody = parsedOutput.body;
|
|
4207
|
+
return throwDefaultError({
|
|
4208
|
+
output,
|
|
4209
|
+
parsedBody,
|
|
4210
|
+
errorCode,
|
|
4211
|
+
});
|
|
4212
|
+
}
|
|
4213
|
+
};
|
|
4214
|
+
const de_ListAutomationRulesCommand = async (output, context) => {
|
|
4215
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4216
|
+
return de_ListAutomationRulesCommandError(output, context);
|
|
4217
|
+
}
|
|
4218
|
+
const contents = (0, smithy_client_1.map)({
|
|
4219
|
+
$metadata: deserializeMetadata(output),
|
|
4220
|
+
});
|
|
4221
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4222
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4223
|
+
AutomationRulesMetadata: (_) => de_AutomationRulesMetadataList(_, context),
|
|
4224
|
+
NextToken: smithy_client_1.expectString,
|
|
4225
|
+
});
|
|
4226
|
+
Object.assign(contents, doc);
|
|
4227
|
+
return contents;
|
|
4228
|
+
};
|
|
4229
|
+
exports.de_ListAutomationRulesCommand = de_ListAutomationRulesCommand;
|
|
4230
|
+
const de_ListAutomationRulesCommandError = async (output, context) => {
|
|
3634
4231
|
const parsedOutput = {
|
|
3635
4232
|
...output,
|
|
3636
4233
|
body: await parseErrorBody(output.body, context),
|
|
3637
4234
|
};
|
|
3638
4235
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3639
4236
|
switch (errorCode) {
|
|
4237
|
+
case "AccessDeniedException":
|
|
4238
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
4239
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3640
4240
|
case "InternalException":
|
|
3641
4241
|
case "com.amazonaws.securityhub#InternalException":
|
|
3642
4242
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -3649,9 +4249,6 @@ const de_GetSecurityControlDefinitionCommandError = async (output, context) => {
|
|
|
3649
4249
|
case "LimitExceededException":
|
|
3650
4250
|
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3651
4251
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3652
|
-
case "ResourceNotFoundException":
|
|
3653
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
3654
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3655
4252
|
default:
|
|
3656
4253
|
const parsedBody = parsedOutput.body;
|
|
3657
4254
|
return throwDefaultError({
|
|
@@ -3661,28 +4258,32 @@ const de_GetSecurityControlDefinitionCommandError = async (output, context) => {
|
|
|
3661
4258
|
});
|
|
3662
4259
|
}
|
|
3663
4260
|
};
|
|
3664
|
-
const
|
|
4261
|
+
const de_ListConfigurationPoliciesCommand = async (output, context) => {
|
|
3665
4262
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3666
|
-
return
|
|
4263
|
+
return de_ListConfigurationPoliciesCommandError(output, context);
|
|
3667
4264
|
}
|
|
3668
4265
|
const contents = (0, smithy_client_1.map)({
|
|
3669
4266
|
$metadata: deserializeMetadata(output),
|
|
3670
4267
|
});
|
|
3671
4268
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3672
4269
|
const doc = (0, smithy_client_1.take)(data, {
|
|
3673
|
-
|
|
4270
|
+
ConfigurationPolicySummaries: (_) => de_ConfigurationPolicySummaryList(_, context),
|
|
4271
|
+
NextToken: smithy_client_1.expectString,
|
|
3674
4272
|
});
|
|
3675
4273
|
Object.assign(contents, doc);
|
|
3676
4274
|
return contents;
|
|
3677
4275
|
};
|
|
3678
|
-
exports.
|
|
3679
|
-
const
|
|
4276
|
+
exports.de_ListConfigurationPoliciesCommand = de_ListConfigurationPoliciesCommand;
|
|
4277
|
+
const de_ListConfigurationPoliciesCommandError = async (output, context) => {
|
|
3680
4278
|
const parsedOutput = {
|
|
3681
4279
|
...output,
|
|
3682
4280
|
body: await parseErrorBody(output.body, context),
|
|
3683
4281
|
};
|
|
3684
4282
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3685
4283
|
switch (errorCode) {
|
|
4284
|
+
case "AccessDeniedException":
|
|
4285
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
4286
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3686
4287
|
case "InternalException":
|
|
3687
4288
|
case "com.amazonaws.securityhub#InternalException":
|
|
3688
4289
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -3695,9 +4296,6 @@ const de_InviteMembersCommandError = async (output, context) => {
|
|
|
3695
4296
|
case "LimitExceededException":
|
|
3696
4297
|
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3697
4298
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3698
|
-
case "ResourceNotFoundException":
|
|
3699
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
3700
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3701
4299
|
default:
|
|
3702
4300
|
const parsedBody = parsedOutput.body;
|
|
3703
4301
|
return throwDefaultError({
|
|
@@ -3707,23 +4305,23 @@ const de_InviteMembersCommandError = async (output, context) => {
|
|
|
3707
4305
|
});
|
|
3708
4306
|
}
|
|
3709
4307
|
};
|
|
3710
|
-
const
|
|
4308
|
+
const de_ListConfigurationPolicyAssociationsCommand = async (output, context) => {
|
|
3711
4309
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3712
|
-
return
|
|
4310
|
+
return de_ListConfigurationPolicyAssociationsCommandError(output, context);
|
|
3713
4311
|
}
|
|
3714
4312
|
const contents = (0, smithy_client_1.map)({
|
|
3715
4313
|
$metadata: deserializeMetadata(output),
|
|
3716
4314
|
});
|
|
3717
4315
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3718
4316
|
const doc = (0, smithy_client_1.take)(data, {
|
|
3719
|
-
|
|
4317
|
+
ConfigurationPolicyAssociationSummaries: (_) => de_ConfigurationPolicyAssociationSummaryList(_, context),
|
|
3720
4318
|
NextToken: smithy_client_1.expectString,
|
|
3721
4319
|
});
|
|
3722
4320
|
Object.assign(contents, doc);
|
|
3723
4321
|
return contents;
|
|
3724
4322
|
};
|
|
3725
|
-
exports.
|
|
3726
|
-
const
|
|
4323
|
+
exports.de_ListConfigurationPolicyAssociationsCommand = de_ListConfigurationPolicyAssociationsCommand;
|
|
4324
|
+
const de_ListConfigurationPolicyAssociationsCommandError = async (output, context) => {
|
|
3727
4325
|
const parsedOutput = {
|
|
3728
4326
|
...output,
|
|
3729
4327
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4102,6 +4700,106 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
4102
4700
|
});
|
|
4103
4701
|
}
|
|
4104
4702
|
};
|
|
4703
|
+
const de_StartConfigurationPolicyAssociationCommand = async (output, context) => {
|
|
4704
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4705
|
+
return de_StartConfigurationPolicyAssociationCommandError(output, context);
|
|
4706
|
+
}
|
|
4707
|
+
const contents = (0, smithy_client_1.map)({
|
|
4708
|
+
$metadata: deserializeMetadata(output),
|
|
4709
|
+
});
|
|
4710
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4711
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4712
|
+
AssociationStatus: smithy_client_1.expectString,
|
|
4713
|
+
AssociationStatusMessage: smithy_client_1.expectString,
|
|
4714
|
+
AssociationType: smithy_client_1.expectString,
|
|
4715
|
+
ConfigurationPolicyId: smithy_client_1.expectString,
|
|
4716
|
+
TargetId: smithy_client_1.expectString,
|
|
4717
|
+
TargetType: smithy_client_1.expectString,
|
|
4718
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
4719
|
+
});
|
|
4720
|
+
Object.assign(contents, doc);
|
|
4721
|
+
return contents;
|
|
4722
|
+
};
|
|
4723
|
+
exports.de_StartConfigurationPolicyAssociationCommand = de_StartConfigurationPolicyAssociationCommand;
|
|
4724
|
+
const de_StartConfigurationPolicyAssociationCommandError = async (output, context) => {
|
|
4725
|
+
const parsedOutput = {
|
|
4726
|
+
...output,
|
|
4727
|
+
body: await parseErrorBody(output.body, context),
|
|
4728
|
+
};
|
|
4729
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4730
|
+
switch (errorCode) {
|
|
4731
|
+
case "AccessDeniedException":
|
|
4732
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
4733
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4734
|
+
case "InternalException":
|
|
4735
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
4736
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4737
|
+
case "InvalidAccessException":
|
|
4738
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4739
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4740
|
+
case "InvalidInputException":
|
|
4741
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4742
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4743
|
+
case "LimitExceededException":
|
|
4744
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4745
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4746
|
+
case "ResourceNotFoundException":
|
|
4747
|
+
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
4748
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4749
|
+
default:
|
|
4750
|
+
const parsedBody = parsedOutput.body;
|
|
4751
|
+
return throwDefaultError({
|
|
4752
|
+
output,
|
|
4753
|
+
parsedBody,
|
|
4754
|
+
errorCode,
|
|
4755
|
+
});
|
|
4756
|
+
}
|
|
4757
|
+
};
|
|
4758
|
+
const de_StartConfigurationPolicyDisassociationCommand = async (output, context) => {
|
|
4759
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4760
|
+
return de_StartConfigurationPolicyDisassociationCommandError(output, context);
|
|
4761
|
+
}
|
|
4762
|
+
const contents = (0, smithy_client_1.map)({
|
|
4763
|
+
$metadata: deserializeMetadata(output),
|
|
4764
|
+
});
|
|
4765
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
4766
|
+
return contents;
|
|
4767
|
+
};
|
|
4768
|
+
exports.de_StartConfigurationPolicyDisassociationCommand = de_StartConfigurationPolicyDisassociationCommand;
|
|
4769
|
+
const de_StartConfigurationPolicyDisassociationCommandError = async (output, context) => {
|
|
4770
|
+
const parsedOutput = {
|
|
4771
|
+
...output,
|
|
4772
|
+
body: await parseErrorBody(output.body, context),
|
|
4773
|
+
};
|
|
4774
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4775
|
+
switch (errorCode) {
|
|
4776
|
+
case "AccessDeniedException":
|
|
4777
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
4778
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4779
|
+
case "InternalException":
|
|
4780
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
4781
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4782
|
+
case "InvalidAccessException":
|
|
4783
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4784
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4785
|
+
case "InvalidInputException":
|
|
4786
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4787
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4788
|
+
case "LimitExceededException":
|
|
4789
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4790
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4791
|
+
case "ResourceNotFoundException":
|
|
4792
|
+
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
4793
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4794
|
+
default:
|
|
4795
|
+
const parsedBody = parsedOutput.body;
|
|
4796
|
+
return throwDefaultError({
|
|
4797
|
+
output,
|
|
4798
|
+
parsedBody,
|
|
4799
|
+
errorCode,
|
|
4800
|
+
});
|
|
4801
|
+
}
|
|
4802
|
+
};
|
|
4105
4803
|
const de_TagResourceCommand = async (output, context) => {
|
|
4106
4804
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4107
4805
|
return de_TagResourceCommandError(output, context);
|
|
@@ -4213,6 +4911,64 @@ const de_UpdateActionTargetCommandError = async (output, context) => {
|
|
|
4213
4911
|
});
|
|
4214
4912
|
}
|
|
4215
4913
|
};
|
|
4914
|
+
const de_UpdateConfigurationPolicyCommand = async (output, context) => {
|
|
4915
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4916
|
+
return de_UpdateConfigurationPolicyCommandError(output, context);
|
|
4917
|
+
}
|
|
4918
|
+
const contents = (0, smithy_client_1.map)({
|
|
4919
|
+
$metadata: deserializeMetadata(output),
|
|
4920
|
+
});
|
|
4921
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4922
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4923
|
+
Arn: smithy_client_1.expectString,
|
|
4924
|
+
ConfigurationPolicy: (_) => de_Policy((0, core_1.awsExpectUnion)(_), context),
|
|
4925
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
4926
|
+
Description: smithy_client_1.expectString,
|
|
4927
|
+
Id: smithy_client_1.expectString,
|
|
4928
|
+
Name: smithy_client_1.expectString,
|
|
4929
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
4930
|
+
});
|
|
4931
|
+
Object.assign(contents, doc);
|
|
4932
|
+
return contents;
|
|
4933
|
+
};
|
|
4934
|
+
exports.de_UpdateConfigurationPolicyCommand = de_UpdateConfigurationPolicyCommand;
|
|
4935
|
+
const de_UpdateConfigurationPolicyCommandError = async (output, context) => {
|
|
4936
|
+
const parsedOutput = {
|
|
4937
|
+
...output,
|
|
4938
|
+
body: await parseErrorBody(output.body, context),
|
|
4939
|
+
};
|
|
4940
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4941
|
+
switch (errorCode) {
|
|
4942
|
+
case "AccessDeniedException":
|
|
4943
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
4944
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4945
|
+
case "InternalException":
|
|
4946
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
4947
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4948
|
+
case "InvalidAccessException":
|
|
4949
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4950
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4951
|
+
case "InvalidInputException":
|
|
4952
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4953
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4954
|
+
case "LimitExceededException":
|
|
4955
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4956
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4957
|
+
case "ResourceConflictException":
|
|
4958
|
+
case "com.amazonaws.securityhub#ResourceConflictException":
|
|
4959
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
4960
|
+
case "ResourceNotFoundException":
|
|
4961
|
+
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
4962
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4963
|
+
default:
|
|
4964
|
+
const parsedBody = parsedOutput.body;
|
|
4965
|
+
return throwDefaultError({
|
|
4966
|
+
output,
|
|
4967
|
+
parsedBody,
|
|
4968
|
+
errorCode,
|
|
4969
|
+
});
|
|
4970
|
+
}
|
|
4971
|
+
};
|
|
4216
4972
|
const de_UpdateFindingAggregatorCommand = async (output, context) => {
|
|
4217
4973
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4218
4974
|
return de_UpdateFindingAggregatorCommandError(output, context);
|
|
@@ -4367,6 +5123,9 @@ const de_UpdateOrganizationConfigurationCommandError = async (output, context) =
|
|
|
4367
5123
|
};
|
|
4368
5124
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4369
5125
|
switch (errorCode) {
|
|
5126
|
+
case "AccessDeniedException":
|
|
5127
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
5128
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4370
5129
|
case "InternalException":
|
|
4371
5130
|
case "com.amazonaws.securityhub#InternalException":
|
|
4372
5131
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -4379,6 +5138,12 @@ const de_UpdateOrganizationConfigurationCommandError = async (output, context) =
|
|
|
4379
5138
|
case "LimitExceededException":
|
|
4380
5139
|
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4381
5140
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
5141
|
+
case "ResourceConflictException":
|
|
5142
|
+
case "com.amazonaws.securityhub#ResourceConflictException":
|
|
5143
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
5144
|
+
case "ResourceNotFoundException":
|
|
5145
|
+
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
5146
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4382
5147
|
default:
|
|
4383
5148
|
const parsedBody = parsedOutput.body;
|
|
4384
5149
|
return throwDefaultError({
|
|
@@ -4406,6 +5171,9 @@ const de_UpdateSecurityControlCommandError = async (output, context) => {
|
|
|
4406
5171
|
};
|
|
4407
5172
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4408
5173
|
switch (errorCode) {
|
|
5174
|
+
case "AccessDeniedException":
|
|
5175
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
5176
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4409
5177
|
case "InternalException":
|
|
4410
5178
|
case "com.amazonaws.securityhub#InternalException":
|
|
4411
5179
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -4451,6 +5219,9 @@ const de_UpdateSecurityHubConfigurationCommandError = async (output, context) =>
|
|
|
4451
5219
|
};
|
|
4452
5220
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4453
5221
|
switch (errorCode) {
|
|
5222
|
+
case "AccessDeniedException":
|
|
5223
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
5224
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4454
5225
|
case "InternalException":
|
|
4455
5226
|
case "com.amazonaws.securityhub#InternalException":
|
|
4456
5227
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -4493,6 +5264,9 @@ const de_UpdateStandardsControlCommandError = async (output, context) => {
|
|
|
4493
5264
|
};
|
|
4494
5265
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4495
5266
|
switch (errorCode) {
|
|
5267
|
+
case "AccessDeniedException":
|
|
5268
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
5269
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4496
5270
|
case "InternalException":
|
|
4497
5271
|
case "com.amazonaws.securityhub#InternalException":
|
|
4498
5272
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -4674,6 +5448,7 @@ const se_AutomationRulesFindingFieldsUpdate = (input, context) => {
|
|
|
4674
5448
|
const se_AutomationRulesFindingFilters = (input, context) => {
|
|
4675
5449
|
return (0, smithy_client_1.take)(input, {
|
|
4676
5450
|
AwsAccountId: smithy_client_1._json,
|
|
5451
|
+
AwsAccountName: smithy_client_1._json,
|
|
4677
5452
|
CompanyName: smithy_client_1._json,
|
|
4678
5453
|
ComplianceAssociatedStandardsId: smithy_client_1._json,
|
|
4679
5454
|
ComplianceSecurityControlId: smithy_client_1._json,
|
|
@@ -4694,6 +5469,8 @@ const se_AutomationRulesFindingFilters = (input, context) => {
|
|
|
4694
5469
|
RecordState: smithy_client_1._json,
|
|
4695
5470
|
RelatedFindingsId: smithy_client_1._json,
|
|
4696
5471
|
RelatedFindingsProductArn: smithy_client_1._json,
|
|
5472
|
+
ResourceApplicationArn: smithy_client_1._json,
|
|
5473
|
+
ResourceApplicationName: smithy_client_1._json,
|
|
4697
5474
|
ResourceDetailsOther: smithy_client_1._json,
|
|
4698
5475
|
ResourceId: smithy_client_1._json,
|
|
4699
5476
|
ResourcePartition: smithy_client_1._json,
|
|
@@ -4990,6 +5767,7 @@ const se_AwsSecurityFinding = (input, context) => {
|
|
|
4990
5767
|
return (0, smithy_client_1.take)(input, {
|
|
4991
5768
|
Action: (_) => se_Action(_, context),
|
|
4992
5769
|
AwsAccountId: [],
|
|
5770
|
+
AwsAccountName: [],
|
|
4993
5771
|
CompanyName: [],
|
|
4994
5772
|
Compliance: smithy_client_1._json,
|
|
4995
5773
|
Confidence: [],
|
|
@@ -5008,6 +5786,7 @@ const se_AwsSecurityFinding = (input, context) => {
|
|
|
5008
5786
|
Note: smithy_client_1._json,
|
|
5009
5787
|
PatchSummary: smithy_client_1._json,
|
|
5010
5788
|
Process: smithy_client_1._json,
|
|
5789
|
+
ProcessedAt: [],
|
|
5011
5790
|
ProductArn: [],
|
|
5012
5791
|
ProductFields: smithy_client_1._json,
|
|
5013
5792
|
ProductName: [],
|
|
@@ -5035,6 +5814,7 @@ const se_AwsSecurityFinding = (input, context) => {
|
|
|
5035
5814
|
const se_AwsSecurityFindingFilters = (input, context) => {
|
|
5036
5815
|
return (0, smithy_client_1.take)(input, {
|
|
5037
5816
|
AwsAccountId: smithy_client_1._json,
|
|
5817
|
+
AwsAccountName: smithy_client_1._json,
|
|
5038
5818
|
CompanyName: smithy_client_1._json,
|
|
5039
5819
|
ComplianceAssociatedStandardsId: smithy_client_1._json,
|
|
5040
5820
|
ComplianceSecurityControlId: smithy_client_1._json,
|
|
@@ -5089,6 +5869,8 @@ const se_AwsSecurityFindingFilters = (input, context) => {
|
|
|
5089
5869
|
Region: smithy_client_1._json,
|
|
5090
5870
|
RelatedFindingsId: smithy_client_1._json,
|
|
5091
5871
|
RelatedFindingsProductArn: smithy_client_1._json,
|
|
5872
|
+
ResourceApplicationArn: smithy_client_1._json,
|
|
5873
|
+
ResourceApplicationName: smithy_client_1._json,
|
|
5092
5874
|
ResourceAwsEc2InstanceIamInstanceProfileArn: smithy_client_1._json,
|
|
5093
5875
|
ResourceAwsEc2InstanceImageId: smithy_client_1._json,
|
|
5094
5876
|
ResourceAwsEc2InstanceIpV4Addresses: smithy_client_1._json,
|
|
@@ -5220,6 +6002,12 @@ const se_ParameterValue = (input, context) => {
|
|
|
5220
6002
|
_: (name, value) => ({ name: value }),
|
|
5221
6003
|
});
|
|
5222
6004
|
};
|
|
6005
|
+
const se_Policy = (input, context) => {
|
|
6006
|
+
return models_2_1.Policy.visit(input, {
|
|
6007
|
+
SecurityHub: (value) => ({ SecurityHub: se_SecurityHubPolicy(value, context) }),
|
|
6008
|
+
_: (name, value) => ({ name: value }),
|
|
6009
|
+
});
|
|
6010
|
+
};
|
|
5223
6011
|
const se_PortProbeAction = (input, context) => {
|
|
5224
6012
|
return (0, smithy_client_1.take)(input, {
|
|
5225
6013
|
Blocked: [],
|
|
@@ -5242,6 +6030,8 @@ const se_PortProbeDetailList = (input, context) => {
|
|
|
5242
6030
|
};
|
|
5243
6031
|
const se_Resource = (input, context) => {
|
|
5244
6032
|
return (0, smithy_client_1.take)(input, {
|
|
6033
|
+
ApplicationArn: [],
|
|
6034
|
+
ApplicationName: [],
|
|
5245
6035
|
DataClassification: smithy_client_1._json,
|
|
5246
6036
|
Details: (_) => se_ResourceDetails(_, context),
|
|
5247
6037
|
Id: [],
|
|
@@ -5360,6 +6150,33 @@ const se_ResourceList = (input, context) => {
|
|
|
5360
6150
|
return se_Resource(entry, context);
|
|
5361
6151
|
});
|
|
5362
6152
|
};
|
|
6153
|
+
const se_SecurityControlCustomParameter = (input, context) => {
|
|
6154
|
+
return (0, smithy_client_1.take)(input, {
|
|
6155
|
+
Parameters: (_) => se_Parameters(_, context),
|
|
6156
|
+
SecurityControlId: [],
|
|
6157
|
+
});
|
|
6158
|
+
};
|
|
6159
|
+
const se_SecurityControlCustomParametersList = (input, context) => {
|
|
6160
|
+
return input
|
|
6161
|
+
.filter((e) => e != null)
|
|
6162
|
+
.map((entry) => {
|
|
6163
|
+
return se_SecurityControlCustomParameter(entry, context);
|
|
6164
|
+
});
|
|
6165
|
+
};
|
|
6166
|
+
const se_SecurityControlsConfiguration = (input, context) => {
|
|
6167
|
+
return (0, smithy_client_1.take)(input, {
|
|
6168
|
+
DisabledSecurityControlIdentifiers: smithy_client_1._json,
|
|
6169
|
+
EnabledSecurityControlIdentifiers: smithy_client_1._json,
|
|
6170
|
+
SecurityControlCustomParameters: (_) => se_SecurityControlCustomParametersList(_, context),
|
|
6171
|
+
});
|
|
6172
|
+
};
|
|
6173
|
+
const se_SecurityHubPolicy = (input, context) => {
|
|
6174
|
+
return (0, smithy_client_1.take)(input, {
|
|
6175
|
+
EnabledStandardIdentifiers: smithy_client_1._json,
|
|
6176
|
+
SecurityControlsConfiguration: (_) => se_SecurityControlsConfiguration(_, context),
|
|
6177
|
+
ServiceEnabled: [],
|
|
6178
|
+
});
|
|
6179
|
+
};
|
|
5363
6180
|
const se_Severity = (input, context) => {
|
|
5364
6181
|
return (0, smithy_client_1.take)(input, {
|
|
5365
6182
|
Label: [],
|
|
@@ -5486,6 +6303,7 @@ const de_AutomationRulesFindingFieldsUpdate = (output, context) => {
|
|
|
5486
6303
|
const de_AutomationRulesFindingFilters = (output, context) => {
|
|
5487
6304
|
return (0, smithy_client_1.take)(output, {
|
|
5488
6305
|
AwsAccountId: smithy_client_1._json,
|
|
6306
|
+
AwsAccountName: smithy_client_1._json,
|
|
5489
6307
|
CompanyName: smithy_client_1._json,
|
|
5490
6308
|
ComplianceAssociatedStandardsId: smithy_client_1._json,
|
|
5491
6309
|
ComplianceSecurityControlId: smithy_client_1._json,
|
|
@@ -5506,6 +6324,8 @@ const de_AutomationRulesFindingFilters = (output, context) => {
|
|
|
5506
6324
|
RecordState: smithy_client_1._json,
|
|
5507
6325
|
RelatedFindingsId: smithy_client_1._json,
|
|
5508
6326
|
RelatedFindingsProductArn: smithy_client_1._json,
|
|
6327
|
+
ResourceApplicationArn: smithy_client_1._json,
|
|
6328
|
+
ResourceApplicationName: smithy_client_1._json,
|
|
5509
6329
|
ResourceDetailsOther: smithy_client_1._json,
|
|
5510
6330
|
ResourceId: smithy_client_1._json,
|
|
5511
6331
|
ResourcePartition: smithy_client_1._json,
|
|
@@ -5824,6 +6644,7 @@ const de_AwsSecurityFinding = (output, context) => {
|
|
|
5824
6644
|
return (0, smithy_client_1.take)(output, {
|
|
5825
6645
|
Action: (_) => de_Action(_, context),
|
|
5826
6646
|
AwsAccountId: smithy_client_1.expectString,
|
|
6647
|
+
AwsAccountName: smithy_client_1.expectString,
|
|
5827
6648
|
CompanyName: smithy_client_1.expectString,
|
|
5828
6649
|
Compliance: smithy_client_1._json,
|
|
5829
6650
|
Confidence: smithy_client_1.expectInt32,
|
|
@@ -5842,6 +6663,7 @@ const de_AwsSecurityFinding = (output, context) => {
|
|
|
5842
6663
|
Note: smithy_client_1._json,
|
|
5843
6664
|
PatchSummary: smithy_client_1._json,
|
|
5844
6665
|
Process: smithy_client_1._json,
|
|
6666
|
+
ProcessedAt: smithy_client_1.expectString,
|
|
5845
6667
|
ProductArn: smithy_client_1.expectString,
|
|
5846
6668
|
ProductFields: smithy_client_1._json,
|
|
5847
6669
|
ProductName: smithy_client_1.expectString,
|
|
@@ -5869,6 +6691,7 @@ const de_AwsSecurityFinding = (output, context) => {
|
|
|
5869
6691
|
const de_AwsSecurityFindingFilters = (output, context) => {
|
|
5870
6692
|
return (0, smithy_client_1.take)(output, {
|
|
5871
6693
|
AwsAccountId: smithy_client_1._json,
|
|
6694
|
+
AwsAccountName: smithy_client_1._json,
|
|
5872
6695
|
CompanyName: smithy_client_1._json,
|
|
5873
6696
|
ComplianceAssociatedStandardsId: smithy_client_1._json,
|
|
5874
6697
|
ComplianceSecurityControlId: smithy_client_1._json,
|
|
@@ -5923,6 +6746,8 @@ const de_AwsSecurityFindingFilters = (output, context) => {
|
|
|
5923
6746
|
Region: smithy_client_1._json,
|
|
5924
6747
|
RelatedFindingsId: smithy_client_1._json,
|
|
5925
6748
|
RelatedFindingsProductArn: smithy_client_1._json,
|
|
6749
|
+
ResourceApplicationArn: smithy_client_1._json,
|
|
6750
|
+
ResourceApplicationName: smithy_client_1._json,
|
|
5926
6751
|
ResourceAwsEc2InstanceIamInstanceProfileArn: smithy_client_1._json,
|
|
5927
6752
|
ResourceAwsEc2InstanceImageId: smithy_client_1._json,
|
|
5928
6753
|
ResourceAwsEc2InstanceIpV4Addresses: smithy_client_1._json,
|
|
@@ -6022,6 +6847,51 @@ const de_ConfigurationOptions = (output, context) => {
|
|
|
6022
6847
|
}
|
|
6023
6848
|
return { $unknown: Object.entries(output)[0] };
|
|
6024
6849
|
};
|
|
6850
|
+
const de_ConfigurationPolicyAssociationList = (output, context) => {
|
|
6851
|
+
const retVal = (output || [])
|
|
6852
|
+
.filter((e) => e != null)
|
|
6853
|
+
.map((entry) => {
|
|
6854
|
+
return de_ConfigurationPolicyAssociationSummary(entry, context);
|
|
6855
|
+
});
|
|
6856
|
+
return retVal;
|
|
6857
|
+
};
|
|
6858
|
+
const de_ConfigurationPolicyAssociationSummary = (output, context) => {
|
|
6859
|
+
return (0, smithy_client_1.take)(output, {
|
|
6860
|
+
AssociationStatus: smithy_client_1.expectString,
|
|
6861
|
+
AssociationStatusMessage: smithy_client_1.expectString,
|
|
6862
|
+
AssociationType: smithy_client_1.expectString,
|
|
6863
|
+
ConfigurationPolicyId: smithy_client_1.expectString,
|
|
6864
|
+
TargetId: smithy_client_1.expectString,
|
|
6865
|
+
TargetType: smithy_client_1.expectString,
|
|
6866
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
6867
|
+
});
|
|
6868
|
+
};
|
|
6869
|
+
const de_ConfigurationPolicyAssociationSummaryList = (output, context) => {
|
|
6870
|
+
const retVal = (output || [])
|
|
6871
|
+
.filter((e) => e != null)
|
|
6872
|
+
.map((entry) => {
|
|
6873
|
+
return de_ConfigurationPolicyAssociationSummary(entry, context);
|
|
6874
|
+
});
|
|
6875
|
+
return retVal;
|
|
6876
|
+
};
|
|
6877
|
+
const de_ConfigurationPolicySummary = (output, context) => {
|
|
6878
|
+
return (0, smithy_client_1.take)(output, {
|
|
6879
|
+
Arn: smithy_client_1.expectString,
|
|
6880
|
+
Description: smithy_client_1.expectString,
|
|
6881
|
+
Id: smithy_client_1.expectString,
|
|
6882
|
+
Name: smithy_client_1.expectString,
|
|
6883
|
+
ServiceEnabled: smithy_client_1.expectBoolean,
|
|
6884
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
6885
|
+
});
|
|
6886
|
+
};
|
|
6887
|
+
const de_ConfigurationPolicySummaryList = (output, context) => {
|
|
6888
|
+
const retVal = (output || [])
|
|
6889
|
+
.filter((e) => e != null)
|
|
6890
|
+
.map((entry) => {
|
|
6891
|
+
return de_ConfigurationPolicySummary(entry, context);
|
|
6892
|
+
});
|
|
6893
|
+
return retVal;
|
|
6894
|
+
};
|
|
6025
6895
|
const de_Cvss = (output, context) => {
|
|
6026
6896
|
return (0, smithy_client_1.take)(output, {
|
|
6027
6897
|
Adjustments: smithy_client_1._json,
|
|
@@ -6211,6 +7081,14 @@ const de_ParameterValue = (output, context) => {
|
|
|
6211
7081
|
}
|
|
6212
7082
|
return { $unknown: Object.entries(output)[0] };
|
|
6213
7083
|
};
|
|
7084
|
+
const de_Policy = (output, context) => {
|
|
7085
|
+
if (output.SecurityHub != null) {
|
|
7086
|
+
return {
|
|
7087
|
+
SecurityHub: de_SecurityHubPolicy(output.SecurityHub, context),
|
|
7088
|
+
};
|
|
7089
|
+
}
|
|
7090
|
+
return { $unknown: Object.entries(output)[0] };
|
|
7091
|
+
};
|
|
6214
7092
|
const de_PortProbeAction = (output, context) => {
|
|
6215
7093
|
return (0, smithy_client_1.take)(output, {
|
|
6216
7094
|
Blocked: smithy_client_1.expectBoolean,
|
|
@@ -6234,6 +7112,8 @@ const de_PortProbeDetailList = (output, context) => {
|
|
|
6234
7112
|
};
|
|
6235
7113
|
const de_Resource = (output, context) => {
|
|
6236
7114
|
return (0, smithy_client_1.take)(output, {
|
|
7115
|
+
ApplicationArn: smithy_client_1.expectString,
|
|
7116
|
+
ApplicationName: smithy_client_1.expectString,
|
|
6237
7117
|
DataClassification: smithy_client_1._json,
|
|
6238
7118
|
Details: (_) => de_ResourceDetails(_, context),
|
|
6239
7119
|
Id: smithy_client_1.expectString,
|
|
@@ -6367,6 +7247,20 @@ const de_SecurityControl = (output, context) => {
|
|
|
6367
7247
|
UpdateStatus: smithy_client_1.expectString,
|
|
6368
7248
|
});
|
|
6369
7249
|
};
|
|
7250
|
+
const de_SecurityControlCustomParameter = (output, context) => {
|
|
7251
|
+
return (0, smithy_client_1.take)(output, {
|
|
7252
|
+
Parameters: (_) => de_Parameters(_, context),
|
|
7253
|
+
SecurityControlId: smithy_client_1.expectString,
|
|
7254
|
+
});
|
|
7255
|
+
};
|
|
7256
|
+
const de_SecurityControlCustomParametersList = (output, context) => {
|
|
7257
|
+
const retVal = (output || [])
|
|
7258
|
+
.filter((e) => e != null)
|
|
7259
|
+
.map((entry) => {
|
|
7260
|
+
return de_SecurityControlCustomParameter(entry, context);
|
|
7261
|
+
});
|
|
7262
|
+
return retVal;
|
|
7263
|
+
};
|
|
6370
7264
|
const de_SecurityControlDefinition = (output, context) => {
|
|
6371
7265
|
return (0, smithy_client_1.take)(output, {
|
|
6372
7266
|
CurrentRegionAvailability: smithy_client_1.expectString,
|
|
@@ -6395,6 +7289,20 @@ const de_SecurityControls = (output, context) => {
|
|
|
6395
7289
|
});
|
|
6396
7290
|
return retVal;
|
|
6397
7291
|
};
|
|
7292
|
+
const de_SecurityControlsConfiguration = (output, context) => {
|
|
7293
|
+
return (0, smithy_client_1.take)(output, {
|
|
7294
|
+
DisabledSecurityControlIdentifiers: smithy_client_1._json,
|
|
7295
|
+
EnabledSecurityControlIdentifiers: smithy_client_1._json,
|
|
7296
|
+
SecurityControlCustomParameters: (_) => de_SecurityControlCustomParametersList(_, context),
|
|
7297
|
+
});
|
|
7298
|
+
};
|
|
7299
|
+
const de_SecurityHubPolicy = (output, context) => {
|
|
7300
|
+
return (0, smithy_client_1.take)(output, {
|
|
7301
|
+
EnabledStandardIdentifiers: smithy_client_1._json,
|
|
7302
|
+
SecurityControlsConfiguration: (_) => de_SecurityControlsConfiguration(_, context),
|
|
7303
|
+
ServiceEnabled: smithy_client_1.expectBoolean,
|
|
7304
|
+
});
|
|
7305
|
+
};
|
|
6398
7306
|
const de_Severity = (output, context) => {
|
|
6399
7307
|
return (0, smithy_client_1.take)(output, {
|
|
6400
7308
|
Label: smithy_client_1.expectString,
|