@aws-sdk/client-fms 3.477.0 → 3.481.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 (205) hide show
  1. package/dist-cjs/commands/AssociateAdminAccountCommand.js +18 -41
  2. package/dist-cjs/commands/AssociateThirdPartyFirewallCommand.js +18 -41
  3. package/dist-cjs/commands/BatchAssociateResourceCommand.js +18 -41
  4. package/dist-cjs/commands/BatchDisassociateResourceCommand.js +18 -41
  5. package/dist-cjs/commands/DeleteAppsListCommand.js +18 -41
  6. package/dist-cjs/commands/DeleteNotificationChannelCommand.js +18 -41
  7. package/dist-cjs/commands/DeletePolicyCommand.js +18 -41
  8. package/dist-cjs/commands/DeleteProtocolsListCommand.js +18 -41
  9. package/dist-cjs/commands/DeleteResourceSetCommand.js +18 -41
  10. package/dist-cjs/commands/DisassociateAdminAccountCommand.js +18 -41
  11. package/dist-cjs/commands/DisassociateThirdPartyFirewallCommand.js +18 -41
  12. package/dist-cjs/commands/GetAdminAccountCommand.js +18 -41
  13. package/dist-cjs/commands/GetAdminScopeCommand.js +18 -41
  14. package/dist-cjs/commands/GetAppsListCommand.js +18 -41
  15. package/dist-cjs/commands/GetComplianceDetailCommand.js +18 -41
  16. package/dist-cjs/commands/GetNotificationChannelCommand.js +18 -41
  17. package/dist-cjs/commands/GetPolicyCommand.js +18 -41
  18. package/dist-cjs/commands/GetProtectionStatusCommand.js +18 -41
  19. package/dist-cjs/commands/GetProtocolsListCommand.js +18 -41
  20. package/dist-cjs/commands/GetResourceSetCommand.js +18 -41
  21. package/dist-cjs/commands/GetThirdPartyFirewallAssociationStatusCommand.js +18 -41
  22. package/dist-cjs/commands/GetViolationDetailsCommand.js +18 -41
  23. package/dist-cjs/commands/ListAdminAccountsForOrganizationCommand.js +18 -41
  24. package/dist-cjs/commands/ListAdminsManagingAccountCommand.js +18 -41
  25. package/dist-cjs/commands/ListAppsListsCommand.js +18 -41
  26. package/dist-cjs/commands/ListComplianceStatusCommand.js +18 -41
  27. package/dist-cjs/commands/ListDiscoveredResourcesCommand.js +18 -41
  28. package/dist-cjs/commands/ListMemberAccountsCommand.js +18 -41
  29. package/dist-cjs/commands/ListPoliciesCommand.js +18 -41
  30. package/dist-cjs/commands/ListProtocolsListsCommand.js +18 -41
  31. package/dist-cjs/commands/ListResourceSetResourcesCommand.js +18 -41
  32. package/dist-cjs/commands/ListResourceSetsCommand.js +18 -41
  33. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  34. package/dist-cjs/commands/ListThirdPartyFirewallFirewallPoliciesCommand.js +18 -41
  35. package/dist-cjs/commands/PutAdminAccountCommand.js +18 -41
  36. package/dist-cjs/commands/PutAppsListCommand.js +18 -41
  37. package/dist-cjs/commands/PutNotificationChannelCommand.js +18 -41
  38. package/dist-cjs/commands/PutPolicyCommand.js +18 -41
  39. package/dist-cjs/commands/PutProtocolsListCommand.js +18 -41
  40. package/dist-cjs/commands/PutResourceSetCommand.js +18 -41
  41. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  42. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  43. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  44. package/dist-cjs/pagination/ListAdminAccountsForOrganizationPaginator.js +2 -24
  45. package/dist-cjs/pagination/ListAdminsManagingAccountPaginator.js +2 -24
  46. package/dist-cjs/pagination/ListAppsListsPaginator.js +2 -24
  47. package/dist-cjs/pagination/ListComplianceStatusPaginator.js +2 -24
  48. package/dist-cjs/pagination/ListMemberAccountsPaginator.js +2 -24
  49. package/dist-cjs/pagination/ListPoliciesPaginator.js +2 -24
  50. package/dist-cjs/pagination/ListProtocolsListsPaginator.js +2 -24
  51. package/dist-cjs/pagination/ListThirdPartyFirewallFirewallPoliciesPaginator.js +2 -24
  52. package/dist-es/commands/AssociateAdminAccountCommand.js +18 -41
  53. package/dist-es/commands/AssociateThirdPartyFirewallCommand.js +18 -41
  54. package/dist-es/commands/BatchAssociateResourceCommand.js +18 -41
  55. package/dist-es/commands/BatchDisassociateResourceCommand.js +18 -41
  56. package/dist-es/commands/DeleteAppsListCommand.js +18 -41
  57. package/dist-es/commands/DeleteNotificationChannelCommand.js +18 -41
  58. package/dist-es/commands/DeletePolicyCommand.js +18 -41
  59. package/dist-es/commands/DeleteProtocolsListCommand.js +18 -41
  60. package/dist-es/commands/DeleteResourceSetCommand.js +18 -41
  61. package/dist-es/commands/DisassociateAdminAccountCommand.js +18 -41
  62. package/dist-es/commands/DisassociateThirdPartyFirewallCommand.js +18 -41
  63. package/dist-es/commands/GetAdminAccountCommand.js +18 -41
  64. package/dist-es/commands/GetAdminScopeCommand.js +18 -41
  65. package/dist-es/commands/GetAppsListCommand.js +18 -41
  66. package/dist-es/commands/GetComplianceDetailCommand.js +18 -41
  67. package/dist-es/commands/GetNotificationChannelCommand.js +18 -41
  68. package/dist-es/commands/GetPolicyCommand.js +18 -41
  69. package/dist-es/commands/GetProtectionStatusCommand.js +18 -41
  70. package/dist-es/commands/GetProtocolsListCommand.js +18 -41
  71. package/dist-es/commands/GetResourceSetCommand.js +18 -41
  72. package/dist-es/commands/GetThirdPartyFirewallAssociationStatusCommand.js +18 -41
  73. package/dist-es/commands/GetViolationDetailsCommand.js +18 -41
  74. package/dist-es/commands/ListAdminAccountsForOrganizationCommand.js +18 -41
  75. package/dist-es/commands/ListAdminsManagingAccountCommand.js +18 -41
  76. package/dist-es/commands/ListAppsListsCommand.js +18 -41
  77. package/dist-es/commands/ListComplianceStatusCommand.js +18 -41
  78. package/dist-es/commands/ListDiscoveredResourcesCommand.js +18 -41
  79. package/dist-es/commands/ListMemberAccountsCommand.js +18 -41
  80. package/dist-es/commands/ListPoliciesCommand.js +18 -41
  81. package/dist-es/commands/ListProtocolsListsCommand.js +18 -41
  82. package/dist-es/commands/ListResourceSetResourcesCommand.js +18 -41
  83. package/dist-es/commands/ListResourceSetsCommand.js +18 -41
  84. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  85. package/dist-es/commands/ListThirdPartyFirewallFirewallPoliciesCommand.js +18 -41
  86. package/dist-es/commands/PutAdminAccountCommand.js +18 -41
  87. package/dist-es/commands/PutAppsListCommand.js +18 -41
  88. package/dist-es/commands/PutNotificationChannelCommand.js +18 -41
  89. package/dist-es/commands/PutPolicyCommand.js +18 -41
  90. package/dist-es/commands/PutProtocolsListCommand.js +18 -41
  91. package/dist-es/commands/PutResourceSetCommand.js +18 -41
  92. package/dist-es/commands/TagResourceCommand.js +18 -41
  93. package/dist-es/commands/UntagResourceCommand.js +18 -41
  94. package/dist-es/endpoint/EndpointParameters.js +6 -0
  95. package/dist-es/pagination/ListAdminAccountsForOrganizationPaginator.js +2 -23
  96. package/dist-es/pagination/ListAdminsManagingAccountPaginator.js +2 -23
  97. package/dist-es/pagination/ListAppsListsPaginator.js +2 -23
  98. package/dist-es/pagination/ListComplianceStatusPaginator.js +2 -23
  99. package/dist-es/pagination/ListMemberAccountsPaginator.js +2 -23
  100. package/dist-es/pagination/ListPoliciesPaginator.js +2 -23
  101. package/dist-es/pagination/ListProtocolsListsPaginator.js +2 -23
  102. package/dist-es/pagination/ListThirdPartyFirewallFirewallPoliciesPaginator.js +2 -23
  103. package/dist-types/commands/AssociateAdminAccountCommand.d.ts +6 -21
  104. package/dist-types/commands/AssociateThirdPartyFirewallCommand.d.ts +6 -21
  105. package/dist-types/commands/BatchAssociateResourceCommand.d.ts +6 -21
  106. package/dist-types/commands/BatchDisassociateResourceCommand.d.ts +6 -21
  107. package/dist-types/commands/DeleteAppsListCommand.d.ts +6 -21
  108. package/dist-types/commands/DeleteNotificationChannelCommand.d.ts +6 -21
  109. package/dist-types/commands/DeletePolicyCommand.d.ts +6 -21
  110. package/dist-types/commands/DeleteProtocolsListCommand.d.ts +6 -21
  111. package/dist-types/commands/DeleteResourceSetCommand.d.ts +6 -21
  112. package/dist-types/commands/DisassociateAdminAccountCommand.d.ts +6 -21
  113. package/dist-types/commands/DisassociateThirdPartyFirewallCommand.d.ts +6 -21
  114. package/dist-types/commands/GetAdminAccountCommand.d.ts +6 -21
  115. package/dist-types/commands/GetAdminScopeCommand.d.ts +6 -21
  116. package/dist-types/commands/GetAppsListCommand.d.ts +6 -21
  117. package/dist-types/commands/GetComplianceDetailCommand.d.ts +6 -21
  118. package/dist-types/commands/GetNotificationChannelCommand.d.ts +6 -21
  119. package/dist-types/commands/GetPolicyCommand.d.ts +6 -21
  120. package/dist-types/commands/GetProtectionStatusCommand.d.ts +6 -21
  121. package/dist-types/commands/GetProtocolsListCommand.d.ts +6 -21
  122. package/dist-types/commands/GetResourceSetCommand.d.ts +6 -21
  123. package/dist-types/commands/GetThirdPartyFirewallAssociationStatusCommand.d.ts +6 -21
  124. package/dist-types/commands/GetViolationDetailsCommand.d.ts +6 -21
  125. package/dist-types/commands/ListAdminAccountsForOrganizationCommand.d.ts +6 -21
  126. package/dist-types/commands/ListAdminsManagingAccountCommand.d.ts +6 -21
  127. package/dist-types/commands/ListAppsListsCommand.d.ts +6 -21
  128. package/dist-types/commands/ListComplianceStatusCommand.d.ts +6 -21
  129. package/dist-types/commands/ListDiscoveredResourcesCommand.d.ts +6 -21
  130. package/dist-types/commands/ListMemberAccountsCommand.d.ts +6 -21
  131. package/dist-types/commands/ListPoliciesCommand.d.ts +6 -21
  132. package/dist-types/commands/ListProtocolsListsCommand.d.ts +6 -21
  133. package/dist-types/commands/ListResourceSetResourcesCommand.d.ts +6 -21
  134. package/dist-types/commands/ListResourceSetsCommand.d.ts +6 -21
  135. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  136. package/dist-types/commands/ListThirdPartyFirewallFirewallPoliciesCommand.d.ts +6 -21
  137. package/dist-types/commands/PutAdminAccountCommand.d.ts +6 -21
  138. package/dist-types/commands/PutAppsListCommand.d.ts +6 -21
  139. package/dist-types/commands/PutNotificationChannelCommand.d.ts +6 -21
  140. package/dist-types/commands/PutPolicyCommand.d.ts +6 -21
  141. package/dist-types/commands/PutProtocolsListCommand.d.ts +6 -21
  142. package/dist-types/commands/PutResourceSetCommand.d.ts +6 -21
  143. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  144. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  145. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  146. package/dist-types/pagination/ListAdminAccountsForOrganizationPaginator.d.ts +1 -1
  147. package/dist-types/pagination/ListAdminsManagingAccountPaginator.d.ts +1 -1
  148. package/dist-types/pagination/ListAppsListsPaginator.d.ts +1 -1
  149. package/dist-types/pagination/ListComplianceStatusPaginator.d.ts +1 -1
  150. package/dist-types/pagination/ListMemberAccountsPaginator.d.ts +1 -1
  151. package/dist-types/pagination/ListPoliciesPaginator.d.ts +1 -1
  152. package/dist-types/pagination/ListProtocolsListsPaginator.d.ts +1 -1
  153. package/dist-types/pagination/ListThirdPartyFirewallFirewallPoliciesPaginator.d.ts +1 -1
  154. package/dist-types/ts3.4/commands/AssociateAdminAccountCommand.d.ts +12 -24
  155. package/dist-types/ts3.4/commands/AssociateThirdPartyFirewallCommand.d.ts +12 -24
  156. package/dist-types/ts3.4/commands/BatchAssociateResourceCommand.d.ts +12 -24
  157. package/dist-types/ts3.4/commands/BatchDisassociateResourceCommand.d.ts +12 -24
  158. package/dist-types/ts3.4/commands/DeleteAppsListCommand.d.ts +14 -23
  159. package/dist-types/ts3.4/commands/DeleteNotificationChannelCommand.d.ts +12 -24
  160. package/dist-types/ts3.4/commands/DeletePolicyCommand.d.ts +14 -23
  161. package/dist-types/ts3.4/commands/DeleteProtocolsListCommand.d.ts +14 -23
  162. package/dist-types/ts3.4/commands/DeleteResourceSetCommand.d.ts +14 -23
  163. package/dist-types/ts3.4/commands/DisassociateAdminAccountCommand.d.ts +12 -24
  164. package/dist-types/ts3.4/commands/DisassociateThirdPartyFirewallCommand.d.ts +12 -24
  165. package/dist-types/ts3.4/commands/GetAdminAccountCommand.d.ts +14 -23
  166. package/dist-types/ts3.4/commands/GetAdminScopeCommand.d.ts +14 -23
  167. package/dist-types/ts3.4/commands/GetAppsListCommand.d.ts +14 -23
  168. package/dist-types/ts3.4/commands/GetComplianceDetailCommand.d.ts +14 -23
  169. package/dist-types/ts3.4/commands/GetNotificationChannelCommand.d.ts +12 -24
  170. package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +14 -23
  171. package/dist-types/ts3.4/commands/GetProtectionStatusCommand.d.ts +14 -23
  172. package/dist-types/ts3.4/commands/GetProtocolsListCommand.d.ts +14 -23
  173. package/dist-types/ts3.4/commands/GetResourceSetCommand.d.ts +14 -23
  174. package/dist-types/ts3.4/commands/GetThirdPartyFirewallAssociationStatusCommand.d.ts +12 -24
  175. package/dist-types/ts3.4/commands/GetViolationDetailsCommand.d.ts +14 -23
  176. package/dist-types/ts3.4/commands/ListAdminAccountsForOrganizationCommand.d.ts +12 -24
  177. package/dist-types/ts3.4/commands/ListAdminsManagingAccountCommand.d.ts +12 -24
  178. package/dist-types/ts3.4/commands/ListAppsListsCommand.d.ts +14 -23
  179. package/dist-types/ts3.4/commands/ListComplianceStatusCommand.d.ts +12 -24
  180. package/dist-types/ts3.4/commands/ListDiscoveredResourcesCommand.d.ts +12 -24
  181. package/dist-types/ts3.4/commands/ListMemberAccountsCommand.d.ts +14 -23
  182. package/dist-types/ts3.4/commands/ListPoliciesCommand.d.ts +14 -23
  183. package/dist-types/ts3.4/commands/ListProtocolsListsCommand.d.ts +14 -23
  184. package/dist-types/ts3.4/commands/ListResourceSetResourcesCommand.d.ts +12 -24
  185. package/dist-types/ts3.4/commands/ListResourceSetsCommand.d.ts +14 -23
  186. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  187. package/dist-types/ts3.4/commands/ListThirdPartyFirewallFirewallPoliciesCommand.d.ts +12 -24
  188. package/dist-types/ts3.4/commands/PutAdminAccountCommand.d.ts +14 -23
  189. package/dist-types/ts3.4/commands/PutAppsListCommand.d.ts +14 -23
  190. package/dist-types/ts3.4/commands/PutNotificationChannelCommand.d.ts +12 -24
  191. package/dist-types/ts3.4/commands/PutPolicyCommand.d.ts +14 -23
  192. package/dist-types/ts3.4/commands/PutProtocolsListCommand.d.ts +14 -23
  193. package/dist-types/ts3.4/commands/PutResourceSetCommand.d.ts +14 -23
  194. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  195. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  196. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  197. package/dist-types/ts3.4/pagination/ListAdminAccountsForOrganizationPaginator.d.ts +3 -3
  198. package/dist-types/ts3.4/pagination/ListAdminsManagingAccountPaginator.d.ts +3 -3
  199. package/dist-types/ts3.4/pagination/ListAppsListsPaginator.d.ts +3 -3
  200. package/dist-types/ts3.4/pagination/ListComplianceStatusPaginator.d.ts +3 -3
  201. package/dist-types/ts3.4/pagination/ListMemberAccountsPaginator.d.ts +3 -3
  202. package/dist-types/ts3.4/pagination/ListPoliciesPaginator.d.ts +3 -3
  203. package/dist-types/ts3.4/pagination/ListProtocolsListsPaginator.d.ts +3 -3
  204. package/dist-types/ts3.4/pagination/ListThirdPartyFirewallFirewallPoliciesPaginator.d.ts +3 -3
  205. package/package.json +11 -10
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_PutAppsListCommand, se_PutAppsListCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class PutAppsListCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, PutAppsListCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "FMSClient";
26
- const commandName = "PutAppsListCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSFMS_20180101",
35
- operation: "PutAppsList",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_PutAppsListCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_PutAppsListCommand(output, context);
46
- }
7
+ export class PutAppsListCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSFMS_20180101", "PutAppsList", {})
19
+ .n("FMSClient", "PutAppsListCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_PutAppsListCommand)
22
+ .de(de_PutAppsListCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_PutNotificationChannelCommand, se_PutNotificationChannelCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class PutNotificationChannelCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, PutNotificationChannelCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "FMSClient";
26
- const commandName = "PutNotificationChannelCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSFMS_20180101",
35
- operation: "PutNotificationChannel",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_PutNotificationChannelCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_PutNotificationChannelCommand(output, context);
46
- }
7
+ export class PutNotificationChannelCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSFMS_20180101", "PutNotificationChannel", {})
19
+ .n("FMSClient", "PutNotificationChannelCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_PutNotificationChannelCommand)
22
+ .de(de_PutNotificationChannelCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_PutPolicyCommand, se_PutPolicyCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class PutPolicyCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, PutPolicyCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "FMSClient";
26
- const commandName = "PutPolicyCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSFMS_20180101",
35
- operation: "PutPolicy",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_PutPolicyCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_PutPolicyCommand(output, context);
46
- }
7
+ export class PutPolicyCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSFMS_20180101", "PutPolicy", {})
19
+ .n("FMSClient", "PutPolicyCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_PutPolicyCommand)
22
+ .de(de_PutPolicyCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_PutProtocolsListCommand, se_PutProtocolsListCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class PutProtocolsListCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, PutProtocolsListCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "FMSClient";
26
- const commandName = "PutProtocolsListCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSFMS_20180101",
35
- operation: "PutProtocolsList",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_PutProtocolsListCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_PutProtocolsListCommand(output, context);
46
- }
7
+ export class PutProtocolsListCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSFMS_20180101", "PutProtocolsList", {})
19
+ .n("FMSClient", "PutProtocolsListCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_PutProtocolsListCommand)
22
+ .de(de_PutProtocolsListCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_PutResourceSetCommand, se_PutResourceSetCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class PutResourceSetCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, PutResourceSetCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "FMSClient";
26
- const commandName = "PutResourceSetCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSFMS_20180101",
35
- operation: "PutResourceSet",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_PutResourceSetCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_PutResourceSetCommand(output, context);
46
- }
7
+ export class PutResourceSetCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSFMS_20180101", "PutResourceSet", {})
19
+ .n("FMSClient", "PutResourceSetCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_PutResourceSetCommand)
22
+ .de(de_PutResourceSetCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class TagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, TagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "FMSClient";
26
- const commandName = "TagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSFMS_20180101",
35
- operation: "TagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_TagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_TagResourceCommand(output, context);
46
- }
7
+ export class TagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSFMS_20180101", "TagResource", {})
19
+ .n("FMSClient", "TagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_TagResourceCommand)
22
+ .de(de_TagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UntagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "FMSClient";
26
- const commandName = "UntagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSFMS_20180101",
35
- operation: "UntagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UntagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UntagResourceCommand(output, context);
46
- }
7
+ export class UntagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSFMS_20180101", "UntagResource", {})
19
+ .n("FMSClient", "UntagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UntagResourceCommand)
22
+ .de(de_UntagResourceCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "fms",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListAdminAccountsForOrganizationCommand, } from "../commands/ListAdminAccountsForOrganizationCommand";
2
3
  import { FMSClient } from "../FMSClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAdminAccountsForOrganizationCommand(input), ...args);
5
- };
6
- export async function* paginateListAdminAccountsForOrganization(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof FMSClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected FMS | FMSClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListAdminAccountsForOrganization = createPaginator(FMSClient, ListAdminAccountsForOrganizationCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListAdminsManagingAccountCommand, } from "../commands/ListAdminsManagingAccountCommand";
2
3
  import { FMSClient } from "../FMSClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAdminsManagingAccountCommand(input), ...args);
5
- };
6
- export async function* paginateListAdminsManagingAccount(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof FMSClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected FMS | FMSClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListAdminsManagingAccount = createPaginator(FMSClient, ListAdminsManagingAccountCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListAppsListsCommand, } from "../commands/ListAppsListsCommand";
2
3
  import { FMSClient } from "../FMSClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAppsListsCommand(input), ...args);
5
- };
6
- export async function* paginateListAppsLists(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof FMSClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected FMS | FMSClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListAppsLists = createPaginator(FMSClient, ListAppsListsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListComplianceStatusCommand, } from "../commands/ListComplianceStatusCommand";
2
3
  import { FMSClient } from "../FMSClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListComplianceStatusCommand(input), ...args);
5
- };
6
- export async function* paginateListComplianceStatus(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof FMSClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected FMS | FMSClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListComplianceStatus = createPaginator(FMSClient, ListComplianceStatusCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListMemberAccountsCommand, } from "../commands/ListMemberAccountsCommand";
2
3
  import { FMSClient } from "../FMSClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListMemberAccountsCommand(input), ...args);
5
- };
6
- export async function* paginateListMemberAccounts(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof FMSClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected FMS | FMSClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListMemberAccounts = createPaginator(FMSClient, ListMemberAccountsCommand, "NextToken", "NextToken", "MaxResults");