@aws-sdk/client-macie2 3.31.0 → 3.32.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 (192) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/Macie2.ts +38 -1
  3. package/Macie2Client.ts +6 -0
  4. package/commands/ListInvitationsCommand.ts +1 -1
  5. package/commands/ListManagedDataIdentifiersCommand.ts +97 -0
  6. package/dist/cjs/Macie2.js +15 -0
  7. package/dist/cjs/Macie2.js.map +1 -1
  8. package/dist/cjs/Macie2Client.js +13 -13
  9. package/dist/cjs/Macie2Client.js.map +1 -1
  10. package/dist/cjs/commands/AcceptInvitationCommand.js +3 -3
  11. package/dist/cjs/commands/AcceptInvitationCommand.js.map +1 -1
  12. package/dist/cjs/commands/BatchGetCustomDataIdentifiersCommand.js +3 -3
  13. package/dist/cjs/commands/BatchGetCustomDataIdentifiersCommand.js.map +1 -1
  14. package/dist/cjs/commands/CreateClassificationJobCommand.js +3 -3
  15. package/dist/cjs/commands/CreateClassificationJobCommand.js.map +1 -1
  16. package/dist/cjs/commands/CreateCustomDataIdentifierCommand.js +3 -3
  17. package/dist/cjs/commands/CreateCustomDataIdentifierCommand.js.map +1 -1
  18. package/dist/cjs/commands/CreateFindingsFilterCommand.js +3 -3
  19. package/dist/cjs/commands/CreateFindingsFilterCommand.js.map +1 -1
  20. package/dist/cjs/commands/CreateInvitationsCommand.js +3 -3
  21. package/dist/cjs/commands/CreateInvitationsCommand.js.map +1 -1
  22. package/dist/cjs/commands/CreateMemberCommand.js +3 -3
  23. package/dist/cjs/commands/CreateMemberCommand.js.map +1 -1
  24. package/dist/cjs/commands/CreateSampleFindingsCommand.js +3 -3
  25. package/dist/cjs/commands/CreateSampleFindingsCommand.js.map +1 -1
  26. package/dist/cjs/commands/DeclineInvitationsCommand.js +3 -3
  27. package/dist/cjs/commands/DeclineInvitationsCommand.js.map +1 -1
  28. package/dist/cjs/commands/DeleteCustomDataIdentifierCommand.js +3 -3
  29. package/dist/cjs/commands/DeleteCustomDataIdentifierCommand.js.map +1 -1
  30. package/dist/cjs/commands/DeleteFindingsFilterCommand.js +3 -3
  31. package/dist/cjs/commands/DeleteFindingsFilterCommand.js.map +1 -1
  32. package/dist/cjs/commands/DeleteInvitationsCommand.js +3 -3
  33. package/dist/cjs/commands/DeleteInvitationsCommand.js.map +1 -1
  34. package/dist/cjs/commands/DeleteMemberCommand.js +3 -3
  35. package/dist/cjs/commands/DeleteMemberCommand.js.map +1 -1
  36. package/dist/cjs/commands/DescribeBucketsCommand.js +3 -3
  37. package/dist/cjs/commands/DescribeBucketsCommand.js.map +1 -1
  38. package/dist/cjs/commands/DescribeClassificationJobCommand.js +3 -3
  39. package/dist/cjs/commands/DescribeClassificationJobCommand.js.map +1 -1
  40. package/dist/cjs/commands/DescribeOrganizationConfigurationCommand.js +3 -3
  41. package/dist/cjs/commands/DescribeOrganizationConfigurationCommand.js.map +1 -1
  42. package/dist/cjs/commands/DisableMacieCommand.js +3 -3
  43. package/dist/cjs/commands/DisableMacieCommand.js.map +1 -1
  44. package/dist/cjs/commands/DisableOrganizationAdminAccountCommand.js +3 -3
  45. package/dist/cjs/commands/DisableOrganizationAdminAccountCommand.js.map +1 -1
  46. package/dist/cjs/commands/DisassociateFromAdministratorAccountCommand.js +3 -3
  47. package/dist/cjs/commands/DisassociateFromAdministratorAccountCommand.js.map +1 -1
  48. package/dist/cjs/commands/DisassociateFromMasterAccountCommand.js +3 -3
  49. package/dist/cjs/commands/DisassociateFromMasterAccountCommand.js.map +1 -1
  50. package/dist/cjs/commands/DisassociateMemberCommand.js +3 -3
  51. package/dist/cjs/commands/DisassociateMemberCommand.js.map +1 -1
  52. package/dist/cjs/commands/EnableMacieCommand.js +3 -3
  53. package/dist/cjs/commands/EnableMacieCommand.js.map +1 -1
  54. package/dist/cjs/commands/EnableOrganizationAdminAccountCommand.js +3 -3
  55. package/dist/cjs/commands/EnableOrganizationAdminAccountCommand.js.map +1 -1
  56. package/dist/cjs/commands/GetAdministratorAccountCommand.js +3 -3
  57. package/dist/cjs/commands/GetAdministratorAccountCommand.js.map +1 -1
  58. package/dist/cjs/commands/GetBucketStatisticsCommand.js +3 -3
  59. package/dist/cjs/commands/GetBucketStatisticsCommand.js.map +1 -1
  60. package/dist/cjs/commands/GetClassificationExportConfigurationCommand.js +3 -3
  61. package/dist/cjs/commands/GetClassificationExportConfigurationCommand.js.map +1 -1
  62. package/dist/cjs/commands/GetCustomDataIdentifierCommand.js +3 -3
  63. package/dist/cjs/commands/GetCustomDataIdentifierCommand.js.map +1 -1
  64. package/dist/cjs/commands/GetFindingStatisticsCommand.js +3 -3
  65. package/dist/cjs/commands/GetFindingStatisticsCommand.js.map +1 -1
  66. package/dist/cjs/commands/GetFindingsCommand.js +3 -3
  67. package/dist/cjs/commands/GetFindingsCommand.js.map +1 -1
  68. package/dist/cjs/commands/GetFindingsFilterCommand.js +3 -3
  69. package/dist/cjs/commands/GetFindingsFilterCommand.js.map +1 -1
  70. package/dist/cjs/commands/GetFindingsPublicationConfigurationCommand.js +3 -3
  71. package/dist/cjs/commands/GetFindingsPublicationConfigurationCommand.js.map +1 -1
  72. package/dist/cjs/commands/GetInvitationsCountCommand.js +3 -3
  73. package/dist/cjs/commands/GetInvitationsCountCommand.js.map +1 -1
  74. package/dist/cjs/commands/GetMacieSessionCommand.js +3 -3
  75. package/dist/cjs/commands/GetMacieSessionCommand.js.map +1 -1
  76. package/dist/cjs/commands/GetMasterAccountCommand.js +3 -3
  77. package/dist/cjs/commands/GetMasterAccountCommand.js.map +1 -1
  78. package/dist/cjs/commands/GetMemberCommand.js +3 -3
  79. package/dist/cjs/commands/GetMemberCommand.js.map +1 -1
  80. package/dist/cjs/commands/GetUsageStatisticsCommand.js +3 -3
  81. package/dist/cjs/commands/GetUsageStatisticsCommand.js.map +1 -1
  82. package/dist/cjs/commands/GetUsageTotalsCommand.js +3 -3
  83. package/dist/cjs/commands/GetUsageTotalsCommand.js.map +1 -1
  84. package/dist/cjs/commands/ListClassificationJobsCommand.js +3 -3
  85. package/dist/cjs/commands/ListClassificationJobsCommand.js.map +1 -1
  86. package/dist/cjs/commands/ListCustomDataIdentifiersCommand.js +3 -3
  87. package/dist/cjs/commands/ListCustomDataIdentifiersCommand.js.map +1 -1
  88. package/dist/cjs/commands/ListFindingsCommand.js +3 -3
  89. package/dist/cjs/commands/ListFindingsCommand.js.map +1 -1
  90. package/dist/cjs/commands/ListFindingsFiltersCommand.js +3 -3
  91. package/dist/cjs/commands/ListFindingsFiltersCommand.js.map +1 -1
  92. package/dist/cjs/commands/ListInvitationsCommand.js +4 -4
  93. package/dist/cjs/commands/ListInvitationsCommand.js.map +1 -1
  94. package/dist/cjs/commands/ListManagedDataIdentifiersCommand.js +61 -0
  95. package/dist/cjs/commands/ListManagedDataIdentifiersCommand.js.map +1 -0
  96. package/dist/cjs/commands/ListMembersCommand.js +3 -3
  97. package/dist/cjs/commands/ListMembersCommand.js.map +1 -1
  98. package/dist/cjs/commands/ListOrganizationAdminAccountsCommand.js +3 -3
  99. package/dist/cjs/commands/ListOrganizationAdminAccountsCommand.js.map +1 -1
  100. package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
  101. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
  102. package/dist/cjs/commands/PutClassificationExportConfigurationCommand.js +3 -3
  103. package/dist/cjs/commands/PutClassificationExportConfigurationCommand.js.map +1 -1
  104. package/dist/cjs/commands/PutFindingsPublicationConfigurationCommand.js +3 -3
  105. package/dist/cjs/commands/PutFindingsPublicationConfigurationCommand.js.map +1 -1
  106. package/dist/cjs/commands/SearchResourcesCommand.js +3 -3
  107. package/dist/cjs/commands/SearchResourcesCommand.js.map +1 -1
  108. package/dist/cjs/commands/TagResourceCommand.js +3 -3
  109. package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
  110. package/dist/cjs/commands/TestCustomDataIdentifierCommand.js +3 -3
  111. package/dist/cjs/commands/TestCustomDataIdentifierCommand.js.map +1 -1
  112. package/dist/cjs/commands/UntagResourceCommand.js +3 -3
  113. package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
  114. package/dist/cjs/commands/UpdateClassificationJobCommand.js +3 -3
  115. package/dist/cjs/commands/UpdateClassificationJobCommand.js.map +1 -1
  116. package/dist/cjs/commands/UpdateFindingsFilterCommand.js +3 -3
  117. package/dist/cjs/commands/UpdateFindingsFilterCommand.js.map +1 -1
  118. package/dist/cjs/commands/UpdateMacieSessionCommand.js +3 -3
  119. package/dist/cjs/commands/UpdateMacieSessionCommand.js.map +1 -1
  120. package/dist/cjs/commands/UpdateMemberSessionCommand.js +3 -3
  121. package/dist/cjs/commands/UpdateMemberSessionCommand.js.map +1 -1
  122. package/dist/cjs/commands/UpdateOrganizationConfigurationCommand.js +3 -3
  123. package/dist/cjs/commands/UpdateOrganizationConfigurationCommand.js.map +1 -1
  124. package/dist/cjs/endpoints.js +1 -1
  125. package/dist/cjs/endpoints.js.map +1 -1
  126. package/dist/cjs/index.js +71 -70
  127. package/dist/cjs/index.js.map +1 -1
  128. package/dist/cjs/models/index.js +1 -1
  129. package/dist/cjs/models/index.js.map +1 -1
  130. package/dist/cjs/models/models_0.js +39 -5
  131. package/dist/cjs/models/models_0.js.map +1 -1
  132. package/dist/cjs/package.json +31 -31
  133. package/dist/cjs/protocols/Aws_restJson1.js +481 -384
  134. package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
  135. package/dist/cjs/runtimeConfig.browser.js +4 -4
  136. package/dist/cjs/runtimeConfig.browser.js.map +1 -1
  137. package/dist/cjs/runtimeConfig.js +8 -8
  138. package/dist/cjs/runtimeConfig.js.map +1 -1
  139. package/dist/cjs/runtimeConfig.native.js +1 -1
  140. package/dist/cjs/runtimeConfig.native.js.map +1 -1
  141. package/dist/es/Macie2.js +15 -0
  142. package/dist/es/Macie2.js.map +1 -1
  143. package/dist/es/Macie2Client.js.map +1 -1
  144. package/dist/es/commands/ListInvitationsCommand.js +1 -1
  145. package/dist/es/commands/ListManagedDataIdentifiersCommand.js +65 -0
  146. package/dist/es/commands/ListManagedDataIdentifiersCommand.js.map +1 -0
  147. package/dist/es/index.js +1 -0
  148. package/dist/es/index.js.map +1 -1
  149. package/dist/es/models/models_0.js +28 -0
  150. package/dist/es/models/models_0.js.map +1 -1
  151. package/dist/es/package.json +31 -31
  152. package/dist/es/pagination/DescribeBucketsPaginator.js +4 -4
  153. package/dist/es/pagination/DescribeBucketsPaginator.js.map +1 -1
  154. package/dist/es/pagination/GetUsageStatisticsPaginator.js +4 -4
  155. package/dist/es/pagination/GetUsageStatisticsPaginator.js.map +1 -1
  156. package/dist/es/pagination/ListClassificationJobsPaginator.js +4 -4
  157. package/dist/es/pagination/ListClassificationJobsPaginator.js.map +1 -1
  158. package/dist/es/pagination/ListCustomDataIdentifiersPaginator.js +4 -4
  159. package/dist/es/pagination/ListCustomDataIdentifiersPaginator.js.map +1 -1
  160. package/dist/es/pagination/ListFindingsFiltersPaginator.js +4 -4
  161. package/dist/es/pagination/ListFindingsFiltersPaginator.js.map +1 -1
  162. package/dist/es/pagination/ListFindingsPaginator.js +4 -4
  163. package/dist/es/pagination/ListFindingsPaginator.js.map +1 -1
  164. package/dist/es/pagination/ListInvitationsPaginator.js +4 -4
  165. package/dist/es/pagination/ListInvitationsPaginator.js.map +1 -1
  166. package/dist/es/pagination/ListMembersPaginator.js +4 -4
  167. package/dist/es/pagination/ListMembersPaginator.js.map +1 -1
  168. package/dist/es/pagination/ListOrganizationAdminAccountsPaginator.js +4 -4
  169. package/dist/es/pagination/ListOrganizationAdminAccountsPaginator.js.map +1 -1
  170. package/dist/es/pagination/SearchResourcesPaginator.js +4 -4
  171. package/dist/es/pagination/SearchResourcesPaginator.js.map +1 -1
  172. package/dist/es/protocols/Aws_restJson1.js +110 -2
  173. package/dist/es/protocols/Aws_restJson1.js.map +1 -1
  174. package/dist/types/Macie2.d.ts +8 -1
  175. package/dist/types/Macie2Client.d.ts +3 -2
  176. package/dist/types/commands/ListInvitationsCommand.d.ts +1 -1
  177. package/dist/types/commands/ListManagedDataIdentifiersCommand.d.ts +35 -0
  178. package/dist/types/index.d.ts +1 -0
  179. package/dist/types/models/models_0.d.ts +93 -24
  180. package/dist/types/protocols/Aws_restJson1.d.ts +3 -0
  181. package/dist/types/ts3.4/Macie2.d.ts +8 -1
  182. package/dist/types/ts3.4/Macie2Client.d.ts +3 -2
  183. package/dist/types/ts3.4/commands/ListInvitationsCommand.d.ts +1 -1
  184. package/dist/types/ts3.4/commands/ListManagedDataIdentifiersCommand.d.ts +35 -0
  185. package/dist/types/ts3.4/index.d.ts +1 -0
  186. package/dist/types/ts3.4/models/models_0.d.ts +93 -24
  187. package/dist/types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
  188. package/index.ts +1 -0
  189. package/models/models_0.ts +112 -24
  190. package/package.json +31 -31
  191. package/protocols/Aws_restJson1.ts +124 -0
  192. package/tsconfig.json +1 -2
@@ -871,7 +871,7 @@ export namespace _Record {
871
871
  }
872
872
 
873
873
  /**
874
- * <p>Specifies the location of 1-15 occurrences of sensitive data that was detected by managed data identifiers or a custom data identifier and produced a sensitive data finding.</p>
874
+ * <p>Specifies the location of 1-15 occurrences of sensitive data that was detected by a managed data identifier or a custom data identifier and produced a sensitive data finding.</p>
875
875
  */
876
876
  export interface Occurrences {
877
877
  /**
@@ -975,7 +975,7 @@ export enum SensitiveDataItemCategory {
975
975
  }
976
976
 
977
977
  /**
978
- * <p>Provides information about a type of sensitive data that was detected by managed data identifiers and produced a sensitive data finding.</p>
978
+ * <p>Provides information about a type of sensitive data that was detected by a managed data identifier and produced a sensitive data finding.</p>
979
979
  */
980
980
  export interface DefaultDetection {
981
981
  /**
@@ -1008,7 +1008,7 @@ export namespace DefaultDetection {
1008
1008
  */
1009
1009
  export interface SensitiveDataItem {
1010
1010
  /**
1011
- * <p>The category of sensitive data that was detected. For example: CREDENTIALS, for credentials data such as private keys or Amazon Web Services secret keys; FINANCIAL_INFORMATION, for financial data such as credit card numbers; or, PERSONAL_INFORMATION, for personal health information, such as health insurance identification numbers, or personally identifiable information, such as driver's license identification numbers.</p>
1011
+ * <p>The category of sensitive data that was detected. For example: CREDENTIALS, for credentials data such as private keys or Amazon Web Services secret keys; FINANCIAL_INFORMATION, for financial data such as credit card numbers; or, PERSONAL_INFORMATION, for personal health information, such as health insurance identification numbers, or personally identifiable information, such as passport numbers.</p>
1012
1012
  */
1013
1013
  category?: SensitiveDataItemCategory | string;
1014
1014
 
@@ -1769,16 +1769,16 @@ export namespace ServerSideEncryption {
1769
1769
  }
1770
1770
 
1771
1771
  /**
1772
- * <p>Provides information about the user who owns an S3 bucket.</p>
1772
+ * <p>Provides information about the Amazon Web Services account that owns an S3 bucket.</p>
1773
1773
  */
1774
1774
  export interface S3BucketOwner {
1775
1775
  /**
1776
- * <p>The display name of the user who owns the bucket.</p>
1776
+ * <p>The display name of the account that owns the bucket.</p>
1777
1777
  */
1778
1778
  displayName?: string;
1779
1779
 
1780
1780
  /**
1781
- * <p>The Amazon Web Services account ID for the user who owns the bucket.</p>
1781
+ * <p>The canonical user ID for the account that owns the bucket.</p>
1782
1782
  */
1783
1783
  id?: string;
1784
1784
  }
@@ -1822,7 +1822,7 @@ export interface S3Bucket {
1822
1822
  name?: string;
1823
1823
 
1824
1824
  /**
1825
- * <p>The display name and Amazon Web Services account ID for the user who owns the bucket.</p>
1825
+ * <p>The display name and canonical user ID for the Amazon Web Services account that owns the bucket.</p>
1826
1826
  */
1827
1827
  owner?: S3BucketOwner;
1828
1828
 
@@ -2492,7 +2492,7 @@ export interface JobSummary {
2492
2492
  jobId?: string;
2493
2493
 
2494
2494
  /**
2495
- * <p>The current status of the job. Possible values are:</p> <ul><li><p>CANCELLED - You cancelled the job or, if it's a one-time job, you paused the job and didn't resume it within 30 days.</p></li> <li><p>COMPLETE - For a one-time job, Amazon Macie finished processing the data specified for the job. This value doesn't apply to recurring jobs.</p></li> <li><p>IDLE - For a recurring job, the previous scheduled run is complete and the next scheduled run is pending. This value doesn't apply to one-time jobs.</p></li> <li><p>PAUSED - Amazon Macie started running the job but additional processing would exceed the monthly sensitive data discovery quota for your account or one or more member accounts that the job analyzes data for.</p></li> <li><p>RUNNING - For a one-time job, the job is in progress. For a recurring job, a scheduled run is in progress.</p></li> <li><p>USER_PAUSED - You paused the job. If you paused the job while it had a status of RUNNING and you don't resume it within 30 days of pausing it, the job or job run will expire and be cancelled, depending on the job's type. To check the expiration date, refer to the UserPausedDetails.jobExpiresAt property.</p></li></ul>
2495
+ * <p>The current status of the job. Possible values are:</p> <ul><li><p>CANCELLED - You cancelled the job or, if it's a one-time job, you paused the job and didn't resume it within 30 days.</p></li> <li><p>COMPLETE - For a one-time job, Amazon Macie finished processing the data specified for the job. This value doesn't apply to recurring jobs.</p></li> <li><p>IDLE - For a recurring job, the previous scheduled run is complete and the next scheduled run is pending. This value doesn't apply to one-time jobs.</p></li> <li><p>PAUSED - Macie started running the job but additional processing would exceed the monthly sensitive data discovery quota for your account or one or more member accounts that the job analyzes data for.</p></li> <li><p>RUNNING - For a one-time job, the job is in progress. For a recurring job, a scheduled run is in progress.</p></li> <li><p>USER_PAUSED - You paused the job. If you paused the job while it had a status of RUNNING and you don't resume it within 30 days of pausing it, the job or job run will expire and be cancelled, depending on the job's type. To check the expiration date, refer to the UserPausedDetails.jobExpiresAt property.</p></li></ul>
2496
2496
  */
2497
2497
  jobStatus?: JobStatus | string;
2498
2498
 
@@ -2567,6 +2567,30 @@ export namespace ListJobsFilterTerm {
2567
2567
  });
2568
2568
  }
2569
2569
 
2570
+ /**
2571
+ * <p>Provides information about a managed data identifier. For additional information, see <a href="https://docs.aws.amazon.com/macie/latest/user/managed-data-identifiers.html">Using managed data identifiers</a> in the <i>Amazon Macie User Guide</i>.</p>
2572
+ */
2573
+ export interface ManagedDataIdentifierSummary {
2574
+ /**
2575
+ * <p>The category of sensitive data that the managed data identifier detects: CREDENTIALS, for credentials data such as private keys or Amazon Web Services secret keys; FINANCIAL_INFORMATION, for financial data such as credit card numbers; or, PERSONAL_INFORMATION, for personal health information, such as health insurance identification numbers, or personally identifiable information, such as passport numbers.</p>
2576
+ */
2577
+ category?: SensitiveDataItemCategory | string;
2578
+
2579
+ /**
2580
+ * <p>The unique identifier for the managed data identifier. This is a string that describes the type of sensitive data that the managed data identifier detects. For example: OPENSSH_PRIVATE_KEY for OpenSSH private keys, CREDIT_CARD_NUMBER for credit card numbers, or USA_PASSPORT_NUMBER for US passport numbers.</p>
2581
+ */
2582
+ id?: string;
2583
+ }
2584
+
2585
+ export namespace ManagedDataIdentifierSummary {
2586
+ /**
2587
+ * @internal
2588
+ */
2589
+ export const filterSensitiveLog = (obj: ManagedDataIdentifierSummary): any => ({
2590
+ ...obj,
2591
+ });
2592
+ }
2593
+
2570
2594
  /**
2571
2595
  * <p>Provides statistical data and other information about an S3 bucket that Amazon Macie monitors and analyzes.</p>
2572
2596
  */
@@ -3251,7 +3275,7 @@ export namespace AccountDetail {
3251
3275
 
3252
3276
  export interface BatchGetCustomDataIdentifiersRequest {
3253
3277
  /**
3254
- * <p>An array of strings that lists the unique identifiers for the custom data identifiers to retrieve information about.</p>
3278
+ * <p>An array of custom data identifier IDs, one for each custom data identifier to retrieve information about.</p>
3255
3279
  */
3256
3280
  ids?: string[];
3257
3281
  }
@@ -3272,7 +3296,7 @@ export interface BatchGetCustomDataIdentifiersResponse {
3272
3296
  customDataIdentifiers?: BatchGetCustomDataIdentifierSummary[];
3273
3297
 
3274
3298
  /**
3275
- * <p>An array of identifiers, one for each identifier that was specified in the request, but doesn't correlate to an existing custom data identifier.</p>
3299
+ * <p>An array of custom data identifier IDs, one for each custom data identifier that was specified in the request but doesn't correlate to an existing custom data identifier.</p>
3276
3300
  */
3277
3301
  notFoundIdentifierIds?: string[];
3278
3302
  }
@@ -3543,6 +3567,13 @@ export namespace ClassificationExportConfiguration {
3543
3567
  });
3544
3568
  }
3545
3569
 
3570
+ export enum ManagedDataIdentifierSelector {
3571
+ ALL = "ALL",
3572
+ EXCLUDE = "EXCLUDE",
3573
+ INCLUDE = "INCLUDE",
3574
+ NONE = "NONE",
3575
+ }
3576
+
3546
3577
  /**
3547
3578
  * <p>Specifies one or more property- and tag-based conditions that define criteria for including or excluding S3 objects from a classification job.</p>
3548
3579
  */
@@ -3713,7 +3744,7 @@ export interface CreateClassificationJobRequest {
3713
3744
  clientToken?: string;
3714
3745
 
3715
3746
  /**
3716
- * <p>The custom data identifiers to use for data analysis and classification.</p>
3747
+ * <p>An array of unique identifiers, one for each custom data identifier for the job to use when it analyzes data. To use only managed data identifiers, don't specify a value for this property and specify a value other than NONE for the managedDataIdentifierSelector property.</p>
3717
3748
  */
3718
3749
  customDataIdentifierIds?: string[];
3719
3750
 
@@ -3723,7 +3754,7 @@ export interface CreateClassificationJobRequest {
3723
3754
  description?: string;
3724
3755
 
3725
3756
  /**
3726
- * <p>Specifies whether to analyze all existing, eligible objects immediately after the job is created.</p>
3757
+ * <p>For a recurring job, specifies whether to analyze all existing, eligible objects immediately after the job is created (true). To analyze only those objects that are created or changed after you create the job and before the job's first scheduled run, set this value to false.</p><p>If you configure the job to run only once, don't specify a value for this property.</p>
3727
3758
  */
3728
3759
  initialRun?: boolean;
3729
3760
 
@@ -3732,6 +3763,16 @@ export interface CreateClassificationJobRequest {
3732
3763
  */
3733
3764
  jobType: JobType | string | undefined;
3734
3765
 
3766
+ /**
3767
+ * <p>An array of unique identifiers, one for each managed data identifier for the job to include (use) or exclude (not use) when it analyzes data. Inclusion or exclusion depends on the managed data identifier selection type that you specify for the job (managedDataIdentifierSelector).</p><p>To retrieve a list of valid values for this property, use the ListManagedDataIdentifiers operation.</p>
3768
+ */
3769
+ managedDataIdentifierIds?: string[];
3770
+
3771
+ /**
3772
+ * <p>The selection type to apply when determining which managed data identifiers the job uses to analyze data. Valid values are:</p> <ul><li><p>ALL - Use all the managed data identifiers that Amazon Macie provides. If you specify this value, don't specify any values for the managedDataIdentifierIds property.</p></li> <li><p>EXCLUDE - Use all the managed data identifiers that Macie provides except the managed data identifiers specified by the managedDataIdentifierIds property.</p></li> <li><p>INCLUDE - Use only the managed data identifiers specified by the managedDataIdentifierIds property.</p></li> <li><p>NONE - Don't use any managed data identifiers. If you specify this value, specify at least one custom data identifier for the job (customDataIdentifierIds) and don't specify any values for the managedDataIdentifierIds property.</p></li></ul> <p>If you don't specify a value for this property, the job uses all managed data identifiers. If you don't specify a value for this property or you specify ALL or EXCLUDE for a recurring job, the job also uses new managed data identifiers as they are released.</p>
3773
+ */
3774
+ managedDataIdentifierSelector?: ManagedDataIdentifierSelector | string;
3775
+
3735
3776
  /**
3736
3777
  * <p>A custom name for the job. The name can contain as many as 500 characters.</p>
3737
3778
  */
@@ -3743,7 +3784,7 @@ export interface CreateClassificationJobRequest {
3743
3784
  s3JobDefinition: S3JobDefinition | undefined;
3744
3785
 
3745
3786
  /**
3746
- * <p>The sampling depth, as a percentage, to apply when processing objects. This value determines the percentage of eligible objects that the job analyzes. If this value is less than 100, Amazon Macie selects the objects to analyze at random, up to the specified percentage, and analyzes all the data in those objects.</p>
3787
+ * <p>The sampling depth, as a percentage, for the job to apply when processing objects. This value determines the percentage of eligible objects that the job analyzes. If this value is less than 100, Amazon Macie selects the objects to analyze at random, up to the specified percentage, and analyzes all the data in those objects.</p>
3747
3788
  */
3748
3789
  samplingPercentage?: number;
3749
3790
 
@@ -3800,17 +3841,17 @@ export interface CreateCustomDataIdentifierRequest {
3800
3841
  description?: string;
3801
3842
 
3802
3843
  /**
3803
- * <p>An array that lists specific character sequences (ignore words) to exclude from the results. If the text matched by the regular expression is the same as any string in this array, Amazon Macie ignores it. The array can contain as many as 10 ignore words. Each ignore word can contain 4-90 characters. Ignore words are case sensitive.</p>
3844
+ * <p>An array that lists specific character sequences (ignore words) to exclude from the results. If the text matched by the regular expression is the same as any string in this array, Amazon Macie ignores it. The array can contain as many as 10 ignore words. Each ignore word can contain 4-90 UTF-8 characters. Ignore words are case sensitive.</p>
3804
3845
  */
3805
3846
  ignoreWords?: string[];
3806
3847
 
3807
3848
  /**
3808
- * <p>An array that lists specific character sequences (keywords), one of which must be within proximity (maximumMatchDistance) of the regular expression to match. The array can contain as many as 50 keywords. Each keyword can contain 3-90 characters. Keywords aren't case sensitive.</p>
3849
+ * <p>An array that lists specific character sequences (keywords), one of which must be within proximity (maximumMatchDistance) of the regular expression to match. The array can contain as many as 50 keywords. Each keyword can contain 3-90 UTF-8 characters. Keywords aren't case sensitive.</p>
3809
3850
  */
3810
3851
  keywords?: string[];
3811
3852
 
3812
3853
  /**
3813
- * <p>The maximum number of characters that can exist between text that matches the regex pattern and the character sequences specified by the keywords array. Macie includes or excludes a result based on the proximity of a keyword to text that matches the regex pattern. The distance can be 1-300 characters. The default value is 50.</p>
3854
+ * <p>The maximum number of characters that can exist between text that matches the regex pattern and the character sequences specified by the keywords array. Amazon Macie includes or excludes a result based on the proximity of a keyword to text that matches the regex pattern. The distance can be 1-300 characters. The default value is 50.</p>
3814
3855
  */
3815
3856
  maximumMatchDistance?: number;
3816
3857
 
@@ -4345,7 +4386,7 @@ export interface DescribeClassificationJobResponse {
4345
4386
  createdAt?: Date;
4346
4387
 
4347
4388
  /**
4348
- * <p>The custom data identifiers that the job uses to analyze data.</p>
4389
+ * <p>An array of unique identifiers, one for each custom data identifier that the job uses to analyze data. This value is null if the job uses only managed data identifiers to analyze data.</p>
4349
4390
  */
4350
4391
  customDataIdentifierIds?: string[];
4351
4392
 
@@ -4355,7 +4396,7 @@ export interface DescribeClassificationJobResponse {
4355
4396
  description?: string;
4356
4397
 
4357
4398
  /**
4358
- * <p>Specifies whether the job is configured to analyze all existing, eligible objects immediately after it's created.</p>
4399
+ * <p>For a recurring job, specifies whether you configured the job to analyze all existing, eligible objects immediately after the job was created (true). If you configured the job to analyze only those objects that were created or changed after the job was created and before the job's first scheduled run, this value is false. This value is also false for a one-time job.</p>
4359
4400
  */
4360
4401
  initialRun?: boolean;
4361
4402
 
@@ -4370,7 +4411,7 @@ export interface DescribeClassificationJobResponse {
4370
4411
  jobId?: string;
4371
4412
 
4372
4413
  /**
4373
- * <p>The current status of the job. Possible values are:</p> <ul><li><p>CANCELLED - You cancelled the job or, if it's a one-time job, you paused the job and didn't resume it within 30 days.</p></li> <li><p>COMPLETE - For a one-time job, Amazon Macie finished processing the data specified for the job. This value doesn't apply to recurring jobs.</p></li> <li><p>IDLE - For a recurring job, the previous scheduled run is complete and the next scheduled run is pending. This value doesn't apply to one-time jobs.</p></li> <li><p>PAUSED - Amazon Macie started running the job but additional processing would exceed the monthly sensitive data discovery quota for your account or one or more member accounts that the job analyzes data for.</p></li> <li><p>RUNNING - For a one-time job, the job is in progress. For a recurring job, a scheduled run is in progress.</p></li> <li><p>USER_PAUSED - You paused the job. If you paused the job while it had a status of RUNNING and you don't resume it within 30 days of pausing it, the job or job run will expire and be cancelled, depending on the job's type. To check the expiration date, refer to the UserPausedDetails.jobExpiresAt property.</p></li></ul>
4414
+ * <p>The current status of the job. Possible values are:</p> <ul><li><p>CANCELLED - You cancelled the job or, if it's a one-time job, you paused the job and didn't resume it within 30 days.</p></li> <li><p>COMPLETE - For a one-time job, Amazon Macie finished processing the data specified for the job. This value doesn't apply to recurring jobs.</p></li> <li><p>IDLE - For a recurring job, the previous scheduled run is complete and the next scheduled run is pending. This value doesn't apply to one-time jobs.</p></li> <li><p>PAUSED - Macie started running the job but additional processing would exceed the monthly sensitive data discovery quota for your account or one or more member accounts that the job analyzes data for.</p></li> <li><p>RUNNING - For a one-time job, the job is in progress. For a recurring job, a scheduled run is in progress.</p></li> <li><p>USER_PAUSED - You paused the job. If you paused the job while it had a status of RUNNING and you don't resume it within 30 days of pausing it, the job or job run will expire and be cancelled, depending on the job's type. To check the expiration date, refer to the UserPausedDetails.jobExpiresAt property.</p></li></ul>
4374
4415
  */
4375
4416
  jobStatus?: JobStatus | string;
4376
4417
 
@@ -4389,6 +4430,16 @@ export interface DescribeClassificationJobResponse {
4389
4430
  */
4390
4431
  lastRunTime?: Date;
4391
4432
 
4433
+ /**
4434
+ * <p>An array of unique identifiers, one for each managed data identifier that the job is explicitly configured to include (use) or exclude (not use) when it analyzes data. Inclusion or exclusion depends on the managed data identifier selection type specified for the job (managedDataIdentifierSelector). This value is null if the job's managed data identifier selection type is ALL or the job uses only custom data identifiers (customDataIdentifierIds) to analyze data.</p>
4435
+ */
4436
+ managedDataIdentifierIds?: string[];
4437
+
4438
+ /**
4439
+ * <p>The selection type that determines which managed data identifiers the job uses to analyze data. Possible values are:</p> <ul><li><p>ALL - Use all the managed data identifiers that Amazon Macie provides.</p></li> <li><p>EXCLUDE - Use all the managed data identifiers that Macie provides except the managed data identifiers specified by the managedDataIdentifierIds property.</p></li> <li><p>INCLUDE - Use only the managed data identifiers specified by the managedDataIdentifierIds property.</p></li> <li><p>NONE - Don't use any managed data identifiers.</p></li></ul> <p>If this value is null, the job uses all managed data identifiers. If this value is null, ALL, or EXCLUDE for a recurring job, the job also uses new managed data identifiers as they are released.</p>
4440
+ */
4441
+ managedDataIdentifierSelector?: ManagedDataIdentifierSelector | string;
4442
+
4392
4443
  /**
4393
4444
  * <p>The custom name of the job.</p>
4394
4445
  */
@@ -4405,7 +4456,7 @@ export interface DescribeClassificationJobResponse {
4405
4456
  samplingPercentage?: number;
4406
4457
 
4407
4458
  /**
4408
- * <p>The recurrence pattern for running the job. If the job is configured to run only once, this value is null.</p>
4459
+ * <p>The recurrence pattern for running the job. This value is null if the job is configured to run only once.</p>
4409
4460
  */
4410
4461
  scheduleFrequency?: JobScheduleFrequency;
4411
4462
 
@@ -4894,7 +4945,7 @@ export interface GetCustomDataIdentifierResponse {
4894
4945
  keywords?: string[];
4895
4946
 
4896
4947
  /**
4897
- * <p>The maximum number of characters that can exist between text that matches the regex pattern and the character sequences specified by the keywords array. Macie includes or excludes a result based on the proximity of a keyword to text that matches the regex pattern.</p>
4948
+ * <p>The maximum number of characters that can exist between text that matches the regex pattern and the character sequences specified by the keywords array. Amazon Macie includes or excludes a result based on the proximity of a keyword to text that matches the regex pattern.</p>
4898
4949
  */
4899
4950
  maximumMatchDistance?: number;
4900
4951
 
@@ -5749,6 +5800,43 @@ export namespace ListInvitationsResponse {
5749
5800
  });
5750
5801
  }
5751
5802
 
5803
+ export interface ListManagedDataIdentifiersRequest {
5804
+ /**
5805
+ * <p>The nextToken string that specifies which page of results to return in a paginated response.</p>
5806
+ */
5807
+ nextToken?: string;
5808
+ }
5809
+
5810
+ export namespace ListManagedDataIdentifiersRequest {
5811
+ /**
5812
+ * @internal
5813
+ */
5814
+ export const filterSensitiveLog = (obj: ListManagedDataIdentifiersRequest): any => ({
5815
+ ...obj,
5816
+ });
5817
+ }
5818
+
5819
+ export interface ListManagedDataIdentifiersResponse {
5820
+ /**
5821
+ * <p>An array of objects, one for each managed data identifier.</p>
5822
+ */
5823
+ items?: ManagedDataIdentifierSummary[];
5824
+
5825
+ /**
5826
+ * <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
5827
+ */
5828
+ nextToken?: string;
5829
+ }
5830
+
5831
+ export namespace ListManagedDataIdentifiersResponse {
5832
+ /**
5833
+ * @internal
5834
+ */
5835
+ export const filterSensitiveLog = (obj: ListManagedDataIdentifiersResponse): any => ({
5836
+ ...obj,
5837
+ });
5838
+ }
5839
+
5752
5840
  export interface ListMembersRequest {
5753
5841
  /**
5754
5842
  * <p>The maximum number of items to include in each page of a paginated response.</p>
@@ -6094,17 +6182,17 @@ export namespace TagResourceResponse {
6094
6182
 
6095
6183
  export interface TestCustomDataIdentifierRequest {
6096
6184
  /**
6097
- * <p>An array that lists specific character sequences (ignore words) to exclude from the results. If the text matched by the regular expression is the same as any string in this array, Amazon Macie ignores it. The array can contain as many as 10 ignore words. Each ignore word can contain 4-90 characters. Ignore words are case sensitive.</p>
6185
+ * <p>An array that lists specific character sequences (ignore words) to exclude from the results. If the text matched by the regular expression is the same as any string in this array, Amazon Macie ignores it. The array can contain as many as 10 ignore words. Each ignore word can contain 4-90 UTF-8 characters. Ignore words are case sensitive.</p>
6098
6186
  */
6099
6187
  ignoreWords?: string[];
6100
6188
 
6101
6189
  /**
6102
- * <p>An array that lists specific character sequences (keywords), one of which must be within proximity (maximumMatchDistance) of the regular expression to match. The array can contain as many as 50 keywords. Each keyword can contain 3-90 characters. Keywords aren't case sensitive.</p>
6190
+ * <p>An array that lists specific character sequences (keywords), one of which must be within proximity (maximumMatchDistance) of the regular expression to match. The array can contain as many as 50 keywords. Each keyword can contain 3-90 UTF-8 characters. Keywords aren't case sensitive.</p>
6103
6191
  */
6104
6192
  keywords?: string[];
6105
6193
 
6106
6194
  /**
6107
- * <p>The maximum number of characters that can exist between text that matches the regex pattern and the character sequences specified by the keywords array. Macie includes or excludes a result based on the proximity of a keyword to text that matches the regex pattern. The distance can be 1-300 characters. The default value is 50.</p>
6195
+ * <p>The maximum number of characters that can exist between text that matches the regex pattern and the character sequences specified by the keywords array. Amazon Macie includes or excludes a result based on the proximity of a keyword to text that matches the regex pattern. The distance can be 1-300 characters. The default value is 50.</p>
6108
6196
  */
6109
6197
  maximumMatchDistance?: number;
6110
6198
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-macie2",
3
3
  "description": "AWS SDK for JavaScript Macie2 Client for Node.js, Browser and React Native",
4
- "version": "3.31.0",
4
+ "version": "3.32.0",
5
5
  "scripts": {
6
6
  "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
7
7
  "build-documentation": "yarn remove-documentation && typedoc ./",
@@ -27,39 +27,39 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "^1.0.0",
29
29
  "@aws-crypto/sha256-js": "^1.0.0",
30
- "@aws-sdk/client-sts": "3.31.0",
31
- "@aws-sdk/config-resolver": "3.30.0",
32
- "@aws-sdk/credential-provider-node": "3.31.0",
33
- "@aws-sdk/fetch-http-handler": "3.29.0",
34
- "@aws-sdk/hash-node": "3.29.0",
35
- "@aws-sdk/invalid-dependency": "3.29.0",
36
- "@aws-sdk/middleware-content-length": "3.29.0",
37
- "@aws-sdk/middleware-host-header": "3.29.0",
38
- "@aws-sdk/middleware-logger": "3.29.0",
39
- "@aws-sdk/middleware-retry": "3.29.0",
40
- "@aws-sdk/middleware-serde": "3.29.0",
41
- "@aws-sdk/middleware-signing": "3.30.0",
42
- "@aws-sdk/middleware-stack": "3.29.0",
43
- "@aws-sdk/middleware-user-agent": "3.29.0",
44
- "@aws-sdk/node-config-provider": "3.29.0",
45
- "@aws-sdk/node-http-handler": "3.29.0",
46
- "@aws-sdk/protocol-http": "3.29.0",
47
- "@aws-sdk/smithy-client": "3.31.0",
48
- "@aws-sdk/types": "3.29.0",
49
- "@aws-sdk/url-parser": "3.29.0",
50
- "@aws-sdk/util-base64-browser": "3.29.0",
51
- "@aws-sdk/util-base64-node": "3.29.0",
52
- "@aws-sdk/util-body-length-browser": "3.29.0",
53
- "@aws-sdk/util-body-length-node": "3.29.0",
54
- "@aws-sdk/util-user-agent-browser": "3.29.0",
55
- "@aws-sdk/util-user-agent-node": "3.29.0",
56
- "@aws-sdk/util-utf8-browser": "3.29.0",
57
- "@aws-sdk/util-utf8-node": "3.29.0",
30
+ "@aws-sdk/client-sts": "3.32.0",
31
+ "@aws-sdk/config-resolver": "3.32.0",
32
+ "@aws-sdk/credential-provider-node": "3.32.0",
33
+ "@aws-sdk/fetch-http-handler": "3.32.0",
34
+ "@aws-sdk/hash-node": "3.32.0",
35
+ "@aws-sdk/invalid-dependency": "3.32.0",
36
+ "@aws-sdk/middleware-content-length": "3.32.0",
37
+ "@aws-sdk/middleware-host-header": "3.32.0",
38
+ "@aws-sdk/middleware-logger": "3.32.0",
39
+ "@aws-sdk/middleware-retry": "3.32.0",
40
+ "@aws-sdk/middleware-serde": "3.32.0",
41
+ "@aws-sdk/middleware-signing": "3.32.0",
42
+ "@aws-sdk/middleware-stack": "3.32.0",
43
+ "@aws-sdk/middleware-user-agent": "3.32.0",
44
+ "@aws-sdk/node-config-provider": "3.32.0",
45
+ "@aws-sdk/node-http-handler": "3.32.0",
46
+ "@aws-sdk/protocol-http": "3.32.0",
47
+ "@aws-sdk/smithy-client": "3.32.0",
48
+ "@aws-sdk/types": "3.32.0",
49
+ "@aws-sdk/url-parser": "3.32.0",
50
+ "@aws-sdk/util-base64-browser": "3.32.0",
51
+ "@aws-sdk/util-base64-node": "3.32.0",
52
+ "@aws-sdk/util-body-length-browser": "3.32.0",
53
+ "@aws-sdk/util-body-length-node": "3.32.0",
54
+ "@aws-sdk/util-user-agent-browser": "3.32.0",
55
+ "@aws-sdk/util-user-agent-node": "3.32.0",
56
+ "@aws-sdk/util-utf8-browser": "3.32.0",
57
+ "@aws-sdk/util-utf8-node": "3.32.0",
58
58
  "tslib": "^2.3.0",
59
59
  "uuid": "^8.3.2"
60
60
  },
61
61
  "devDependencies": {
62
- "@aws-sdk/client-documentation-generator": "3.29.0",
62
+ "@aws-sdk/client-documentation-generator": "3.32.0",
63
63
  "@types/node": "^12.7.5",
64
64
  "@types/uuid": "^8.3.0",
65
65
  "downlevel-dts": "0.7.0",
@@ -67,7 +67,7 @@
67
67
  "rimraf": "^3.0.0",
68
68
  "ts-jest": "^26.4.1",
69
69
  "typedoc": "^0.19.2",
70
- "typescript": "~4.4.2"
70
+ "typescript": "~4.3.5"
71
71
  },
72
72
  "engines": {
73
73
  "node": ">=10.0.0"
@@ -109,6 +109,10 @@ import {
109
109
  ListFindingsFiltersCommandOutput,
110
110
  } from "../commands/ListFindingsFiltersCommand";
111
111
  import { ListInvitationsCommandInput, ListInvitationsCommandOutput } from "../commands/ListInvitationsCommand";
112
+ import {
113
+ ListManagedDataIdentifiersCommandInput,
114
+ ListManagedDataIdentifiersCommandOutput,
115
+ } from "../commands/ListManagedDataIdentifiersCommand";
112
116
  import { ListMembersCommandInput, ListMembersCommandOutput } from "../commands/ListMembersCommand";
113
117
  import {
114
118
  ListOrganizationAdminAccountsCommandInput,
@@ -216,6 +220,7 @@ import {
216
220
  ListJobsFilterCriteria,
217
221
  ListJobsFilterTerm,
218
222
  ListJobsSortCriteria,
223
+ ManagedDataIdentifierSummary,
219
224
  MatchingBucket,
220
225
  MatchingResource,
221
226
  Member,
@@ -368,6 +373,14 @@ export const serializeAws_restJson1CreateClassificationJobCommand = async (
368
373
  ...(input.description !== undefined && input.description !== null && { description: input.description }),
369
374
  ...(input.initialRun !== undefined && input.initialRun !== null && { initialRun: input.initialRun }),
370
375
  ...(input.jobType !== undefined && input.jobType !== null && { jobType: input.jobType }),
376
+ ...(input.managedDataIdentifierIds !== undefined &&
377
+ input.managedDataIdentifierIds !== null && {
378
+ managedDataIdentifierIds: serializeAws_restJson1__listOf__string(input.managedDataIdentifierIds, context),
379
+ }),
380
+ ...(input.managedDataIdentifierSelector !== undefined &&
381
+ input.managedDataIdentifierSelector !== null && {
382
+ managedDataIdentifierSelector: input.managedDataIdentifierSelector,
383
+ }),
371
384
  ...(input.name !== undefined && input.name !== null && { name: input.name }),
372
385
  ...(input.s3JobDefinition !== undefined &&
373
386
  input.s3JobDefinition !== null && {
@@ -1427,6 +1440,31 @@ export const serializeAws_restJson1ListInvitationsCommand = async (
1427
1440
  });
1428
1441
  };
1429
1442
 
1443
+ export const serializeAws_restJson1ListManagedDataIdentifiersCommand = async (
1444
+ input: ListManagedDataIdentifiersCommandInput,
1445
+ context: __SerdeContext
1446
+ ): Promise<__HttpRequest> => {
1447
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1448
+ const headers: any = {
1449
+ "content-type": "application/json",
1450
+ };
1451
+ let resolvedPath =
1452
+ `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/managed-data-identifiers/list";
1453
+ let body: any;
1454
+ body = JSON.stringify({
1455
+ ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
1456
+ });
1457
+ return new __HttpRequest({
1458
+ protocol,
1459
+ hostname,
1460
+ port,
1461
+ method: "POST",
1462
+ headers,
1463
+ path: resolvedPath,
1464
+ body,
1465
+ });
1466
+ };
1467
+
1430
1468
  export const serializeAws_restJson1ListMembersCommand = async (
1431
1469
  input: ListMembersCommandInput,
1432
1470
  context: __SerdeContext
@@ -3324,6 +3362,8 @@ export const deserializeAws_restJson1DescribeClassificationJobCommand = async (
3324
3362
  jobType: undefined,
3325
3363
  lastRunErrorStatus: undefined,
3326
3364
  lastRunTime: undefined,
3365
+ managedDataIdentifierIds: undefined,
3366
+ managedDataIdentifierSelector: undefined,
3327
3367
  name: undefined,
3328
3368
  s3JobDefinition: undefined,
3329
3369
  samplingPercentage: undefined,
@@ -3366,6 +3406,15 @@ export const deserializeAws_restJson1DescribeClassificationJobCommand = async (
3366
3406
  if (data.lastRunTime !== undefined && data.lastRunTime !== null) {
3367
3407
  contents.lastRunTime = __expectNonNull(__parseRfc3339DateTime(data.lastRunTime));
3368
3408
  }
3409
+ if (data.managedDataIdentifierIds !== undefined && data.managedDataIdentifierIds !== null) {
3410
+ contents.managedDataIdentifierIds = deserializeAws_restJson1__listOf__string(
3411
+ data.managedDataIdentifierIds,
3412
+ context
3413
+ );
3414
+ }
3415
+ if (data.managedDataIdentifierSelector !== undefined && data.managedDataIdentifierSelector !== null) {
3416
+ contents.managedDataIdentifierSelector = __expectString(data.managedDataIdentifierSelector);
3417
+ }
3369
3418
  if (data.name !== undefined && data.name !== null) {
3370
3419
  contents.name = __expectString(data.name);
3371
3420
  }
@@ -6456,6 +6505,57 @@ const deserializeAws_restJson1ListInvitationsCommandError = async (
6456
6505
  return Promise.reject(Object.assign(new Error(message), response));
6457
6506
  };
6458
6507
 
6508
+ export const deserializeAws_restJson1ListManagedDataIdentifiersCommand = async (
6509
+ output: __HttpResponse,
6510
+ context: __SerdeContext
6511
+ ): Promise<ListManagedDataIdentifiersCommandOutput> => {
6512
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6513
+ return deserializeAws_restJson1ListManagedDataIdentifiersCommandError(output, context);
6514
+ }
6515
+ const contents: ListManagedDataIdentifiersCommandOutput = {
6516
+ $metadata: deserializeMetadata(output),
6517
+ items: undefined,
6518
+ nextToken: undefined,
6519
+ };
6520
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6521
+ if (data.items !== undefined && data.items !== null) {
6522
+ contents.items = deserializeAws_restJson1__listOfManagedDataIdentifierSummary(data.items, context);
6523
+ }
6524
+ if (data.nextToken !== undefined && data.nextToken !== null) {
6525
+ contents.nextToken = __expectString(data.nextToken);
6526
+ }
6527
+ return Promise.resolve(contents);
6528
+ };
6529
+
6530
+ const deserializeAws_restJson1ListManagedDataIdentifiersCommandError = async (
6531
+ output: __HttpResponse,
6532
+ context: __SerdeContext
6533
+ ): Promise<ListManagedDataIdentifiersCommandOutput> => {
6534
+ const parsedOutput: any = {
6535
+ ...output,
6536
+ body: await parseBody(output.body, context),
6537
+ };
6538
+ let response: __SmithyException & __MetadataBearer & { [key: string]: any };
6539
+ let errorCode: string = "UnknownError";
6540
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6541
+ switch (errorCode) {
6542
+ default:
6543
+ const parsedBody = parsedOutput.body;
6544
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
6545
+ response = {
6546
+ ...parsedBody,
6547
+ name: `${errorCode}`,
6548
+ message: parsedBody.message || parsedBody.Message || errorCode,
6549
+ $fault: "client",
6550
+ $metadata: deserializeMetadata(output),
6551
+ } as any;
6552
+ }
6553
+ const message = response.message || response.Message || errorCode;
6554
+ response.message = message;
6555
+ delete response.Message;
6556
+ return Promise.reject(Object.assign(new Error(message), response));
6557
+ };
6558
+
6459
6559
  export const deserializeAws_restJson1ListMembersCommand = async (
6460
6560
  output: __HttpResponse,
6461
6561
  context: __SerdeContext
@@ -8578,6 +8678,20 @@ const deserializeAws_restJson1__listOfKeyValuePair = (output: any, context: __Se
8578
8678
  });
8579
8679
  };
8580
8680
 
8681
+ const deserializeAws_restJson1__listOfManagedDataIdentifierSummary = (
8682
+ output: any,
8683
+ context: __SerdeContext
8684
+ ): ManagedDataIdentifierSummary[] => {
8685
+ return (output || [])
8686
+ .filter((e: any) => e != null)
8687
+ .map((entry: any) => {
8688
+ if (entry === null) {
8689
+ return null as any;
8690
+ }
8691
+ return deserializeAws_restJson1ManagedDataIdentifierSummary(entry, context);
8692
+ });
8693
+ };
8694
+
8581
8695
  const deserializeAws_restJson1__listOfMatchingResource = (output: any, context: __SerdeContext): MatchingResource[] => {
8582
8696
  return (output || [])
8583
8697
  .filter((e: any) => e != null)
@@ -9454,6 +9568,16 @@ const deserializeAws_restJson1LastRunErrorStatus = (output: any, context: __Serd
9454
9568
  } as any;
9455
9569
  };
9456
9570
 
9571
+ const deserializeAws_restJson1ManagedDataIdentifierSummary = (
9572
+ output: any,
9573
+ context: __SerdeContext
9574
+ ): ManagedDataIdentifierSummary => {
9575
+ return {
9576
+ category: __expectString(output.category),
9577
+ id: __expectString(output.id),
9578
+ } as any;
9579
+ };
9580
+
9457
9581
  const deserializeAws_restJson1MatchingBucket = (output: any, context: __SerdeContext): MatchingBucket => {
9458
9582
  return {
9459
9583
  accountId: __expectString(output.accountId),
package/tsconfig.json CHANGED
@@ -13,8 +13,7 @@
13
13
  "resolveJsonModule": true,
14
14
  "esModuleInterop": true,
15
15
  "declarationDir": "./dist/types",
16
- "outDir": "dist/cjs",
17
- "useUnknownInCatchVariables": false
16
+ "outDir": "dist/cjs"
18
17
  },
19
18
  "typedocOptions": {
20
19
  "exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],