@aws-sdk/client-securityhub 3.350.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.
Files changed (52) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/SecurityHub.js +10 -0
  3. package/dist-cjs/commands/BatchDeleteAutomationRulesCommand.js +46 -0
  4. package/dist-cjs/commands/BatchGetAutomationRulesCommand.js +46 -0
  5. package/dist-cjs/commands/BatchUpdateAutomationRulesCommand.js +46 -0
  6. package/dist-cjs/commands/CreateAutomationRuleCommand.js +46 -0
  7. package/dist-cjs/commands/ListAutomationRulesCommand.js +46 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/models/models_0.js +40 -1
  10. package/dist-cjs/models/models_1.js +1 -44
  11. package/dist-cjs/models/models_2.js +12 -1
  12. package/dist-cjs/protocols/Aws_restJson1.js +553 -3
  13. package/dist-es/SecurityHub.js +10 -0
  14. package/dist-es/commands/BatchDeleteAutomationRulesCommand.js +42 -0
  15. package/dist-es/commands/BatchGetAutomationRulesCommand.js +42 -0
  16. package/dist-es/commands/BatchUpdateAutomationRulesCommand.js +42 -0
  17. package/dist-es/commands/CreateAutomationRuleCommand.js +42 -0
  18. package/dist-es/commands/ListAutomationRulesCommand.js +42 -0
  19. package/dist-es/commands/index.js +5 -0
  20. package/dist-es/models/models_0.js +39 -0
  21. package/dist-es/models/models_1.js +0 -43
  22. package/dist-es/models/models_2.js +11 -0
  23. package/dist-es/protocols/Aws_restJson1.js +540 -0
  24. package/dist-types/SecurityHub.d.ts +35 -0
  25. package/dist-types/SecurityHubClient.d.ts +7 -2
  26. package/dist-types/commands/BatchDeleteAutomationRulesCommand.d.ts +103 -0
  27. package/dist-types/commands/BatchDisableStandardsCommand.d.ts +1 -1
  28. package/dist-types/commands/BatchEnableStandardsCommand.d.ts +1 -1
  29. package/dist-types/commands/BatchGetAutomationRulesCommand.d.ts +288 -0
  30. package/dist-types/commands/BatchUpdateAutomationRulesCommand.d.ts +282 -0
  31. package/dist-types/commands/CreateAutomationRuleCommand.d.ts +270 -0
  32. package/dist-types/commands/ListAutomationRulesCommand.d.ts +106 -0
  33. package/dist-types/commands/index.d.ts +5 -0
  34. package/dist-types/models/models_0.d.ts +6010 -5729
  35. package/dist-types/models/models_1.d.ts +645 -439
  36. package/dist-types/models/models_2.d.ts +423 -108
  37. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  38. package/dist-types/ts3.4/SecurityHub.d.ts +85 -0
  39. package/dist-types/ts3.4/SecurityHubClient.d.ts +30 -0
  40. package/dist-types/ts3.4/commands/BatchDeleteAutomationRulesCommand.d.ts +42 -0
  41. package/dist-types/ts3.4/commands/BatchDisableStandardsCommand.d.ts +1 -1
  42. package/dist-types/ts3.4/commands/BatchEnableStandardsCommand.d.ts +1 -1
  43. package/dist-types/ts3.4/commands/BatchGetAutomationRulesCommand.d.ts +42 -0
  44. package/dist-types/ts3.4/commands/BatchUpdateAutomationRulesCommand.d.ts +42 -0
  45. package/dist-types/ts3.4/commands/CreateAutomationRuleCommand.d.ts +42 -0
  46. package/dist-types/ts3.4/commands/ListAutomationRulesCommand.d.ts +39 -0
  47. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +167 -136
  49. package/dist-types/ts3.4/models/models_1.d.ts +145 -123
  50. package/dist-types/ts3.4/models/models_2.d.ts +112 -16
  51. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  52. package/package.json +5 -5
@@ -45,6 +45,26 @@ export const se_AcceptInvitationCommand = async (input, context) => {
45
45
  body,
46
46
  });
47
47
  };
48
+ export const se_BatchDeleteAutomationRulesCommand = async (input, context) => {
49
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
50
+ const headers = {
51
+ "content-type": "application/json",
52
+ };
53
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/automationrules/delete";
54
+ let body;
55
+ body = JSON.stringify(take(input, {
56
+ AutomationRulesArns: (_) => _json(_),
57
+ }));
58
+ return new __HttpRequest({
59
+ protocol,
60
+ hostname,
61
+ port,
62
+ method: "POST",
63
+ headers,
64
+ path: resolvedPath,
65
+ body,
66
+ });
67
+ };
48
68
  export const se_BatchDisableStandardsCommand = async (input, context) => {
49
69
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
50
70
  const headers = {
@@ -85,6 +105,26 @@ export const se_BatchEnableStandardsCommand = async (input, context) => {
85
105
  body,
86
106
  });
87
107
  };
108
+ export const se_BatchGetAutomationRulesCommand = async (input, context) => {
109
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
110
+ const headers = {
111
+ "content-type": "application/json",
112
+ };
113
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/automationrules/get";
114
+ let body;
115
+ body = JSON.stringify(take(input, {
116
+ AutomationRulesArns: (_) => _json(_),
117
+ }));
118
+ return new __HttpRequest({
119
+ protocol,
120
+ hostname,
121
+ port,
122
+ method: "POST",
123
+ headers,
124
+ path: resolvedPath,
125
+ body,
126
+ });
127
+ };
88
128
  export const se_BatchGetSecurityControlsCommand = async (input, context) => {
89
129
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
90
130
  const headers = {
@@ -145,6 +185,26 @@ export const se_BatchImportFindingsCommand = async (input, context) => {
145
185
  body,
146
186
  });
147
187
  };
188
+ export const se_BatchUpdateAutomationRulesCommand = async (input, context) => {
189
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
190
+ const headers = {
191
+ "content-type": "application/json",
192
+ };
193
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/automationrules/update";
194
+ let body;
195
+ body = JSON.stringify(take(input, {
196
+ UpdateAutomationRulesRequestItems: (_) => se_UpdateAutomationRulesRequestItemsList(_, context),
197
+ }));
198
+ return new __HttpRequest({
199
+ protocol,
200
+ hostname,
201
+ port,
202
+ method: "PATCH",
203
+ headers,
204
+ path: resolvedPath,
205
+ body,
206
+ });
207
+ };
148
208
  export const se_BatchUpdateFindingsCommand = async (input, context) => {
149
209
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
150
210
  const headers = {
@@ -216,6 +276,33 @@ export const se_CreateActionTargetCommand = async (input, context) => {
216
276
  body,
217
277
  });
218
278
  };
279
+ export const se_CreateAutomationRuleCommand = async (input, context) => {
280
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
281
+ const headers = {
282
+ "content-type": "application/json",
283
+ };
284
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/automationrules/create";
285
+ let body;
286
+ body = JSON.stringify(take(input, {
287
+ Actions: (_) => se_ActionList(_, context),
288
+ Criteria: (_) => se_AutomationRulesFindingFilters(_, context),
289
+ Description: [],
290
+ IsTerminal: [],
291
+ RuleName: [],
292
+ RuleOrder: [],
293
+ RuleStatus: [],
294
+ Tags: (_) => _json(_),
295
+ }));
296
+ return new __HttpRequest({
297
+ protocol,
298
+ hostname,
299
+ port,
300
+ method: "POST",
301
+ headers,
302
+ path: resolvedPath,
303
+ body,
304
+ });
305
+ };
219
306
  export const se_CreateFindingAggregatorCommand = async (input, context) => {
220
307
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
221
308
  const headers = {
@@ -901,6 +988,26 @@ export const se_InviteMembersCommand = async (input, context) => {
901
988
  body,
902
989
  });
903
990
  };
991
+ export const se_ListAutomationRulesCommand = async (input, context) => {
992
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
993
+ const headers = {};
994
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/automationrules/list";
995
+ const query = map({
996
+ NextToken: [, input.NextToken],
997
+ MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
998
+ });
999
+ let body;
1000
+ return new __HttpRequest({
1001
+ protocol,
1002
+ hostname,
1003
+ port,
1004
+ method: "GET",
1005
+ headers,
1006
+ path: resolvedPath,
1007
+ query,
1008
+ body,
1009
+ });
1010
+ };
904
1011
  export const se_ListEnabledProductsForImportCommand = async (input, context) => {
905
1012
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
906
1013
  const headers = {};
@@ -1339,6 +1446,52 @@ const de_AcceptInvitationCommandError = async (output, context) => {
1339
1446
  });
1340
1447
  }
1341
1448
  };
1449
+ export const de_BatchDeleteAutomationRulesCommand = async (output, context) => {
1450
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1451
+ return de_BatchDeleteAutomationRulesCommandError(output, context);
1452
+ }
1453
+ const contents = map({
1454
+ $metadata: deserializeMetadata(output),
1455
+ });
1456
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1457
+ const doc = take(data, {
1458
+ ProcessedAutomationRules: _json,
1459
+ UnprocessedAutomationRules: _json,
1460
+ });
1461
+ Object.assign(contents, doc);
1462
+ return contents;
1463
+ };
1464
+ const de_BatchDeleteAutomationRulesCommandError = async (output, context) => {
1465
+ const parsedOutput = {
1466
+ ...output,
1467
+ body: await parseErrorBody(output.body, context),
1468
+ };
1469
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1470
+ switch (errorCode) {
1471
+ case "InternalException":
1472
+ case "com.amazonaws.securityhub#InternalException":
1473
+ throw await de_InternalExceptionRes(parsedOutput, context);
1474
+ case "InvalidAccessException":
1475
+ case "com.amazonaws.securityhub#InvalidAccessException":
1476
+ throw await de_InvalidAccessExceptionRes(parsedOutput, context);
1477
+ case "InvalidInputException":
1478
+ case "com.amazonaws.securityhub#InvalidInputException":
1479
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1480
+ case "LimitExceededException":
1481
+ case "com.amazonaws.securityhub#LimitExceededException":
1482
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1483
+ case "ResourceNotFoundException":
1484
+ case "com.amazonaws.securityhub#ResourceNotFoundException":
1485
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1486
+ default:
1487
+ const parsedBody = parsedOutput.body;
1488
+ return throwDefaultError({
1489
+ output,
1490
+ parsedBody,
1491
+ errorCode,
1492
+ });
1493
+ }
1494
+ };
1342
1495
  export const de_BatchDisableStandardsCommand = async (output, context) => {
1343
1496
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1344
1497
  return de_BatchDisableStandardsCommandError(output, context);
@@ -1423,6 +1576,55 @@ const de_BatchEnableStandardsCommandError = async (output, context) => {
1423
1576
  });
1424
1577
  }
1425
1578
  };
1579
+ export const de_BatchGetAutomationRulesCommand = async (output, context) => {
1580
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1581
+ return de_BatchGetAutomationRulesCommandError(output, context);
1582
+ }
1583
+ const contents = map({
1584
+ $metadata: deserializeMetadata(output),
1585
+ });
1586
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1587
+ const doc = take(data, {
1588
+ Rules: (_) => de_AutomationRulesConfigList(_, context),
1589
+ UnprocessedAutomationRules: _json,
1590
+ });
1591
+ Object.assign(contents, doc);
1592
+ return contents;
1593
+ };
1594
+ const de_BatchGetAutomationRulesCommandError = async (output, context) => {
1595
+ const parsedOutput = {
1596
+ ...output,
1597
+ body: await parseErrorBody(output.body, context),
1598
+ };
1599
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1600
+ switch (errorCode) {
1601
+ case "AccessDeniedException":
1602
+ case "com.amazonaws.securityhub#AccessDeniedException":
1603
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1604
+ case "InternalException":
1605
+ case "com.amazonaws.securityhub#InternalException":
1606
+ throw await de_InternalExceptionRes(parsedOutput, context);
1607
+ case "InvalidAccessException":
1608
+ case "com.amazonaws.securityhub#InvalidAccessException":
1609
+ throw await de_InvalidAccessExceptionRes(parsedOutput, context);
1610
+ case "InvalidInputException":
1611
+ case "com.amazonaws.securityhub#InvalidInputException":
1612
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1613
+ case "LimitExceededException":
1614
+ case "com.amazonaws.securityhub#LimitExceededException":
1615
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1616
+ case "ResourceNotFoundException":
1617
+ case "com.amazonaws.securityhub#ResourceNotFoundException":
1618
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1619
+ default:
1620
+ const parsedBody = parsedOutput.body;
1621
+ return throwDefaultError({
1622
+ output,
1623
+ parsedBody,
1624
+ errorCode,
1625
+ });
1626
+ }
1627
+ };
1426
1628
  export const de_BatchGetSecurityControlsCommand = async (output, context) => {
1427
1629
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1428
1630
  return de_BatchGetSecurityControlsCommandError(output, context);
@@ -1553,6 +1755,52 @@ const de_BatchImportFindingsCommandError = async (output, context) => {
1553
1755
  });
1554
1756
  }
1555
1757
  };
1758
+ export const de_BatchUpdateAutomationRulesCommand = async (output, context) => {
1759
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1760
+ return de_BatchUpdateAutomationRulesCommandError(output, context);
1761
+ }
1762
+ const contents = map({
1763
+ $metadata: deserializeMetadata(output),
1764
+ });
1765
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1766
+ const doc = take(data, {
1767
+ ProcessedAutomationRules: _json,
1768
+ UnprocessedAutomationRules: _json,
1769
+ });
1770
+ Object.assign(contents, doc);
1771
+ return contents;
1772
+ };
1773
+ const de_BatchUpdateAutomationRulesCommandError = async (output, context) => {
1774
+ const parsedOutput = {
1775
+ ...output,
1776
+ body: await parseErrorBody(output.body, context),
1777
+ };
1778
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1779
+ switch (errorCode) {
1780
+ case "InternalException":
1781
+ case "com.amazonaws.securityhub#InternalException":
1782
+ throw await de_InternalExceptionRes(parsedOutput, context);
1783
+ case "InvalidAccessException":
1784
+ case "com.amazonaws.securityhub#InvalidAccessException":
1785
+ throw await de_InvalidAccessExceptionRes(parsedOutput, context);
1786
+ case "InvalidInputException":
1787
+ case "com.amazonaws.securityhub#InvalidInputException":
1788
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1789
+ case "LimitExceededException":
1790
+ case "com.amazonaws.securityhub#LimitExceededException":
1791
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1792
+ case "ResourceNotFoundException":
1793
+ case "com.amazonaws.securityhub#ResourceNotFoundException":
1794
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1795
+ default:
1796
+ const parsedBody = parsedOutput.body;
1797
+ return throwDefaultError({
1798
+ output,
1799
+ parsedBody,
1800
+ errorCode,
1801
+ });
1802
+ }
1803
+ };
1556
1804
  export const de_BatchUpdateFindingsCommand = async (output, context) => {
1557
1805
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1558
1806
  return de_BatchUpdateFindingsCommandError(output, context);
@@ -1683,6 +1931,51 @@ const de_CreateActionTargetCommandError = async (output, context) => {
1683
1931
  });
1684
1932
  }
1685
1933
  };
1934
+ export const de_CreateAutomationRuleCommand = async (output, context) => {
1935
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1936
+ return de_CreateAutomationRuleCommandError(output, context);
1937
+ }
1938
+ const contents = map({
1939
+ $metadata: deserializeMetadata(output),
1940
+ });
1941
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1942
+ const doc = take(data, {
1943
+ RuleArn: __expectString,
1944
+ });
1945
+ Object.assign(contents, doc);
1946
+ return contents;
1947
+ };
1948
+ const de_CreateAutomationRuleCommandError = async (output, context) => {
1949
+ const parsedOutput = {
1950
+ ...output,
1951
+ body: await parseErrorBody(output.body, context),
1952
+ };
1953
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1954
+ switch (errorCode) {
1955
+ case "AccessDeniedException":
1956
+ case "com.amazonaws.securityhub#AccessDeniedException":
1957
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1958
+ case "InternalException":
1959
+ case "com.amazonaws.securityhub#InternalException":
1960
+ throw await de_InternalExceptionRes(parsedOutput, context);
1961
+ case "InvalidAccessException":
1962
+ case "com.amazonaws.securityhub#InvalidAccessException":
1963
+ throw await de_InvalidAccessExceptionRes(parsedOutput, context);
1964
+ case "InvalidInputException":
1965
+ case "com.amazonaws.securityhub#InvalidInputException":
1966
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1967
+ case "LimitExceededException":
1968
+ case "com.amazonaws.securityhub#LimitExceededException":
1969
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1970
+ default:
1971
+ const parsedBody = parsedOutput.body;
1972
+ return throwDefaultError({
1973
+ output,
1974
+ parsedBody,
1975
+ errorCode,
1976
+ });
1977
+ }
1978
+ };
1686
1979
  export const de_CreateFindingAggregatorCommand = async (output, context) => {
1687
1980
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1688
1981
  return de_CreateFindingAggregatorCommandError(output, context);
@@ -3203,6 +3496,52 @@ const de_InviteMembersCommandError = async (output, context) => {
3203
3496
  });
3204
3497
  }
3205
3498
  };
3499
+ export const de_ListAutomationRulesCommand = async (output, context) => {
3500
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3501
+ return de_ListAutomationRulesCommandError(output, context);
3502
+ }
3503
+ const contents = map({
3504
+ $metadata: deserializeMetadata(output),
3505
+ });
3506
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3507
+ const doc = take(data, {
3508
+ AutomationRulesMetadata: (_) => de_AutomationRulesMetadataList(_, context),
3509
+ NextToken: __expectString,
3510
+ });
3511
+ Object.assign(contents, doc);
3512
+ return contents;
3513
+ };
3514
+ const de_ListAutomationRulesCommandError = async (output, context) => {
3515
+ const parsedOutput = {
3516
+ ...output,
3517
+ body: await parseErrorBody(output.body, context),
3518
+ };
3519
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3520
+ switch (errorCode) {
3521
+ case "AccessDeniedException":
3522
+ case "com.amazonaws.securityhub#AccessDeniedException":
3523
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3524
+ case "InternalException":
3525
+ case "com.amazonaws.securityhub#InternalException":
3526
+ throw await de_InternalExceptionRes(parsedOutput, context);
3527
+ case "InvalidAccessException":
3528
+ case "com.amazonaws.securityhub#InvalidAccessException":
3529
+ throw await de_InvalidAccessExceptionRes(parsedOutput, context);
3530
+ case "InvalidInputException":
3531
+ case "com.amazonaws.securityhub#InvalidInputException":
3532
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
3533
+ case "LimitExceededException":
3534
+ case "com.amazonaws.securityhub#LimitExceededException":
3535
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
3536
+ default:
3537
+ const parsedBody = parsedOutput.body;
3538
+ return throwDefaultError({
3539
+ output,
3540
+ parsedBody,
3541
+ errorCode,
3542
+ });
3543
+ }
3544
+ };
3206
3545
  export const de_ListEnabledProductsForImportCommand = async (output, context) => {
3207
3546
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3208
3547
  return de_ListEnabledProductsForImportCommandError(output, context);
@@ -4009,6 +4348,13 @@ const se_Action = (input, context) => {
4009
4348
  PortProbeAction: (_) => se_PortProbeAction(_, context),
4010
4349
  });
4011
4350
  };
4351
+ const se_ActionList = (input, context) => {
4352
+ return input
4353
+ .filter((e) => e != null)
4354
+ .map((entry) => {
4355
+ return se_AutomationRulesAction(entry, context);
4356
+ });
4357
+ };
4012
4358
  const se_ActionRemoteIpDetails = (input, context) => {
4013
4359
  return take(input, {
4014
4360
  City: _json,
@@ -4018,6 +4364,64 @@ const se_ActionRemoteIpDetails = (input, context) => {
4018
4364
  Organization: _json,
4019
4365
  });
4020
4366
  };
4367
+ const se_AutomationRulesAction = (input, context) => {
4368
+ return take(input, {
4369
+ FindingFieldsUpdate: (_) => se_AutomationRulesFindingFieldsUpdate(_, context),
4370
+ Type: [],
4371
+ });
4372
+ };
4373
+ const se_AutomationRulesFindingFieldsUpdate = (input, context) => {
4374
+ return take(input, {
4375
+ Confidence: [],
4376
+ Criticality: [],
4377
+ Note: _json,
4378
+ RelatedFindings: _json,
4379
+ Severity: (_) => se_SeverityUpdate(_, context),
4380
+ Types: _json,
4381
+ UserDefinedFields: _json,
4382
+ VerificationState: [],
4383
+ Workflow: _json,
4384
+ });
4385
+ };
4386
+ const se_AutomationRulesFindingFilters = (input, context) => {
4387
+ return take(input, {
4388
+ AwsAccountId: _json,
4389
+ CompanyName: _json,
4390
+ ComplianceAssociatedStandardsId: _json,
4391
+ ComplianceSecurityControlId: _json,
4392
+ ComplianceStatus: _json,
4393
+ Confidence: (_) => se_NumberFilterList(_, context),
4394
+ CreatedAt: _json,
4395
+ Criticality: (_) => se_NumberFilterList(_, context),
4396
+ Description: _json,
4397
+ FirstObservedAt: _json,
4398
+ GeneratorId: _json,
4399
+ Id: _json,
4400
+ LastObservedAt: _json,
4401
+ NoteText: _json,
4402
+ NoteUpdatedAt: _json,
4403
+ NoteUpdatedBy: _json,
4404
+ ProductArn: _json,
4405
+ ProductName: _json,
4406
+ RecordState: _json,
4407
+ RelatedFindingsId: _json,
4408
+ RelatedFindingsProductArn: _json,
4409
+ ResourceDetailsOther: _json,
4410
+ ResourceId: _json,
4411
+ ResourcePartition: _json,
4412
+ ResourceRegion: _json,
4413
+ ResourceTags: _json,
4414
+ ResourceType: _json,
4415
+ SeverityLabel: _json,
4416
+ SourceUrl: _json,
4417
+ Title: _json,
4418
+ Type: _json,
4419
+ UpdatedAt: _json,
4420
+ UserDefinedFields: _json,
4421
+ VerificationState: _json,
4422
+ WorkflowStatus: _json,
4423
+ });
4424
+ };
4021
4425
  const se_AwsApiCallAction = (input, context) => {
4022
4426
  return take(input, {
4023
4427
  AffectedResources: _json,
@@ -4640,6 +5044,25 @@ const se_SeverityUpdate = (input, context) => {
4640
5044
  Product: __serializeFloat,
4641
5045
  });
4642
5046
  };
5047
+ const se_UpdateAutomationRulesRequestItem = (input, context) => {
5048
+ return take(input, {
5049
+ Actions: (_) => se_ActionList(_, context),
5050
+ Criteria: (_) => se_AutomationRulesFindingFilters(_, context),
5051
+ Description: [],
5052
+ IsTerminal: [],
5053
+ RuleArn: [],
5054
+ RuleName: [],
5055
+ RuleOrder: [],
5056
+ RuleStatus: [],
5057
+ });
5058
+ };
5059
+ const se_UpdateAutomationRulesRequestItemsList = (input, context) => {
5060
+ return input
5061
+ .filter((e) => e != null)
5062
+ .map((entry) => {
5063
+ return se_UpdateAutomationRulesRequestItem(entry, context);
5064
+ });
5065
+ };
4643
5066
  const se_Vulnerability = (input, context) => {
4644
5067
  return take(input, {
4645
5068
  Cvss: (_) => se_CvssList(_, context),
@@ -4667,6 +5090,14 @@ const de_Action = (output, context) => {
4667
5090
  PortProbeAction: (_) => de_PortProbeAction(_, context),
4668
5091
  });
4669
5092
  };
5093
+ const de_ActionList = (output, context) => {
5094
+ const retVal = (output || [])
5095
+ .filter((e) => e != null)
5096
+ .map((entry) => {
5097
+ return de_AutomationRulesAction(entry, context);
5098
+ });
5099
+ return retVal;
5100
+ };
4670
5101
  const de_ActionRemoteIpDetails = (output, context) => {
4671
5102
  return take(output, {
4672
5103
  City: _json,
@@ -4676,6 +5107,108 @@ const de_ActionRemoteIpDetails = (output, context) => {
4676
5107
  Organization: _json,
4677
5108
  });
4678
5109
  };
5110
+ const de_AutomationRulesAction = (output, context) => {
5111
+ return take(output, {
5112
+ FindingFieldsUpdate: (_) => de_AutomationRulesFindingFieldsUpdate(_, context),
5113
+ Type: __expectString,
5114
+ });
5115
+ };
5116
+ const de_AutomationRulesConfig = (output, context) => {
5117
+ return take(output, {
5118
+ Actions: (_) => de_ActionList(_, context),
5119
+ CreatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5120
+ CreatedBy: __expectString,
5121
+ Criteria: (_) => de_AutomationRulesFindingFilters(_, context),
5122
+ Description: __expectString,
5123
+ IsTerminal: __expectBoolean,
5124
+ RuleArn: __expectString,
5125
+ RuleName: __expectString,
5126
+ RuleOrder: __expectInt32,
5127
+ RuleStatus: __expectString,
5128
+ UpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5129
+ });
5130
+ };
5131
+ const de_AutomationRulesConfigList = (output, context) => {
5132
+ const retVal = (output || [])
5133
+ .filter((e) => e != null)
5134
+ .map((entry) => {
5135
+ return de_AutomationRulesConfig(entry, context);
5136
+ });
5137
+ return retVal;
5138
+ };
5139
+ const de_AutomationRulesFindingFieldsUpdate = (output, context) => {
5140
+ return take(output, {
5141
+ Confidence: __expectInt32,
5142
+ Criticality: __expectInt32,
5143
+ Note: _json,
5144
+ RelatedFindings: _json,
5145
+ Severity: (_) => de_SeverityUpdate(_, context),
5146
+ Types: _json,
5147
+ UserDefinedFields: _json,
5148
+ VerificationState: __expectString,
5149
+ Workflow: _json,
5150
+ });
5151
+ };
5152
+ const de_AutomationRulesFindingFilters = (output, context) => {
5153
+ return take(output, {
5154
+ AwsAccountId: _json,
5155
+ CompanyName: _json,
5156
+ ComplianceAssociatedStandardsId: _json,
5157
+ ComplianceSecurityControlId: _json,
5158
+ ComplianceStatus: _json,
5159
+ Confidence: (_) => de_NumberFilterList(_, context),
5160
+ CreatedAt: _json,
5161
+ Criticality: (_) => de_NumberFilterList(_, context),
5162
+ Description: _json,
5163
+ FirstObservedAt: _json,
5164
+ GeneratorId: _json,
5165
+ Id: _json,
5166
+ LastObservedAt: _json,
5167
+ NoteText: _json,
5168
+ NoteUpdatedAt: _json,
5169
+ NoteUpdatedBy: _json,
5170
+ ProductArn: _json,
5171
+ ProductName: _json,
5172
+ RecordState: _json,
5173
+ RelatedFindingsId: _json,
5174
+ RelatedFindingsProductArn: _json,
5175
+ ResourceDetailsOther: _json,
5176
+ ResourceId: _json,
5177
+ ResourcePartition: _json,
5178
+ ResourceRegion: _json,
5179
+ ResourceTags: _json,
5180
+ ResourceType: _json,
5181
+ SeverityLabel: _json,
5182
+ SourceUrl: _json,
5183
+ Title: _json,
5184
+ Type: _json,
5185
+ UpdatedAt: _json,
5186
+ UserDefinedFields: _json,
5187
+ VerificationState: _json,
5188
+ WorkflowStatus: _json,
5189
+ });
5190
+ };
5191
+ const de_AutomationRulesMetadata = (output, context) => {
5192
+ return take(output, {
5193
+ CreatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5194
+ CreatedBy: __expectString,
5195
+ Description: __expectString,
5196
+ IsTerminal: __expectBoolean,
5197
+ RuleArn: __expectString,
5198
+ RuleName: __expectString,
5199
+ RuleOrder: __expectInt32,
5200
+ RuleStatus: __expectString,
5201
+ UpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5202
+ });
5203
+ };
5204
+ const de_AutomationRulesMetadataList = (output, context) => {
5205
+ const retVal = (output || [])
5206
+ .filter((e) => e != null)
5207
+ .map((entry) => {
5208
+ return de_AutomationRulesMetadata(entry, context);
5209
+ });
5210
+ return retVal;
5211
+ };
4679
5212
  const de_AwsApiCallAction = (output, context) => {
4680
5213
  return take(output, {
4681
5214
  AffectedResources: _json,
@@ -5366,6 +5899,13 @@ const de_Severity = (output, context) => {
5366
5899
  Product: __limitedParseDouble,
5367
5900
  });
5368
5901
  };
5902
+ const de_SeverityUpdate = (output, context) => {
5903
+ return take(output, {
5904
+ Label: __expectString,
5905
+ Normalized: __expectInt32,
5906
+ Product: __limitedParseDouble,
5907
+ });
5908
+ };
5369
5909
  const de_StandardsControl = (output, context) => {
5370
5910
  return take(output, {
5371
5911
  ControlId: __expectString,