@aws-sdk/client-macie2 3.592.0 → 3.598.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 (48) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/index.js +173 -6
  3. package/dist-es/Macie2.js +4 -0
  4. package/dist-es/commands/BatchUpdateAutomatedDiscoveryAccountsCommand.js +24 -0
  5. package/dist-es/commands/ListAutomatedDiscoveryAccountsCommand.js +24 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/models_0.js +18 -6
  8. package/dist-es/models/models_1.js +6 -0
  9. package/dist-es/pagination/ListAutomatedDiscoveryAccountsPaginator.js +4 -0
  10. package/dist-es/pagination/index.js +1 -0
  11. package/dist-es/protocols/Aws_restJson1.js +101 -0
  12. package/dist-types/Macie2.d.ts +16 -0
  13. package/dist-types/Macie2Client.d.ts +4 -2
  14. package/dist-types/commands/BatchUpdateAutomatedDiscoveryAccountsCommand.d.ts +85 -0
  15. package/dist-types/commands/DescribeBucketsCommand.d.ts +1 -0
  16. package/dist-types/commands/GetAutomatedDiscoveryConfigurationCommand.d.ts +2 -1
  17. package/dist-types/commands/ListAutomatedDiscoveryAccountsCommand.d.ts +85 -0
  18. package/dist-types/commands/ListClassificationJobsCommand.d.ts +1 -1
  19. package/dist-types/commands/ListClassificationScopesCommand.d.ts +1 -1
  20. package/dist-types/commands/ListCustomDataIdentifiersCommand.d.ts +1 -1
  21. package/dist-types/commands/ListFindingsCommand.d.ts +1 -1
  22. package/dist-types/commands/ListInvitationsCommand.d.ts +1 -1
  23. package/dist-types/commands/ListResourceProfileArtifactsCommand.d.ts +1 -1
  24. package/dist-types/commands/PutClassificationExportConfigurationCommand.d.ts +1 -1
  25. package/dist-types/commands/SearchResourcesCommand.d.ts +3 -2
  26. package/dist-types/commands/TestCustomDataIdentifierCommand.d.ts +1 -1
  27. package/dist-types/commands/UpdateAutomatedDiscoveryConfigurationCommand.d.ts +2 -1
  28. package/dist-types/commands/index.d.ts +2 -0
  29. package/dist-types/models/models_0.d.ts +175 -193
  30. package/dist-types/models/models_1.d.ts +196 -5
  31. package/dist-types/pagination/ListAutomatedDiscoveryAccountsPaginator.d.ts +7 -0
  32. package/dist-types/pagination/index.d.ts +1 -0
  33. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  34. package/dist-types/ts3.4/Macie2.d.ts +42 -0
  35. package/dist-types/ts3.4/Macie2Client.d.ts +12 -0
  36. package/dist-types/ts3.4/commands/BatchUpdateAutomatedDiscoveryAccountsCommand.d.ts +40 -0
  37. package/dist-types/ts3.4/commands/ListAutomatedDiscoveryAccountsCommand.d.ts +40 -0
  38. package/dist-types/ts3.4/commands/ListClassificationJobsCommand.d.ts +1 -1
  39. package/dist-types/ts3.4/commands/ListClassificationScopesCommand.d.ts +1 -1
  40. package/dist-types/ts3.4/commands/ListCustomDataIdentifiersCommand.d.ts +1 -1
  41. package/dist-types/ts3.4/commands/ListFindingsCommand.d.ts +1 -1
  42. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  43. package/dist-types/ts3.4/models/models_0.d.ts +51 -47
  44. package/dist-types/ts3.4/models/models_1.d.ts +59 -0
  45. package/dist-types/ts3.4/pagination/ListAutomatedDiscoveryAccountsPaginator.d.ts +11 -0
  46. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  47. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  48. package/package.json +38 -38
package/README.md CHANGED
@@ -218,6 +218,14 @@ BatchGetCustomDataIdentifiers
218
218
 
219
219
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/macie2/command/BatchGetCustomDataIdentifiersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-macie2/Interface/BatchGetCustomDataIdentifiersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-macie2/Interface/BatchGetCustomDataIdentifiersCommandOutput/)
220
220
 
221
+ </details>
222
+ <details>
223
+ <summary>
224
+ BatchUpdateAutomatedDiscoveryAccounts
225
+ </summary>
226
+
227
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/macie2/command/BatchUpdateAutomatedDiscoveryAccountsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-macie2/Interface/BatchUpdateAutomatedDiscoveryAccountsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-macie2/Interface/BatchUpdateAutomatedDiscoveryAccountsCommandOutput/)
228
+
221
229
  </details>
222
230
  <details>
223
231
  <summary>
@@ -586,6 +594,14 @@ ListAllowLists
586
594
 
587
595
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/macie2/command/ListAllowListsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-macie2/Interface/ListAllowListsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-macie2/Interface/ListAllowListsCommandOutput/)
588
596
 
597
+ </details>
598
+ <details>
599
+ <summary>
600
+ ListAutomatedDiscoveryAccounts
601
+ </summary>
602
+
603
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/macie2/command/ListAutomatedDiscoveryAccountsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-macie2/Interface/ListAutomatedDiscoveryAccountsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-macie2/Interface/ListAutomatedDiscoveryAccountsCommandOutput/)
604
+
589
605
  </details>
590
606
  <details>
591
607
  <summary>
package/dist-cjs/index.js CHANGED
@@ -26,9 +26,14 @@ __export(src_exports, {
26
26
  AdminStatus: () => AdminStatus,
27
27
  AllowListStatusCode: () => AllowListStatusCode,
28
28
  AllowsUnencryptedObjectUploads: () => AllowsUnencryptedObjectUploads,
29
+ AutoEnableMode: () => AutoEnableMode,
30
+ AutomatedDiscoveryAccountStatus: () => AutomatedDiscoveryAccountStatus,
31
+ AutomatedDiscoveryAccountUpdateErrorCode: () => AutomatedDiscoveryAccountUpdateErrorCode,
32
+ AutomatedDiscoveryMonitoringStatus: () => AutomatedDiscoveryMonitoringStatus,
29
33
  AutomatedDiscoveryStatus: () => AutomatedDiscoveryStatus,
30
34
  AvailabilityCode: () => AvailabilityCode,
31
35
  BatchGetCustomDataIdentifiersCommand: () => BatchGetCustomDataIdentifiersCommand,
36
+ BatchUpdateAutomatedDiscoveryAccountsCommand: () => BatchUpdateAutomatedDiscoveryAccountsCommand,
32
37
  BucketMetadataErrorCode: () => BucketMetadataErrorCode,
33
38
  ClassificationScopeUpdateOperation: () => ClassificationScopeUpdateOperation,
34
39
  ConflictException: () => ConflictException,
@@ -99,6 +104,7 @@ __export(src_exports, {
99
104
  JobType: () => JobType,
100
105
  LastRunErrorStatusCode: () => LastRunErrorStatusCode,
101
106
  ListAllowListsCommand: () => ListAllowListsCommand,
107
+ ListAutomatedDiscoveryAccountsCommand: () => ListAutomatedDiscoveryAccountsCommand,
102
108
  ListClassificationJobsCommand: () => ListClassificationJobsCommand,
103
109
  ListClassificationScopesCommand: () => ListClassificationScopesCommand,
104
110
  ListCustomDataIdentifiersCommand: () => ListCustomDataIdentifiersCommand,
@@ -171,6 +177,7 @@ __export(src_exports, {
171
177
  paginateDescribeBuckets: () => paginateDescribeBuckets,
172
178
  paginateGetUsageStatistics: () => paginateGetUsageStatistics,
173
179
  paginateListAllowLists: () => paginateListAllowLists,
180
+ paginateListAutomatedDiscoveryAccounts: () => paginateListAutomatedDiscoveryAccounts,
174
181
  paginateListClassificationJobs: () => paginateListClassificationJobs,
175
182
  paginateListClassificationScopes: () => paginateListClassificationScopes,
176
183
  paginateListCustomDataIdentifiers: () => paginateListCustomDataIdentifiers,
@@ -365,11 +372,23 @@ var AdminStatus = {
365
372
  DISABLING_IN_PROGRESS: "DISABLING_IN_PROGRESS",
366
373
  ENABLED: "ENABLED"
367
374
  };
375
+ var AutomatedDiscoveryAccountStatus = {
376
+ DISABLED: "DISABLED",
377
+ ENABLED: "ENABLED"
378
+ };
379
+ var AutomatedDiscoveryAccountUpdateErrorCode = {
380
+ ACCOUNT_NOT_FOUND: "ACCOUNT_NOT_FOUND",
381
+ ACCOUNT_PAUSED: "ACCOUNT_PAUSED"
382
+ };
368
383
  var AllowsUnencryptedObjectUploads = {
369
384
  FALSE: "FALSE",
370
385
  TRUE: "TRUE",
371
386
  UNKNOWN: "UNKNOWN"
372
387
  };
388
+ var AutomatedDiscoveryMonitoringStatus = {
389
+ MONITORED: "MONITORED",
390
+ NOT_MONITORED: "NOT_MONITORED"
391
+ };
373
392
  var BucketMetadataErrorCode = {
374
393
  ACCESS_DENIED: "ACCESS_DENIED"
375
394
  };
@@ -534,6 +553,7 @@ var SearchResourcesComparator = {
534
553
  };
535
554
  var SearchResourcesSimpleCriterionKey = {
536
555
  ACCOUNT_ID: "ACCOUNT_ID",
556
+ AUTOMATED_DISCOVERY_MONITORING_STATUS: "AUTOMATED_DISCOVERY_MONITORING_STATUS",
537
557
  S3_BUCKET_EFFECTIVE_PERMISSION: "S3_BUCKET_EFFECTIVE_PERMISSION",
538
558
  S3_BUCKET_NAME: "S3_BUCKET_NAME",
539
559
  S3_BUCKET_SHARED_ACCESS: "S3_BUCKET_SHARED_ACCESS"
@@ -711,6 +731,11 @@ var AllowListStatusCode = {
711
731
  S3_USER_ACCESS_DENIED: "S3_USER_ACCESS_DENIED",
712
732
  UNKNOWN_ERROR: "UNKNOWN_ERROR"
713
733
  };
734
+ var AutoEnableMode = {
735
+ ALL: "ALL",
736
+ NEW: "NEW",
737
+ NONE: "NONE"
738
+ };
714
739
  var AutomatedDiscoveryStatus = {
715
740
  DISABLED: "DISABLED",
716
741
  ENABLED: "ENABLED"
@@ -808,12 +833,6 @@ var TimeRange = {
808
833
  MONTH_TO_DATE: "MONTH_TO_DATE",
809
834
  PAST_30_DAYS: "PAST_30_DAYS"
810
835
  };
811
- var ListJobsSortAttributeName = {
812
- createdAt: "createdAt",
813
- jobStatus: "jobStatus",
814
- jobType: "jobType",
815
- name: "name"
816
- };
817
836
 
818
837
  // src/protocols/Aws_restJson1.ts
819
838
  var se_AcceptInvitationCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -848,6 +867,21 @@ var se_BatchGetCustomDataIdentifiersCommand = /* @__PURE__ */ __name(async (inpu
848
867
  b.m("POST").h(headers).b(body);
849
868
  return b.build();
850
869
  }, "se_BatchGetCustomDataIdentifiersCommand");
870
+ var se_BatchUpdateAutomatedDiscoveryAccountsCommand = /* @__PURE__ */ __name(async (input, context) => {
871
+ const b = (0, import_core.requestBuilder)(input, context);
872
+ const headers = {
873
+ "content-type": "application/json"
874
+ };
875
+ b.bp("/automated-discovery/accounts");
876
+ let body;
877
+ body = JSON.stringify(
878
+ (0, import_smithy_client.take)(input, {
879
+ accounts: [, (_) => se___listOfAutomatedDiscoveryAccountUpdate(_, context), `accounts`]
880
+ })
881
+ );
882
+ b.m("PATCH").h(headers).b(body);
883
+ return b.build();
884
+ }, "se_BatchUpdateAutomatedDiscoveryAccountsCommand");
851
885
  var se_CreateAllowListCommand = /* @__PURE__ */ __name(async (input, context) => {
852
886
  const b = (0, import_core.requestBuilder)(input, context);
853
887
  const headers = {
@@ -1441,6 +1475,19 @@ var se_ListAllowListsCommand = /* @__PURE__ */ __name(async (input, context) =>
1441
1475
  b.m("GET").h(headers).q(query).b(body);
1442
1476
  return b.build();
1443
1477
  }, "se_ListAllowListsCommand");
1478
+ var se_ListAutomatedDiscoveryAccountsCommand = /* @__PURE__ */ __name(async (input, context) => {
1479
+ const b = (0, import_core.requestBuilder)(input, context);
1480
+ const headers = {};
1481
+ b.bp("/automated-discovery/accounts");
1482
+ const query = (0, import_smithy_client.map)({
1483
+ [_aI]: [() => input.accountIds !== void 0, () => (input[_aI] || []).map((_entry) => _entry)],
1484
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1485
+ [_nT]: [, input[_nT]]
1486
+ });
1487
+ let body;
1488
+ b.m("GET").h(headers).q(query).b(body);
1489
+ return b.build();
1490
+ }, "se_ListAutomatedDiscoveryAccountsCommand");
1444
1491
  var se_ListClassificationJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
1445
1492
  const b = (0, import_core.requestBuilder)(input, context);
1446
1493
  const headers = {
@@ -1741,6 +1788,7 @@ var se_UpdateAutomatedDiscoveryConfigurationCommand = /* @__PURE__ */ __name(asy
1741
1788
  let body;
1742
1789
  body = JSON.stringify(
1743
1790
  (0, import_smithy_client.take)(input, {
1791
+ autoEnableOrganizationMembers: [, , `autoEnableOrganizationMembers`],
1744
1792
  status: [, , `status`]
1745
1793
  })
1746
1794
  );
@@ -1946,6 +1994,20 @@ var de_BatchGetCustomDataIdentifiersCommand = /* @__PURE__ */ __name(async (outp
1946
1994
  Object.assign(contents, doc);
1947
1995
  return contents;
1948
1996
  }, "de_BatchGetCustomDataIdentifiersCommand");
1997
+ var de_BatchUpdateAutomatedDiscoveryAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
1998
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1999
+ return de_CommandError(output, context);
2000
+ }
2001
+ const contents = (0, import_smithy_client.map)({
2002
+ $metadata: deserializeMetadata(output)
2003
+ });
2004
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2005
+ const doc = (0, import_smithy_client.take)(data, {
2006
+ errors: [, (_) => de___listOfAutomatedDiscoveryAccountUpdateError(_, context), `errors`]
2007
+ });
2008
+ Object.assign(contents, doc);
2009
+ return contents;
2010
+ }, "de_BatchUpdateAutomatedDiscoveryAccountsCommand");
1949
2011
  var de_CreateAllowListCommand = /* @__PURE__ */ __name(async (output, context) => {
1950
2012
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1951
2013
  return de_CommandError(output, context);
@@ -2290,6 +2352,7 @@ var de_GetAutomatedDiscoveryConfigurationCommand = /* @__PURE__ */ __name(async
2290
2352
  });
2291
2353
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2292
2354
  const doc = (0, import_smithy_client.take)(data, {
2355
+ autoEnableOrganizationMembers: [, import_smithy_client.expectString, `autoEnableOrganizationMembers`],
2293
2356
  classificationScopeId: [, import_smithy_client.expectString, `classificationScopeId`],
2294
2357
  disabledAt: [, (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), `disabledAt`],
2295
2358
  firstEnabledAt: [, (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), `firstEnabledAt`],
@@ -2656,6 +2719,21 @@ var de_ListAllowListsCommand = /* @__PURE__ */ __name(async (output, context) =>
2656
2719
  Object.assign(contents, doc);
2657
2720
  return contents;
2658
2721
  }, "de_ListAllowListsCommand");
2722
+ var de_ListAutomatedDiscoveryAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
2723
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2724
+ return de_CommandError(output, context);
2725
+ }
2726
+ const contents = (0, import_smithy_client.map)({
2727
+ $metadata: deserializeMetadata(output)
2728
+ });
2729
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2730
+ const doc = (0, import_smithy_client.take)(data, {
2731
+ items: [, (_) => de___listOfAutomatedDiscoveryAccount(_, context), `items`],
2732
+ nextToken: [, import_smithy_client.expectString, `nextToken`]
2733
+ });
2734
+ Object.assign(contents, doc);
2735
+ return contents;
2736
+ }, "de_ListAutomatedDiscoveryAccountsCommand");
2659
2737
  var de_ListClassificationJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
2660
2738
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2661
2739
  return de_CommandError(output, context);
@@ -3207,6 +3285,11 @@ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, cont
3207
3285
  });
3208
3286
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3209
3287
  }, "de_ValidationExceptionRes");
3288
+ var se___listOfAutomatedDiscoveryAccountUpdate = /* @__PURE__ */ __name((input, context) => {
3289
+ return input.filter((e) => e != null).map((entry) => {
3290
+ return se_AutomatedDiscoveryAccountUpdate(entry, context);
3291
+ });
3292
+ }, "se___listOfAutomatedDiscoveryAccountUpdate");
3210
3293
  var se___listOfCriteriaForJob = /* @__PURE__ */ __name((input, context) => {
3211
3294
  return input.filter((e) => e != null).map((entry) => {
3212
3295
  return se_CriteriaForJob(entry, context);
@@ -3269,6 +3352,12 @@ var se_AllowListCriteria = /* @__PURE__ */ __name((input, context) => {
3269
3352
  s3WordsList: [, (_) => se_S3WordsList(_, context), `s3WordsList`]
3270
3353
  });
3271
3354
  }, "se_AllowListCriteria");
3355
+ var se_AutomatedDiscoveryAccountUpdate = /* @__PURE__ */ __name((input, context) => {
3356
+ return (0, import_smithy_client.take)(input, {
3357
+ accountId: [, , `accountId`],
3358
+ status: [, , `status`]
3359
+ });
3360
+ }, "se_AutomatedDiscoveryAccountUpdate");
3272
3361
  var se_BucketCriteria = /* @__PURE__ */ __name((input, context) => {
3273
3362
  return Object.entries(input).reduce((acc, [key, value]) => {
3274
3363
  if (value === null) {
@@ -3598,6 +3687,18 @@ var de___listOfAllowListSummary = /* @__PURE__ */ __name((output, context) => {
3598
3687
  });
3599
3688
  return retVal;
3600
3689
  }, "de___listOfAllowListSummary");
3690
+ var de___listOfAutomatedDiscoveryAccount = /* @__PURE__ */ __name((output, context) => {
3691
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3692
+ return de_AutomatedDiscoveryAccount(entry, context);
3693
+ });
3694
+ return retVal;
3695
+ }, "de___listOfAutomatedDiscoveryAccount");
3696
+ var de___listOfAutomatedDiscoveryAccountUpdateError = /* @__PURE__ */ __name((output, context) => {
3697
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3698
+ return de_AutomatedDiscoveryAccountUpdateError(entry, context);
3699
+ });
3700
+ return retVal;
3701
+ }, "de___listOfAutomatedDiscoveryAccountUpdateError");
3601
3702
  var de___listOfBatchGetCustomDataIdentifierSummary = /* @__PURE__ */ __name((output, context) => {
3602
3703
  const retVal = (output || []).filter((e) => e != null).map((entry) => {
3603
3704
  return de_BatchGetCustomDataIdentifierSummary(entry, context);
@@ -3810,6 +3911,18 @@ var de_AssumedRole = /* @__PURE__ */ __name((output, context) => {
3810
3911
  sessionContext: [, (_) => de_SessionContext(_, context), `sessionContext`]
3811
3912
  });
3812
3913
  }, "de_AssumedRole");
3914
+ var de_AutomatedDiscoveryAccount = /* @__PURE__ */ __name((output, context) => {
3915
+ return (0, import_smithy_client.take)(output, {
3916
+ accountId: [, import_smithy_client.expectString, `accountId`],
3917
+ status: [, import_smithy_client.expectString, `status`]
3918
+ });
3919
+ }, "de_AutomatedDiscoveryAccount");
3920
+ var de_AutomatedDiscoveryAccountUpdateError = /* @__PURE__ */ __name((output, context) => {
3921
+ return (0, import_smithy_client.take)(output, {
3922
+ accountId: [, import_smithy_client.expectString, `accountId`],
3923
+ errorCode: [, import_smithy_client.expectString, `errorCode`]
3924
+ });
3925
+ }, "de_AutomatedDiscoveryAccountUpdateError");
3813
3926
  var de_AwsAccount = /* @__PURE__ */ __name((output, context) => {
3814
3927
  return (0, import_smithy_client.take)(output, {
3815
3928
  accountId: [, import_smithy_client.expectString, `accountId`],
@@ -3881,6 +3994,7 @@ var de_BucketMetadata = /* @__PURE__ */ __name((output, context) => {
3881
3994
  return (0, import_smithy_client.take)(output, {
3882
3995
  accountId: [, import_smithy_client.expectString, `accountId`],
3883
3996
  allowsUnencryptedObjectUploads: [, import_smithy_client.expectString, `allowsUnencryptedObjectUploads`],
3997
+ automatedDiscoveryMonitoringStatus: [, import_smithy_client.expectString, `automatedDiscoveryMonitoringStatus`],
3884
3998
  bucketArn: [, import_smithy_client.expectString, `bucketArn`],
3885
3999
  bucketCreatedAt: [, (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), `bucketCreatedAt`],
3886
4000
  bucketName: [, import_smithy_client.expectString, `bucketName`],
@@ -4276,6 +4390,7 @@ var de_ManagedDataIdentifierSummary = /* @__PURE__ */ __name((output, context) =
4276
4390
  var de_MatchingBucket = /* @__PURE__ */ __name((output, context) => {
4277
4391
  return (0, import_smithy_client.take)(output, {
4278
4392
  accountId: [, import_smithy_client.expectString, `accountId`],
4393
+ automatedDiscoveryMonitoringStatus: [, import_smithy_client.expectString, `automatedDiscoveryMonitoringStatus`],
4279
4394
  bucketName: [, import_smithy_client.expectString, `bucketName`],
4280
4395
  classifiableObjectCount: [, import_smithy_client.expectLong, `classifiableObjectCount`],
4281
4396
  classifiableSizeInBytes: [, import_smithy_client.expectLong, `classifiableSizeInBytes`],
@@ -4747,6 +4862,7 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
4747
4862
  cfId: output.headers["x-amz-cf-id"]
4748
4863
  }), "deserializeMetadata");
4749
4864
  var _aAI = "adminAccountId";
4865
+ var _aI = "accountIds";
4750
4866
  var _iJC = "ignoreJobChecks";
4751
4867
  var _mR = "maxResults";
4752
4868
  var _n = "name";
@@ -4785,6 +4901,22 @@ var _BatchGetCustomDataIdentifiersCommand = class _BatchGetCustomDataIdentifiers
4785
4901
  __name(_BatchGetCustomDataIdentifiersCommand, "BatchGetCustomDataIdentifiersCommand");
4786
4902
  var BatchGetCustomDataIdentifiersCommand = _BatchGetCustomDataIdentifiersCommand;
4787
4903
 
4904
+ // src/commands/BatchUpdateAutomatedDiscoveryAccountsCommand.ts
4905
+
4906
+
4907
+
4908
+ var _BatchUpdateAutomatedDiscoveryAccountsCommand = class _BatchUpdateAutomatedDiscoveryAccountsCommand extends import_smithy_client.Command.classBuilder().ep({
4909
+ ...commonParams
4910
+ }).m(function(Command, cs, config, o) {
4911
+ return [
4912
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4913
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4914
+ ];
4915
+ }).s("Macie2", "BatchUpdateAutomatedDiscoveryAccounts", {}).n("Macie2Client", "BatchUpdateAutomatedDiscoveryAccountsCommand").f(void 0, void 0).ser(se_BatchUpdateAutomatedDiscoveryAccountsCommand).de(de_BatchUpdateAutomatedDiscoveryAccountsCommand).build() {
4916
+ };
4917
+ __name(_BatchUpdateAutomatedDiscoveryAccountsCommand, "BatchUpdateAutomatedDiscoveryAccountsCommand");
4918
+ var BatchUpdateAutomatedDiscoveryAccountsCommand = _BatchUpdateAutomatedDiscoveryAccountsCommand;
4919
+
4788
4920
  // src/commands/CreateAllowListCommand.ts
4789
4921
 
4790
4922
 
@@ -5521,6 +5653,22 @@ var _ListAllowListsCommand = class _ListAllowListsCommand extends import_smithy_
5521
5653
  __name(_ListAllowListsCommand, "ListAllowListsCommand");
5522
5654
  var ListAllowListsCommand = _ListAllowListsCommand;
5523
5655
 
5656
+ // src/commands/ListAutomatedDiscoveryAccountsCommand.ts
5657
+
5658
+
5659
+
5660
+ var _ListAutomatedDiscoveryAccountsCommand = class _ListAutomatedDiscoveryAccountsCommand extends import_smithy_client.Command.classBuilder().ep({
5661
+ ...commonParams
5662
+ }).m(function(Command, cs, config, o) {
5663
+ return [
5664
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5665
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5666
+ ];
5667
+ }).s("Macie2", "ListAutomatedDiscoveryAccounts", {}).n("Macie2Client", "ListAutomatedDiscoveryAccountsCommand").f(void 0, void 0).ser(se_ListAutomatedDiscoveryAccountsCommand).de(de_ListAutomatedDiscoveryAccountsCommand).build() {
5668
+ };
5669
+ __name(_ListAutomatedDiscoveryAccountsCommand, "ListAutomatedDiscoveryAccountsCommand");
5670
+ var ListAutomatedDiscoveryAccountsCommand = _ListAutomatedDiscoveryAccountsCommand;
5671
+
5524
5672
  // src/commands/ListClassificationJobsCommand.ts
5525
5673
 
5526
5674
 
@@ -6021,6 +6169,7 @@ var UpdateSensitivityInspectionTemplateCommand = _UpdateSensitivityInspectionTem
6021
6169
  var commands = {
6022
6170
  AcceptInvitationCommand,
6023
6171
  BatchGetCustomDataIdentifiersCommand,
6172
+ BatchUpdateAutomatedDiscoveryAccountsCommand,
6024
6173
  CreateAllowListCommand,
6025
6174
  CreateClassificationJobCommand,
6026
6175
  CreateCustomDataIdentifierCommand,
@@ -6067,6 +6216,7 @@ var commands = {
6067
6216
  GetUsageStatisticsCommand,
6068
6217
  GetUsageTotalsCommand,
6069
6218
  ListAllowListsCommand,
6219
+ ListAutomatedDiscoveryAccountsCommand,
6070
6220
  ListClassificationJobsCommand,
6071
6221
  ListClassificationScopesCommand,
6072
6222
  ListCustomDataIdentifiersCommand,
@@ -6117,6 +6267,10 @@ var paginateGetUsageStatistics = (0, import_core.createPaginator)(Macie2Client,
6117
6267
 
6118
6268
  var paginateListAllowLists = (0, import_core.createPaginator)(Macie2Client, ListAllowListsCommand, "nextToken", "nextToken", "maxResults");
6119
6269
 
6270
+ // src/pagination/ListAutomatedDiscoveryAccountsPaginator.ts
6271
+
6272
+ var paginateListAutomatedDiscoveryAccounts = (0, import_core.createPaginator)(Macie2Client, ListAutomatedDiscoveryAccountsCommand, "nextToken", "nextToken", "maxResults");
6273
+
6120
6274
  // src/pagination/ListClassificationJobsPaginator.ts
6121
6275
 
6122
6276
  var paginateListClassificationJobs = (0, import_core.createPaginator)(Macie2Client, ListClassificationJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -6210,6 +6364,12 @@ var waitUntilFindingRevealed = /* @__PURE__ */ __name(async (params, input) => {
6210
6364
  }, "waitUntilFindingRevealed");
6211
6365
 
6212
6366
  // src/models/models_1.ts
6367
+ var ListJobsSortAttributeName = {
6368
+ createdAt: "createdAt",
6369
+ jobStatus: "jobStatus",
6370
+ jobType: "jobType",
6371
+ name: "name"
6372
+ };
6213
6373
  var SearchResourcesSortAttributeName = {
6214
6374
  ACCOUNT_ID: "ACCOUNT_ID",
6215
6375
  RESOURCE_NAME: "RESOURCE_NAME",
@@ -6226,6 +6386,7 @@ var SearchResourcesSortAttributeName = {
6226
6386
  $Command,
6227
6387
  AcceptInvitationCommand,
6228
6388
  BatchGetCustomDataIdentifiersCommand,
6389
+ BatchUpdateAutomatedDiscoveryAccountsCommand,
6229
6390
  CreateAllowListCommand,
6230
6391
  CreateClassificationJobCommand,
6231
6392
  CreateCustomDataIdentifierCommand,
@@ -6272,6 +6433,7 @@ var SearchResourcesSortAttributeName = {
6272
6433
  GetUsageStatisticsCommand,
6273
6434
  GetUsageTotalsCommand,
6274
6435
  ListAllowListsCommand,
6436
+ ListAutomatedDiscoveryAccountsCommand,
6275
6437
  ListClassificationJobsCommand,
6276
6438
  ListClassificationScopesCommand,
6277
6439
  ListCustomDataIdentifiersCommand,
@@ -6306,6 +6468,7 @@ var SearchResourcesSortAttributeName = {
6306
6468
  paginateDescribeBuckets,
6307
6469
  paginateGetUsageStatistics,
6308
6470
  paginateListAllowLists,
6471
+ paginateListAutomatedDiscoveryAccounts,
6309
6472
  paginateListClassificationJobs,
6310
6473
  paginateListClassificationScopes,
6311
6474
  paginateListCustomDataIdentifiers,
@@ -6322,7 +6485,10 @@ var SearchResourcesSortAttributeName = {
6322
6485
  waitForFindingRevealed,
6323
6486
  waitUntilFindingRevealed,
6324
6487
  AdminStatus,
6488
+ AutomatedDiscoveryAccountStatus,
6489
+ AutomatedDiscoveryAccountUpdateErrorCode,
6325
6490
  AllowsUnencryptedObjectUploads,
6491
+ AutomatedDiscoveryMonitoringStatus,
6326
6492
  BucketMetadataErrorCode,
6327
6493
  IsDefinedInJob,
6328
6494
  IsMonitoredByJob,
@@ -6366,6 +6532,7 @@ var SearchResourcesSortAttributeName = {
6366
6532
  ThrottlingException,
6367
6533
  ValidationException,
6368
6534
  AllowListStatusCode,
6535
+ AutoEnableMode,
6369
6536
  AutomatedDiscoveryStatus,
6370
6537
  AvailabilityCode,
6371
6538
  OrderBy,
package/dist-es/Macie2.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { createAggregatedClient } from "@smithy/smithy-client";
2
2
  import { AcceptInvitationCommand, } from "./commands/AcceptInvitationCommand";
3
3
  import { BatchGetCustomDataIdentifiersCommand, } from "./commands/BatchGetCustomDataIdentifiersCommand";
4
+ import { BatchUpdateAutomatedDiscoveryAccountsCommand, } from "./commands/BatchUpdateAutomatedDiscoveryAccountsCommand";
4
5
  import { CreateAllowListCommand, } from "./commands/CreateAllowListCommand";
5
6
  import { CreateClassificationJobCommand, } from "./commands/CreateClassificationJobCommand";
6
7
  import { CreateCustomDataIdentifierCommand, } from "./commands/CreateCustomDataIdentifierCommand";
@@ -47,6 +48,7 @@ import { GetSensitivityInspectionTemplateCommand, } from "./commands/GetSensitiv
47
48
  import { GetUsageStatisticsCommand, } from "./commands/GetUsageStatisticsCommand";
48
49
  import { GetUsageTotalsCommand, } from "./commands/GetUsageTotalsCommand";
49
50
  import { ListAllowListsCommand, } from "./commands/ListAllowListsCommand";
51
+ import { ListAutomatedDiscoveryAccountsCommand, } from "./commands/ListAutomatedDiscoveryAccountsCommand";
50
52
  import { ListClassificationJobsCommand, } from "./commands/ListClassificationJobsCommand";
51
53
  import { ListClassificationScopesCommand, } from "./commands/ListClassificationScopesCommand";
52
54
  import { ListCustomDataIdentifiersCommand, } from "./commands/ListCustomDataIdentifiersCommand";
@@ -82,6 +84,7 @@ import { Macie2Client } from "./Macie2Client";
82
84
  const commands = {
83
85
  AcceptInvitationCommand,
84
86
  BatchGetCustomDataIdentifiersCommand,
87
+ BatchUpdateAutomatedDiscoveryAccountsCommand,
85
88
  CreateAllowListCommand,
86
89
  CreateClassificationJobCommand,
87
90
  CreateCustomDataIdentifierCommand,
@@ -128,6 +131,7 @@ const commands = {
128
131
  GetUsageStatisticsCommand,
129
132
  GetUsageTotalsCommand,
130
133
  ListAllowListsCommand,
134
+ ListAutomatedDiscoveryAccountsCommand,
131
135
  ListClassificationJobsCommand,
132
136
  ListClassificationScopesCommand,
133
137
  ListCustomDataIdentifiersCommand,
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_BatchUpdateAutomatedDiscoveryAccountsCommand, se_BatchUpdateAutomatedDiscoveryAccountsCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class BatchUpdateAutomatedDiscoveryAccountsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Macie2", "BatchUpdateAutomatedDiscoveryAccounts", {})
19
+ .n("Macie2Client", "BatchUpdateAutomatedDiscoveryAccountsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_BatchUpdateAutomatedDiscoveryAccountsCommand)
22
+ .de(de_BatchUpdateAutomatedDiscoveryAccountsCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListAutomatedDiscoveryAccountsCommand, se_ListAutomatedDiscoveryAccountsCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListAutomatedDiscoveryAccountsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Macie2", "ListAutomatedDiscoveryAccounts", {})
19
+ .n("Macie2Client", "ListAutomatedDiscoveryAccountsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListAutomatedDiscoveryAccountsCommand)
22
+ .de(de_ListAutomatedDiscoveryAccountsCommand)
23
+ .build() {
24
+ }
@@ -1,5 +1,6 @@
1
1
  export * from "./AcceptInvitationCommand";
2
2
  export * from "./BatchGetCustomDataIdentifiersCommand";
3
+ export * from "./BatchUpdateAutomatedDiscoveryAccountsCommand";
3
4
  export * from "./CreateAllowListCommand";
4
5
  export * from "./CreateClassificationJobCommand";
5
6
  export * from "./CreateCustomDataIdentifierCommand";
@@ -46,6 +47,7 @@ export * from "./GetSensitivityInspectionTemplateCommand";
46
47
  export * from "./GetUsageStatisticsCommand";
47
48
  export * from "./GetUsageTotalsCommand";
48
49
  export * from "./ListAllowListsCommand";
50
+ export * from "./ListAutomatedDiscoveryAccountsCommand";
49
51
  export * from "./ListClassificationJobsCommand";
50
52
  export * from "./ListClassificationScopesCommand";
51
53
  export * from "./ListCustomDataIdentifiersCommand";
@@ -3,11 +3,23 @@ export const AdminStatus = {
3
3
  DISABLING_IN_PROGRESS: "DISABLING_IN_PROGRESS",
4
4
  ENABLED: "ENABLED",
5
5
  };
6
+ export const AutomatedDiscoveryAccountStatus = {
7
+ DISABLED: "DISABLED",
8
+ ENABLED: "ENABLED",
9
+ };
10
+ export const AutomatedDiscoveryAccountUpdateErrorCode = {
11
+ ACCOUNT_NOT_FOUND: "ACCOUNT_NOT_FOUND",
12
+ ACCOUNT_PAUSED: "ACCOUNT_PAUSED",
13
+ };
6
14
  export const AllowsUnencryptedObjectUploads = {
7
15
  FALSE: "FALSE",
8
16
  TRUE: "TRUE",
9
17
  UNKNOWN: "UNKNOWN",
10
18
  };
19
+ export const AutomatedDiscoveryMonitoringStatus = {
20
+ MONITORED: "MONITORED",
21
+ NOT_MONITORED: "NOT_MONITORED",
22
+ };
11
23
  export const BucketMetadataErrorCode = {
12
24
  ACCESS_DENIED: "ACCESS_DENIED",
13
25
  };
@@ -172,6 +184,7 @@ export const SearchResourcesComparator = {
172
184
  };
173
185
  export const SearchResourcesSimpleCriterionKey = {
174
186
  ACCOUNT_ID: "ACCOUNT_ID",
187
+ AUTOMATED_DISCOVERY_MONITORING_STATUS: "AUTOMATED_DISCOVERY_MONITORING_STATUS",
175
188
  S3_BUCKET_EFFECTIVE_PERMISSION: "S3_BUCKET_EFFECTIVE_PERMISSION",
176
189
  S3_BUCKET_NAME: "S3_BUCKET_NAME",
177
190
  S3_BUCKET_SHARED_ACCESS: "S3_BUCKET_SHARED_ACCESS",
@@ -314,6 +327,11 @@ export const AllowListStatusCode = {
314
327
  S3_USER_ACCESS_DENIED: "S3_USER_ACCESS_DENIED",
315
328
  UNKNOWN_ERROR: "UNKNOWN_ERROR",
316
329
  };
330
+ export const AutoEnableMode = {
331
+ ALL: "ALL",
332
+ NEW: "NEW",
333
+ NONE: "NONE",
334
+ };
317
335
  export const AutomatedDiscoveryStatus = {
318
336
  DISABLED: "DISABLED",
319
337
  ENABLED: "ENABLED",
@@ -406,9 +424,3 @@ export const TimeRange = {
406
424
  MONTH_TO_DATE: "MONTH_TO_DATE",
407
425
  PAST_30_DAYS: "PAST_30_DAYS",
408
426
  };
409
- export const ListJobsSortAttributeName = {
410
- createdAt: "createdAt",
411
- jobStatus: "jobStatus",
412
- jobType: "jobType",
413
- name: "name",
414
- };
@@ -1,3 +1,9 @@
1
+ export const ListJobsSortAttributeName = {
2
+ createdAt: "createdAt",
3
+ jobStatus: "jobStatus",
4
+ jobType: "jobType",
5
+ name: "name",
6
+ };
1
7
  export const SearchResourcesSortAttributeName = {
2
8
  ACCOUNT_ID: "ACCOUNT_ID",
3
9
  RESOURCE_NAME: "RESOURCE_NAME",
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListAutomatedDiscoveryAccountsCommand, } from "../commands/ListAutomatedDiscoveryAccountsCommand";
3
+ import { Macie2Client } from "../Macie2Client";
4
+ export const paginateListAutomatedDiscoveryAccounts = createPaginator(Macie2Client, ListAutomatedDiscoveryAccountsCommand, "nextToken", "nextToken", "maxResults");
@@ -2,6 +2,7 @@ export * from "./DescribeBucketsPaginator";
2
2
  export * from "./GetUsageStatisticsPaginator";
3
3
  export * from "./Interfaces";
4
4
  export * from "./ListAllowListsPaginator";
5
+ export * from "./ListAutomatedDiscoveryAccountsPaginator";
5
6
  export * from "./ListClassificationJobsPaginator";
6
7
  export * from "./ListClassificationScopesPaginator";
7
8
  export * from "./ListCustomDataIdentifiersPaginator";