@aws-sdk/client-securityhub 3.458.0 → 3.460.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 +176 -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 +265 -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 +109 -0
- package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +27 -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 +131 -0
- package/dist-types/commands/GetConfigurationPolicyCommand.d.ts +191 -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 +131 -0
- package/dist-types/commands/ListConfigurationPolicyAssociationsCommand.d.ts +140 -0
- package/dist-types/commands/ListSecurityControlDefinitionsCommand.d.ts +6 -0
- package/dist-types/commands/StartConfigurationPolicyAssociationCommand.d.ts +133 -0
- package/dist-types/commands/StartConfigurationPolicyDisassociationCommand.d.ts +116 -0
- package/dist-types/commands/UpdateConfigurationPolicyCommand.d.ts +271 -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 +12 -12
|
@@ -2,7 +2,7 @@ import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
|
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
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, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { AccessDeniedException, InternalException, InvalidAccessException, InvalidInputException, LimitExceededException, ResourceNotFoundException, } from "../models/models_0";
|
|
5
|
-
import { ParameterValue, ResourceConflictException, ResourceInUseException, } from "../models/models_2";
|
|
5
|
+
import { ParameterValue, Policy, ResourceConflictException, ResourceInUseException, } from "../models/models_2";
|
|
6
6
|
import { SecurityHubServiceException as __BaseException } from "../models/SecurityHubServiceException";
|
|
7
7
|
export const se_AcceptAdministratorInvitationCommand = async (input, context) => {
|
|
8
8
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -126,6 +126,26 @@ export const se_BatchGetAutomationRulesCommand = async (input, context) => {
|
|
|
126
126
|
body,
|
|
127
127
|
});
|
|
128
128
|
};
|
|
129
|
+
export const se_BatchGetConfigurationPolicyAssociationsCommand = async (input, context) => {
|
|
130
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
131
|
+
const headers = {
|
|
132
|
+
"content-type": "application/json",
|
|
133
|
+
};
|
|
134
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicyAssociation/batchget";
|
|
135
|
+
let body;
|
|
136
|
+
body = JSON.stringify(take(input, {
|
|
137
|
+
ConfigurationPolicyAssociationIdentifiers: (_) => _json(_),
|
|
138
|
+
}));
|
|
139
|
+
return new __HttpRequest({
|
|
140
|
+
protocol,
|
|
141
|
+
hostname,
|
|
142
|
+
port,
|
|
143
|
+
method: "POST",
|
|
144
|
+
headers,
|
|
145
|
+
path: resolvedPath,
|
|
146
|
+
body,
|
|
147
|
+
});
|
|
148
|
+
};
|
|
129
149
|
export const se_BatchGetSecurityControlsCommand = async (input, context) => {
|
|
130
150
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
131
151
|
const headers = {
|
|
@@ -304,6 +324,29 @@ export const se_CreateAutomationRuleCommand = async (input, context) => {
|
|
|
304
324
|
body,
|
|
305
325
|
});
|
|
306
326
|
};
|
|
327
|
+
export const se_CreateConfigurationPolicyCommand = async (input, context) => {
|
|
328
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
329
|
+
const headers = {
|
|
330
|
+
"content-type": "application/json",
|
|
331
|
+
};
|
|
332
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicy/create";
|
|
333
|
+
let body;
|
|
334
|
+
body = JSON.stringify(take(input, {
|
|
335
|
+
ConfigurationPolicy: (_) => se_Policy(_, context),
|
|
336
|
+
Description: [],
|
|
337
|
+
Name: [],
|
|
338
|
+
Tags: (_) => _json(_),
|
|
339
|
+
}));
|
|
340
|
+
return new __HttpRequest({
|
|
341
|
+
protocol,
|
|
342
|
+
hostname,
|
|
343
|
+
port,
|
|
344
|
+
method: "POST",
|
|
345
|
+
headers,
|
|
346
|
+
path: resolvedPath,
|
|
347
|
+
body,
|
|
348
|
+
});
|
|
349
|
+
};
|
|
307
350
|
export const se_CreateFindingAggregatorCommand = async (input, context) => {
|
|
308
351
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
309
352
|
const headers = {
|
|
@@ -403,6 +446,22 @@ export const se_DeleteActionTargetCommand = async (input, context) => {
|
|
|
403
446
|
body,
|
|
404
447
|
});
|
|
405
448
|
};
|
|
449
|
+
export const se_DeleteConfigurationPolicyCommand = async (input, context) => {
|
|
450
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
451
|
+
const headers = {};
|
|
452
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicy/{Identifier}";
|
|
453
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
|
|
454
|
+
let body;
|
|
455
|
+
return new __HttpRequest({
|
|
456
|
+
protocol,
|
|
457
|
+
hostname,
|
|
458
|
+
port,
|
|
459
|
+
method: "DELETE",
|
|
460
|
+
headers,
|
|
461
|
+
path: resolvedPath,
|
|
462
|
+
body,
|
|
463
|
+
});
|
|
464
|
+
};
|
|
406
465
|
export const se_DeleteFindingAggregatorCommand = async (input, context) => {
|
|
407
466
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
408
467
|
const headers = {};
|
|
@@ -789,6 +848,42 @@ export const se_GetAdministratorAccountCommand = async (input, context) => {
|
|
|
789
848
|
body,
|
|
790
849
|
});
|
|
791
850
|
};
|
|
851
|
+
export const se_GetConfigurationPolicyCommand = async (input, context) => {
|
|
852
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
853
|
+
const headers = {};
|
|
854
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicy/get/{Identifier}";
|
|
855
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
|
|
856
|
+
let body;
|
|
857
|
+
return new __HttpRequest({
|
|
858
|
+
protocol,
|
|
859
|
+
hostname,
|
|
860
|
+
port,
|
|
861
|
+
method: "GET",
|
|
862
|
+
headers,
|
|
863
|
+
path: resolvedPath,
|
|
864
|
+
body,
|
|
865
|
+
});
|
|
866
|
+
};
|
|
867
|
+
export const se_GetConfigurationPolicyAssociationCommand = async (input, context) => {
|
|
868
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
869
|
+
const headers = {
|
|
870
|
+
"content-type": "application/json",
|
|
871
|
+
};
|
|
872
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicyAssociation/get";
|
|
873
|
+
let body;
|
|
874
|
+
body = JSON.stringify(take(input, {
|
|
875
|
+
Target: (_) => _json(_),
|
|
876
|
+
}));
|
|
877
|
+
return new __HttpRequest({
|
|
878
|
+
protocol,
|
|
879
|
+
hostname,
|
|
880
|
+
port,
|
|
881
|
+
method: "POST",
|
|
882
|
+
headers,
|
|
883
|
+
path: resolvedPath,
|
|
884
|
+
body,
|
|
885
|
+
});
|
|
886
|
+
};
|
|
792
887
|
export const se_GetEnabledStandardsCommand = async (input, context) => {
|
|
793
888
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
794
889
|
const headers = {
|
|
@@ -1028,6 +1123,48 @@ export const se_ListAutomationRulesCommand = async (input, context) => {
|
|
|
1028
1123
|
body,
|
|
1029
1124
|
});
|
|
1030
1125
|
};
|
|
1126
|
+
export const se_ListConfigurationPoliciesCommand = async (input, context) => {
|
|
1127
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1128
|
+
const headers = {};
|
|
1129
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicy/list";
|
|
1130
|
+
const query = map({
|
|
1131
|
+
NextToken: [, input.NextToken],
|
|
1132
|
+
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1133
|
+
});
|
|
1134
|
+
let body;
|
|
1135
|
+
return new __HttpRequest({
|
|
1136
|
+
protocol,
|
|
1137
|
+
hostname,
|
|
1138
|
+
port,
|
|
1139
|
+
method: "GET",
|
|
1140
|
+
headers,
|
|
1141
|
+
path: resolvedPath,
|
|
1142
|
+
query,
|
|
1143
|
+
body,
|
|
1144
|
+
});
|
|
1145
|
+
};
|
|
1146
|
+
export const se_ListConfigurationPolicyAssociationsCommand = async (input, context) => {
|
|
1147
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1148
|
+
const headers = {
|
|
1149
|
+
"content-type": "application/json",
|
|
1150
|
+
};
|
|
1151
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicyAssociation/list";
|
|
1152
|
+
let body;
|
|
1153
|
+
body = JSON.stringify(take(input, {
|
|
1154
|
+
Filters: (_) => _json(_),
|
|
1155
|
+
MaxResults: [],
|
|
1156
|
+
NextToken: [],
|
|
1157
|
+
}));
|
|
1158
|
+
return new __HttpRequest({
|
|
1159
|
+
protocol,
|
|
1160
|
+
hostname,
|
|
1161
|
+
port,
|
|
1162
|
+
method: "POST",
|
|
1163
|
+
headers,
|
|
1164
|
+
path: resolvedPath,
|
|
1165
|
+
body,
|
|
1166
|
+
});
|
|
1167
|
+
};
|
|
1031
1168
|
export const se_ListEnabledProductsForImportCommand = async (input, context) => {
|
|
1032
1169
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1033
1170
|
const headers = {};
|
|
@@ -1187,6 +1324,49 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
1187
1324
|
body,
|
|
1188
1325
|
});
|
|
1189
1326
|
};
|
|
1327
|
+
export const se_StartConfigurationPolicyAssociationCommand = async (input, context) => {
|
|
1328
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1329
|
+
const headers = {
|
|
1330
|
+
"content-type": "application/json",
|
|
1331
|
+
};
|
|
1332
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicyAssociation/associate";
|
|
1333
|
+
let body;
|
|
1334
|
+
body = JSON.stringify(take(input, {
|
|
1335
|
+
ConfigurationPolicyIdentifier: [],
|
|
1336
|
+
Target: (_) => _json(_),
|
|
1337
|
+
}));
|
|
1338
|
+
return new __HttpRequest({
|
|
1339
|
+
protocol,
|
|
1340
|
+
hostname,
|
|
1341
|
+
port,
|
|
1342
|
+
method: "POST",
|
|
1343
|
+
headers,
|
|
1344
|
+
path: resolvedPath,
|
|
1345
|
+
body,
|
|
1346
|
+
});
|
|
1347
|
+
};
|
|
1348
|
+
export const se_StartConfigurationPolicyDisassociationCommand = async (input, context) => {
|
|
1349
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1350
|
+
const headers = {
|
|
1351
|
+
"content-type": "application/json",
|
|
1352
|
+
};
|
|
1353
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1354
|
+
"/configurationPolicyAssociation/disassociate";
|
|
1355
|
+
let body;
|
|
1356
|
+
body = JSON.stringify(take(input, {
|
|
1357
|
+
ConfigurationPolicyIdentifier: [],
|
|
1358
|
+
Target: (_) => _json(_),
|
|
1359
|
+
}));
|
|
1360
|
+
return new __HttpRequest({
|
|
1361
|
+
protocol,
|
|
1362
|
+
hostname,
|
|
1363
|
+
port,
|
|
1364
|
+
method: "POST",
|
|
1365
|
+
headers,
|
|
1366
|
+
path: resolvedPath,
|
|
1367
|
+
body,
|
|
1368
|
+
});
|
|
1369
|
+
};
|
|
1190
1370
|
export const se_TagResourceCommand = async (input, context) => {
|
|
1191
1371
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1192
1372
|
const headers = {
|
|
@@ -1253,6 +1433,30 @@ export const se_UpdateActionTargetCommand = async (input, context) => {
|
|
|
1253
1433
|
body,
|
|
1254
1434
|
});
|
|
1255
1435
|
};
|
|
1436
|
+
export const se_UpdateConfigurationPolicyCommand = async (input, context) => {
|
|
1437
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1438
|
+
const headers = {
|
|
1439
|
+
"content-type": "application/json",
|
|
1440
|
+
};
|
|
1441
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicy/{Identifier}";
|
|
1442
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
|
|
1443
|
+
let body;
|
|
1444
|
+
body = JSON.stringify(take(input, {
|
|
1445
|
+
ConfigurationPolicy: (_) => se_Policy(_, context),
|
|
1446
|
+
Description: [],
|
|
1447
|
+
Name: [],
|
|
1448
|
+
UpdatedReason: [],
|
|
1449
|
+
}));
|
|
1450
|
+
return new __HttpRequest({
|
|
1451
|
+
protocol,
|
|
1452
|
+
hostname,
|
|
1453
|
+
port,
|
|
1454
|
+
method: "PATCH",
|
|
1455
|
+
headers,
|
|
1456
|
+
path: resolvedPath,
|
|
1457
|
+
body,
|
|
1458
|
+
});
|
|
1459
|
+
};
|
|
1256
1460
|
export const se_UpdateFindingAggregatorCommand = async (input, context) => {
|
|
1257
1461
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1258
1462
|
const headers = {
|
|
@@ -1330,6 +1534,7 @@ export const se_UpdateOrganizationConfigurationCommand = async (input, context)
|
|
|
1330
1534
|
body = JSON.stringify(take(input, {
|
|
1331
1535
|
AutoEnable: [],
|
|
1332
1536
|
AutoEnableStandards: [],
|
|
1537
|
+
OrganizationConfiguration: (_) => _json(_),
|
|
1333
1538
|
}));
|
|
1334
1539
|
return new __HttpRequest({
|
|
1335
1540
|
protocol,
|
|
@@ -1555,6 +1760,9 @@ const de_BatchDisableStandardsCommandError = async (output, context) => {
|
|
|
1555
1760
|
};
|
|
1556
1761
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1557
1762
|
switch (errorCode) {
|
|
1763
|
+
case "AccessDeniedException":
|
|
1764
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
1765
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1558
1766
|
case "InternalException":
|
|
1559
1767
|
case "com.amazonaws.securityhub#InternalException":
|
|
1560
1768
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -1597,6 +1805,9 @@ const de_BatchEnableStandardsCommandError = async (output, context) => {
|
|
|
1597
1805
|
};
|
|
1598
1806
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1599
1807
|
switch (errorCode) {
|
|
1808
|
+
case "AccessDeniedException":
|
|
1809
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
1810
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1600
1811
|
case "InternalException":
|
|
1601
1812
|
case "com.amazonaws.securityhub#InternalException":
|
|
1602
1813
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -1667,6 +1878,55 @@ const de_BatchGetAutomationRulesCommandError = async (output, context) => {
|
|
|
1667
1878
|
});
|
|
1668
1879
|
}
|
|
1669
1880
|
};
|
|
1881
|
+
export const de_BatchGetConfigurationPolicyAssociationsCommand = async (output, context) => {
|
|
1882
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1883
|
+
return de_BatchGetConfigurationPolicyAssociationsCommandError(output, context);
|
|
1884
|
+
}
|
|
1885
|
+
const contents = map({
|
|
1886
|
+
$metadata: deserializeMetadata(output),
|
|
1887
|
+
});
|
|
1888
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1889
|
+
const doc = take(data, {
|
|
1890
|
+
ConfigurationPolicyAssociations: (_) => de_ConfigurationPolicyAssociationList(_, context),
|
|
1891
|
+
UnprocessedConfigurationPolicyAssociations: _json,
|
|
1892
|
+
});
|
|
1893
|
+
Object.assign(contents, doc);
|
|
1894
|
+
return contents;
|
|
1895
|
+
};
|
|
1896
|
+
const de_BatchGetConfigurationPolicyAssociationsCommandError = async (output, context) => {
|
|
1897
|
+
const parsedOutput = {
|
|
1898
|
+
...output,
|
|
1899
|
+
body: await parseErrorBody(output.body, context),
|
|
1900
|
+
};
|
|
1901
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1902
|
+
switch (errorCode) {
|
|
1903
|
+
case "AccessDeniedException":
|
|
1904
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
1905
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1906
|
+
case "InternalException":
|
|
1907
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
1908
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1909
|
+
case "InvalidAccessException":
|
|
1910
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
1911
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
1912
|
+
case "InvalidInputException":
|
|
1913
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
1914
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1915
|
+
case "LimitExceededException":
|
|
1916
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
1917
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1918
|
+
case "ResourceNotFoundException":
|
|
1919
|
+
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
1920
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1921
|
+
default:
|
|
1922
|
+
const parsedBody = parsedOutput.body;
|
|
1923
|
+
return throwDefaultError({
|
|
1924
|
+
output,
|
|
1925
|
+
parsedBody,
|
|
1926
|
+
errorCode,
|
|
1927
|
+
});
|
|
1928
|
+
}
|
|
1929
|
+
};
|
|
1670
1930
|
export const de_BatchGetSecurityControlsCommand = async (output, context) => {
|
|
1671
1931
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1672
1932
|
return de_BatchGetSecurityControlsCommandError(output, context);
|
|
@@ -1907,6 +2167,9 @@ const de_BatchUpdateStandardsControlAssociationsCommandError = async (output, co
|
|
|
1907
2167
|
};
|
|
1908
2168
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1909
2169
|
switch (errorCode) {
|
|
2170
|
+
case "AccessDeniedException":
|
|
2171
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
2172
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1910
2173
|
case "InternalException":
|
|
1911
2174
|
case "com.amazonaws.securityhub#InternalException":
|
|
1912
2175
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -2018,24 +2281,27 @@ const de_CreateAutomationRuleCommandError = async (output, context) => {
|
|
|
2018
2281
|
});
|
|
2019
2282
|
}
|
|
2020
2283
|
};
|
|
2021
|
-
export const
|
|
2284
|
+
export const de_CreateConfigurationPolicyCommand = async (output, context) => {
|
|
2022
2285
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2023
|
-
return
|
|
2286
|
+
return de_CreateConfigurationPolicyCommandError(output, context);
|
|
2024
2287
|
}
|
|
2025
2288
|
const contents = map({
|
|
2026
2289
|
$metadata: deserializeMetadata(output),
|
|
2027
2290
|
});
|
|
2028
2291
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2029
2292
|
const doc = take(data, {
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2293
|
+
Arn: __expectString,
|
|
2294
|
+
ConfigurationPolicy: (_) => de_Policy(__expectUnion(_), context),
|
|
2295
|
+
CreatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2296
|
+
Description: __expectString,
|
|
2297
|
+
Id: __expectString,
|
|
2298
|
+
Name: __expectString,
|
|
2299
|
+
UpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2034
2300
|
});
|
|
2035
2301
|
Object.assign(contents, doc);
|
|
2036
2302
|
return contents;
|
|
2037
2303
|
};
|
|
2038
|
-
const
|
|
2304
|
+
const de_CreateConfigurationPolicyCommandError = async (output, context) => {
|
|
2039
2305
|
const parsedOutput = {
|
|
2040
2306
|
...output,
|
|
2041
2307
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2057,6 +2323,9 @@ const de_CreateFindingAggregatorCommandError = async (output, context) => {
|
|
|
2057
2323
|
case "LimitExceededException":
|
|
2058
2324
|
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2059
2325
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2326
|
+
case "ResourceConflictException":
|
|
2327
|
+
case "com.amazonaws.securityhub#ResourceConflictException":
|
|
2328
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2060
2329
|
default:
|
|
2061
2330
|
const parsedBody = parsedOutput.body;
|
|
2062
2331
|
return throwDefaultError({
|
|
@@ -2066,27 +2335,33 @@ const de_CreateFindingAggregatorCommandError = async (output, context) => {
|
|
|
2066
2335
|
});
|
|
2067
2336
|
}
|
|
2068
2337
|
};
|
|
2069
|
-
export const
|
|
2338
|
+
export const de_CreateFindingAggregatorCommand = async (output, context) => {
|
|
2070
2339
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2071
|
-
return
|
|
2340
|
+
return de_CreateFindingAggregatorCommandError(output, context);
|
|
2072
2341
|
}
|
|
2073
2342
|
const contents = map({
|
|
2074
2343
|
$metadata: deserializeMetadata(output),
|
|
2075
2344
|
});
|
|
2076
2345
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2077
2346
|
const doc = take(data, {
|
|
2078
|
-
|
|
2347
|
+
FindingAggregationRegion: __expectString,
|
|
2348
|
+
FindingAggregatorArn: __expectString,
|
|
2349
|
+
RegionLinkingMode: __expectString,
|
|
2350
|
+
Regions: _json,
|
|
2079
2351
|
});
|
|
2080
2352
|
Object.assign(contents, doc);
|
|
2081
2353
|
return contents;
|
|
2082
2354
|
};
|
|
2083
|
-
const
|
|
2355
|
+
const de_CreateFindingAggregatorCommandError = async (output, context) => {
|
|
2084
2356
|
const parsedOutput = {
|
|
2085
2357
|
...output,
|
|
2086
2358
|
body: await parseErrorBody(output.body, context),
|
|
2087
2359
|
};
|
|
2088
2360
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2089
2361
|
switch (errorCode) {
|
|
2362
|
+
case "AccessDeniedException":
|
|
2363
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
2364
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2090
2365
|
case "InternalException":
|
|
2091
2366
|
case "com.amazonaws.securityhub#InternalException":
|
|
2092
2367
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -2099,9 +2374,6 @@ const de_CreateInsightCommandError = async (output, context) => {
|
|
|
2099
2374
|
case "LimitExceededException":
|
|
2100
2375
|
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2101
2376
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2102
|
-
case "ResourceConflictException":
|
|
2103
|
-
case "com.amazonaws.securityhub#ResourceConflictException":
|
|
2104
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2105
2377
|
default:
|
|
2106
2378
|
const parsedBody = parsedOutput.body;
|
|
2107
2379
|
return throwDefaultError({
|
|
@@ -2111,7 +2383,52 @@ const de_CreateInsightCommandError = async (output, context) => {
|
|
|
2111
2383
|
});
|
|
2112
2384
|
}
|
|
2113
2385
|
};
|
|
2114
|
-
export const
|
|
2386
|
+
export const de_CreateInsightCommand = async (output, context) => {
|
|
2387
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2388
|
+
return de_CreateInsightCommandError(output, context);
|
|
2389
|
+
}
|
|
2390
|
+
const contents = map({
|
|
2391
|
+
$metadata: deserializeMetadata(output),
|
|
2392
|
+
});
|
|
2393
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2394
|
+
const doc = take(data, {
|
|
2395
|
+
InsightArn: __expectString,
|
|
2396
|
+
});
|
|
2397
|
+
Object.assign(contents, doc);
|
|
2398
|
+
return contents;
|
|
2399
|
+
};
|
|
2400
|
+
const de_CreateInsightCommandError = async (output, context) => {
|
|
2401
|
+
const parsedOutput = {
|
|
2402
|
+
...output,
|
|
2403
|
+
body: await parseErrorBody(output.body, context),
|
|
2404
|
+
};
|
|
2405
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2406
|
+
switch (errorCode) {
|
|
2407
|
+
case "InternalException":
|
|
2408
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
2409
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2410
|
+
case "InvalidAccessException":
|
|
2411
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2412
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2413
|
+
case "InvalidInputException":
|
|
2414
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2415
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2416
|
+
case "LimitExceededException":
|
|
2417
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2418
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2419
|
+
case "ResourceConflictException":
|
|
2420
|
+
case "com.amazonaws.securityhub#ResourceConflictException":
|
|
2421
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2422
|
+
default:
|
|
2423
|
+
const parsedBody = parsedOutput.body;
|
|
2424
|
+
return throwDefaultError({
|
|
2425
|
+
output,
|
|
2426
|
+
parsedBody,
|
|
2427
|
+
errorCode,
|
|
2428
|
+
});
|
|
2429
|
+
}
|
|
2430
|
+
};
|
|
2431
|
+
export const de_CreateMembersCommand = async (output, context) => {
|
|
2115
2432
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2116
2433
|
return de_CreateMembersCommandError(output, context);
|
|
2117
2434
|
}
|
|
@@ -2132,6 +2449,9 @@ const de_CreateMembersCommandError = async (output, context) => {
|
|
|
2132
2449
|
};
|
|
2133
2450
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2134
2451
|
switch (errorCode) {
|
|
2452
|
+
case "AccessDeniedException":
|
|
2453
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
2454
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2135
2455
|
case "InternalException":
|
|
2136
2456
|
case "com.amazonaws.securityhub#InternalException":
|
|
2137
2457
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -2240,6 +2560,53 @@ const de_DeleteActionTargetCommandError = async (output, context) => {
|
|
|
2240
2560
|
});
|
|
2241
2561
|
}
|
|
2242
2562
|
};
|
|
2563
|
+
export const de_DeleteConfigurationPolicyCommand = async (output, context) => {
|
|
2564
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2565
|
+
return de_DeleteConfigurationPolicyCommandError(output, context);
|
|
2566
|
+
}
|
|
2567
|
+
const contents = map({
|
|
2568
|
+
$metadata: deserializeMetadata(output),
|
|
2569
|
+
});
|
|
2570
|
+
await collectBody(output.body, context);
|
|
2571
|
+
return contents;
|
|
2572
|
+
};
|
|
2573
|
+
const de_DeleteConfigurationPolicyCommandError = async (output, context) => {
|
|
2574
|
+
const parsedOutput = {
|
|
2575
|
+
...output,
|
|
2576
|
+
body: await parseErrorBody(output.body, context),
|
|
2577
|
+
};
|
|
2578
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2579
|
+
switch (errorCode) {
|
|
2580
|
+
case "AccessDeniedException":
|
|
2581
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
2582
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2583
|
+
case "InternalException":
|
|
2584
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
2585
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2586
|
+
case "InvalidAccessException":
|
|
2587
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2588
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2589
|
+
case "InvalidInputException":
|
|
2590
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2591
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2592
|
+
case "LimitExceededException":
|
|
2593
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2594
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2595
|
+
case "ResourceConflictException":
|
|
2596
|
+
case "com.amazonaws.securityhub#ResourceConflictException":
|
|
2597
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2598
|
+
case "ResourceNotFoundException":
|
|
2599
|
+
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
2600
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2601
|
+
default:
|
|
2602
|
+
const parsedBody = parsedOutput.body;
|
|
2603
|
+
return throwDefaultError({
|
|
2604
|
+
output,
|
|
2605
|
+
parsedBody,
|
|
2606
|
+
errorCode,
|
|
2607
|
+
});
|
|
2608
|
+
}
|
|
2609
|
+
};
|
|
2243
2610
|
export const de_DeleteFindingAggregatorCommand = async (output, context) => {
|
|
2244
2611
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2245
2612
|
return de_DeleteFindingAggregatorCommandError(output, context);
|
|
@@ -2522,6 +2889,7 @@ export const de_DescribeOrganizationConfigurationCommand = async (output, contex
|
|
|
2522
2889
|
AutoEnable: __expectBoolean,
|
|
2523
2890
|
AutoEnableStandards: __expectString,
|
|
2524
2891
|
MemberAccountLimitReached: __expectBoolean,
|
|
2892
|
+
OrganizationConfiguration: _json,
|
|
2525
2893
|
});
|
|
2526
2894
|
Object.assign(contents, doc);
|
|
2527
2895
|
return contents;
|
|
@@ -2738,6 +3106,9 @@ const de_DisableOrganizationAdminAccountCommandError = async (output, context) =
|
|
|
2738
3106
|
};
|
|
2739
3107
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2740
3108
|
switch (errorCode) {
|
|
3109
|
+
case "AccessDeniedException":
|
|
3110
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
3111
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2741
3112
|
case "InternalException":
|
|
2742
3113
|
case "com.amazonaws.securityhub#InternalException":
|
|
2743
3114
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -2776,6 +3147,9 @@ const de_DisableSecurityHubCommandError = async (output, context) => {
|
|
|
2776
3147
|
};
|
|
2777
3148
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2778
3149
|
switch (errorCode) {
|
|
3150
|
+
case "AccessDeniedException":
|
|
3151
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
3152
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2779
3153
|
case "InternalException":
|
|
2780
3154
|
case "com.amazonaws.securityhub#InternalException":
|
|
2781
3155
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -2896,6 +3270,9 @@ const de_DisassociateMembersCommandError = async (output, context) => {
|
|
|
2896
3270
|
};
|
|
2897
3271
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2898
3272
|
switch (errorCode) {
|
|
3273
|
+
case "AccessDeniedException":
|
|
3274
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
3275
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2899
3276
|
case "InternalException":
|
|
2900
3277
|
case "com.amazonaws.securityhub#InternalException":
|
|
2901
3278
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -2982,6 +3359,9 @@ const de_EnableOrganizationAdminAccountCommandError = async (output, context) =>
|
|
|
2982
3359
|
};
|
|
2983
3360
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2984
3361
|
switch (errorCode) {
|
|
3362
|
+
case "AccessDeniedException":
|
|
3363
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
3364
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2985
3365
|
case "InternalException":
|
|
2986
3366
|
case "com.amazonaws.securityhub#InternalException":
|
|
2987
3367
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -3089,6 +3469,114 @@ const de_GetAdministratorAccountCommandError = async (output, context) => {
|
|
|
3089
3469
|
});
|
|
3090
3470
|
}
|
|
3091
3471
|
};
|
|
3472
|
+
export const de_GetConfigurationPolicyCommand = async (output, context) => {
|
|
3473
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3474
|
+
return de_GetConfigurationPolicyCommandError(output, context);
|
|
3475
|
+
}
|
|
3476
|
+
const contents = map({
|
|
3477
|
+
$metadata: deserializeMetadata(output),
|
|
3478
|
+
});
|
|
3479
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3480
|
+
const doc = take(data, {
|
|
3481
|
+
Arn: __expectString,
|
|
3482
|
+
ConfigurationPolicy: (_) => de_Policy(__expectUnion(_), context),
|
|
3483
|
+
CreatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
3484
|
+
Description: __expectString,
|
|
3485
|
+
Id: __expectString,
|
|
3486
|
+
Name: __expectString,
|
|
3487
|
+
UpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
3488
|
+
});
|
|
3489
|
+
Object.assign(contents, doc);
|
|
3490
|
+
return contents;
|
|
3491
|
+
};
|
|
3492
|
+
const de_GetConfigurationPolicyCommandError = async (output, context) => {
|
|
3493
|
+
const parsedOutput = {
|
|
3494
|
+
...output,
|
|
3495
|
+
body: await parseErrorBody(output.body, context),
|
|
3496
|
+
};
|
|
3497
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3498
|
+
switch (errorCode) {
|
|
3499
|
+
case "AccessDeniedException":
|
|
3500
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
3501
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3502
|
+
case "InternalException":
|
|
3503
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
3504
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3505
|
+
case "InvalidAccessException":
|
|
3506
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3507
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3508
|
+
case "InvalidInputException":
|
|
3509
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3510
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3511
|
+
case "LimitExceededException":
|
|
3512
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3513
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3514
|
+
case "ResourceNotFoundException":
|
|
3515
|
+
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
3516
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3517
|
+
default:
|
|
3518
|
+
const parsedBody = parsedOutput.body;
|
|
3519
|
+
return throwDefaultError({
|
|
3520
|
+
output,
|
|
3521
|
+
parsedBody,
|
|
3522
|
+
errorCode,
|
|
3523
|
+
});
|
|
3524
|
+
}
|
|
3525
|
+
};
|
|
3526
|
+
export const de_GetConfigurationPolicyAssociationCommand = async (output, context) => {
|
|
3527
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3528
|
+
return de_GetConfigurationPolicyAssociationCommandError(output, context);
|
|
3529
|
+
}
|
|
3530
|
+
const contents = map({
|
|
3531
|
+
$metadata: deserializeMetadata(output),
|
|
3532
|
+
});
|
|
3533
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3534
|
+
const doc = take(data, {
|
|
3535
|
+
AssociationStatus: __expectString,
|
|
3536
|
+
AssociationStatusMessage: __expectString,
|
|
3537
|
+
AssociationType: __expectString,
|
|
3538
|
+
ConfigurationPolicyId: __expectString,
|
|
3539
|
+
TargetId: __expectString,
|
|
3540
|
+
TargetType: __expectString,
|
|
3541
|
+
UpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
3542
|
+
});
|
|
3543
|
+
Object.assign(contents, doc);
|
|
3544
|
+
return contents;
|
|
3545
|
+
};
|
|
3546
|
+
const de_GetConfigurationPolicyAssociationCommandError = async (output, context) => {
|
|
3547
|
+
const parsedOutput = {
|
|
3548
|
+
...output,
|
|
3549
|
+
body: await parseErrorBody(output.body, context),
|
|
3550
|
+
};
|
|
3551
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3552
|
+
switch (errorCode) {
|
|
3553
|
+
case "AccessDeniedException":
|
|
3554
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
3555
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3556
|
+
case "InternalException":
|
|
3557
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
3558
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3559
|
+
case "InvalidAccessException":
|
|
3560
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3561
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3562
|
+
case "InvalidInputException":
|
|
3563
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3564
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3565
|
+
case "LimitExceededException":
|
|
3566
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3567
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3568
|
+
case "ResourceNotFoundException":
|
|
3569
|
+
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
3570
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3571
|
+
default:
|
|
3572
|
+
const parsedBody = parsedOutput.body;
|
|
3573
|
+
return throwDefaultError({
|
|
3574
|
+
output,
|
|
3575
|
+
parsedBody,
|
|
3576
|
+
errorCode,
|
|
3577
|
+
});
|
|
3578
|
+
}
|
|
3579
|
+
};
|
|
3092
3580
|
export const de_GetEnabledStandardsCommand = async (output, context) => {
|
|
3093
3581
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3094
3582
|
return de_GetEnabledStandardsCommandError(output, context);
|
|
@@ -3495,25 +3983,119 @@ const de_GetMembersCommandError = async (output, context) => {
|
|
|
3495
3983
|
};
|
|
3496
3984
|
export const de_GetSecurityControlDefinitionCommand = async (output, context) => {
|
|
3497
3985
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3498
|
-
return de_GetSecurityControlDefinitionCommandError(output, context);
|
|
3986
|
+
return de_GetSecurityControlDefinitionCommandError(output, context);
|
|
3987
|
+
}
|
|
3988
|
+
const contents = map({
|
|
3989
|
+
$metadata: deserializeMetadata(output),
|
|
3990
|
+
});
|
|
3991
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3992
|
+
const doc = take(data, {
|
|
3993
|
+
SecurityControlDefinition: (_) => de_SecurityControlDefinition(_, context),
|
|
3994
|
+
});
|
|
3995
|
+
Object.assign(contents, doc);
|
|
3996
|
+
return contents;
|
|
3997
|
+
};
|
|
3998
|
+
const de_GetSecurityControlDefinitionCommandError = async (output, context) => {
|
|
3999
|
+
const parsedOutput = {
|
|
4000
|
+
...output,
|
|
4001
|
+
body: await parseErrorBody(output.body, context),
|
|
4002
|
+
};
|
|
4003
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4004
|
+
switch (errorCode) {
|
|
4005
|
+
case "InternalException":
|
|
4006
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
4007
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4008
|
+
case "InvalidAccessException":
|
|
4009
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4010
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4011
|
+
case "InvalidInputException":
|
|
4012
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4013
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4014
|
+
case "LimitExceededException":
|
|
4015
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4016
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4017
|
+
case "ResourceNotFoundException":
|
|
4018
|
+
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
4019
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4020
|
+
default:
|
|
4021
|
+
const parsedBody = parsedOutput.body;
|
|
4022
|
+
return throwDefaultError({
|
|
4023
|
+
output,
|
|
4024
|
+
parsedBody,
|
|
4025
|
+
errorCode,
|
|
4026
|
+
});
|
|
4027
|
+
}
|
|
4028
|
+
};
|
|
4029
|
+
export const de_InviteMembersCommand = async (output, context) => {
|
|
4030
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4031
|
+
return de_InviteMembersCommandError(output, context);
|
|
4032
|
+
}
|
|
4033
|
+
const contents = map({
|
|
4034
|
+
$metadata: deserializeMetadata(output),
|
|
4035
|
+
});
|
|
4036
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4037
|
+
const doc = take(data, {
|
|
4038
|
+
UnprocessedAccounts: _json,
|
|
4039
|
+
});
|
|
4040
|
+
Object.assign(contents, doc);
|
|
4041
|
+
return contents;
|
|
4042
|
+
};
|
|
4043
|
+
const de_InviteMembersCommandError = async (output, context) => {
|
|
4044
|
+
const parsedOutput = {
|
|
4045
|
+
...output,
|
|
4046
|
+
body: await parseErrorBody(output.body, context),
|
|
4047
|
+
};
|
|
4048
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4049
|
+
switch (errorCode) {
|
|
4050
|
+
case "InternalException":
|
|
4051
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
4052
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4053
|
+
case "InvalidAccessException":
|
|
4054
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4055
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4056
|
+
case "InvalidInputException":
|
|
4057
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4058
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4059
|
+
case "LimitExceededException":
|
|
4060
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4061
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4062
|
+
case "ResourceNotFoundException":
|
|
4063
|
+
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
4064
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4065
|
+
default:
|
|
4066
|
+
const parsedBody = parsedOutput.body;
|
|
4067
|
+
return throwDefaultError({
|
|
4068
|
+
output,
|
|
4069
|
+
parsedBody,
|
|
4070
|
+
errorCode,
|
|
4071
|
+
});
|
|
4072
|
+
}
|
|
4073
|
+
};
|
|
4074
|
+
export const de_ListAutomationRulesCommand = async (output, context) => {
|
|
4075
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4076
|
+
return de_ListAutomationRulesCommandError(output, context);
|
|
3499
4077
|
}
|
|
3500
4078
|
const contents = map({
|
|
3501
4079
|
$metadata: deserializeMetadata(output),
|
|
3502
4080
|
});
|
|
3503
4081
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3504
4082
|
const doc = take(data, {
|
|
3505
|
-
|
|
4083
|
+
AutomationRulesMetadata: (_) => de_AutomationRulesMetadataList(_, context),
|
|
4084
|
+
NextToken: __expectString,
|
|
3506
4085
|
});
|
|
3507
4086
|
Object.assign(contents, doc);
|
|
3508
4087
|
return contents;
|
|
3509
4088
|
};
|
|
3510
|
-
const
|
|
4089
|
+
const de_ListAutomationRulesCommandError = async (output, context) => {
|
|
3511
4090
|
const parsedOutput = {
|
|
3512
4091
|
...output,
|
|
3513
4092
|
body: await parseErrorBody(output.body, context),
|
|
3514
4093
|
};
|
|
3515
4094
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3516
4095
|
switch (errorCode) {
|
|
4096
|
+
case "AccessDeniedException":
|
|
4097
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
4098
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3517
4099
|
case "InternalException":
|
|
3518
4100
|
case "com.amazonaws.securityhub#InternalException":
|
|
3519
4101
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -3526,9 +4108,6 @@ const de_GetSecurityControlDefinitionCommandError = async (output, context) => {
|
|
|
3526
4108
|
case "LimitExceededException":
|
|
3527
4109
|
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3528
4110
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3529
|
-
case "ResourceNotFoundException":
|
|
3530
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
3531
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3532
4111
|
default:
|
|
3533
4112
|
const parsedBody = parsedOutput.body;
|
|
3534
4113
|
return throwDefaultError({
|
|
@@ -3538,27 +4117,31 @@ const de_GetSecurityControlDefinitionCommandError = async (output, context) => {
|
|
|
3538
4117
|
});
|
|
3539
4118
|
}
|
|
3540
4119
|
};
|
|
3541
|
-
export const
|
|
4120
|
+
export const de_ListConfigurationPoliciesCommand = async (output, context) => {
|
|
3542
4121
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3543
|
-
return
|
|
4122
|
+
return de_ListConfigurationPoliciesCommandError(output, context);
|
|
3544
4123
|
}
|
|
3545
4124
|
const contents = map({
|
|
3546
4125
|
$metadata: deserializeMetadata(output),
|
|
3547
4126
|
});
|
|
3548
4127
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3549
4128
|
const doc = take(data, {
|
|
3550
|
-
|
|
4129
|
+
ConfigurationPolicySummaries: (_) => de_ConfigurationPolicySummaryList(_, context),
|
|
4130
|
+
NextToken: __expectString,
|
|
3551
4131
|
});
|
|
3552
4132
|
Object.assign(contents, doc);
|
|
3553
4133
|
return contents;
|
|
3554
4134
|
};
|
|
3555
|
-
const
|
|
4135
|
+
const de_ListConfigurationPoliciesCommandError = async (output, context) => {
|
|
3556
4136
|
const parsedOutput = {
|
|
3557
4137
|
...output,
|
|
3558
4138
|
body: await parseErrorBody(output.body, context),
|
|
3559
4139
|
};
|
|
3560
4140
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3561
4141
|
switch (errorCode) {
|
|
4142
|
+
case "AccessDeniedException":
|
|
4143
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
4144
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3562
4145
|
case "InternalException":
|
|
3563
4146
|
case "com.amazonaws.securityhub#InternalException":
|
|
3564
4147
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -3571,9 +4154,6 @@ const de_InviteMembersCommandError = async (output, context) => {
|
|
|
3571
4154
|
case "LimitExceededException":
|
|
3572
4155
|
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3573
4156
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3574
|
-
case "ResourceNotFoundException":
|
|
3575
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
3576
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3577
4157
|
default:
|
|
3578
4158
|
const parsedBody = parsedOutput.body;
|
|
3579
4159
|
return throwDefaultError({
|
|
@@ -3583,22 +4163,22 @@ const de_InviteMembersCommandError = async (output, context) => {
|
|
|
3583
4163
|
});
|
|
3584
4164
|
}
|
|
3585
4165
|
};
|
|
3586
|
-
export const
|
|
4166
|
+
export const de_ListConfigurationPolicyAssociationsCommand = async (output, context) => {
|
|
3587
4167
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3588
|
-
return
|
|
4168
|
+
return de_ListConfigurationPolicyAssociationsCommandError(output, context);
|
|
3589
4169
|
}
|
|
3590
4170
|
const contents = map({
|
|
3591
4171
|
$metadata: deserializeMetadata(output),
|
|
3592
4172
|
});
|
|
3593
4173
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3594
4174
|
const doc = take(data, {
|
|
3595
|
-
|
|
4175
|
+
ConfigurationPolicyAssociationSummaries: (_) => de_ConfigurationPolicyAssociationSummaryList(_, context),
|
|
3596
4176
|
NextToken: __expectString,
|
|
3597
4177
|
});
|
|
3598
4178
|
Object.assign(contents, doc);
|
|
3599
4179
|
return contents;
|
|
3600
4180
|
};
|
|
3601
|
-
const
|
|
4181
|
+
const de_ListConfigurationPolicyAssociationsCommandError = async (output, context) => {
|
|
3602
4182
|
const parsedOutput = {
|
|
3603
4183
|
...output,
|
|
3604
4184
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3969,6 +4549,104 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
3969
4549
|
});
|
|
3970
4550
|
}
|
|
3971
4551
|
};
|
|
4552
|
+
export const de_StartConfigurationPolicyAssociationCommand = async (output, context) => {
|
|
4553
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4554
|
+
return de_StartConfigurationPolicyAssociationCommandError(output, context);
|
|
4555
|
+
}
|
|
4556
|
+
const contents = map({
|
|
4557
|
+
$metadata: deserializeMetadata(output),
|
|
4558
|
+
});
|
|
4559
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4560
|
+
const doc = take(data, {
|
|
4561
|
+
AssociationStatus: __expectString,
|
|
4562
|
+
AssociationStatusMessage: __expectString,
|
|
4563
|
+
AssociationType: __expectString,
|
|
4564
|
+
ConfigurationPolicyId: __expectString,
|
|
4565
|
+
TargetId: __expectString,
|
|
4566
|
+
TargetType: __expectString,
|
|
4567
|
+
UpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4568
|
+
});
|
|
4569
|
+
Object.assign(contents, doc);
|
|
4570
|
+
return contents;
|
|
4571
|
+
};
|
|
4572
|
+
const de_StartConfigurationPolicyAssociationCommandError = async (output, context) => {
|
|
4573
|
+
const parsedOutput = {
|
|
4574
|
+
...output,
|
|
4575
|
+
body: await parseErrorBody(output.body, context),
|
|
4576
|
+
};
|
|
4577
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4578
|
+
switch (errorCode) {
|
|
4579
|
+
case "AccessDeniedException":
|
|
4580
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
4581
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4582
|
+
case "InternalException":
|
|
4583
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
4584
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4585
|
+
case "InvalidAccessException":
|
|
4586
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4587
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4588
|
+
case "InvalidInputException":
|
|
4589
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4590
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4591
|
+
case "LimitExceededException":
|
|
4592
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4593
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4594
|
+
case "ResourceNotFoundException":
|
|
4595
|
+
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
4596
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4597
|
+
default:
|
|
4598
|
+
const parsedBody = parsedOutput.body;
|
|
4599
|
+
return throwDefaultError({
|
|
4600
|
+
output,
|
|
4601
|
+
parsedBody,
|
|
4602
|
+
errorCode,
|
|
4603
|
+
});
|
|
4604
|
+
}
|
|
4605
|
+
};
|
|
4606
|
+
export const de_StartConfigurationPolicyDisassociationCommand = async (output, context) => {
|
|
4607
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4608
|
+
return de_StartConfigurationPolicyDisassociationCommandError(output, context);
|
|
4609
|
+
}
|
|
4610
|
+
const contents = map({
|
|
4611
|
+
$metadata: deserializeMetadata(output),
|
|
4612
|
+
});
|
|
4613
|
+
await collectBody(output.body, context);
|
|
4614
|
+
return contents;
|
|
4615
|
+
};
|
|
4616
|
+
const de_StartConfigurationPolicyDisassociationCommandError = async (output, context) => {
|
|
4617
|
+
const parsedOutput = {
|
|
4618
|
+
...output,
|
|
4619
|
+
body: await parseErrorBody(output.body, context),
|
|
4620
|
+
};
|
|
4621
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4622
|
+
switch (errorCode) {
|
|
4623
|
+
case "AccessDeniedException":
|
|
4624
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
4625
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4626
|
+
case "InternalException":
|
|
4627
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
4628
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4629
|
+
case "InvalidAccessException":
|
|
4630
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4631
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4632
|
+
case "InvalidInputException":
|
|
4633
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4634
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4635
|
+
case "LimitExceededException":
|
|
4636
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4637
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4638
|
+
case "ResourceNotFoundException":
|
|
4639
|
+
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
4640
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4641
|
+
default:
|
|
4642
|
+
const parsedBody = parsedOutput.body;
|
|
4643
|
+
return throwDefaultError({
|
|
4644
|
+
output,
|
|
4645
|
+
parsedBody,
|
|
4646
|
+
errorCode,
|
|
4647
|
+
});
|
|
4648
|
+
}
|
|
4649
|
+
};
|
|
3972
4650
|
export const de_TagResourceCommand = async (output, context) => {
|
|
3973
4651
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3974
4652
|
return de_TagResourceCommandError(output, context);
|
|
@@ -4077,6 +4755,63 @@ const de_UpdateActionTargetCommandError = async (output, context) => {
|
|
|
4077
4755
|
});
|
|
4078
4756
|
}
|
|
4079
4757
|
};
|
|
4758
|
+
export const de_UpdateConfigurationPolicyCommand = async (output, context) => {
|
|
4759
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4760
|
+
return de_UpdateConfigurationPolicyCommandError(output, context);
|
|
4761
|
+
}
|
|
4762
|
+
const contents = map({
|
|
4763
|
+
$metadata: deserializeMetadata(output),
|
|
4764
|
+
});
|
|
4765
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4766
|
+
const doc = take(data, {
|
|
4767
|
+
Arn: __expectString,
|
|
4768
|
+
ConfigurationPolicy: (_) => de_Policy(__expectUnion(_), context),
|
|
4769
|
+
CreatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4770
|
+
Description: __expectString,
|
|
4771
|
+
Id: __expectString,
|
|
4772
|
+
Name: __expectString,
|
|
4773
|
+
UpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4774
|
+
});
|
|
4775
|
+
Object.assign(contents, doc);
|
|
4776
|
+
return contents;
|
|
4777
|
+
};
|
|
4778
|
+
const de_UpdateConfigurationPolicyCommandError = async (output, context) => {
|
|
4779
|
+
const parsedOutput = {
|
|
4780
|
+
...output,
|
|
4781
|
+
body: await parseErrorBody(output.body, context),
|
|
4782
|
+
};
|
|
4783
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4784
|
+
switch (errorCode) {
|
|
4785
|
+
case "AccessDeniedException":
|
|
4786
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
4787
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4788
|
+
case "InternalException":
|
|
4789
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
4790
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4791
|
+
case "InvalidAccessException":
|
|
4792
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4793
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4794
|
+
case "InvalidInputException":
|
|
4795
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4796
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4797
|
+
case "LimitExceededException":
|
|
4798
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4799
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4800
|
+
case "ResourceConflictException":
|
|
4801
|
+
case "com.amazonaws.securityhub#ResourceConflictException":
|
|
4802
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
4803
|
+
case "ResourceNotFoundException":
|
|
4804
|
+
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
4805
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4806
|
+
default:
|
|
4807
|
+
const parsedBody = parsedOutput.body;
|
|
4808
|
+
return throwDefaultError({
|
|
4809
|
+
output,
|
|
4810
|
+
parsedBody,
|
|
4811
|
+
errorCode,
|
|
4812
|
+
});
|
|
4813
|
+
}
|
|
4814
|
+
};
|
|
4080
4815
|
export const de_UpdateFindingAggregatorCommand = async (output, context) => {
|
|
4081
4816
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4082
4817
|
return de_UpdateFindingAggregatorCommandError(output, context);
|
|
@@ -4227,6 +4962,9 @@ const de_UpdateOrganizationConfigurationCommandError = async (output, context) =
|
|
|
4227
4962
|
};
|
|
4228
4963
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4229
4964
|
switch (errorCode) {
|
|
4965
|
+
case "AccessDeniedException":
|
|
4966
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
4967
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4230
4968
|
case "InternalException":
|
|
4231
4969
|
case "com.amazonaws.securityhub#InternalException":
|
|
4232
4970
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -4239,6 +4977,12 @@ const de_UpdateOrganizationConfigurationCommandError = async (output, context) =
|
|
|
4239
4977
|
case "LimitExceededException":
|
|
4240
4978
|
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4241
4979
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4980
|
+
case "ResourceConflictException":
|
|
4981
|
+
case "com.amazonaws.securityhub#ResourceConflictException":
|
|
4982
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
4983
|
+
case "ResourceNotFoundException":
|
|
4984
|
+
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
4985
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4242
4986
|
default:
|
|
4243
4987
|
const parsedBody = parsedOutput.body;
|
|
4244
4988
|
return throwDefaultError({
|
|
@@ -4265,6 +5009,9 @@ const de_UpdateSecurityControlCommandError = async (output, context) => {
|
|
|
4265
5009
|
};
|
|
4266
5010
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4267
5011
|
switch (errorCode) {
|
|
5012
|
+
case "AccessDeniedException":
|
|
5013
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
5014
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4268
5015
|
case "InternalException":
|
|
4269
5016
|
case "com.amazonaws.securityhub#InternalException":
|
|
4270
5017
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -4309,6 +5056,9 @@ const de_UpdateSecurityHubConfigurationCommandError = async (output, context) =>
|
|
|
4309
5056
|
};
|
|
4310
5057
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4311
5058
|
switch (errorCode) {
|
|
5059
|
+
case "AccessDeniedException":
|
|
5060
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
5061
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4312
5062
|
case "InternalException":
|
|
4313
5063
|
case "com.amazonaws.securityhub#InternalException":
|
|
4314
5064
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -4350,6 +5100,9 @@ const de_UpdateStandardsControlCommandError = async (output, context) => {
|
|
|
4350
5100
|
};
|
|
4351
5101
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4352
5102
|
switch (errorCode) {
|
|
5103
|
+
case "AccessDeniedException":
|
|
5104
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
5105
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4353
5106
|
case "InternalException":
|
|
4354
5107
|
case "com.amazonaws.securityhub#InternalException":
|
|
4355
5108
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -4531,6 +5284,7 @@ const se_AutomationRulesFindingFieldsUpdate = (input, context) => {
|
|
|
4531
5284
|
const se_AutomationRulesFindingFilters = (input, context) => {
|
|
4532
5285
|
return take(input, {
|
|
4533
5286
|
AwsAccountId: _json,
|
|
5287
|
+
AwsAccountName: _json,
|
|
4534
5288
|
CompanyName: _json,
|
|
4535
5289
|
ComplianceAssociatedStandardsId: _json,
|
|
4536
5290
|
ComplianceSecurityControlId: _json,
|
|
@@ -4551,6 +5305,8 @@ const se_AutomationRulesFindingFilters = (input, context) => {
|
|
|
4551
5305
|
RecordState: _json,
|
|
4552
5306
|
RelatedFindingsId: _json,
|
|
4553
5307
|
RelatedFindingsProductArn: _json,
|
|
5308
|
+
ResourceApplicationArn: _json,
|
|
5309
|
+
ResourceApplicationName: _json,
|
|
4554
5310
|
ResourceDetailsOther: _json,
|
|
4555
5311
|
ResourceId: _json,
|
|
4556
5312
|
ResourcePartition: _json,
|
|
@@ -4847,6 +5603,7 @@ const se_AwsSecurityFinding = (input, context) => {
|
|
|
4847
5603
|
return take(input, {
|
|
4848
5604
|
Action: (_) => se_Action(_, context),
|
|
4849
5605
|
AwsAccountId: [],
|
|
5606
|
+
AwsAccountName: [],
|
|
4850
5607
|
CompanyName: [],
|
|
4851
5608
|
Compliance: _json,
|
|
4852
5609
|
Confidence: [],
|
|
@@ -4865,6 +5622,7 @@ const se_AwsSecurityFinding = (input, context) => {
|
|
|
4865
5622
|
Note: _json,
|
|
4866
5623
|
PatchSummary: _json,
|
|
4867
5624
|
Process: _json,
|
|
5625
|
+
ProcessedAt: [],
|
|
4868
5626
|
ProductArn: [],
|
|
4869
5627
|
ProductFields: _json,
|
|
4870
5628
|
ProductName: [],
|
|
@@ -4892,6 +5650,7 @@ const se_AwsSecurityFinding = (input, context) => {
|
|
|
4892
5650
|
const se_AwsSecurityFindingFilters = (input, context) => {
|
|
4893
5651
|
return take(input, {
|
|
4894
5652
|
AwsAccountId: _json,
|
|
5653
|
+
AwsAccountName: _json,
|
|
4895
5654
|
CompanyName: _json,
|
|
4896
5655
|
ComplianceAssociatedStandardsId: _json,
|
|
4897
5656
|
ComplianceSecurityControlId: _json,
|
|
@@ -4946,6 +5705,8 @@ const se_AwsSecurityFindingFilters = (input, context) => {
|
|
|
4946
5705
|
Region: _json,
|
|
4947
5706
|
RelatedFindingsId: _json,
|
|
4948
5707
|
RelatedFindingsProductArn: _json,
|
|
5708
|
+
ResourceApplicationArn: _json,
|
|
5709
|
+
ResourceApplicationName: _json,
|
|
4949
5710
|
ResourceAwsEc2InstanceIamInstanceProfileArn: _json,
|
|
4950
5711
|
ResourceAwsEc2InstanceImageId: _json,
|
|
4951
5712
|
ResourceAwsEc2InstanceIpV4Addresses: _json,
|
|
@@ -5077,6 +5838,12 @@ const se_ParameterValue = (input, context) => {
|
|
|
5077
5838
|
_: (name, value) => ({ name: value }),
|
|
5078
5839
|
});
|
|
5079
5840
|
};
|
|
5841
|
+
const se_Policy = (input, context) => {
|
|
5842
|
+
return Policy.visit(input, {
|
|
5843
|
+
SecurityHub: (value) => ({ SecurityHub: se_SecurityHubPolicy(value, context) }),
|
|
5844
|
+
_: (name, value) => ({ name: value }),
|
|
5845
|
+
});
|
|
5846
|
+
};
|
|
5080
5847
|
const se_PortProbeAction = (input, context) => {
|
|
5081
5848
|
return take(input, {
|
|
5082
5849
|
Blocked: [],
|
|
@@ -5099,6 +5866,8 @@ const se_PortProbeDetailList = (input, context) => {
|
|
|
5099
5866
|
};
|
|
5100
5867
|
const se_Resource = (input, context) => {
|
|
5101
5868
|
return take(input, {
|
|
5869
|
+
ApplicationArn: [],
|
|
5870
|
+
ApplicationName: [],
|
|
5102
5871
|
DataClassification: _json,
|
|
5103
5872
|
Details: (_) => se_ResourceDetails(_, context),
|
|
5104
5873
|
Id: [],
|
|
@@ -5217,6 +5986,33 @@ const se_ResourceList = (input, context) => {
|
|
|
5217
5986
|
return se_Resource(entry, context);
|
|
5218
5987
|
});
|
|
5219
5988
|
};
|
|
5989
|
+
const se_SecurityControlCustomParameter = (input, context) => {
|
|
5990
|
+
return take(input, {
|
|
5991
|
+
Parameters: (_) => se_Parameters(_, context),
|
|
5992
|
+
SecurityControlId: [],
|
|
5993
|
+
});
|
|
5994
|
+
};
|
|
5995
|
+
const se_SecurityControlCustomParametersList = (input, context) => {
|
|
5996
|
+
return input
|
|
5997
|
+
.filter((e) => e != null)
|
|
5998
|
+
.map((entry) => {
|
|
5999
|
+
return se_SecurityControlCustomParameter(entry, context);
|
|
6000
|
+
});
|
|
6001
|
+
};
|
|
6002
|
+
const se_SecurityControlsConfiguration = (input, context) => {
|
|
6003
|
+
return take(input, {
|
|
6004
|
+
DisabledSecurityControlIdentifiers: _json,
|
|
6005
|
+
EnabledSecurityControlIdentifiers: _json,
|
|
6006
|
+
SecurityControlCustomParameters: (_) => se_SecurityControlCustomParametersList(_, context),
|
|
6007
|
+
});
|
|
6008
|
+
};
|
|
6009
|
+
const se_SecurityHubPolicy = (input, context) => {
|
|
6010
|
+
return take(input, {
|
|
6011
|
+
EnabledStandardIdentifiers: _json,
|
|
6012
|
+
SecurityControlsConfiguration: (_) => se_SecurityControlsConfiguration(_, context),
|
|
6013
|
+
ServiceEnabled: [],
|
|
6014
|
+
});
|
|
6015
|
+
};
|
|
5220
6016
|
const se_Severity = (input, context) => {
|
|
5221
6017
|
return take(input, {
|
|
5222
6018
|
Label: [],
|
|
@@ -5343,6 +6139,7 @@ const de_AutomationRulesFindingFieldsUpdate = (output, context) => {
|
|
|
5343
6139
|
const de_AutomationRulesFindingFilters = (output, context) => {
|
|
5344
6140
|
return take(output, {
|
|
5345
6141
|
AwsAccountId: _json,
|
|
6142
|
+
AwsAccountName: _json,
|
|
5346
6143
|
CompanyName: _json,
|
|
5347
6144
|
ComplianceAssociatedStandardsId: _json,
|
|
5348
6145
|
ComplianceSecurityControlId: _json,
|
|
@@ -5363,6 +6160,8 @@ const de_AutomationRulesFindingFilters = (output, context) => {
|
|
|
5363
6160
|
RecordState: _json,
|
|
5364
6161
|
RelatedFindingsId: _json,
|
|
5365
6162
|
RelatedFindingsProductArn: _json,
|
|
6163
|
+
ResourceApplicationArn: _json,
|
|
6164
|
+
ResourceApplicationName: _json,
|
|
5366
6165
|
ResourceDetailsOther: _json,
|
|
5367
6166
|
ResourceId: _json,
|
|
5368
6167
|
ResourcePartition: _json,
|
|
@@ -5681,6 +6480,7 @@ const de_AwsSecurityFinding = (output, context) => {
|
|
|
5681
6480
|
return take(output, {
|
|
5682
6481
|
Action: (_) => de_Action(_, context),
|
|
5683
6482
|
AwsAccountId: __expectString,
|
|
6483
|
+
AwsAccountName: __expectString,
|
|
5684
6484
|
CompanyName: __expectString,
|
|
5685
6485
|
Compliance: _json,
|
|
5686
6486
|
Confidence: __expectInt32,
|
|
@@ -5699,6 +6499,7 @@ const de_AwsSecurityFinding = (output, context) => {
|
|
|
5699
6499
|
Note: _json,
|
|
5700
6500
|
PatchSummary: _json,
|
|
5701
6501
|
Process: _json,
|
|
6502
|
+
ProcessedAt: __expectString,
|
|
5702
6503
|
ProductArn: __expectString,
|
|
5703
6504
|
ProductFields: _json,
|
|
5704
6505
|
ProductName: __expectString,
|
|
@@ -5726,6 +6527,7 @@ const de_AwsSecurityFinding = (output, context) => {
|
|
|
5726
6527
|
const de_AwsSecurityFindingFilters = (output, context) => {
|
|
5727
6528
|
return take(output, {
|
|
5728
6529
|
AwsAccountId: _json,
|
|
6530
|
+
AwsAccountName: _json,
|
|
5729
6531
|
CompanyName: _json,
|
|
5730
6532
|
ComplianceAssociatedStandardsId: _json,
|
|
5731
6533
|
ComplianceSecurityControlId: _json,
|
|
@@ -5780,6 +6582,8 @@ const de_AwsSecurityFindingFilters = (output, context) => {
|
|
|
5780
6582
|
Region: _json,
|
|
5781
6583
|
RelatedFindingsId: _json,
|
|
5782
6584
|
RelatedFindingsProductArn: _json,
|
|
6585
|
+
ResourceApplicationArn: _json,
|
|
6586
|
+
ResourceApplicationName: _json,
|
|
5783
6587
|
ResourceAwsEc2InstanceIamInstanceProfileArn: _json,
|
|
5784
6588
|
ResourceAwsEc2InstanceImageId: _json,
|
|
5785
6589
|
ResourceAwsEc2InstanceIpV4Addresses: _json,
|
|
@@ -5879,6 +6683,51 @@ const de_ConfigurationOptions = (output, context) => {
|
|
|
5879
6683
|
}
|
|
5880
6684
|
return { $unknown: Object.entries(output)[0] };
|
|
5881
6685
|
};
|
|
6686
|
+
const de_ConfigurationPolicyAssociationList = (output, context) => {
|
|
6687
|
+
const retVal = (output || [])
|
|
6688
|
+
.filter((e) => e != null)
|
|
6689
|
+
.map((entry) => {
|
|
6690
|
+
return de_ConfigurationPolicyAssociationSummary(entry, context);
|
|
6691
|
+
});
|
|
6692
|
+
return retVal;
|
|
6693
|
+
};
|
|
6694
|
+
const de_ConfigurationPolicyAssociationSummary = (output, context) => {
|
|
6695
|
+
return take(output, {
|
|
6696
|
+
AssociationStatus: __expectString,
|
|
6697
|
+
AssociationStatusMessage: __expectString,
|
|
6698
|
+
AssociationType: __expectString,
|
|
6699
|
+
ConfigurationPolicyId: __expectString,
|
|
6700
|
+
TargetId: __expectString,
|
|
6701
|
+
TargetType: __expectString,
|
|
6702
|
+
UpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
6703
|
+
});
|
|
6704
|
+
};
|
|
6705
|
+
const de_ConfigurationPolicyAssociationSummaryList = (output, context) => {
|
|
6706
|
+
const retVal = (output || [])
|
|
6707
|
+
.filter((e) => e != null)
|
|
6708
|
+
.map((entry) => {
|
|
6709
|
+
return de_ConfigurationPolicyAssociationSummary(entry, context);
|
|
6710
|
+
});
|
|
6711
|
+
return retVal;
|
|
6712
|
+
};
|
|
6713
|
+
const de_ConfigurationPolicySummary = (output, context) => {
|
|
6714
|
+
return take(output, {
|
|
6715
|
+
Arn: __expectString,
|
|
6716
|
+
Description: __expectString,
|
|
6717
|
+
Id: __expectString,
|
|
6718
|
+
Name: __expectString,
|
|
6719
|
+
ServiceEnabled: __expectBoolean,
|
|
6720
|
+
UpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
6721
|
+
});
|
|
6722
|
+
};
|
|
6723
|
+
const de_ConfigurationPolicySummaryList = (output, context) => {
|
|
6724
|
+
const retVal = (output || [])
|
|
6725
|
+
.filter((e) => e != null)
|
|
6726
|
+
.map((entry) => {
|
|
6727
|
+
return de_ConfigurationPolicySummary(entry, context);
|
|
6728
|
+
});
|
|
6729
|
+
return retVal;
|
|
6730
|
+
};
|
|
5882
6731
|
const de_Cvss = (output, context) => {
|
|
5883
6732
|
return take(output, {
|
|
5884
6733
|
Adjustments: _json,
|
|
@@ -6068,6 +6917,14 @@ const de_ParameterValue = (output, context) => {
|
|
|
6068
6917
|
}
|
|
6069
6918
|
return { $unknown: Object.entries(output)[0] };
|
|
6070
6919
|
};
|
|
6920
|
+
const de_Policy = (output, context) => {
|
|
6921
|
+
if (output.SecurityHub != null) {
|
|
6922
|
+
return {
|
|
6923
|
+
SecurityHub: de_SecurityHubPolicy(output.SecurityHub, context),
|
|
6924
|
+
};
|
|
6925
|
+
}
|
|
6926
|
+
return { $unknown: Object.entries(output)[0] };
|
|
6927
|
+
};
|
|
6071
6928
|
const de_PortProbeAction = (output, context) => {
|
|
6072
6929
|
return take(output, {
|
|
6073
6930
|
Blocked: __expectBoolean,
|
|
@@ -6091,6 +6948,8 @@ const de_PortProbeDetailList = (output, context) => {
|
|
|
6091
6948
|
};
|
|
6092
6949
|
const de_Resource = (output, context) => {
|
|
6093
6950
|
return take(output, {
|
|
6951
|
+
ApplicationArn: __expectString,
|
|
6952
|
+
ApplicationName: __expectString,
|
|
6094
6953
|
DataClassification: _json,
|
|
6095
6954
|
Details: (_) => de_ResourceDetails(_, context),
|
|
6096
6955
|
Id: __expectString,
|
|
@@ -6224,6 +7083,20 @@ const de_SecurityControl = (output, context) => {
|
|
|
6224
7083
|
UpdateStatus: __expectString,
|
|
6225
7084
|
});
|
|
6226
7085
|
};
|
|
7086
|
+
const de_SecurityControlCustomParameter = (output, context) => {
|
|
7087
|
+
return take(output, {
|
|
7088
|
+
Parameters: (_) => de_Parameters(_, context),
|
|
7089
|
+
SecurityControlId: __expectString,
|
|
7090
|
+
});
|
|
7091
|
+
};
|
|
7092
|
+
const de_SecurityControlCustomParametersList = (output, context) => {
|
|
7093
|
+
const retVal = (output || [])
|
|
7094
|
+
.filter((e) => e != null)
|
|
7095
|
+
.map((entry) => {
|
|
7096
|
+
return de_SecurityControlCustomParameter(entry, context);
|
|
7097
|
+
});
|
|
7098
|
+
return retVal;
|
|
7099
|
+
};
|
|
6227
7100
|
const de_SecurityControlDefinition = (output, context) => {
|
|
6228
7101
|
return take(output, {
|
|
6229
7102
|
CurrentRegionAvailability: __expectString,
|
|
@@ -6252,6 +7125,20 @@ const de_SecurityControls = (output, context) => {
|
|
|
6252
7125
|
});
|
|
6253
7126
|
return retVal;
|
|
6254
7127
|
};
|
|
7128
|
+
const de_SecurityControlsConfiguration = (output, context) => {
|
|
7129
|
+
return take(output, {
|
|
7130
|
+
DisabledSecurityControlIdentifiers: _json,
|
|
7131
|
+
EnabledSecurityControlIdentifiers: _json,
|
|
7132
|
+
SecurityControlCustomParameters: (_) => de_SecurityControlCustomParametersList(_, context),
|
|
7133
|
+
});
|
|
7134
|
+
};
|
|
7135
|
+
const de_SecurityHubPolicy = (output, context) => {
|
|
7136
|
+
return take(output, {
|
|
7137
|
+
EnabledStandardIdentifiers: _json,
|
|
7138
|
+
SecurityControlsConfiguration: (_) => de_SecurityControlsConfiguration(_, context),
|
|
7139
|
+
ServiceEnabled: __expectBoolean,
|
|
7140
|
+
});
|
|
7141
|
+
};
|
|
6255
7142
|
const de_Severity = (output, context) => {
|
|
6256
7143
|
return take(output, {
|
|
6257
7144
|
Label: __expectString,
|