@aws-sdk/client-guardduty 3.863.0 → 3.868.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 (69) hide show
  1. package/README.md +80 -0
  2. package/dist-cjs/index.js +532 -6
  3. package/dist-es/GuardDuty.js +20 -0
  4. package/dist-es/commands/CreateThreatEntitySetCommand.js +22 -0
  5. package/dist-es/commands/CreateTrustedEntitySetCommand.js +22 -0
  6. package/dist-es/commands/DeleteThreatEntitySetCommand.js +22 -0
  7. package/dist-es/commands/DeleteTrustedEntitySetCommand.js +22 -0
  8. package/dist-es/commands/GetThreatEntitySetCommand.js +22 -0
  9. package/dist-es/commands/GetTrustedEntitySetCommand.js +22 -0
  10. package/dist-es/commands/ListThreatEntitySetsCommand.js +22 -0
  11. package/dist-es/commands/ListTrustedEntitySetsCommand.js +22 -0
  12. package/dist-es/commands/UpdateThreatEntitySetCommand.js +22 -0
  13. package/dist-es/commands/UpdateTrustedEntitySetCommand.js +22 -0
  14. package/dist-es/commands/index.js +10 -0
  15. package/dist-es/models/models_0.js +16 -3
  16. package/dist-es/models/models_1.js +21 -0
  17. package/dist-es/pagination/ListThreatEntitySetsPaginator.js +4 -0
  18. package/dist-es/pagination/ListTrustedEntitySetsPaginator.js +4 -0
  19. package/dist-es/pagination/index.js +2 -0
  20. package/dist-es/protocols/Aws_restJson1.js +284 -0
  21. package/dist-types/GuardDuty.d.ts +70 -0
  22. package/dist-types/GuardDutyClient.d.ts +12 -2
  23. package/dist-types/commands/CreateThreatEntitySetCommand.d.ts +91 -0
  24. package/dist-types/commands/CreateTrustedEntitySetCommand.d.ts +92 -0
  25. package/dist-types/commands/DeleteThreatEntitySetCommand.d.ts +78 -0
  26. package/dist-types/commands/DeleteTrustedEntitySetCommand.d.ts +78 -0
  27. package/dist-types/commands/GetAdministratorAccountCommand.d.ts +1 -1
  28. package/dist-types/commands/GetCoverageStatisticsCommand.d.ts +1 -1
  29. package/dist-types/commands/GetDetectorCommand.d.ts +1 -1
  30. package/dist-types/commands/GetFilterCommand.d.ts +1 -1
  31. package/dist-types/commands/GetFindingsCommand.d.ts +1 -2
  32. package/dist-types/commands/GetThreatEntitySetCommand.d.ts +89 -0
  33. package/dist-types/commands/GetTrustedEntitySetCommand.d.ts +89 -0
  34. package/dist-types/commands/ListThreatEntitySetsCommand.d.ts +85 -0
  35. package/dist-types/commands/ListTrustedEntitySetsCommand.d.ts +85 -0
  36. package/dist-types/commands/UpdateThreatEntitySetCommand.d.ts +81 -0
  37. package/dist-types/commands/UpdateTrustedEntitySetCommand.d.ts +81 -0
  38. package/dist-types/commands/index.d.ts +10 -0
  39. package/dist-types/models/models_0.d.ts +200 -200
  40. package/dist-types/models/models_1.d.ts +548 -1
  41. package/dist-types/pagination/ListThreatEntitySetsPaginator.d.ts +7 -0
  42. package/dist-types/pagination/ListTrustedEntitySetsPaginator.d.ts +7 -0
  43. package/dist-types/pagination/index.d.ts +2 -0
  44. package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
  45. package/dist-types/ts3.4/GuardDuty.d.ts +170 -0
  46. package/dist-types/ts3.4/GuardDutyClient.d.ts +62 -2
  47. package/dist-types/ts3.4/commands/CreateThreatEntitySetCommand.d.ts +51 -0
  48. package/dist-types/ts3.4/commands/CreateTrustedEntitySetCommand.d.ts +51 -0
  49. package/dist-types/ts3.4/commands/DeleteThreatEntitySetCommand.d.ts +51 -0
  50. package/dist-types/ts3.4/commands/DeleteTrustedEntitySetCommand.d.ts +51 -0
  51. package/dist-types/ts3.4/commands/GetAdministratorAccountCommand.d.ts +1 -1
  52. package/dist-types/ts3.4/commands/GetCoverageStatisticsCommand.d.ts +1 -1
  53. package/dist-types/ts3.4/commands/GetDetectorCommand.d.ts +1 -1
  54. package/dist-types/ts3.4/commands/GetFilterCommand.d.ts +1 -1
  55. package/dist-types/ts3.4/commands/GetFindingsCommand.d.ts +1 -2
  56. package/dist-types/ts3.4/commands/GetThreatEntitySetCommand.d.ts +51 -0
  57. package/dist-types/ts3.4/commands/GetTrustedEntitySetCommand.d.ts +51 -0
  58. package/dist-types/ts3.4/commands/ListThreatEntitySetsCommand.d.ts +51 -0
  59. package/dist-types/ts3.4/commands/ListTrustedEntitySetsCommand.d.ts +51 -0
  60. package/dist-types/ts3.4/commands/UpdateThreatEntitySetCommand.d.ts +51 -0
  61. package/dist-types/ts3.4/commands/UpdateTrustedEntitySetCommand.d.ts +51 -0
  62. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  63. package/dist-types/ts3.4/models/models_0.d.ts +56 -49
  64. package/dist-types/ts3.4/models/models_1.d.ts +144 -1
  65. package/dist-types/ts3.4/pagination/ListThreatEntitySetsPaginator.d.ts +11 -0
  66. package/dist-types/ts3.4/pagination/ListTrustedEntitySetsPaginator.d.ts +11 -0
  67. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  68. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +120 -0
  69. package/package.json +5 -5
@@ -167,6 +167,26 @@ export const se_CreateSampleFindingsCommand = async (input, context) => {
167
167
  b.m("POST").h(headers).b(body);
168
168
  return b.build();
169
169
  };
170
+ export const se_CreateThreatEntitySetCommand = async (input, context) => {
171
+ const b = rb(input, context);
172
+ const headers = {
173
+ "content-type": "application/json",
174
+ };
175
+ b.bp("/detector/{DetectorId}/threatentityset");
176
+ b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
177
+ let body;
178
+ body = JSON.stringify(take(input, {
179
+ activate: [, , `Activate`],
180
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken(), `ClientToken`],
181
+ expectedBucketOwner: [, , `ExpectedBucketOwner`],
182
+ format: [, , `Format`],
183
+ location: [, , `Location`],
184
+ name: [, , `Name`],
185
+ tags: [, (_) => _json(_), `Tags`],
186
+ }));
187
+ b.m("POST").h(headers).b(body);
188
+ return b.build();
189
+ };
170
190
  export const se_CreateThreatIntelSetCommand = async (input, context) => {
171
191
  const b = rb(input, context);
172
192
  const headers = {
@@ -187,6 +207,26 @@ export const se_CreateThreatIntelSetCommand = async (input, context) => {
187
207
  b.m("POST").h(headers).b(body);
188
208
  return b.build();
189
209
  };
210
+ export const se_CreateTrustedEntitySetCommand = async (input, context) => {
211
+ const b = rb(input, context);
212
+ const headers = {
213
+ "content-type": "application/json",
214
+ };
215
+ b.bp("/detector/{DetectorId}/trustedentityset");
216
+ b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
217
+ let body;
218
+ body = JSON.stringify(take(input, {
219
+ activate: [, , `Activate`],
220
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken(), `ClientToken`],
221
+ expectedBucketOwner: [, , `ExpectedBucketOwner`],
222
+ format: [, , `Format`],
223
+ location: [, , `Location`],
224
+ name: [, , `Name`],
225
+ tags: [, (_) => _json(_), `Tags`],
226
+ }));
227
+ b.m("POST").h(headers).b(body);
228
+ return b.build();
229
+ };
190
230
  export const se_DeclineInvitationsCommand = async (input, context) => {
191
231
  const b = rb(input, context);
192
232
  const headers = {
@@ -275,6 +315,16 @@ export const se_DeletePublishingDestinationCommand = async (input, context) => {
275
315
  b.m("DELETE").h(headers).b(body);
276
316
  return b.build();
277
317
  };
318
+ export const se_DeleteThreatEntitySetCommand = async (input, context) => {
319
+ const b = rb(input, context);
320
+ const headers = {};
321
+ b.bp("/detector/{DetectorId}/threatentityset/{ThreatEntitySetId}");
322
+ b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
323
+ b.p("ThreatEntitySetId", () => input.ThreatEntitySetId, "{ThreatEntitySetId}", false);
324
+ let body;
325
+ b.m("DELETE").h(headers).b(body);
326
+ return b.build();
327
+ };
278
328
  export const se_DeleteThreatIntelSetCommand = async (input, context) => {
279
329
  const b = rb(input, context);
280
330
  const headers = {};
@@ -285,6 +335,16 @@ export const se_DeleteThreatIntelSetCommand = async (input, context) => {
285
335
  b.m("DELETE").h(headers).b(body);
286
336
  return b.build();
287
337
  };
338
+ export const se_DeleteTrustedEntitySetCommand = async (input, context) => {
339
+ const b = rb(input, context);
340
+ const headers = {};
341
+ b.bp("/detector/{DetectorId}/trustedentityset/{TrustedEntitySetId}");
342
+ b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
343
+ b.p("TrustedEntitySetId", () => input.TrustedEntitySetId, "{TrustedEntitySetId}", false);
344
+ let body;
345
+ b.m("DELETE").h(headers).b(body);
346
+ return b.build();
347
+ };
288
348
  export const se_DescribeMalwareScansCommand = async (input, context) => {
289
349
  const b = rb(input, context);
290
350
  const headers = {
@@ -554,6 +614,16 @@ export const se_GetRemainingFreeTrialDaysCommand = async (input, context) => {
554
614
  b.m("POST").h(headers).b(body);
555
615
  return b.build();
556
616
  };
617
+ export const se_GetThreatEntitySetCommand = async (input, context) => {
618
+ const b = rb(input, context);
619
+ const headers = {};
620
+ b.bp("/detector/{DetectorId}/threatentityset/{ThreatEntitySetId}");
621
+ b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
622
+ b.p("ThreatEntitySetId", () => input.ThreatEntitySetId, "{ThreatEntitySetId}", false);
623
+ let body;
624
+ b.m("GET").h(headers).b(body);
625
+ return b.build();
626
+ };
557
627
  export const se_GetThreatIntelSetCommand = async (input, context) => {
558
628
  const b = rb(input, context);
559
629
  const headers = {};
@@ -564,6 +634,16 @@ export const se_GetThreatIntelSetCommand = async (input, context) => {
564
634
  b.m("GET").h(headers).b(body);
565
635
  return b.build();
566
636
  };
637
+ export const se_GetTrustedEntitySetCommand = async (input, context) => {
638
+ const b = rb(input, context);
639
+ const headers = {};
640
+ b.bp("/detector/{DetectorId}/trustedentityset/{TrustedEntitySetId}");
641
+ b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
642
+ b.p("TrustedEntitySetId", () => input.TrustedEntitySetId, "{TrustedEntitySetId}", false);
643
+ let body;
644
+ b.m("GET").h(headers).b(body);
645
+ return b.build();
646
+ };
567
647
  export const se_GetUsageStatisticsCommand = async (input, context) => {
568
648
  const b = rb(input, context);
569
649
  const headers = {
@@ -741,6 +821,19 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
741
821
  b.m("GET").h(headers).b(body);
742
822
  return b.build();
743
823
  };
824
+ export const se_ListThreatEntitySetsCommand = async (input, context) => {
825
+ const b = rb(input, context);
826
+ const headers = {};
827
+ b.bp("/detector/{DetectorId}/threatentityset");
828
+ b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
829
+ const query = map({
830
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
831
+ [_nT]: [, input[_NT]],
832
+ });
833
+ let body;
834
+ b.m("GET").h(headers).q(query).b(body);
835
+ return b.build();
836
+ };
744
837
  export const se_ListThreatIntelSetsCommand = async (input, context) => {
745
838
  const b = rb(input, context);
746
839
  const headers = {};
@@ -754,6 +847,19 @@ export const se_ListThreatIntelSetsCommand = async (input, context) => {
754
847
  b.m("GET").h(headers).q(query).b(body);
755
848
  return b.build();
756
849
  };
850
+ export const se_ListTrustedEntitySetsCommand = async (input, context) => {
851
+ const b = rb(input, context);
852
+ const headers = {};
853
+ b.bp("/detector/{DetectorId}/trustedentityset");
854
+ b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
855
+ const query = map({
856
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
857
+ [_nT]: [, input[_NT]],
858
+ });
859
+ let body;
860
+ b.m("GET").h(headers).q(query).b(body);
861
+ return b.build();
862
+ };
757
863
  export const se_StartMalwareScanCommand = async (input, context) => {
758
864
  const b = rb(input, context);
759
865
  const headers = {
@@ -983,6 +1089,24 @@ export const se_UpdatePublishingDestinationCommand = async (input, context) => {
983
1089
  b.m("POST").h(headers).b(body);
984
1090
  return b.build();
985
1091
  };
1092
+ export const se_UpdateThreatEntitySetCommand = async (input, context) => {
1093
+ const b = rb(input, context);
1094
+ const headers = {
1095
+ "content-type": "application/json",
1096
+ };
1097
+ b.bp("/detector/{DetectorId}/threatentityset/{ThreatEntitySetId}");
1098
+ b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
1099
+ b.p("ThreatEntitySetId", () => input.ThreatEntitySetId, "{ThreatEntitySetId}", false);
1100
+ let body;
1101
+ body = JSON.stringify(take(input, {
1102
+ activate: [, , `Activate`],
1103
+ expectedBucketOwner: [, , `ExpectedBucketOwner`],
1104
+ location: [, , `Location`],
1105
+ name: [, , `Name`],
1106
+ }));
1107
+ b.m("POST").h(headers).b(body);
1108
+ return b.build();
1109
+ };
986
1110
  export const se_UpdateThreatIntelSetCommand = async (input, context) => {
987
1111
  const b = rb(input, context);
988
1112
  const headers = {
@@ -1001,6 +1125,24 @@ export const se_UpdateThreatIntelSetCommand = async (input, context) => {
1001
1125
  b.m("POST").h(headers).b(body);
1002
1126
  return b.build();
1003
1127
  };
1128
+ export const se_UpdateTrustedEntitySetCommand = async (input, context) => {
1129
+ const b = rb(input, context);
1130
+ const headers = {
1131
+ "content-type": "application/json",
1132
+ };
1133
+ b.bp("/detector/{DetectorId}/trustedentityset/{TrustedEntitySetId}");
1134
+ b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
1135
+ b.p("TrustedEntitySetId", () => input.TrustedEntitySetId, "{TrustedEntitySetId}", false);
1136
+ let body;
1137
+ body = JSON.stringify(take(input, {
1138
+ activate: [, , `Activate`],
1139
+ expectedBucketOwner: [, , `ExpectedBucketOwner`],
1140
+ location: [, , `Location`],
1141
+ name: [, , `Name`],
1142
+ }));
1143
+ b.m("POST").h(headers).b(body);
1144
+ return b.build();
1145
+ };
1004
1146
  export const de_AcceptAdministratorInvitationCommand = async (output, context) => {
1005
1147
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1006
1148
  return de_CommandError(output, context);
@@ -1126,6 +1268,20 @@ export const de_CreateSampleFindingsCommand = async (output, context) => {
1126
1268
  await collectBody(output.body, context);
1127
1269
  return contents;
1128
1270
  };
1271
+ export const de_CreateThreatEntitySetCommand = async (output, context) => {
1272
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1273
+ return de_CommandError(output, context);
1274
+ }
1275
+ const contents = map({
1276
+ $metadata: deserializeMetadata(output),
1277
+ });
1278
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1279
+ const doc = take(data, {
1280
+ ThreatEntitySetId: [, __expectString, `threatEntitySetId`],
1281
+ });
1282
+ Object.assign(contents, doc);
1283
+ return contents;
1284
+ };
1129
1285
  export const de_CreateThreatIntelSetCommand = async (output, context) => {
1130
1286
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1131
1287
  return de_CommandError(output, context);
@@ -1140,6 +1296,20 @@ export const de_CreateThreatIntelSetCommand = async (output, context) => {
1140
1296
  Object.assign(contents, doc);
1141
1297
  return contents;
1142
1298
  };
1299
+ export const de_CreateTrustedEntitySetCommand = async (output, context) => {
1300
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1301
+ return de_CommandError(output, context);
1302
+ }
1303
+ const contents = map({
1304
+ $metadata: deserializeMetadata(output),
1305
+ });
1306
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1307
+ const doc = take(data, {
1308
+ TrustedEntitySetId: [, __expectString, `trustedEntitySetId`],
1309
+ });
1310
+ Object.assign(contents, doc);
1311
+ return contents;
1312
+ };
1143
1313
  export const de_DeclineInvitationsCommand = async (output, context) => {
1144
1314
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1145
1315
  return de_CommandError(output, context);
@@ -1232,6 +1402,16 @@ export const de_DeletePublishingDestinationCommand = async (output, context) =>
1232
1402
  await collectBody(output.body, context);
1233
1403
  return contents;
1234
1404
  };
1405
+ export const de_DeleteThreatEntitySetCommand = async (output, context) => {
1406
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1407
+ return de_CommandError(output, context);
1408
+ }
1409
+ const contents = map({
1410
+ $metadata: deserializeMetadata(output),
1411
+ });
1412
+ await collectBody(output.body, context);
1413
+ return contents;
1414
+ };
1235
1415
  export const de_DeleteThreatIntelSetCommand = async (output, context) => {
1236
1416
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1237
1417
  return de_CommandError(output, context);
@@ -1242,6 +1422,16 @@ export const de_DeleteThreatIntelSetCommand = async (output, context) => {
1242
1422
  await collectBody(output.body, context);
1243
1423
  return contents;
1244
1424
  };
1425
+ export const de_DeleteTrustedEntitySetCommand = async (output, context) => {
1426
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1427
+ return de_CommandError(output, context);
1428
+ }
1429
+ const contents = map({
1430
+ $metadata: deserializeMetadata(output),
1431
+ });
1432
+ await collectBody(output.body, context);
1433
+ return contents;
1434
+ };
1245
1435
  export const de_DescribeMalwareScansCommand = async (output, context) => {
1246
1436
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1247
1437
  return de_CommandError(output, context);
@@ -1587,6 +1777,28 @@ export const de_GetRemainingFreeTrialDaysCommand = async (output, context) => {
1587
1777
  Object.assign(contents, doc);
1588
1778
  return contents;
1589
1779
  };
1780
+ export const de_GetThreatEntitySetCommand = async (output, context) => {
1781
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1782
+ return de_CommandError(output, context);
1783
+ }
1784
+ const contents = map({
1785
+ $metadata: deserializeMetadata(output),
1786
+ });
1787
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1788
+ const doc = take(data, {
1789
+ CreatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `createdAt`],
1790
+ ErrorDetails: [, __expectString, `errorDetails`],
1791
+ ExpectedBucketOwner: [, __expectString, `expectedBucketOwner`],
1792
+ Format: [, __expectString, `format`],
1793
+ Location: [, __expectString, `location`],
1794
+ Name: [, __expectString, `name`],
1795
+ Status: [, __expectString, `status`],
1796
+ Tags: [, _json, `tags`],
1797
+ UpdatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `updatedAt`],
1798
+ });
1799
+ Object.assign(contents, doc);
1800
+ return contents;
1801
+ };
1590
1802
  export const de_GetThreatIntelSetCommand = async (output, context) => {
1591
1803
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1592
1804
  return de_CommandError(output, context);
@@ -1606,6 +1818,28 @@ export const de_GetThreatIntelSetCommand = async (output, context) => {
1606
1818
  Object.assign(contents, doc);
1607
1819
  return contents;
1608
1820
  };
1821
+ export const de_GetTrustedEntitySetCommand = async (output, context) => {
1822
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1823
+ return de_CommandError(output, context);
1824
+ }
1825
+ const contents = map({
1826
+ $metadata: deserializeMetadata(output),
1827
+ });
1828
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1829
+ const doc = take(data, {
1830
+ CreatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `createdAt`],
1831
+ ErrorDetails: [, __expectString, `errorDetails`],
1832
+ ExpectedBucketOwner: [, __expectString, `expectedBucketOwner`],
1833
+ Format: [, __expectString, `format`],
1834
+ Location: [, __expectString, `location`],
1835
+ Name: [, __expectString, `name`],
1836
+ Status: [, __expectString, `status`],
1837
+ Tags: [, _json, `tags`],
1838
+ UpdatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `updatedAt`],
1839
+ });
1840
+ Object.assign(contents, doc);
1841
+ return contents;
1842
+ };
1609
1843
  export const de_GetUsageStatisticsCommand = async (output, context) => {
1610
1844
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1611
1845
  return de_CommandError(output, context);
@@ -1799,6 +2033,21 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
1799
2033
  Object.assign(contents, doc);
1800
2034
  return contents;
1801
2035
  };
2036
+ export const de_ListThreatEntitySetsCommand = async (output, context) => {
2037
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2038
+ return de_CommandError(output, context);
2039
+ }
2040
+ const contents = map({
2041
+ $metadata: deserializeMetadata(output),
2042
+ });
2043
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2044
+ const doc = take(data, {
2045
+ NextToken: [, __expectString, `nextToken`],
2046
+ ThreatEntitySetIds: [, _json, `threatEntitySetIds`],
2047
+ });
2048
+ Object.assign(contents, doc);
2049
+ return contents;
2050
+ };
1802
2051
  export const de_ListThreatIntelSetsCommand = async (output, context) => {
1803
2052
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1804
2053
  return de_CommandError(output, context);
@@ -1814,6 +2063,21 @@ export const de_ListThreatIntelSetsCommand = async (output, context) => {
1814
2063
  Object.assign(contents, doc);
1815
2064
  return contents;
1816
2065
  };
2066
+ export const de_ListTrustedEntitySetsCommand = async (output, context) => {
2067
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2068
+ return de_CommandError(output, context);
2069
+ }
2070
+ const contents = map({
2071
+ $metadata: deserializeMetadata(output),
2072
+ });
2073
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2074
+ const doc = take(data, {
2075
+ NextToken: [, __expectString, `nextToken`],
2076
+ TrustedEntitySetIds: [, _json, `trustedEntitySetIds`],
2077
+ });
2078
+ Object.assign(contents, doc);
2079
+ return contents;
2080
+ };
1817
2081
  export const de_StartMalwareScanCommand = async (output, context) => {
1818
2082
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1819
2083
  return de_CommandError(output, context);
@@ -1984,6 +2248,16 @@ export const de_UpdatePublishingDestinationCommand = async (output, context) =>
1984
2248
  await collectBody(output.body, context);
1985
2249
  return contents;
1986
2250
  };
2251
+ export const de_UpdateThreatEntitySetCommand = async (output, context) => {
2252
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2253
+ return de_CommandError(output, context);
2254
+ }
2255
+ const contents = map({
2256
+ $metadata: deserializeMetadata(output),
2257
+ });
2258
+ await collectBody(output.body, context);
2259
+ return contents;
2260
+ };
1987
2261
  export const de_UpdateThreatIntelSetCommand = async (output, context) => {
1988
2262
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1989
2263
  return de_CommandError(output, context);
@@ -1994,6 +2268,16 @@ export const de_UpdateThreatIntelSetCommand = async (output, context) => {
1994
2268
  await collectBody(output.body, context);
1995
2269
  return contents;
1996
2270
  };
2271
+ export const de_UpdateTrustedEntitySetCommand = async (output, context) => {
2272
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2273
+ return de_CommandError(output, context);
2274
+ }
2275
+ const contents = map({
2276
+ $metadata: deserializeMetadata(output),
2277
+ });
2278
+ await collectBody(output.body, context);
2279
+ return contents;
2280
+ };
1997
2281
  const de_CommandError = async (output, context) => {
1998
2282
  const parsedOutput = {
1999
2283
  ...output,
@@ -9,7 +9,9 @@ import { CreateMalwareProtectionPlanCommandInput, CreateMalwareProtectionPlanCom
9
9
  import { CreateMembersCommandInput, CreateMembersCommandOutput } from "./commands/CreateMembersCommand";
10
10
  import { CreatePublishingDestinationCommandInput, CreatePublishingDestinationCommandOutput } from "./commands/CreatePublishingDestinationCommand";
11
11
  import { CreateSampleFindingsCommandInput, CreateSampleFindingsCommandOutput } from "./commands/CreateSampleFindingsCommand";
12
+ import { CreateThreatEntitySetCommandInput, CreateThreatEntitySetCommandOutput } from "./commands/CreateThreatEntitySetCommand";
12
13
  import { CreateThreatIntelSetCommandInput, CreateThreatIntelSetCommandOutput } from "./commands/CreateThreatIntelSetCommand";
14
+ import { CreateTrustedEntitySetCommandInput, CreateTrustedEntitySetCommandOutput } from "./commands/CreateTrustedEntitySetCommand";
13
15
  import { DeclineInvitationsCommandInput, DeclineInvitationsCommandOutput } from "./commands/DeclineInvitationsCommand";
14
16
  import { DeleteDetectorCommandInput, DeleteDetectorCommandOutput } from "./commands/DeleteDetectorCommand";
15
17
  import { DeleteFilterCommandInput, DeleteFilterCommandOutput } from "./commands/DeleteFilterCommand";
@@ -18,7 +20,9 @@ import { DeleteIPSetCommandInput, DeleteIPSetCommandOutput } from "./commands/De
18
20
  import { DeleteMalwareProtectionPlanCommandInput, DeleteMalwareProtectionPlanCommandOutput } from "./commands/DeleteMalwareProtectionPlanCommand";
19
21
  import { DeleteMembersCommandInput, DeleteMembersCommandOutput } from "./commands/DeleteMembersCommand";
20
22
  import { DeletePublishingDestinationCommandInput, DeletePublishingDestinationCommandOutput } from "./commands/DeletePublishingDestinationCommand";
23
+ import { DeleteThreatEntitySetCommandInput, DeleteThreatEntitySetCommandOutput } from "./commands/DeleteThreatEntitySetCommand";
21
24
  import { DeleteThreatIntelSetCommandInput, DeleteThreatIntelSetCommandOutput } from "./commands/DeleteThreatIntelSetCommand";
25
+ import { DeleteTrustedEntitySetCommandInput, DeleteTrustedEntitySetCommandOutput } from "./commands/DeleteTrustedEntitySetCommand";
22
26
  import { DescribeMalwareScansCommandInput, DescribeMalwareScansCommandOutput } from "./commands/DescribeMalwareScansCommand";
23
27
  import { DescribeOrganizationConfigurationCommandInput, DescribeOrganizationConfigurationCommandOutput } from "./commands/DescribeOrganizationConfigurationCommand";
24
28
  import { DescribePublishingDestinationCommandInput, DescribePublishingDestinationCommandOutput } from "./commands/DescribePublishingDestinationCommand";
@@ -42,7 +46,9 @@ import { GetMemberDetectorsCommandInput, GetMemberDetectorsCommandOutput } from
42
46
  import { GetMembersCommandInput, GetMembersCommandOutput } from "./commands/GetMembersCommand";
43
47
  import { GetOrganizationStatisticsCommandInput, GetOrganizationStatisticsCommandOutput } from "./commands/GetOrganizationStatisticsCommand";
44
48
  import { GetRemainingFreeTrialDaysCommandInput, GetRemainingFreeTrialDaysCommandOutput } from "./commands/GetRemainingFreeTrialDaysCommand";
49
+ import { GetThreatEntitySetCommandInput, GetThreatEntitySetCommandOutput } from "./commands/GetThreatEntitySetCommand";
45
50
  import { GetThreatIntelSetCommandInput, GetThreatIntelSetCommandOutput } from "./commands/GetThreatIntelSetCommand";
51
+ import { GetTrustedEntitySetCommandInput, GetTrustedEntitySetCommandOutput } from "./commands/GetTrustedEntitySetCommand";
46
52
  import { GetUsageStatisticsCommandInput, GetUsageStatisticsCommandOutput } from "./commands/GetUsageStatisticsCommand";
47
53
  import { InviteMembersCommandInput, InviteMembersCommandOutput } from "./commands/InviteMembersCommand";
48
54
  import { ListCoverageCommandInput, ListCoverageCommandOutput } from "./commands/ListCoverageCommand";
@@ -56,7 +62,9 @@ import { ListMembersCommandInput, ListMembersCommandOutput } from "./commands/Li
56
62
  import { ListOrganizationAdminAccountsCommandInput, ListOrganizationAdminAccountsCommandOutput } from "./commands/ListOrganizationAdminAccountsCommand";
57
63
  import { ListPublishingDestinationsCommandInput, ListPublishingDestinationsCommandOutput } from "./commands/ListPublishingDestinationsCommand";
58
64
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
65
+ import { ListThreatEntitySetsCommandInput, ListThreatEntitySetsCommandOutput } from "./commands/ListThreatEntitySetsCommand";
59
66
  import { ListThreatIntelSetsCommandInput, ListThreatIntelSetsCommandOutput } from "./commands/ListThreatIntelSetsCommand";
67
+ import { ListTrustedEntitySetsCommandInput, ListTrustedEntitySetsCommandOutput } from "./commands/ListTrustedEntitySetsCommand";
60
68
  import { StartMalwareScanCommandInput, StartMalwareScanCommandOutput } from "./commands/StartMalwareScanCommand";
61
69
  import { StartMonitoringMembersCommandInput, StartMonitoringMembersCommandOutput } from "./commands/StartMonitoringMembersCommand";
62
70
  import { StopMonitoringMembersCommandInput, StopMonitoringMembersCommandOutput } from "./commands/StopMonitoringMembersCommand";
@@ -72,7 +80,9 @@ import { UpdateMalwareScanSettingsCommandInput, UpdateMalwareScanSettingsCommand
72
80
  import { UpdateMemberDetectorsCommandInput, UpdateMemberDetectorsCommandOutput } from "./commands/UpdateMemberDetectorsCommand";
73
81
  import { UpdateOrganizationConfigurationCommandInput, UpdateOrganizationConfigurationCommandOutput } from "./commands/UpdateOrganizationConfigurationCommand";
74
82
  import { UpdatePublishingDestinationCommandInput, UpdatePublishingDestinationCommandOutput } from "./commands/UpdatePublishingDestinationCommand";
83
+ import { UpdateThreatEntitySetCommandInput, UpdateThreatEntitySetCommandOutput } from "./commands/UpdateThreatEntitySetCommand";
75
84
  import { UpdateThreatIntelSetCommandInput, UpdateThreatIntelSetCommandOutput } from "./commands/UpdateThreatIntelSetCommand";
85
+ import { UpdateTrustedEntitySetCommandInput, UpdateTrustedEntitySetCommandOutput } from "./commands/UpdateTrustedEntitySetCommand";
76
86
  import { GuardDutyClient } from "./GuardDutyClient";
77
87
  export interface GuardDuty {
78
88
  /**
@@ -135,12 +145,24 @@ export interface GuardDuty {
135
145
  createSampleFindings(args: CreateSampleFindingsCommandInput, options?: __HttpHandlerOptions): Promise<CreateSampleFindingsCommandOutput>;
136
146
  createSampleFindings(args: CreateSampleFindingsCommandInput, cb: (err: any, data?: CreateSampleFindingsCommandOutput) => void): void;
137
147
  createSampleFindings(args: CreateSampleFindingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSampleFindingsCommandOutput) => void): void;
148
+ /**
149
+ * @see {@link CreateThreatEntitySetCommand}
150
+ */
151
+ createThreatEntitySet(args: CreateThreatEntitySetCommandInput, options?: __HttpHandlerOptions): Promise<CreateThreatEntitySetCommandOutput>;
152
+ createThreatEntitySet(args: CreateThreatEntitySetCommandInput, cb: (err: any, data?: CreateThreatEntitySetCommandOutput) => void): void;
153
+ createThreatEntitySet(args: CreateThreatEntitySetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateThreatEntitySetCommandOutput) => void): void;
138
154
  /**
139
155
  * @see {@link CreateThreatIntelSetCommand}
140
156
  */
141
157
  createThreatIntelSet(args: CreateThreatIntelSetCommandInput, options?: __HttpHandlerOptions): Promise<CreateThreatIntelSetCommandOutput>;
142
158
  createThreatIntelSet(args: CreateThreatIntelSetCommandInput, cb: (err: any, data?: CreateThreatIntelSetCommandOutput) => void): void;
143
159
  createThreatIntelSet(args: CreateThreatIntelSetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateThreatIntelSetCommandOutput) => void): void;
160
+ /**
161
+ * @see {@link CreateTrustedEntitySetCommand}
162
+ */
163
+ createTrustedEntitySet(args: CreateTrustedEntitySetCommandInput, options?: __HttpHandlerOptions): Promise<CreateTrustedEntitySetCommandOutput>;
164
+ createTrustedEntitySet(args: CreateTrustedEntitySetCommandInput, cb: (err: any, data?: CreateTrustedEntitySetCommandOutput) => void): void;
165
+ createTrustedEntitySet(args: CreateTrustedEntitySetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTrustedEntitySetCommandOutput) => void): void;
144
166
  /**
145
167
  * @see {@link DeclineInvitationsCommand}
146
168
  */
@@ -189,12 +211,24 @@ export interface GuardDuty {
189
211
  deletePublishingDestination(args: DeletePublishingDestinationCommandInput, options?: __HttpHandlerOptions): Promise<DeletePublishingDestinationCommandOutput>;
190
212
  deletePublishingDestination(args: DeletePublishingDestinationCommandInput, cb: (err: any, data?: DeletePublishingDestinationCommandOutput) => void): void;
191
213
  deletePublishingDestination(args: DeletePublishingDestinationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePublishingDestinationCommandOutput) => void): void;
214
+ /**
215
+ * @see {@link DeleteThreatEntitySetCommand}
216
+ */
217
+ deleteThreatEntitySet(args: DeleteThreatEntitySetCommandInput, options?: __HttpHandlerOptions): Promise<DeleteThreatEntitySetCommandOutput>;
218
+ deleteThreatEntitySet(args: DeleteThreatEntitySetCommandInput, cb: (err: any, data?: DeleteThreatEntitySetCommandOutput) => void): void;
219
+ deleteThreatEntitySet(args: DeleteThreatEntitySetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteThreatEntitySetCommandOutput) => void): void;
192
220
  /**
193
221
  * @see {@link DeleteThreatIntelSetCommand}
194
222
  */
195
223
  deleteThreatIntelSet(args: DeleteThreatIntelSetCommandInput, options?: __HttpHandlerOptions): Promise<DeleteThreatIntelSetCommandOutput>;
196
224
  deleteThreatIntelSet(args: DeleteThreatIntelSetCommandInput, cb: (err: any, data?: DeleteThreatIntelSetCommandOutput) => void): void;
197
225
  deleteThreatIntelSet(args: DeleteThreatIntelSetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteThreatIntelSetCommandOutput) => void): void;
226
+ /**
227
+ * @see {@link DeleteTrustedEntitySetCommand}
228
+ */
229
+ deleteTrustedEntitySet(args: DeleteTrustedEntitySetCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTrustedEntitySetCommandOutput>;
230
+ deleteTrustedEntitySet(args: DeleteTrustedEntitySetCommandInput, cb: (err: any, data?: DeleteTrustedEntitySetCommandOutput) => void): void;
231
+ deleteTrustedEntitySet(args: DeleteTrustedEntitySetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTrustedEntitySetCommandOutput) => void): void;
198
232
  /**
199
233
  * @see {@link DescribeMalwareScansCommand}
200
234
  */
@@ -335,12 +369,24 @@ export interface GuardDuty {
335
369
  getRemainingFreeTrialDays(args: GetRemainingFreeTrialDaysCommandInput, options?: __HttpHandlerOptions): Promise<GetRemainingFreeTrialDaysCommandOutput>;
336
370
  getRemainingFreeTrialDays(args: GetRemainingFreeTrialDaysCommandInput, cb: (err: any, data?: GetRemainingFreeTrialDaysCommandOutput) => void): void;
337
371
  getRemainingFreeTrialDays(args: GetRemainingFreeTrialDaysCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRemainingFreeTrialDaysCommandOutput) => void): void;
372
+ /**
373
+ * @see {@link GetThreatEntitySetCommand}
374
+ */
375
+ getThreatEntitySet(args: GetThreatEntitySetCommandInput, options?: __HttpHandlerOptions): Promise<GetThreatEntitySetCommandOutput>;
376
+ getThreatEntitySet(args: GetThreatEntitySetCommandInput, cb: (err: any, data?: GetThreatEntitySetCommandOutput) => void): void;
377
+ getThreatEntitySet(args: GetThreatEntitySetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetThreatEntitySetCommandOutput) => void): void;
338
378
  /**
339
379
  * @see {@link GetThreatIntelSetCommand}
340
380
  */
341
381
  getThreatIntelSet(args: GetThreatIntelSetCommandInput, options?: __HttpHandlerOptions): Promise<GetThreatIntelSetCommandOutput>;
342
382
  getThreatIntelSet(args: GetThreatIntelSetCommandInput, cb: (err: any, data?: GetThreatIntelSetCommandOutput) => void): void;
343
383
  getThreatIntelSet(args: GetThreatIntelSetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetThreatIntelSetCommandOutput) => void): void;
384
+ /**
385
+ * @see {@link GetTrustedEntitySetCommand}
386
+ */
387
+ getTrustedEntitySet(args: GetTrustedEntitySetCommandInput, options?: __HttpHandlerOptions): Promise<GetTrustedEntitySetCommandOutput>;
388
+ getTrustedEntitySet(args: GetTrustedEntitySetCommandInput, cb: (err: any, data?: GetTrustedEntitySetCommandOutput) => void): void;
389
+ getTrustedEntitySet(args: GetTrustedEntitySetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTrustedEntitySetCommandOutput) => void): void;
344
390
  /**
345
391
  * @see {@link GetUsageStatisticsCommand}
346
392
  */
@@ -423,12 +469,24 @@ export interface GuardDuty {
423
469
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
424
470
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
425
471
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
472
+ /**
473
+ * @see {@link ListThreatEntitySetsCommand}
474
+ */
475
+ listThreatEntitySets(args: ListThreatEntitySetsCommandInput, options?: __HttpHandlerOptions): Promise<ListThreatEntitySetsCommandOutput>;
476
+ listThreatEntitySets(args: ListThreatEntitySetsCommandInput, cb: (err: any, data?: ListThreatEntitySetsCommandOutput) => void): void;
477
+ listThreatEntitySets(args: ListThreatEntitySetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListThreatEntitySetsCommandOutput) => void): void;
426
478
  /**
427
479
  * @see {@link ListThreatIntelSetsCommand}
428
480
  */
429
481
  listThreatIntelSets(args: ListThreatIntelSetsCommandInput, options?: __HttpHandlerOptions): Promise<ListThreatIntelSetsCommandOutput>;
430
482
  listThreatIntelSets(args: ListThreatIntelSetsCommandInput, cb: (err: any, data?: ListThreatIntelSetsCommandOutput) => void): void;
431
483
  listThreatIntelSets(args: ListThreatIntelSetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListThreatIntelSetsCommandOutput) => void): void;
484
+ /**
485
+ * @see {@link ListTrustedEntitySetsCommand}
486
+ */
487
+ listTrustedEntitySets(args: ListTrustedEntitySetsCommandInput, options?: __HttpHandlerOptions): Promise<ListTrustedEntitySetsCommandOutput>;
488
+ listTrustedEntitySets(args: ListTrustedEntitySetsCommandInput, cb: (err: any, data?: ListTrustedEntitySetsCommandOutput) => void): void;
489
+ listTrustedEntitySets(args: ListTrustedEntitySetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTrustedEntitySetsCommandOutput) => void): void;
432
490
  /**
433
491
  * @see {@link StartMalwareScanCommand}
434
492
  */
@@ -519,12 +577,24 @@ export interface GuardDuty {
519
577
  updatePublishingDestination(args: UpdatePublishingDestinationCommandInput, options?: __HttpHandlerOptions): Promise<UpdatePublishingDestinationCommandOutput>;
520
578
  updatePublishingDestination(args: UpdatePublishingDestinationCommandInput, cb: (err: any, data?: UpdatePublishingDestinationCommandOutput) => void): void;
521
579
  updatePublishingDestination(args: UpdatePublishingDestinationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePublishingDestinationCommandOutput) => void): void;
580
+ /**
581
+ * @see {@link UpdateThreatEntitySetCommand}
582
+ */
583
+ updateThreatEntitySet(args: UpdateThreatEntitySetCommandInput, options?: __HttpHandlerOptions): Promise<UpdateThreatEntitySetCommandOutput>;
584
+ updateThreatEntitySet(args: UpdateThreatEntitySetCommandInput, cb: (err: any, data?: UpdateThreatEntitySetCommandOutput) => void): void;
585
+ updateThreatEntitySet(args: UpdateThreatEntitySetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateThreatEntitySetCommandOutput) => void): void;
522
586
  /**
523
587
  * @see {@link UpdateThreatIntelSetCommand}
524
588
  */
525
589
  updateThreatIntelSet(args: UpdateThreatIntelSetCommandInput, options?: __HttpHandlerOptions): Promise<UpdateThreatIntelSetCommandOutput>;
526
590
  updateThreatIntelSet(args: UpdateThreatIntelSetCommandInput, cb: (err: any, data?: UpdateThreatIntelSetCommandOutput) => void): void;
527
591
  updateThreatIntelSet(args: UpdateThreatIntelSetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateThreatIntelSetCommandOutput) => void): void;
592
+ /**
593
+ * @see {@link UpdateTrustedEntitySetCommand}
594
+ */
595
+ updateTrustedEntitySet(args: UpdateTrustedEntitySetCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTrustedEntitySetCommandOutput>;
596
+ updateTrustedEntitySet(args: UpdateTrustedEntitySetCommandInput, cb: (err: any, data?: UpdateTrustedEntitySetCommandOutput) => void): void;
597
+ updateTrustedEntitySet(args: UpdateTrustedEntitySetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateTrustedEntitySetCommandOutput) => void): void;
528
598
  }
529
599
  /**
530
600
  * <p>Amazon GuardDuty is a continuous security monitoring service that analyzes and processes