@aws-sdk/client-macie2 3.218.0 → 3.219.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 (155) hide show
  1. package/README.md +1 -1
  2. package/dist-cjs/Macie2.js +195 -0
  3. package/dist-cjs/commands/GetAutomatedDiscoveryConfigurationCommand.js +46 -0
  4. package/dist-cjs/commands/GetClassificationScopeCommand.js +46 -0
  5. package/dist-cjs/commands/GetResourceProfileCommand.js +46 -0
  6. package/dist-cjs/commands/GetSensitivityInspectionTemplateCommand.js +46 -0
  7. package/dist-cjs/commands/ListClassificationScopesCommand.js +46 -0
  8. package/dist-cjs/commands/ListInvitationsCommand.js +3 -3
  9. package/dist-cjs/commands/ListManagedDataIdentifiersCommand.js +3 -3
  10. package/dist-cjs/commands/ListMembersCommand.js +3 -3
  11. package/dist-cjs/commands/ListOrganizationAdminAccountsCommand.js +3 -3
  12. package/dist-cjs/commands/ListResourceProfileArtifactsCommand.js +46 -0
  13. package/dist-cjs/commands/ListResourceProfileDetectionsCommand.js +46 -0
  14. package/dist-cjs/commands/ListSensitivityInspectionTemplatesCommand.js +46 -0
  15. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  16. package/dist-cjs/commands/PutClassificationExportConfigurationCommand.js +3 -3
  17. package/dist-cjs/commands/PutFindingsPublicationConfigurationCommand.js +3 -3
  18. package/dist-cjs/commands/SearchResourcesCommand.js +3 -3
  19. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  20. package/dist-cjs/commands/TestCustomDataIdentifierCommand.js +3 -3
  21. package/dist-cjs/commands/UntagResourceCommand.js +1 -2
  22. package/dist-cjs/commands/UpdateAutomatedDiscoveryConfigurationCommand.js +46 -0
  23. package/dist-cjs/commands/UpdateClassificationScopeCommand.js +46 -0
  24. package/dist-cjs/commands/UpdateResourceProfileCommand.js +46 -0
  25. package/dist-cjs/commands/UpdateResourceProfileDetectionsCommand.js +46 -0
  26. package/dist-cjs/commands/UpdateSensitivityInspectionTemplateCommand.js +46 -0
  27. package/dist-cjs/commands/index.js +13 -0
  28. package/dist-cjs/endpoint/ruleset.js +1 -1
  29. package/dist-cjs/models/models_0.js +113 -109
  30. package/dist-cjs/models/models_1.js +177 -1
  31. package/dist-cjs/pagination/ListAllowListsPaginator.js +36 -0
  32. package/dist-cjs/pagination/ListClassificationScopesPaginator.js +35 -0
  33. package/dist-cjs/pagination/ListManagedDataIdentifiersPaginator.js +35 -0
  34. package/dist-cjs/pagination/ListResourceProfileArtifactsPaginator.js +35 -0
  35. package/dist-cjs/pagination/ListResourceProfileDetectionsPaginator.js +36 -0
  36. package/dist-cjs/pagination/ListSensitivityInspectionTemplatesPaginator.js +36 -0
  37. package/dist-cjs/pagination/index.js +6 -0
  38. package/dist-cjs/protocols/Aws_restJson1.js +1211 -69
  39. package/dist-es/Macie2.js +195 -0
  40. package/dist-es/commands/GetAutomatedDiscoveryConfigurationCommand.js +42 -0
  41. package/dist-es/commands/GetClassificationScopeCommand.js +42 -0
  42. package/dist-es/commands/GetResourceProfileCommand.js +42 -0
  43. package/dist-es/commands/GetSensitivityInspectionTemplateCommand.js +42 -0
  44. package/dist-es/commands/ListClassificationScopesCommand.js +42 -0
  45. package/dist-es/commands/ListInvitationsCommand.js +1 -1
  46. package/dist-es/commands/ListManagedDataIdentifiersCommand.js +1 -1
  47. package/dist-es/commands/ListMembersCommand.js +1 -1
  48. package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +1 -1
  49. package/dist-es/commands/ListResourceProfileArtifactsCommand.js +42 -0
  50. package/dist-es/commands/ListResourceProfileDetectionsCommand.js +42 -0
  51. package/dist-es/commands/ListSensitivityInspectionTemplatesCommand.js +42 -0
  52. package/dist-es/commands/ListTagsForResourceCommand.js +1 -1
  53. package/dist-es/commands/PutClassificationExportConfigurationCommand.js +1 -1
  54. package/dist-es/commands/PutFindingsPublicationConfigurationCommand.js +1 -1
  55. package/dist-es/commands/SearchResourcesCommand.js +1 -1
  56. package/dist-es/commands/TagResourceCommand.js +1 -1
  57. package/dist-es/commands/TestCustomDataIdentifierCommand.js +1 -1
  58. package/dist-es/commands/UntagResourceCommand.js +1 -2
  59. package/dist-es/commands/UpdateAutomatedDiscoveryConfigurationCommand.js +42 -0
  60. package/dist-es/commands/UpdateClassificationScopeCommand.js +42 -0
  61. package/dist-es/commands/UpdateResourceProfileCommand.js +42 -0
  62. package/dist-es/commands/UpdateResourceProfileDetectionsCommand.js +42 -0
  63. package/dist-es/commands/UpdateSensitivityInspectionTemplateCommand.js +42 -0
  64. package/dist-es/commands/index.js +13 -0
  65. package/dist-es/endpoint/ruleset.js +1 -1
  66. package/dist-es/models/models_0.js +85 -79
  67. package/dist-es/models/models_1.js +133 -0
  68. package/dist-es/pagination/ListAllowListsPaginator.js +32 -0
  69. package/dist-es/pagination/ListClassificationScopesPaginator.js +31 -0
  70. package/dist-es/pagination/ListManagedDataIdentifiersPaginator.js +31 -0
  71. package/dist-es/pagination/ListResourceProfileArtifactsPaginator.js +31 -0
  72. package/dist-es/pagination/ListResourceProfileDetectionsPaginator.js +32 -0
  73. package/dist-es/pagination/ListSensitivityInspectionTemplatesPaginator.js +32 -0
  74. package/dist-es/pagination/index.js +6 -0
  75. package/dist-es/protocols/Aws_restJson1.js +1199 -84
  76. package/dist-types/Macie2.d.ts +95 -4
  77. package/dist-types/Macie2Client.d.ts +16 -3
  78. package/dist-types/commands/DescribeBucketsCommand.d.ts +1 -1
  79. package/dist-types/commands/GetAutomatedDiscoveryConfigurationCommand.d.ts +37 -0
  80. package/dist-types/commands/GetBucketStatisticsCommand.d.ts +1 -1
  81. package/dist-types/commands/GetClassificationScopeCommand.d.ts +37 -0
  82. package/dist-types/commands/GetMacieSessionCommand.d.ts +1 -1
  83. package/dist-types/commands/GetResourceProfileCommand.d.ts +37 -0
  84. package/dist-types/commands/GetSensitivityInspectionTemplateCommand.d.ts +37 -0
  85. package/dist-types/commands/ListClassificationScopesCommand.d.ts +37 -0
  86. package/dist-types/commands/ListInvitationsCommand.d.ts +1 -1
  87. package/dist-types/commands/ListManagedDataIdentifiersCommand.d.ts +1 -1
  88. package/dist-types/commands/ListMembersCommand.d.ts +1 -1
  89. package/dist-types/commands/ListOrganizationAdminAccountsCommand.d.ts +1 -1
  90. package/dist-types/commands/ListResourceProfileArtifactsCommand.d.ts +37 -0
  91. package/dist-types/commands/ListResourceProfileDetectionsCommand.d.ts +37 -0
  92. package/dist-types/commands/ListSensitivityInspectionTemplatesCommand.d.ts +37 -0
  93. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  94. package/dist-types/commands/PutClassificationExportConfigurationCommand.d.ts +1 -1
  95. package/dist-types/commands/PutFindingsPublicationConfigurationCommand.d.ts +1 -1
  96. package/dist-types/commands/SearchResourcesCommand.d.ts +1 -1
  97. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  98. package/dist-types/commands/TestCustomDataIdentifierCommand.d.ts +1 -1
  99. package/dist-types/commands/UntagResourceCommand.d.ts +1 -2
  100. package/dist-types/commands/UpdateAutomatedDiscoveryConfigurationCommand.d.ts +37 -0
  101. package/dist-types/commands/UpdateClassificationScopeCommand.d.ts +37 -0
  102. package/dist-types/commands/UpdateResourceProfileCommand.d.ts +37 -0
  103. package/dist-types/commands/UpdateResourceProfileDetectionsCommand.d.ts +37 -0
  104. package/dist-types/commands/UpdateSensitivityInspectionTemplateCommand.d.ts +37 -0
  105. package/dist-types/commands/index.d.ts +13 -0
  106. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  107. package/dist-types/models/models_0.d.ts +501 -372
  108. package/dist-types/models/models_1.d.ts +559 -6
  109. package/dist-types/pagination/ListAllowListsPaginator.d.ts +4 -0
  110. package/dist-types/pagination/ListClassificationScopesPaginator.d.ts +4 -0
  111. package/dist-types/pagination/ListManagedDataIdentifiersPaginator.d.ts +4 -0
  112. package/dist-types/pagination/ListResourceProfileArtifactsPaginator.d.ts +4 -0
  113. package/dist-types/pagination/ListResourceProfileDetectionsPaginator.d.ts +4 -0
  114. package/dist-types/pagination/ListSensitivityInspectionTemplatesPaginator.d.ts +4 -0
  115. package/dist-types/pagination/index.d.ts +6 -0
  116. package/dist-types/protocols/Aws_restJson1.d.ts +39 -0
  117. package/dist-types/ts3.4/Macie2.d.ts +245 -0
  118. package/dist-types/ts3.4/Macie2Client.d.ts +80 -2
  119. package/dist-types/ts3.4/commands/GetAutomatedDiscoveryConfigurationCommand.d.ts +41 -0
  120. package/dist-types/ts3.4/commands/GetClassificationScopeCommand.d.ts +41 -0
  121. package/dist-types/ts3.4/commands/GetResourceProfileCommand.d.ts +38 -0
  122. package/dist-types/ts3.4/commands/GetSensitivityInspectionTemplateCommand.d.ts +41 -0
  123. package/dist-types/ts3.4/commands/ListClassificationScopesCommand.d.ts +41 -0
  124. package/dist-types/ts3.4/commands/ListInvitationsCommand.d.ts +1 -1
  125. package/dist-types/ts3.4/commands/ListManagedDataIdentifiersCommand.d.ts +1 -1
  126. package/dist-types/ts3.4/commands/ListMembersCommand.d.ts +1 -1
  127. package/dist-types/ts3.4/commands/ListOrganizationAdminAccountsCommand.d.ts +1 -1
  128. package/dist-types/ts3.4/commands/ListResourceProfileArtifactsCommand.d.ts +41 -0
  129. package/dist-types/ts3.4/commands/ListResourceProfileDetectionsCommand.d.ts +41 -0
  130. package/dist-types/ts3.4/commands/ListSensitivityInspectionTemplatesCommand.d.ts +41 -0
  131. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  132. package/dist-types/ts3.4/commands/PutClassificationExportConfigurationCommand.d.ts +1 -1
  133. package/dist-types/ts3.4/commands/PutFindingsPublicationConfigurationCommand.d.ts +1 -1
  134. package/dist-types/ts3.4/commands/SearchResourcesCommand.d.ts +1 -1
  135. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  136. package/dist-types/ts3.4/commands/TestCustomDataIdentifierCommand.d.ts +1 -1
  137. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +4 -2
  138. package/dist-types/ts3.4/commands/UpdateAutomatedDiscoveryConfigurationCommand.d.ts +41 -0
  139. package/dist-types/ts3.4/commands/UpdateClassificationScopeCommand.d.ts +41 -0
  140. package/dist-types/ts3.4/commands/UpdateResourceProfileCommand.d.ts +41 -0
  141. package/dist-types/ts3.4/commands/UpdateResourceProfileDetectionsCommand.d.ts +41 -0
  142. package/dist-types/ts3.4/commands/UpdateSensitivityInspectionTemplateCommand.d.ts +41 -0
  143. package/dist-types/ts3.4/commands/index.d.ts +13 -0
  144. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  145. package/dist-types/ts3.4/models/models_0.d.ts +194 -169
  146. package/dist-types/ts3.4/models/models_1.d.ts +297 -1
  147. package/dist-types/ts3.4/pagination/ListAllowListsPaginator.d.ts +11 -0
  148. package/dist-types/ts3.4/pagination/ListClassificationScopesPaginator.d.ts +11 -0
  149. package/dist-types/ts3.4/pagination/ListManagedDataIdentifiersPaginator.d.ts +11 -0
  150. package/dist-types/ts3.4/pagination/ListResourceProfileArtifactsPaginator.d.ts +11 -0
  151. package/dist-types/ts3.4/pagination/ListResourceProfileDetectionsPaginator.d.ts +11 -0
  152. package/dist-types/ts3.4/pagination/ListSensitivityInspectionTemplatesPaginator.d.ts +11 -0
  153. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  154. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +156 -0
  155. package/package.json +1 -1
package/dist-es/Macie2.js CHANGED
@@ -25,8 +25,10 @@ import { EnableMacieCommand } from "./commands/EnableMacieCommand";
25
25
  import { EnableOrganizationAdminAccountCommand, } from "./commands/EnableOrganizationAdminAccountCommand";
26
26
  import { GetAdministratorAccountCommand, } from "./commands/GetAdministratorAccountCommand";
27
27
  import { GetAllowListCommand, } from "./commands/GetAllowListCommand";
28
+ import { GetAutomatedDiscoveryConfigurationCommand, } from "./commands/GetAutomatedDiscoveryConfigurationCommand";
28
29
  import { GetBucketStatisticsCommand, } from "./commands/GetBucketStatisticsCommand";
29
30
  import { GetClassificationExportConfigurationCommand, } from "./commands/GetClassificationExportConfigurationCommand";
31
+ import { GetClassificationScopeCommand, } from "./commands/GetClassificationScopeCommand";
30
32
  import { GetCustomDataIdentifierCommand, } from "./commands/GetCustomDataIdentifierCommand";
31
33
  import { GetFindingsCommand } from "./commands/GetFindingsCommand";
32
34
  import { GetFindingsFilterCommand, } from "./commands/GetFindingsFilterCommand";
@@ -36,13 +38,16 @@ import { GetInvitationsCountCommand, } from "./commands/GetInvitationsCountComma
36
38
  import { GetMacieSessionCommand, } from "./commands/GetMacieSessionCommand";
37
39
  import { GetMasterAccountCommand, } from "./commands/GetMasterAccountCommand";
38
40
  import { GetMemberCommand } from "./commands/GetMemberCommand";
41
+ import { GetResourceProfileCommand, } from "./commands/GetResourceProfileCommand";
39
42
  import { GetRevealConfigurationCommand, } from "./commands/GetRevealConfigurationCommand";
40
43
  import { GetSensitiveDataOccurrencesAvailabilityCommand, } from "./commands/GetSensitiveDataOccurrencesAvailabilityCommand";
41
44
  import { GetSensitiveDataOccurrencesCommand, } from "./commands/GetSensitiveDataOccurrencesCommand";
45
+ import { GetSensitivityInspectionTemplateCommand, } from "./commands/GetSensitivityInspectionTemplateCommand";
42
46
  import { GetUsageStatisticsCommand, } from "./commands/GetUsageStatisticsCommand";
43
47
  import { GetUsageTotalsCommand, } from "./commands/GetUsageTotalsCommand";
44
48
  import { ListAllowListsCommand, } from "./commands/ListAllowListsCommand";
45
49
  import { ListClassificationJobsCommand, } from "./commands/ListClassificationJobsCommand";
50
+ import { ListClassificationScopesCommand, } from "./commands/ListClassificationScopesCommand";
46
51
  import { ListCustomDataIdentifiersCommand, } from "./commands/ListCustomDataIdentifiersCommand";
47
52
  import { ListFindingsCommand, } from "./commands/ListFindingsCommand";
48
53
  import { ListFindingsFiltersCommand, } from "./commands/ListFindingsFiltersCommand";
@@ -50,6 +55,9 @@ import { ListInvitationsCommand, } from "./commands/ListInvitationsCommand";
50
55
  import { ListManagedDataIdentifiersCommand, } from "./commands/ListManagedDataIdentifiersCommand";
51
56
  import { ListMembersCommand } from "./commands/ListMembersCommand";
52
57
  import { ListOrganizationAdminAccountsCommand, } from "./commands/ListOrganizationAdminAccountsCommand";
58
+ import { ListResourceProfileArtifactsCommand, } from "./commands/ListResourceProfileArtifactsCommand";
59
+ import { ListResourceProfileDetectionsCommand, } from "./commands/ListResourceProfileDetectionsCommand";
60
+ import { ListSensitivityInspectionTemplatesCommand, } from "./commands/ListSensitivityInspectionTemplatesCommand";
53
61
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
54
62
  import { PutClassificationExportConfigurationCommand, } from "./commands/PutClassificationExportConfigurationCommand";
55
63
  import { PutFindingsPublicationConfigurationCommand, } from "./commands/PutFindingsPublicationConfigurationCommand";
@@ -58,12 +66,17 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
58
66
  import { TestCustomDataIdentifierCommand, } from "./commands/TestCustomDataIdentifierCommand";
59
67
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
60
68
  import { UpdateAllowListCommand, } from "./commands/UpdateAllowListCommand";
69
+ import { UpdateAutomatedDiscoveryConfigurationCommand, } from "./commands/UpdateAutomatedDiscoveryConfigurationCommand";
61
70
  import { UpdateClassificationJobCommand, } from "./commands/UpdateClassificationJobCommand";
71
+ import { UpdateClassificationScopeCommand, } from "./commands/UpdateClassificationScopeCommand";
62
72
  import { UpdateFindingsFilterCommand, } from "./commands/UpdateFindingsFilterCommand";
63
73
  import { UpdateMacieSessionCommand, } from "./commands/UpdateMacieSessionCommand";
64
74
  import { UpdateMemberSessionCommand, } from "./commands/UpdateMemberSessionCommand";
65
75
  import { UpdateOrganizationConfigurationCommand, } from "./commands/UpdateOrganizationConfigurationCommand";
76
+ import { UpdateResourceProfileCommand, } from "./commands/UpdateResourceProfileCommand";
77
+ import { UpdateResourceProfileDetectionsCommand, } from "./commands/UpdateResourceProfileDetectionsCommand";
66
78
  import { UpdateRevealConfigurationCommand, } from "./commands/UpdateRevealConfigurationCommand";
79
+ import { UpdateSensitivityInspectionTemplateCommand, } from "./commands/UpdateSensitivityInspectionTemplateCommand";
67
80
  import { Macie2Client } from "./Macie2Client";
68
81
  export class Macie2 extends Macie2Client {
69
82
  acceptInvitation(args, optionsOrCb, cb) {
@@ -444,6 +457,20 @@ export class Macie2 extends Macie2Client {
444
457
  return this.send(command, optionsOrCb);
445
458
  }
446
459
  }
460
+ getAutomatedDiscoveryConfiguration(args, optionsOrCb, cb) {
461
+ const command = new GetAutomatedDiscoveryConfigurationCommand(args);
462
+ if (typeof optionsOrCb === "function") {
463
+ this.send(command, optionsOrCb);
464
+ }
465
+ else if (typeof cb === "function") {
466
+ if (typeof optionsOrCb !== "object")
467
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
468
+ this.send(command, optionsOrCb || {}, cb);
469
+ }
470
+ else {
471
+ return this.send(command, optionsOrCb);
472
+ }
473
+ }
447
474
  getBucketStatistics(args, optionsOrCb, cb) {
448
475
  const command = new GetBucketStatisticsCommand(args);
449
476
  if (typeof optionsOrCb === "function") {
@@ -472,6 +499,20 @@ export class Macie2 extends Macie2Client {
472
499
  return this.send(command, optionsOrCb);
473
500
  }
474
501
  }
502
+ getClassificationScope(args, optionsOrCb, cb) {
503
+ const command = new GetClassificationScopeCommand(args);
504
+ if (typeof optionsOrCb === "function") {
505
+ this.send(command, optionsOrCb);
506
+ }
507
+ else if (typeof cb === "function") {
508
+ if (typeof optionsOrCb !== "object")
509
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
510
+ this.send(command, optionsOrCb || {}, cb);
511
+ }
512
+ else {
513
+ return this.send(command, optionsOrCb);
514
+ }
515
+ }
475
516
  getCustomDataIdentifier(args, optionsOrCb, cb) {
476
517
  const command = new GetCustomDataIdentifierCommand(args);
477
518
  if (typeof optionsOrCb === "function") {
@@ -598,6 +639,20 @@ export class Macie2 extends Macie2Client {
598
639
  return this.send(command, optionsOrCb);
599
640
  }
600
641
  }
642
+ getResourceProfile(args, optionsOrCb, cb) {
643
+ const command = new GetResourceProfileCommand(args);
644
+ if (typeof optionsOrCb === "function") {
645
+ this.send(command, optionsOrCb);
646
+ }
647
+ else if (typeof cb === "function") {
648
+ if (typeof optionsOrCb !== "object")
649
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
650
+ this.send(command, optionsOrCb || {}, cb);
651
+ }
652
+ else {
653
+ return this.send(command, optionsOrCb);
654
+ }
655
+ }
601
656
  getRevealConfiguration(args, optionsOrCb, cb) {
602
657
  const command = new GetRevealConfigurationCommand(args);
603
658
  if (typeof optionsOrCb === "function") {
@@ -640,6 +695,20 @@ export class Macie2 extends Macie2Client {
640
695
  return this.send(command, optionsOrCb);
641
696
  }
642
697
  }
698
+ getSensitivityInspectionTemplate(args, optionsOrCb, cb) {
699
+ const command = new GetSensitivityInspectionTemplateCommand(args);
700
+ if (typeof optionsOrCb === "function") {
701
+ this.send(command, optionsOrCb);
702
+ }
703
+ else if (typeof cb === "function") {
704
+ if (typeof optionsOrCb !== "object")
705
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
706
+ this.send(command, optionsOrCb || {}, cb);
707
+ }
708
+ else {
709
+ return this.send(command, optionsOrCb);
710
+ }
711
+ }
643
712
  getUsageStatistics(args, optionsOrCb, cb) {
644
713
  const command = new GetUsageStatisticsCommand(args);
645
714
  if (typeof optionsOrCb === "function") {
@@ -696,6 +765,20 @@ export class Macie2 extends Macie2Client {
696
765
  return this.send(command, optionsOrCb);
697
766
  }
698
767
  }
768
+ listClassificationScopes(args, optionsOrCb, cb) {
769
+ const command = new ListClassificationScopesCommand(args);
770
+ if (typeof optionsOrCb === "function") {
771
+ this.send(command, optionsOrCb);
772
+ }
773
+ else if (typeof cb === "function") {
774
+ if (typeof optionsOrCb !== "object")
775
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
776
+ this.send(command, optionsOrCb || {}, cb);
777
+ }
778
+ else {
779
+ return this.send(command, optionsOrCb);
780
+ }
781
+ }
699
782
  listCustomDataIdentifiers(args, optionsOrCb, cb) {
700
783
  const command = new ListCustomDataIdentifiersCommand(args);
701
784
  if (typeof optionsOrCb === "function") {
@@ -794,6 +877,48 @@ export class Macie2 extends Macie2Client {
794
877
  return this.send(command, optionsOrCb);
795
878
  }
796
879
  }
880
+ listResourceProfileArtifacts(args, optionsOrCb, cb) {
881
+ const command = new ListResourceProfileArtifactsCommand(args);
882
+ if (typeof optionsOrCb === "function") {
883
+ this.send(command, optionsOrCb);
884
+ }
885
+ else if (typeof cb === "function") {
886
+ if (typeof optionsOrCb !== "object")
887
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
888
+ this.send(command, optionsOrCb || {}, cb);
889
+ }
890
+ else {
891
+ return this.send(command, optionsOrCb);
892
+ }
893
+ }
894
+ listResourceProfileDetections(args, optionsOrCb, cb) {
895
+ const command = new ListResourceProfileDetectionsCommand(args);
896
+ if (typeof optionsOrCb === "function") {
897
+ this.send(command, optionsOrCb);
898
+ }
899
+ else if (typeof cb === "function") {
900
+ if (typeof optionsOrCb !== "object")
901
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
902
+ this.send(command, optionsOrCb || {}, cb);
903
+ }
904
+ else {
905
+ return this.send(command, optionsOrCb);
906
+ }
907
+ }
908
+ listSensitivityInspectionTemplates(args, optionsOrCb, cb) {
909
+ const command = new ListSensitivityInspectionTemplatesCommand(args);
910
+ if (typeof optionsOrCb === "function") {
911
+ this.send(command, optionsOrCb);
912
+ }
913
+ else if (typeof cb === "function") {
914
+ if (typeof optionsOrCb !== "object")
915
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
916
+ this.send(command, optionsOrCb || {}, cb);
917
+ }
918
+ else {
919
+ return this.send(command, optionsOrCb);
920
+ }
921
+ }
797
922
  listTagsForResource(args, optionsOrCb, cb) {
798
923
  const command = new ListTagsForResourceCommand(args);
799
924
  if (typeof optionsOrCb === "function") {
@@ -906,6 +1031,20 @@ export class Macie2 extends Macie2Client {
906
1031
  return this.send(command, optionsOrCb);
907
1032
  }
908
1033
  }
1034
+ updateAutomatedDiscoveryConfiguration(args, optionsOrCb, cb) {
1035
+ const command = new UpdateAutomatedDiscoveryConfigurationCommand(args);
1036
+ if (typeof optionsOrCb === "function") {
1037
+ this.send(command, optionsOrCb);
1038
+ }
1039
+ else if (typeof cb === "function") {
1040
+ if (typeof optionsOrCb !== "object")
1041
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1042
+ this.send(command, optionsOrCb || {}, cb);
1043
+ }
1044
+ else {
1045
+ return this.send(command, optionsOrCb);
1046
+ }
1047
+ }
909
1048
  updateClassificationJob(args, optionsOrCb, cb) {
910
1049
  const command = new UpdateClassificationJobCommand(args);
911
1050
  if (typeof optionsOrCb === "function") {
@@ -920,6 +1059,20 @@ export class Macie2 extends Macie2Client {
920
1059
  return this.send(command, optionsOrCb);
921
1060
  }
922
1061
  }
1062
+ updateClassificationScope(args, optionsOrCb, cb) {
1063
+ const command = new UpdateClassificationScopeCommand(args);
1064
+ if (typeof optionsOrCb === "function") {
1065
+ this.send(command, optionsOrCb);
1066
+ }
1067
+ else if (typeof cb === "function") {
1068
+ if (typeof optionsOrCb !== "object")
1069
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1070
+ this.send(command, optionsOrCb || {}, cb);
1071
+ }
1072
+ else {
1073
+ return this.send(command, optionsOrCb);
1074
+ }
1075
+ }
923
1076
  updateFindingsFilter(args, optionsOrCb, cb) {
924
1077
  const command = new UpdateFindingsFilterCommand(args);
925
1078
  if (typeof optionsOrCb === "function") {
@@ -976,6 +1129,34 @@ export class Macie2 extends Macie2Client {
976
1129
  return this.send(command, optionsOrCb);
977
1130
  }
978
1131
  }
1132
+ updateResourceProfile(args, optionsOrCb, cb) {
1133
+ const command = new UpdateResourceProfileCommand(args);
1134
+ if (typeof optionsOrCb === "function") {
1135
+ this.send(command, optionsOrCb);
1136
+ }
1137
+ else if (typeof cb === "function") {
1138
+ if (typeof optionsOrCb !== "object")
1139
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1140
+ this.send(command, optionsOrCb || {}, cb);
1141
+ }
1142
+ else {
1143
+ return this.send(command, optionsOrCb);
1144
+ }
1145
+ }
1146
+ updateResourceProfileDetections(args, optionsOrCb, cb) {
1147
+ const command = new UpdateResourceProfileDetectionsCommand(args);
1148
+ if (typeof optionsOrCb === "function") {
1149
+ this.send(command, optionsOrCb);
1150
+ }
1151
+ else if (typeof cb === "function") {
1152
+ if (typeof optionsOrCb !== "object")
1153
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1154
+ this.send(command, optionsOrCb || {}, cb);
1155
+ }
1156
+ else {
1157
+ return this.send(command, optionsOrCb);
1158
+ }
1159
+ }
979
1160
  updateRevealConfiguration(args, optionsOrCb, cb) {
980
1161
  const command = new UpdateRevealConfigurationCommand(args);
981
1162
  if (typeof optionsOrCb === "function") {
@@ -990,4 +1171,18 @@ export class Macie2 extends Macie2Client {
990
1171
  return this.send(command, optionsOrCb);
991
1172
  }
992
1173
  }
1174
+ updateSensitivityInspectionTemplate(args, optionsOrCb, cb) {
1175
+ const command = new UpdateSensitivityInspectionTemplateCommand(args);
1176
+ if (typeof optionsOrCb === "function") {
1177
+ this.send(command, optionsOrCb);
1178
+ }
1179
+ else if (typeof cb === "function") {
1180
+ if (typeof optionsOrCb !== "object")
1181
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1182
+ this.send(command, optionsOrCb || {}, cb);
1183
+ }
1184
+ else {
1185
+ return this.send(command, optionsOrCb);
1186
+ }
1187
+ }
993
1188
  }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetAutomatedDiscoveryConfigurationRequestFilterSensitiveLog, GetAutomatedDiscoveryConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1GetAutomatedDiscoveryConfigurationCommand, serializeAws_restJson1GetAutomatedDiscoveryConfigurationCommand, } from "../protocols/Aws_restJson1";
6
+ export class GetAutomatedDiscoveryConfigurationCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetAutomatedDiscoveryConfigurationCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "Macie2Client";
25
+ const commandName = "GetAutomatedDiscoveryConfigurationCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: GetAutomatedDiscoveryConfigurationRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: GetAutomatedDiscoveryConfigurationResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1GetAutomatedDiscoveryConfigurationCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1GetAutomatedDiscoveryConfigurationCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetClassificationScopeRequestFilterSensitiveLog, GetClassificationScopeResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1GetClassificationScopeCommand, serializeAws_restJson1GetClassificationScopeCommand, } from "../protocols/Aws_restJson1";
6
+ export class GetClassificationScopeCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetClassificationScopeCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "Macie2Client";
25
+ const commandName = "GetClassificationScopeCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: GetClassificationScopeRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: GetClassificationScopeResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1GetClassificationScopeCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1GetClassificationScopeCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetResourceProfileRequestFilterSensitiveLog, GetResourceProfileResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1GetResourceProfileCommand, serializeAws_restJson1GetResourceProfileCommand, } from "../protocols/Aws_restJson1";
6
+ export class GetResourceProfileCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetResourceProfileCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "Macie2Client";
25
+ const commandName = "GetResourceProfileCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: GetResourceProfileRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: GetResourceProfileResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1GetResourceProfileCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1GetResourceProfileCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetSensitivityInspectionTemplateRequestFilterSensitiveLog, GetSensitivityInspectionTemplateResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1GetSensitivityInspectionTemplateCommand, serializeAws_restJson1GetSensitivityInspectionTemplateCommand, } from "../protocols/Aws_restJson1";
6
+ export class GetSensitivityInspectionTemplateCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetSensitivityInspectionTemplateCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "Macie2Client";
25
+ const commandName = "GetSensitivityInspectionTemplateCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: GetSensitivityInspectionTemplateRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: GetSensitivityInspectionTemplateResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1GetSensitivityInspectionTemplateCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1GetSensitivityInspectionTemplateCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListClassificationScopesRequestFilterSensitiveLog, ListClassificationScopesResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListClassificationScopesCommand, serializeAws_restJson1ListClassificationScopesCommand, } from "../protocols/Aws_restJson1";
6
+ export class ListClassificationScopesCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListClassificationScopesCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "Macie2Client";
25
+ const commandName = "ListClassificationScopesCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: ListClassificationScopesRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: ListClassificationScopesResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1ListClassificationScopesCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1ListClassificationScopesCommand(output, context);
41
+ }
42
+ }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListInvitationsRequestFilterSensitiveLog, ListInvitationsResponseFilterSensitiveLog, } from "../models/models_0";
4
+ import { ListInvitationsRequestFilterSensitiveLog, ListInvitationsResponseFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListInvitationsCommand, serializeAws_restJson1ListInvitationsCommand, } from "../protocols/Aws_restJson1";
6
6
  export class ListInvitationsCommand extends $Command {
7
7
  constructor(input) {
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListManagedDataIdentifiersRequestFilterSensitiveLog, ListManagedDataIdentifiersResponseFilterSensitiveLog, } from "../models/models_0";
4
+ import { ListManagedDataIdentifiersRequestFilterSensitiveLog, ListManagedDataIdentifiersResponseFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListManagedDataIdentifiersCommand, serializeAws_restJson1ListManagedDataIdentifiersCommand, } from "../protocols/Aws_restJson1";
6
6
  export class ListManagedDataIdentifiersCommand extends $Command {
7
7
  constructor(input) {
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListMembersRequestFilterSensitiveLog, ListMembersResponseFilterSensitiveLog, } from "../models/models_0";
4
+ import { ListMembersRequestFilterSensitiveLog, ListMembersResponseFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListMembersCommand, serializeAws_restJson1ListMembersCommand, } from "../protocols/Aws_restJson1";
6
6
  export class ListMembersCommand extends $Command {
7
7
  constructor(input) {
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListOrganizationAdminAccountsRequestFilterSensitiveLog, ListOrganizationAdminAccountsResponseFilterSensitiveLog, } from "../models/models_0";
4
+ import { ListOrganizationAdminAccountsRequestFilterSensitiveLog, ListOrganizationAdminAccountsResponseFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListOrganizationAdminAccountsCommand, serializeAws_restJson1ListOrganizationAdminAccountsCommand, } from "../protocols/Aws_restJson1";
6
6
  export class ListOrganizationAdminAccountsCommand extends $Command {
7
7
  constructor(input) {
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListResourceProfileArtifactsRequestFilterSensitiveLog, ListResourceProfileArtifactsResponseFilterSensitiveLog, } from "../models/models_1";
5
+ import { deserializeAws_restJson1ListResourceProfileArtifactsCommand, serializeAws_restJson1ListResourceProfileArtifactsCommand, } from "../protocols/Aws_restJson1";
6
+ export class ListResourceProfileArtifactsCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListResourceProfileArtifactsCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "Macie2Client";
25
+ const commandName = "ListResourceProfileArtifactsCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: ListResourceProfileArtifactsRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: ListResourceProfileArtifactsResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1ListResourceProfileArtifactsCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1ListResourceProfileArtifactsCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListResourceProfileDetectionsRequestFilterSensitiveLog, ListResourceProfileDetectionsResponseFilterSensitiveLog, } from "../models/models_1";
5
+ import { deserializeAws_restJson1ListResourceProfileDetectionsCommand, serializeAws_restJson1ListResourceProfileDetectionsCommand, } from "../protocols/Aws_restJson1";
6
+ export class ListResourceProfileDetectionsCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListResourceProfileDetectionsCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "Macie2Client";
25
+ const commandName = "ListResourceProfileDetectionsCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: ListResourceProfileDetectionsRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: ListResourceProfileDetectionsResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1ListResourceProfileDetectionsCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1ListResourceProfileDetectionsCommand(output, context);
41
+ }
42
+ }