@aws-sdk/client-securityhub 3.348.0 → 3.352.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 +40 -0
- package/dist-cjs/SecurityHub.js +10 -0
- package/dist-cjs/commands/BatchDeleteAutomationRulesCommand.js +46 -0
- package/dist-cjs/commands/BatchGetAutomationRulesCommand.js +46 -0
- package/dist-cjs/commands/BatchUpdateAutomationRulesCommand.js +46 -0
- package/dist-cjs/commands/CreateAutomationRuleCommand.js +46 -0
- package/dist-cjs/commands/ListAutomationRulesCommand.js +46 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +40 -1
- package/dist-cjs/models/models_1.js +1 -44
- package/dist-cjs/models/models_2.js +12 -1
- package/dist-cjs/protocols/Aws_restJson1.js +553 -3
- package/dist-es/SecurityHub.js +10 -0
- package/dist-es/commands/BatchDeleteAutomationRulesCommand.js +42 -0
- package/dist-es/commands/BatchGetAutomationRulesCommand.js +42 -0
- package/dist-es/commands/BatchUpdateAutomationRulesCommand.js +42 -0
- package/dist-es/commands/CreateAutomationRuleCommand.js +42 -0
- package/dist-es/commands/ListAutomationRulesCommand.js +42 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +39 -0
- package/dist-es/models/models_1.js +0 -43
- package/dist-es/models/models_2.js +11 -0
- package/dist-es/protocols/Aws_restJson1.js +540 -0
- package/dist-types/SecurityHub.d.ts +35 -0
- package/dist-types/SecurityHubClient.d.ts +7 -2
- package/dist-types/commands/BatchDeleteAutomationRulesCommand.d.ts +103 -0
- package/dist-types/commands/BatchDisableStandardsCommand.d.ts +1 -1
- package/dist-types/commands/BatchEnableStandardsCommand.d.ts +1 -1
- package/dist-types/commands/BatchGetAutomationRulesCommand.d.ts +288 -0
- package/dist-types/commands/BatchUpdateAutomationRulesCommand.d.ts +282 -0
- package/dist-types/commands/CreateAutomationRuleCommand.d.ts +270 -0
- package/dist-types/commands/ListAutomationRulesCommand.d.ts +106 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +6010 -5729
- package/dist-types/models/models_1.d.ts +645 -439
- package/dist-types/models/models_2.d.ts +423 -108
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/SecurityHub.d.ts +85 -0
- package/dist-types/ts3.4/SecurityHubClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/BatchDeleteAutomationRulesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/BatchDisableStandardsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/BatchEnableStandardsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/BatchGetAutomationRulesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/BatchUpdateAutomationRulesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateAutomationRuleCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListAutomationRulesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +167 -136
- package/dist-types/ts3.4/models/models_1.d.ts +145 -123
- package/dist-types/ts3.4/models/models_2.d.ts +112 -16
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
- package/package.json +6 -6
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_UpdateStandardsControlCommand = exports.de_UpdateSecurityHubConfigurationCommand = exports.de_UpdateOrganizationConfigurationCommand = exports.de_UpdateInsightCommand = exports.de_UpdateFindingsCommand = exports.de_UpdateFindingAggregatorCommand = exports.de_UpdateActionTargetCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = 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_InviteMembersCommand = exports.de_GetMembersCommand = exports.de_GetMasterAccountCommand = exports.de_GetInvitationsCountCommand = exports.de_GetInsightsCommand = exports.de_GetInsightResultsCommand = exports.de_GetFindingsCommand = void 0;
|
|
3
|
+
exports.se_ListAutomationRulesCommand = exports.se_InviteMembersCommand = exports.se_GetMembersCommand = exports.se_GetMasterAccountCommand = exports.se_GetInvitationsCountCommand = exports.se_GetInsightsCommand = exports.se_GetInsightResultsCommand = exports.se_GetFindingsCommand = exports.se_GetFindingHistoryCommand = exports.se_GetFindingAggregatorCommand = exports.se_GetEnabledStandardsCommand = 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_DeleteActionTargetCommand = exports.se_DeclineInvitationsCommand = exports.se_CreateMembersCommand = exports.se_CreateInsightCommand = exports.se_CreateFindingAggregatorCommand = 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_BatchGetAutomationRulesCommand = exports.se_BatchEnableStandardsCommand = exports.se_BatchDisableStandardsCommand = exports.se_BatchDeleteAutomationRulesCommand = exports.se_AcceptInvitationCommand = exports.se_AcceptAdministratorInvitationCommand = void 0;
|
|
4
|
+
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_DeleteActionTargetCommand = exports.de_DeclineInvitationsCommand = exports.de_CreateMembersCommand = exports.de_CreateInsightCommand = exports.de_CreateFindingAggregatorCommand = 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_BatchGetAutomationRulesCommand = exports.de_BatchEnableStandardsCommand = exports.de_BatchDisableStandardsCommand = exports.de_BatchDeleteAutomationRulesCommand = exports.de_AcceptInvitationCommand = exports.de_AcceptAdministratorInvitationCommand = exports.se_UpdateStandardsControlCommand = exports.se_UpdateSecurityHubConfigurationCommand = exports.se_UpdateOrganizationConfigurationCommand = exports.se_UpdateInsightCommand = exports.se_UpdateFindingsCommand = exports.se_UpdateFindingAggregatorCommand = exports.se_UpdateActionTargetCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStandardsControlAssociationsCommand = exports.se_ListSecurityControlDefinitionsCommand = exports.se_ListOrganizationAdminAccountsCommand = exports.se_ListMembersCommand = exports.se_ListInvitationsCommand = exports.se_ListFindingAggregatorsCommand = exports.se_ListEnabledProductsForImportCommand = void 0;
|
|
5
|
+
exports.de_UpdateStandardsControlCommand = exports.de_UpdateSecurityHubConfigurationCommand = exports.de_UpdateOrganizationConfigurationCommand = exports.de_UpdateInsightCommand = exports.de_UpdateFindingsCommand = exports.de_UpdateFindingAggregatorCommand = exports.de_UpdateActionTargetCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = 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_ListAutomationRulesCommand = exports.de_InviteMembersCommand = 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_GetAdministratorAccountCommand = exports.de_EnableSecurityHubCommand = exports.de_EnableOrganizationAdminAccountCommand = exports.de_EnableImportFindingsForProductCommand = exports.de_DisassociateMembersCommand = exports.de_DisassociateFromMasterAccountCommand = void 0;
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
@@ -52,6 +52,27 @@ const se_AcceptInvitationCommand = async (input, context) => {
|
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
54
|
exports.se_AcceptInvitationCommand = se_AcceptInvitationCommand;
|
|
55
|
+
const se_BatchDeleteAutomationRulesCommand = async (input, context) => {
|
|
56
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
57
|
+
const headers = {
|
|
58
|
+
"content-type": "application/json",
|
|
59
|
+
};
|
|
60
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/automationrules/delete";
|
|
61
|
+
let body;
|
|
62
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
63
|
+
AutomationRulesArns: (_) => (0, smithy_client_1._json)(_),
|
|
64
|
+
}));
|
|
65
|
+
return new protocol_http_1.HttpRequest({
|
|
66
|
+
protocol,
|
|
67
|
+
hostname,
|
|
68
|
+
port,
|
|
69
|
+
method: "POST",
|
|
70
|
+
headers,
|
|
71
|
+
path: resolvedPath,
|
|
72
|
+
body,
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
exports.se_BatchDeleteAutomationRulesCommand = se_BatchDeleteAutomationRulesCommand;
|
|
55
76
|
const se_BatchDisableStandardsCommand = async (input, context) => {
|
|
56
77
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
57
78
|
const headers = {
|
|
@@ -94,6 +115,27 @@ const se_BatchEnableStandardsCommand = async (input, context) => {
|
|
|
94
115
|
});
|
|
95
116
|
};
|
|
96
117
|
exports.se_BatchEnableStandardsCommand = se_BatchEnableStandardsCommand;
|
|
118
|
+
const se_BatchGetAutomationRulesCommand = async (input, context) => {
|
|
119
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
120
|
+
const headers = {
|
|
121
|
+
"content-type": "application/json",
|
|
122
|
+
};
|
|
123
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/automationrules/get";
|
|
124
|
+
let body;
|
|
125
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
126
|
+
AutomationRulesArns: (_) => (0, smithy_client_1._json)(_),
|
|
127
|
+
}));
|
|
128
|
+
return new protocol_http_1.HttpRequest({
|
|
129
|
+
protocol,
|
|
130
|
+
hostname,
|
|
131
|
+
port,
|
|
132
|
+
method: "POST",
|
|
133
|
+
headers,
|
|
134
|
+
path: resolvedPath,
|
|
135
|
+
body,
|
|
136
|
+
});
|
|
137
|
+
};
|
|
138
|
+
exports.se_BatchGetAutomationRulesCommand = se_BatchGetAutomationRulesCommand;
|
|
97
139
|
const se_BatchGetSecurityControlsCommand = async (input, context) => {
|
|
98
140
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
99
141
|
const headers = {
|
|
@@ -157,6 +199,27 @@ const se_BatchImportFindingsCommand = async (input, context) => {
|
|
|
157
199
|
});
|
|
158
200
|
};
|
|
159
201
|
exports.se_BatchImportFindingsCommand = se_BatchImportFindingsCommand;
|
|
202
|
+
const se_BatchUpdateAutomationRulesCommand = async (input, context) => {
|
|
203
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
204
|
+
const headers = {
|
|
205
|
+
"content-type": "application/json",
|
|
206
|
+
};
|
|
207
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/automationrules/update";
|
|
208
|
+
let body;
|
|
209
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
210
|
+
UpdateAutomationRulesRequestItems: (_) => se_UpdateAutomationRulesRequestItemsList(_, context),
|
|
211
|
+
}));
|
|
212
|
+
return new protocol_http_1.HttpRequest({
|
|
213
|
+
protocol,
|
|
214
|
+
hostname,
|
|
215
|
+
port,
|
|
216
|
+
method: "PATCH",
|
|
217
|
+
headers,
|
|
218
|
+
path: resolvedPath,
|
|
219
|
+
body,
|
|
220
|
+
});
|
|
221
|
+
};
|
|
222
|
+
exports.se_BatchUpdateAutomationRulesCommand = se_BatchUpdateAutomationRulesCommand;
|
|
160
223
|
const se_BatchUpdateFindingsCommand = async (input, context) => {
|
|
161
224
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
162
225
|
const headers = {
|
|
@@ -231,6 +294,34 @@ const se_CreateActionTargetCommand = async (input, context) => {
|
|
|
231
294
|
});
|
|
232
295
|
};
|
|
233
296
|
exports.se_CreateActionTargetCommand = se_CreateActionTargetCommand;
|
|
297
|
+
const se_CreateAutomationRuleCommand = async (input, context) => {
|
|
298
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
299
|
+
const headers = {
|
|
300
|
+
"content-type": "application/json",
|
|
301
|
+
};
|
|
302
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/automationrules/create";
|
|
303
|
+
let body;
|
|
304
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
305
|
+
Actions: (_) => se_ActionList(_, context),
|
|
306
|
+
Criteria: (_) => se_AutomationRulesFindingFilters(_, context),
|
|
307
|
+
Description: [],
|
|
308
|
+
IsTerminal: [],
|
|
309
|
+
RuleName: [],
|
|
310
|
+
RuleOrder: [],
|
|
311
|
+
RuleStatus: [],
|
|
312
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
313
|
+
}));
|
|
314
|
+
return new protocol_http_1.HttpRequest({
|
|
315
|
+
protocol,
|
|
316
|
+
hostname,
|
|
317
|
+
port,
|
|
318
|
+
method: "POST",
|
|
319
|
+
headers,
|
|
320
|
+
path: resolvedPath,
|
|
321
|
+
body,
|
|
322
|
+
});
|
|
323
|
+
};
|
|
324
|
+
exports.se_CreateAutomationRuleCommand = se_CreateAutomationRuleCommand;
|
|
234
325
|
const se_CreateFindingAggregatorCommand = async (input, context) => {
|
|
235
326
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
236
327
|
const headers = {
|
|
@@ -951,6 +1042,27 @@ const se_InviteMembersCommand = async (input, context) => {
|
|
|
951
1042
|
});
|
|
952
1043
|
};
|
|
953
1044
|
exports.se_InviteMembersCommand = se_InviteMembersCommand;
|
|
1045
|
+
const se_ListAutomationRulesCommand = async (input, context) => {
|
|
1046
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1047
|
+
const headers = {};
|
|
1048
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/automationrules/list";
|
|
1049
|
+
const query = (0, smithy_client_1.map)({
|
|
1050
|
+
NextToken: [, input.NextToken],
|
|
1051
|
+
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1052
|
+
});
|
|
1053
|
+
let body;
|
|
1054
|
+
return new protocol_http_1.HttpRequest({
|
|
1055
|
+
protocol,
|
|
1056
|
+
hostname,
|
|
1057
|
+
port,
|
|
1058
|
+
method: "GET",
|
|
1059
|
+
headers,
|
|
1060
|
+
path: resolvedPath,
|
|
1061
|
+
query,
|
|
1062
|
+
body,
|
|
1063
|
+
});
|
|
1064
|
+
};
|
|
1065
|
+
exports.se_ListAutomationRulesCommand = se_ListAutomationRulesCommand;
|
|
954
1066
|
const se_ListEnabledProductsForImportCommand = async (input, context) => {
|
|
955
1067
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
956
1068
|
const headers = {};
|
|
@@ -1408,6 +1520,53 @@ const de_AcceptInvitationCommandError = async (output, context) => {
|
|
|
1408
1520
|
});
|
|
1409
1521
|
}
|
|
1410
1522
|
};
|
|
1523
|
+
const de_BatchDeleteAutomationRulesCommand = async (output, context) => {
|
|
1524
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1525
|
+
return de_BatchDeleteAutomationRulesCommandError(output, context);
|
|
1526
|
+
}
|
|
1527
|
+
const contents = (0, smithy_client_1.map)({
|
|
1528
|
+
$metadata: deserializeMetadata(output),
|
|
1529
|
+
});
|
|
1530
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1531
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1532
|
+
ProcessedAutomationRules: smithy_client_1._json,
|
|
1533
|
+
UnprocessedAutomationRules: smithy_client_1._json,
|
|
1534
|
+
});
|
|
1535
|
+
Object.assign(contents, doc);
|
|
1536
|
+
return contents;
|
|
1537
|
+
};
|
|
1538
|
+
exports.de_BatchDeleteAutomationRulesCommand = de_BatchDeleteAutomationRulesCommand;
|
|
1539
|
+
const de_BatchDeleteAutomationRulesCommandError = async (output, context) => {
|
|
1540
|
+
const parsedOutput = {
|
|
1541
|
+
...output,
|
|
1542
|
+
body: await parseErrorBody(output.body, context),
|
|
1543
|
+
};
|
|
1544
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1545
|
+
switch (errorCode) {
|
|
1546
|
+
case "InternalException":
|
|
1547
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
1548
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1549
|
+
case "InvalidAccessException":
|
|
1550
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
1551
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
1552
|
+
case "InvalidInputException":
|
|
1553
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
1554
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1555
|
+
case "LimitExceededException":
|
|
1556
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
1557
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1558
|
+
case "ResourceNotFoundException":
|
|
1559
|
+
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
1560
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1561
|
+
default:
|
|
1562
|
+
const parsedBody = parsedOutput.body;
|
|
1563
|
+
return throwDefaultError({
|
|
1564
|
+
output,
|
|
1565
|
+
parsedBody,
|
|
1566
|
+
errorCode,
|
|
1567
|
+
});
|
|
1568
|
+
}
|
|
1569
|
+
};
|
|
1411
1570
|
const de_BatchDisableStandardsCommand = async (output, context) => {
|
|
1412
1571
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1413
1572
|
return de_BatchDisableStandardsCommandError(output, context);
|
|
@@ -1494,6 +1653,56 @@ const de_BatchEnableStandardsCommandError = async (output, context) => {
|
|
|
1494
1653
|
});
|
|
1495
1654
|
}
|
|
1496
1655
|
};
|
|
1656
|
+
const de_BatchGetAutomationRulesCommand = async (output, context) => {
|
|
1657
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1658
|
+
return de_BatchGetAutomationRulesCommandError(output, context);
|
|
1659
|
+
}
|
|
1660
|
+
const contents = (0, smithy_client_1.map)({
|
|
1661
|
+
$metadata: deserializeMetadata(output),
|
|
1662
|
+
});
|
|
1663
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1664
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1665
|
+
Rules: (_) => de_AutomationRulesConfigList(_, context),
|
|
1666
|
+
UnprocessedAutomationRules: smithy_client_1._json,
|
|
1667
|
+
});
|
|
1668
|
+
Object.assign(contents, doc);
|
|
1669
|
+
return contents;
|
|
1670
|
+
};
|
|
1671
|
+
exports.de_BatchGetAutomationRulesCommand = de_BatchGetAutomationRulesCommand;
|
|
1672
|
+
const de_BatchGetAutomationRulesCommandError = async (output, context) => {
|
|
1673
|
+
const parsedOutput = {
|
|
1674
|
+
...output,
|
|
1675
|
+
body: await parseErrorBody(output.body, context),
|
|
1676
|
+
};
|
|
1677
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1678
|
+
switch (errorCode) {
|
|
1679
|
+
case "AccessDeniedException":
|
|
1680
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
1681
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1682
|
+
case "InternalException":
|
|
1683
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
1684
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1685
|
+
case "InvalidAccessException":
|
|
1686
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
1687
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
1688
|
+
case "InvalidInputException":
|
|
1689
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
1690
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1691
|
+
case "LimitExceededException":
|
|
1692
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
1693
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1694
|
+
case "ResourceNotFoundException":
|
|
1695
|
+
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
1696
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1697
|
+
default:
|
|
1698
|
+
const parsedBody = parsedOutput.body;
|
|
1699
|
+
return throwDefaultError({
|
|
1700
|
+
output,
|
|
1701
|
+
parsedBody,
|
|
1702
|
+
errorCode,
|
|
1703
|
+
});
|
|
1704
|
+
}
|
|
1705
|
+
};
|
|
1497
1706
|
const de_BatchGetSecurityControlsCommand = async (output, context) => {
|
|
1498
1707
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1499
1708
|
return de_BatchGetSecurityControlsCommandError(output, context);
|
|
@@ -1627,6 +1836,53 @@ const de_BatchImportFindingsCommandError = async (output, context) => {
|
|
|
1627
1836
|
});
|
|
1628
1837
|
}
|
|
1629
1838
|
};
|
|
1839
|
+
const de_BatchUpdateAutomationRulesCommand = async (output, context) => {
|
|
1840
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1841
|
+
return de_BatchUpdateAutomationRulesCommandError(output, context);
|
|
1842
|
+
}
|
|
1843
|
+
const contents = (0, smithy_client_1.map)({
|
|
1844
|
+
$metadata: deserializeMetadata(output),
|
|
1845
|
+
});
|
|
1846
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1847
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1848
|
+
ProcessedAutomationRules: smithy_client_1._json,
|
|
1849
|
+
UnprocessedAutomationRules: smithy_client_1._json,
|
|
1850
|
+
});
|
|
1851
|
+
Object.assign(contents, doc);
|
|
1852
|
+
return contents;
|
|
1853
|
+
};
|
|
1854
|
+
exports.de_BatchUpdateAutomationRulesCommand = de_BatchUpdateAutomationRulesCommand;
|
|
1855
|
+
const de_BatchUpdateAutomationRulesCommandError = async (output, context) => {
|
|
1856
|
+
const parsedOutput = {
|
|
1857
|
+
...output,
|
|
1858
|
+
body: await parseErrorBody(output.body, context),
|
|
1859
|
+
};
|
|
1860
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1861
|
+
switch (errorCode) {
|
|
1862
|
+
case "InternalException":
|
|
1863
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
1864
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1865
|
+
case "InvalidAccessException":
|
|
1866
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
1867
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
1868
|
+
case "InvalidInputException":
|
|
1869
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
1870
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1871
|
+
case "LimitExceededException":
|
|
1872
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
1873
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1874
|
+
case "ResourceNotFoundException":
|
|
1875
|
+
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
1876
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1877
|
+
default:
|
|
1878
|
+
const parsedBody = parsedOutput.body;
|
|
1879
|
+
return throwDefaultError({
|
|
1880
|
+
output,
|
|
1881
|
+
parsedBody,
|
|
1882
|
+
errorCode,
|
|
1883
|
+
});
|
|
1884
|
+
}
|
|
1885
|
+
};
|
|
1630
1886
|
const de_BatchUpdateFindingsCommand = async (output, context) => {
|
|
1631
1887
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1632
1888
|
return de_BatchUpdateFindingsCommandError(output, context);
|
|
@@ -1760,6 +2016,52 @@ const de_CreateActionTargetCommandError = async (output, context) => {
|
|
|
1760
2016
|
});
|
|
1761
2017
|
}
|
|
1762
2018
|
};
|
|
2019
|
+
const de_CreateAutomationRuleCommand = async (output, context) => {
|
|
2020
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2021
|
+
return de_CreateAutomationRuleCommandError(output, context);
|
|
2022
|
+
}
|
|
2023
|
+
const contents = (0, smithy_client_1.map)({
|
|
2024
|
+
$metadata: deserializeMetadata(output),
|
|
2025
|
+
});
|
|
2026
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2027
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2028
|
+
RuleArn: smithy_client_1.expectString,
|
|
2029
|
+
});
|
|
2030
|
+
Object.assign(contents, doc);
|
|
2031
|
+
return contents;
|
|
2032
|
+
};
|
|
2033
|
+
exports.de_CreateAutomationRuleCommand = de_CreateAutomationRuleCommand;
|
|
2034
|
+
const de_CreateAutomationRuleCommandError = async (output, context) => {
|
|
2035
|
+
const parsedOutput = {
|
|
2036
|
+
...output,
|
|
2037
|
+
body: await parseErrorBody(output.body, context),
|
|
2038
|
+
};
|
|
2039
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2040
|
+
switch (errorCode) {
|
|
2041
|
+
case "AccessDeniedException":
|
|
2042
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
2043
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2044
|
+
case "InternalException":
|
|
2045
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
2046
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2047
|
+
case "InvalidAccessException":
|
|
2048
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2049
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2050
|
+
case "InvalidInputException":
|
|
2051
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2052
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2053
|
+
case "LimitExceededException":
|
|
2054
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2055
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2056
|
+
default:
|
|
2057
|
+
const parsedBody = parsedOutput.body;
|
|
2058
|
+
return throwDefaultError({
|
|
2059
|
+
output,
|
|
2060
|
+
parsedBody,
|
|
2061
|
+
errorCode,
|
|
2062
|
+
});
|
|
2063
|
+
}
|
|
2064
|
+
};
|
|
1763
2065
|
const de_CreateFindingAggregatorCommand = async (output, context) => {
|
|
1764
2066
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1765
2067
|
return de_CreateFindingAggregatorCommandError(output, context);
|
|
@@ -3315,6 +3617,53 @@ const de_InviteMembersCommandError = async (output, context) => {
|
|
|
3315
3617
|
});
|
|
3316
3618
|
}
|
|
3317
3619
|
};
|
|
3620
|
+
const de_ListAutomationRulesCommand = async (output, context) => {
|
|
3621
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3622
|
+
return de_ListAutomationRulesCommandError(output, context);
|
|
3623
|
+
}
|
|
3624
|
+
const contents = (0, smithy_client_1.map)({
|
|
3625
|
+
$metadata: deserializeMetadata(output),
|
|
3626
|
+
});
|
|
3627
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3628
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3629
|
+
AutomationRulesMetadata: (_) => de_AutomationRulesMetadataList(_, context),
|
|
3630
|
+
NextToken: smithy_client_1.expectString,
|
|
3631
|
+
});
|
|
3632
|
+
Object.assign(contents, doc);
|
|
3633
|
+
return contents;
|
|
3634
|
+
};
|
|
3635
|
+
exports.de_ListAutomationRulesCommand = de_ListAutomationRulesCommand;
|
|
3636
|
+
const de_ListAutomationRulesCommandError = async (output, context) => {
|
|
3637
|
+
const parsedOutput = {
|
|
3638
|
+
...output,
|
|
3639
|
+
body: await parseErrorBody(output.body, context),
|
|
3640
|
+
};
|
|
3641
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3642
|
+
switch (errorCode) {
|
|
3643
|
+
case "AccessDeniedException":
|
|
3644
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
3645
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3646
|
+
case "InternalException":
|
|
3647
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
3648
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3649
|
+
case "InvalidAccessException":
|
|
3650
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3651
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3652
|
+
case "InvalidInputException":
|
|
3653
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3654
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3655
|
+
case "LimitExceededException":
|
|
3656
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3657
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3658
|
+
default:
|
|
3659
|
+
const parsedBody = parsedOutput.body;
|
|
3660
|
+
return throwDefaultError({
|
|
3661
|
+
output,
|
|
3662
|
+
parsedBody,
|
|
3663
|
+
errorCode,
|
|
3664
|
+
});
|
|
3665
|
+
}
|
|
3666
|
+
};
|
|
3318
3667
|
const de_ListEnabledProductsForImportCommand = async (output, context) => {
|
|
3319
3668
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3320
3669
|
return de_ListEnabledProductsForImportCommandError(output, context);
|
|
@@ -4138,6 +4487,13 @@ const se_Action = (input, context) => {
|
|
|
4138
4487
|
PortProbeAction: (_) => se_PortProbeAction(_, context),
|
|
4139
4488
|
});
|
|
4140
4489
|
};
|
|
4490
|
+
const se_ActionList = (input, context) => {
|
|
4491
|
+
return input
|
|
4492
|
+
.filter((e) => e != null)
|
|
4493
|
+
.map((entry) => {
|
|
4494
|
+
return se_AutomationRulesAction(entry, context);
|
|
4495
|
+
});
|
|
4496
|
+
};
|
|
4141
4497
|
const se_ActionRemoteIpDetails = (input, context) => {
|
|
4142
4498
|
return (0, smithy_client_1.take)(input, {
|
|
4143
4499
|
City: smithy_client_1._json,
|
|
@@ -4147,6 +4503,64 @@ const se_ActionRemoteIpDetails = (input, context) => {
|
|
|
4147
4503
|
Organization: smithy_client_1._json,
|
|
4148
4504
|
});
|
|
4149
4505
|
};
|
|
4506
|
+
const se_AutomationRulesAction = (input, context) => {
|
|
4507
|
+
return (0, smithy_client_1.take)(input, {
|
|
4508
|
+
FindingFieldsUpdate: (_) => se_AutomationRulesFindingFieldsUpdate(_, context),
|
|
4509
|
+
Type: [],
|
|
4510
|
+
});
|
|
4511
|
+
};
|
|
4512
|
+
const se_AutomationRulesFindingFieldsUpdate = (input, context) => {
|
|
4513
|
+
return (0, smithy_client_1.take)(input, {
|
|
4514
|
+
Confidence: [],
|
|
4515
|
+
Criticality: [],
|
|
4516
|
+
Note: smithy_client_1._json,
|
|
4517
|
+
RelatedFindings: smithy_client_1._json,
|
|
4518
|
+
Severity: (_) => se_SeverityUpdate(_, context),
|
|
4519
|
+
Types: smithy_client_1._json,
|
|
4520
|
+
UserDefinedFields: smithy_client_1._json,
|
|
4521
|
+
VerificationState: [],
|
|
4522
|
+
Workflow: smithy_client_1._json,
|
|
4523
|
+
});
|
|
4524
|
+
};
|
|
4525
|
+
const se_AutomationRulesFindingFilters = (input, context) => {
|
|
4526
|
+
return (0, smithy_client_1.take)(input, {
|
|
4527
|
+
AwsAccountId: smithy_client_1._json,
|
|
4528
|
+
CompanyName: smithy_client_1._json,
|
|
4529
|
+
ComplianceAssociatedStandardsId: smithy_client_1._json,
|
|
4530
|
+
ComplianceSecurityControlId: smithy_client_1._json,
|
|
4531
|
+
ComplianceStatus: smithy_client_1._json,
|
|
4532
|
+
Confidence: (_) => se_NumberFilterList(_, context),
|
|
4533
|
+
CreatedAt: smithy_client_1._json,
|
|
4534
|
+
Criticality: (_) => se_NumberFilterList(_, context),
|
|
4535
|
+
Description: smithy_client_1._json,
|
|
4536
|
+
FirstObservedAt: smithy_client_1._json,
|
|
4537
|
+
GeneratorId: smithy_client_1._json,
|
|
4538
|
+
Id: smithy_client_1._json,
|
|
4539
|
+
LastObservedAt: smithy_client_1._json,
|
|
4540
|
+
NoteText: smithy_client_1._json,
|
|
4541
|
+
NoteUpdatedAt: smithy_client_1._json,
|
|
4542
|
+
NoteUpdatedBy: smithy_client_1._json,
|
|
4543
|
+
ProductArn: smithy_client_1._json,
|
|
4544
|
+
ProductName: smithy_client_1._json,
|
|
4545
|
+
RecordState: smithy_client_1._json,
|
|
4546
|
+
RelatedFindingsId: smithy_client_1._json,
|
|
4547
|
+
RelatedFindingsProductArn: smithy_client_1._json,
|
|
4548
|
+
ResourceDetailsOther: smithy_client_1._json,
|
|
4549
|
+
ResourceId: smithy_client_1._json,
|
|
4550
|
+
ResourcePartition: smithy_client_1._json,
|
|
4551
|
+
ResourceRegion: smithy_client_1._json,
|
|
4552
|
+
ResourceTags: smithy_client_1._json,
|
|
4553
|
+
ResourceType: smithy_client_1._json,
|
|
4554
|
+
SeverityLabel: smithy_client_1._json,
|
|
4555
|
+
SourceUrl: smithy_client_1._json,
|
|
4556
|
+
Title: smithy_client_1._json,
|
|
4557
|
+
Type: smithy_client_1._json,
|
|
4558
|
+
UpdatedAt: smithy_client_1._json,
|
|
4559
|
+
UserDefinedFields: smithy_client_1._json,
|
|
4560
|
+
VerificationState: smithy_client_1._json,
|
|
4561
|
+
WorkflowStatus: smithy_client_1._json,
|
|
4562
|
+
});
|
|
4563
|
+
};
|
|
4150
4564
|
const se_AwsApiCallAction = (input, context) => {
|
|
4151
4565
|
return (0, smithy_client_1.take)(input, {
|
|
4152
4566
|
AffectedResources: smithy_client_1._json,
|
|
@@ -4769,6 +5183,25 @@ const se_SeverityUpdate = (input, context) => {
|
|
|
4769
5183
|
Product: smithy_client_1.serializeFloat,
|
|
4770
5184
|
});
|
|
4771
5185
|
};
|
|
5186
|
+
const se_UpdateAutomationRulesRequestItem = (input, context) => {
|
|
5187
|
+
return (0, smithy_client_1.take)(input, {
|
|
5188
|
+
Actions: (_) => se_ActionList(_, context),
|
|
5189
|
+
Criteria: (_) => se_AutomationRulesFindingFilters(_, context),
|
|
5190
|
+
Description: [],
|
|
5191
|
+
IsTerminal: [],
|
|
5192
|
+
RuleArn: [],
|
|
5193
|
+
RuleName: [],
|
|
5194
|
+
RuleOrder: [],
|
|
5195
|
+
RuleStatus: [],
|
|
5196
|
+
});
|
|
5197
|
+
};
|
|
5198
|
+
const se_UpdateAutomationRulesRequestItemsList = (input, context) => {
|
|
5199
|
+
return input
|
|
5200
|
+
.filter((e) => e != null)
|
|
5201
|
+
.map((entry) => {
|
|
5202
|
+
return se_UpdateAutomationRulesRequestItem(entry, context);
|
|
5203
|
+
});
|
|
5204
|
+
};
|
|
4772
5205
|
const se_Vulnerability = (input, context) => {
|
|
4773
5206
|
return (0, smithy_client_1.take)(input, {
|
|
4774
5207
|
Cvss: (_) => se_CvssList(_, context),
|
|
@@ -4796,6 +5229,14 @@ const de_Action = (output, context) => {
|
|
|
4796
5229
|
PortProbeAction: (_) => de_PortProbeAction(_, context),
|
|
4797
5230
|
});
|
|
4798
5231
|
};
|
|
5232
|
+
const de_ActionList = (output, context) => {
|
|
5233
|
+
const retVal = (output || [])
|
|
5234
|
+
.filter((e) => e != null)
|
|
5235
|
+
.map((entry) => {
|
|
5236
|
+
return de_AutomationRulesAction(entry, context);
|
|
5237
|
+
});
|
|
5238
|
+
return retVal;
|
|
5239
|
+
};
|
|
4799
5240
|
const de_ActionRemoteIpDetails = (output, context) => {
|
|
4800
5241
|
return (0, smithy_client_1.take)(output, {
|
|
4801
5242
|
City: smithy_client_1._json,
|
|
@@ -4805,6 +5246,108 @@ const de_ActionRemoteIpDetails = (output, context) => {
|
|
|
4805
5246
|
Organization: smithy_client_1._json,
|
|
4806
5247
|
});
|
|
4807
5248
|
};
|
|
5249
|
+
const de_AutomationRulesAction = (output, context) => {
|
|
5250
|
+
return (0, smithy_client_1.take)(output, {
|
|
5251
|
+
FindingFieldsUpdate: (_) => de_AutomationRulesFindingFieldsUpdate(_, context),
|
|
5252
|
+
Type: smithy_client_1.expectString,
|
|
5253
|
+
});
|
|
5254
|
+
};
|
|
5255
|
+
const de_AutomationRulesConfig = (output, context) => {
|
|
5256
|
+
return (0, smithy_client_1.take)(output, {
|
|
5257
|
+
Actions: (_) => de_ActionList(_, context),
|
|
5258
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
5259
|
+
CreatedBy: smithy_client_1.expectString,
|
|
5260
|
+
Criteria: (_) => de_AutomationRulesFindingFilters(_, context),
|
|
5261
|
+
Description: smithy_client_1.expectString,
|
|
5262
|
+
IsTerminal: smithy_client_1.expectBoolean,
|
|
5263
|
+
RuleArn: smithy_client_1.expectString,
|
|
5264
|
+
RuleName: smithy_client_1.expectString,
|
|
5265
|
+
RuleOrder: smithy_client_1.expectInt32,
|
|
5266
|
+
RuleStatus: smithy_client_1.expectString,
|
|
5267
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
5268
|
+
});
|
|
5269
|
+
};
|
|
5270
|
+
const de_AutomationRulesConfigList = (output, context) => {
|
|
5271
|
+
const retVal = (output || [])
|
|
5272
|
+
.filter((e) => e != null)
|
|
5273
|
+
.map((entry) => {
|
|
5274
|
+
return de_AutomationRulesConfig(entry, context);
|
|
5275
|
+
});
|
|
5276
|
+
return retVal;
|
|
5277
|
+
};
|
|
5278
|
+
const de_AutomationRulesFindingFieldsUpdate = (output, context) => {
|
|
5279
|
+
return (0, smithy_client_1.take)(output, {
|
|
5280
|
+
Confidence: smithy_client_1.expectInt32,
|
|
5281
|
+
Criticality: smithy_client_1.expectInt32,
|
|
5282
|
+
Note: smithy_client_1._json,
|
|
5283
|
+
RelatedFindings: smithy_client_1._json,
|
|
5284
|
+
Severity: (_) => de_SeverityUpdate(_, context),
|
|
5285
|
+
Types: smithy_client_1._json,
|
|
5286
|
+
UserDefinedFields: smithy_client_1._json,
|
|
5287
|
+
VerificationState: smithy_client_1.expectString,
|
|
5288
|
+
Workflow: smithy_client_1._json,
|
|
5289
|
+
});
|
|
5290
|
+
};
|
|
5291
|
+
const de_AutomationRulesFindingFilters = (output, context) => {
|
|
5292
|
+
return (0, smithy_client_1.take)(output, {
|
|
5293
|
+
AwsAccountId: smithy_client_1._json,
|
|
5294
|
+
CompanyName: smithy_client_1._json,
|
|
5295
|
+
ComplianceAssociatedStandardsId: smithy_client_1._json,
|
|
5296
|
+
ComplianceSecurityControlId: smithy_client_1._json,
|
|
5297
|
+
ComplianceStatus: smithy_client_1._json,
|
|
5298
|
+
Confidence: (_) => de_NumberFilterList(_, context),
|
|
5299
|
+
CreatedAt: smithy_client_1._json,
|
|
5300
|
+
Criticality: (_) => de_NumberFilterList(_, context),
|
|
5301
|
+
Description: smithy_client_1._json,
|
|
5302
|
+
FirstObservedAt: smithy_client_1._json,
|
|
5303
|
+
GeneratorId: smithy_client_1._json,
|
|
5304
|
+
Id: smithy_client_1._json,
|
|
5305
|
+
LastObservedAt: smithy_client_1._json,
|
|
5306
|
+
NoteText: smithy_client_1._json,
|
|
5307
|
+
NoteUpdatedAt: smithy_client_1._json,
|
|
5308
|
+
NoteUpdatedBy: smithy_client_1._json,
|
|
5309
|
+
ProductArn: smithy_client_1._json,
|
|
5310
|
+
ProductName: smithy_client_1._json,
|
|
5311
|
+
RecordState: smithy_client_1._json,
|
|
5312
|
+
RelatedFindingsId: smithy_client_1._json,
|
|
5313
|
+
RelatedFindingsProductArn: smithy_client_1._json,
|
|
5314
|
+
ResourceDetailsOther: smithy_client_1._json,
|
|
5315
|
+
ResourceId: smithy_client_1._json,
|
|
5316
|
+
ResourcePartition: smithy_client_1._json,
|
|
5317
|
+
ResourceRegion: smithy_client_1._json,
|
|
5318
|
+
ResourceTags: smithy_client_1._json,
|
|
5319
|
+
ResourceType: smithy_client_1._json,
|
|
5320
|
+
SeverityLabel: smithy_client_1._json,
|
|
5321
|
+
SourceUrl: smithy_client_1._json,
|
|
5322
|
+
Title: smithy_client_1._json,
|
|
5323
|
+
Type: smithy_client_1._json,
|
|
5324
|
+
UpdatedAt: smithy_client_1._json,
|
|
5325
|
+
UserDefinedFields: smithy_client_1._json,
|
|
5326
|
+
VerificationState: smithy_client_1._json,
|
|
5327
|
+
WorkflowStatus: smithy_client_1._json,
|
|
5328
|
+
});
|
|
5329
|
+
};
|
|
5330
|
+
const de_AutomationRulesMetadata = (output, context) => {
|
|
5331
|
+
return (0, smithy_client_1.take)(output, {
|
|
5332
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
5333
|
+
CreatedBy: smithy_client_1.expectString,
|
|
5334
|
+
Description: smithy_client_1.expectString,
|
|
5335
|
+
IsTerminal: smithy_client_1.expectBoolean,
|
|
5336
|
+
RuleArn: smithy_client_1.expectString,
|
|
5337
|
+
RuleName: smithy_client_1.expectString,
|
|
5338
|
+
RuleOrder: smithy_client_1.expectInt32,
|
|
5339
|
+
RuleStatus: smithy_client_1.expectString,
|
|
5340
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
5341
|
+
});
|
|
5342
|
+
};
|
|
5343
|
+
const de_AutomationRulesMetadataList = (output, context) => {
|
|
5344
|
+
const retVal = (output || [])
|
|
5345
|
+
.filter((e) => e != null)
|
|
5346
|
+
.map((entry) => {
|
|
5347
|
+
return de_AutomationRulesMetadata(entry, context);
|
|
5348
|
+
});
|
|
5349
|
+
return retVal;
|
|
5350
|
+
};
|
|
4808
5351
|
const de_AwsApiCallAction = (output, context) => {
|
|
4809
5352
|
return (0, smithy_client_1.take)(output, {
|
|
4810
5353
|
AffectedResources: smithy_client_1._json,
|
|
@@ -5495,6 +6038,13 @@ const de_Severity = (output, context) => {
|
|
|
5495
6038
|
Product: smithy_client_1.limitedParseDouble,
|
|
5496
6039
|
});
|
|
5497
6040
|
};
|
|
6041
|
+
const de_SeverityUpdate = (output, context) => {
|
|
6042
|
+
return (0, smithy_client_1.take)(output, {
|
|
6043
|
+
Label: smithy_client_1.expectString,
|
|
6044
|
+
Normalized: smithy_client_1.expectInt32,
|
|
6045
|
+
Product: smithy_client_1.limitedParseDouble,
|
|
6046
|
+
});
|
|
6047
|
+
};
|
|
5498
6048
|
const de_StandardsControl = (output, context) => {
|
|
5499
6049
|
return (0, smithy_client_1.take)(output, {
|
|
5500
6050
|
ControlId: smithy_client_1.expectString,
|