@aws-sdk/client-codedeploy 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 (217) hide show
  1. package/dist-cjs/commands/AddTagsToOnPremisesInstancesCommand.js +18 -41
  2. package/dist-cjs/commands/BatchGetApplicationRevisionsCommand.js +18 -41
  3. package/dist-cjs/commands/BatchGetApplicationsCommand.js +18 -41
  4. package/dist-cjs/commands/BatchGetDeploymentGroupsCommand.js +18 -41
  5. package/dist-cjs/commands/BatchGetDeploymentInstancesCommand.js +18 -41
  6. package/dist-cjs/commands/BatchGetDeploymentTargetsCommand.js +18 -41
  7. package/dist-cjs/commands/BatchGetDeploymentsCommand.js +18 -41
  8. package/dist-cjs/commands/BatchGetOnPremisesInstancesCommand.js +18 -41
  9. package/dist-cjs/commands/ContinueDeploymentCommand.js +18 -41
  10. package/dist-cjs/commands/CreateApplicationCommand.js +18 -41
  11. package/dist-cjs/commands/CreateDeploymentCommand.js +18 -41
  12. package/dist-cjs/commands/CreateDeploymentConfigCommand.js +18 -41
  13. package/dist-cjs/commands/CreateDeploymentGroupCommand.js +18 -41
  14. package/dist-cjs/commands/DeleteApplicationCommand.js +18 -41
  15. package/dist-cjs/commands/DeleteDeploymentConfigCommand.js +18 -41
  16. package/dist-cjs/commands/DeleteDeploymentGroupCommand.js +18 -41
  17. package/dist-cjs/commands/DeleteGitHubAccountTokenCommand.js +18 -41
  18. package/dist-cjs/commands/DeleteResourcesByExternalIdCommand.js +18 -41
  19. package/dist-cjs/commands/DeregisterOnPremisesInstanceCommand.js +18 -41
  20. package/dist-cjs/commands/GetApplicationCommand.js +18 -41
  21. package/dist-cjs/commands/GetApplicationRevisionCommand.js +18 -41
  22. package/dist-cjs/commands/GetDeploymentCommand.js +18 -41
  23. package/dist-cjs/commands/GetDeploymentConfigCommand.js +18 -41
  24. package/dist-cjs/commands/GetDeploymentGroupCommand.js +18 -41
  25. package/dist-cjs/commands/GetDeploymentInstanceCommand.js +18 -41
  26. package/dist-cjs/commands/GetDeploymentTargetCommand.js +18 -41
  27. package/dist-cjs/commands/GetOnPremisesInstanceCommand.js +18 -41
  28. package/dist-cjs/commands/ListApplicationRevisionsCommand.js +18 -41
  29. package/dist-cjs/commands/ListApplicationsCommand.js +18 -41
  30. package/dist-cjs/commands/ListDeploymentConfigsCommand.js +18 -41
  31. package/dist-cjs/commands/ListDeploymentGroupsCommand.js +18 -41
  32. package/dist-cjs/commands/ListDeploymentInstancesCommand.js +18 -41
  33. package/dist-cjs/commands/ListDeploymentTargetsCommand.js +18 -41
  34. package/dist-cjs/commands/ListDeploymentsCommand.js +18 -41
  35. package/dist-cjs/commands/ListGitHubAccountTokenNamesCommand.js +18 -41
  36. package/dist-cjs/commands/ListOnPremisesInstancesCommand.js +18 -41
  37. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  38. package/dist-cjs/commands/PutLifecycleEventHookExecutionStatusCommand.js +18 -41
  39. package/dist-cjs/commands/RegisterApplicationRevisionCommand.js +18 -41
  40. package/dist-cjs/commands/RegisterOnPremisesInstanceCommand.js +18 -41
  41. package/dist-cjs/commands/RemoveTagsFromOnPremisesInstancesCommand.js +18 -41
  42. package/dist-cjs/commands/SkipWaitTimeForInstanceTerminationCommand.js +18 -41
  43. package/dist-cjs/commands/StopDeploymentCommand.js +18 -41
  44. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  45. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  46. package/dist-cjs/commands/UpdateApplicationCommand.js +18 -41
  47. package/dist-cjs/commands/UpdateDeploymentGroupCommand.js +18 -41
  48. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  49. package/dist-cjs/pagination/ListApplicationRevisionsPaginator.js +2 -23
  50. package/dist-cjs/pagination/ListApplicationsPaginator.js +2 -23
  51. package/dist-cjs/pagination/ListDeploymentConfigsPaginator.js +2 -23
  52. package/dist-cjs/pagination/ListDeploymentGroupsPaginator.js +2 -23
  53. package/dist-cjs/pagination/ListDeploymentInstancesPaginator.js +2 -23
  54. package/dist-cjs/pagination/ListDeploymentsPaginator.js +2 -23
  55. package/dist-es/commands/AddTagsToOnPremisesInstancesCommand.js +18 -41
  56. package/dist-es/commands/BatchGetApplicationRevisionsCommand.js +18 -41
  57. package/dist-es/commands/BatchGetApplicationsCommand.js +18 -41
  58. package/dist-es/commands/BatchGetDeploymentGroupsCommand.js +18 -41
  59. package/dist-es/commands/BatchGetDeploymentInstancesCommand.js +18 -41
  60. package/dist-es/commands/BatchGetDeploymentTargetsCommand.js +18 -41
  61. package/dist-es/commands/BatchGetDeploymentsCommand.js +18 -41
  62. package/dist-es/commands/BatchGetOnPremisesInstancesCommand.js +18 -41
  63. package/dist-es/commands/ContinueDeploymentCommand.js +18 -41
  64. package/dist-es/commands/CreateApplicationCommand.js +18 -41
  65. package/dist-es/commands/CreateDeploymentCommand.js +18 -41
  66. package/dist-es/commands/CreateDeploymentConfigCommand.js +18 -41
  67. package/dist-es/commands/CreateDeploymentGroupCommand.js +18 -41
  68. package/dist-es/commands/DeleteApplicationCommand.js +18 -41
  69. package/dist-es/commands/DeleteDeploymentConfigCommand.js +18 -41
  70. package/dist-es/commands/DeleteDeploymentGroupCommand.js +18 -41
  71. package/dist-es/commands/DeleteGitHubAccountTokenCommand.js +18 -41
  72. package/dist-es/commands/DeleteResourcesByExternalIdCommand.js +18 -41
  73. package/dist-es/commands/DeregisterOnPremisesInstanceCommand.js +18 -41
  74. package/dist-es/commands/GetApplicationCommand.js +18 -41
  75. package/dist-es/commands/GetApplicationRevisionCommand.js +18 -41
  76. package/dist-es/commands/GetDeploymentCommand.js +18 -41
  77. package/dist-es/commands/GetDeploymentConfigCommand.js +18 -41
  78. package/dist-es/commands/GetDeploymentGroupCommand.js +18 -41
  79. package/dist-es/commands/GetDeploymentInstanceCommand.js +18 -41
  80. package/dist-es/commands/GetDeploymentTargetCommand.js +18 -41
  81. package/dist-es/commands/GetOnPremisesInstanceCommand.js +18 -41
  82. package/dist-es/commands/ListApplicationRevisionsCommand.js +18 -41
  83. package/dist-es/commands/ListApplicationsCommand.js +18 -41
  84. package/dist-es/commands/ListDeploymentConfigsCommand.js +18 -41
  85. package/dist-es/commands/ListDeploymentGroupsCommand.js +18 -41
  86. package/dist-es/commands/ListDeploymentInstancesCommand.js +18 -41
  87. package/dist-es/commands/ListDeploymentTargetsCommand.js +18 -41
  88. package/dist-es/commands/ListDeploymentsCommand.js +18 -41
  89. package/dist-es/commands/ListGitHubAccountTokenNamesCommand.js +18 -41
  90. package/dist-es/commands/ListOnPremisesInstancesCommand.js +18 -41
  91. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  92. package/dist-es/commands/PutLifecycleEventHookExecutionStatusCommand.js +18 -41
  93. package/dist-es/commands/RegisterApplicationRevisionCommand.js +18 -41
  94. package/dist-es/commands/RegisterOnPremisesInstanceCommand.js +18 -41
  95. package/dist-es/commands/RemoveTagsFromOnPremisesInstancesCommand.js +18 -41
  96. package/dist-es/commands/SkipWaitTimeForInstanceTerminationCommand.js +18 -41
  97. package/dist-es/commands/StopDeploymentCommand.js +18 -41
  98. package/dist-es/commands/TagResourceCommand.js +18 -41
  99. package/dist-es/commands/UntagResourceCommand.js +18 -41
  100. package/dist-es/commands/UpdateApplicationCommand.js +18 -41
  101. package/dist-es/commands/UpdateDeploymentGroupCommand.js +18 -41
  102. package/dist-es/endpoint/EndpointParameters.js +6 -0
  103. package/dist-es/pagination/ListApplicationRevisionsPaginator.js +2 -22
  104. package/dist-es/pagination/ListApplicationsPaginator.js +2 -22
  105. package/dist-es/pagination/ListDeploymentConfigsPaginator.js +2 -22
  106. package/dist-es/pagination/ListDeploymentGroupsPaginator.js +2 -22
  107. package/dist-es/pagination/ListDeploymentInstancesPaginator.js +2 -22
  108. package/dist-es/pagination/ListDeploymentsPaginator.js +2 -22
  109. package/dist-types/commands/AddTagsToOnPremisesInstancesCommand.d.ts +6 -21
  110. package/dist-types/commands/BatchGetApplicationRevisionsCommand.d.ts +6 -21
  111. package/dist-types/commands/BatchGetApplicationsCommand.d.ts +6 -21
  112. package/dist-types/commands/BatchGetDeploymentGroupsCommand.d.ts +6 -21
  113. package/dist-types/commands/BatchGetDeploymentInstancesCommand.d.ts +6 -21
  114. package/dist-types/commands/BatchGetDeploymentTargetsCommand.d.ts +6 -21
  115. package/dist-types/commands/BatchGetDeploymentsCommand.d.ts +6 -21
  116. package/dist-types/commands/BatchGetOnPremisesInstancesCommand.d.ts +6 -21
  117. package/dist-types/commands/ContinueDeploymentCommand.d.ts +6 -21
  118. package/dist-types/commands/CreateApplicationCommand.d.ts +6 -21
  119. package/dist-types/commands/CreateDeploymentCommand.d.ts +6 -21
  120. package/dist-types/commands/CreateDeploymentConfigCommand.d.ts +6 -21
  121. package/dist-types/commands/CreateDeploymentGroupCommand.d.ts +6 -21
  122. package/dist-types/commands/DeleteApplicationCommand.d.ts +6 -21
  123. package/dist-types/commands/DeleteDeploymentConfigCommand.d.ts +6 -21
  124. package/dist-types/commands/DeleteDeploymentGroupCommand.d.ts +6 -21
  125. package/dist-types/commands/DeleteGitHubAccountTokenCommand.d.ts +6 -21
  126. package/dist-types/commands/DeleteResourcesByExternalIdCommand.d.ts +6 -21
  127. package/dist-types/commands/DeregisterOnPremisesInstanceCommand.d.ts +6 -21
  128. package/dist-types/commands/GetApplicationCommand.d.ts +6 -21
  129. package/dist-types/commands/GetApplicationRevisionCommand.d.ts +6 -21
  130. package/dist-types/commands/GetDeploymentCommand.d.ts +6 -21
  131. package/dist-types/commands/GetDeploymentConfigCommand.d.ts +6 -21
  132. package/dist-types/commands/GetDeploymentGroupCommand.d.ts +6 -21
  133. package/dist-types/commands/GetDeploymentInstanceCommand.d.ts +6 -21
  134. package/dist-types/commands/GetDeploymentTargetCommand.d.ts +6 -21
  135. package/dist-types/commands/GetOnPremisesInstanceCommand.d.ts +6 -21
  136. package/dist-types/commands/ListApplicationRevisionsCommand.d.ts +6 -21
  137. package/dist-types/commands/ListApplicationsCommand.d.ts +6 -21
  138. package/dist-types/commands/ListDeploymentConfigsCommand.d.ts +6 -21
  139. package/dist-types/commands/ListDeploymentGroupsCommand.d.ts +6 -21
  140. package/dist-types/commands/ListDeploymentInstancesCommand.d.ts +6 -21
  141. package/dist-types/commands/ListDeploymentTargetsCommand.d.ts +6 -21
  142. package/dist-types/commands/ListDeploymentsCommand.d.ts +6 -21
  143. package/dist-types/commands/ListGitHubAccountTokenNamesCommand.d.ts +6 -21
  144. package/dist-types/commands/ListOnPremisesInstancesCommand.d.ts +6 -21
  145. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  146. package/dist-types/commands/PutLifecycleEventHookExecutionStatusCommand.d.ts +6 -21
  147. package/dist-types/commands/RegisterApplicationRevisionCommand.d.ts +6 -21
  148. package/dist-types/commands/RegisterOnPremisesInstanceCommand.d.ts +6 -21
  149. package/dist-types/commands/RemoveTagsFromOnPremisesInstancesCommand.d.ts +6 -21
  150. package/dist-types/commands/SkipWaitTimeForInstanceTerminationCommand.d.ts +6 -21
  151. package/dist-types/commands/StopDeploymentCommand.d.ts +6 -21
  152. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  153. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  154. package/dist-types/commands/UpdateApplicationCommand.d.ts +6 -21
  155. package/dist-types/commands/UpdateDeploymentGroupCommand.d.ts +6 -21
  156. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  157. package/dist-types/pagination/ListApplicationRevisionsPaginator.d.ts +1 -1
  158. package/dist-types/pagination/ListApplicationsPaginator.d.ts +1 -1
  159. package/dist-types/pagination/ListDeploymentConfigsPaginator.d.ts +1 -1
  160. package/dist-types/pagination/ListDeploymentGroupsPaginator.d.ts +1 -1
  161. package/dist-types/pagination/ListDeploymentInstancesPaginator.d.ts +1 -1
  162. package/dist-types/pagination/ListDeploymentsPaginator.d.ts +1 -1
  163. package/dist-types/ts3.4/commands/AddTagsToOnPremisesInstancesCommand.d.ts +12 -24
  164. package/dist-types/ts3.4/commands/BatchGetApplicationRevisionsCommand.d.ts +12 -24
  165. package/dist-types/ts3.4/commands/BatchGetApplicationsCommand.d.ts +12 -24
  166. package/dist-types/ts3.4/commands/BatchGetDeploymentGroupsCommand.d.ts +12 -24
  167. package/dist-types/ts3.4/commands/BatchGetDeploymentInstancesCommand.d.ts +12 -24
  168. package/dist-types/ts3.4/commands/BatchGetDeploymentTargetsCommand.d.ts +12 -24
  169. package/dist-types/ts3.4/commands/BatchGetDeploymentsCommand.d.ts +14 -23
  170. package/dist-types/ts3.4/commands/BatchGetOnPremisesInstancesCommand.d.ts +12 -24
  171. package/dist-types/ts3.4/commands/ContinueDeploymentCommand.d.ts +14 -23
  172. package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +14 -23
  173. package/dist-types/ts3.4/commands/CreateDeploymentCommand.d.ts +14 -23
  174. package/dist-types/ts3.4/commands/CreateDeploymentConfigCommand.d.ts +12 -24
  175. package/dist-types/ts3.4/commands/CreateDeploymentGroupCommand.d.ts +12 -24
  176. package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +14 -23
  177. package/dist-types/ts3.4/commands/DeleteDeploymentConfigCommand.d.ts +12 -24
  178. package/dist-types/ts3.4/commands/DeleteDeploymentGroupCommand.d.ts +12 -24
  179. package/dist-types/ts3.4/commands/DeleteGitHubAccountTokenCommand.d.ts +12 -24
  180. package/dist-types/ts3.4/commands/DeleteResourcesByExternalIdCommand.d.ts +12 -24
  181. package/dist-types/ts3.4/commands/DeregisterOnPremisesInstanceCommand.d.ts +12 -24
  182. package/dist-types/ts3.4/commands/GetApplicationCommand.d.ts +14 -23
  183. package/dist-types/ts3.4/commands/GetApplicationRevisionCommand.d.ts +12 -24
  184. package/dist-types/ts3.4/commands/GetDeploymentCommand.d.ts +14 -23
  185. package/dist-types/ts3.4/commands/GetDeploymentConfigCommand.d.ts +14 -23
  186. package/dist-types/ts3.4/commands/GetDeploymentGroupCommand.d.ts +14 -23
  187. package/dist-types/ts3.4/commands/GetDeploymentInstanceCommand.d.ts +12 -24
  188. package/dist-types/ts3.4/commands/GetDeploymentTargetCommand.d.ts +14 -23
  189. package/dist-types/ts3.4/commands/GetOnPremisesInstanceCommand.d.ts +12 -24
  190. package/dist-types/ts3.4/commands/ListApplicationRevisionsCommand.d.ts +12 -24
  191. package/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +14 -23
  192. package/dist-types/ts3.4/commands/ListDeploymentConfigsCommand.d.ts +12 -24
  193. package/dist-types/ts3.4/commands/ListDeploymentGroupsCommand.d.ts +12 -24
  194. package/dist-types/ts3.4/commands/ListDeploymentInstancesCommand.d.ts +12 -24
  195. package/dist-types/ts3.4/commands/ListDeploymentTargetsCommand.d.ts +12 -24
  196. package/dist-types/ts3.4/commands/ListDeploymentsCommand.d.ts +14 -23
  197. package/dist-types/ts3.4/commands/ListGitHubAccountTokenNamesCommand.d.ts +12 -24
  198. package/dist-types/ts3.4/commands/ListOnPremisesInstancesCommand.d.ts +12 -24
  199. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  200. package/dist-types/ts3.4/commands/PutLifecycleEventHookExecutionStatusCommand.d.ts +12 -24
  201. package/dist-types/ts3.4/commands/RegisterApplicationRevisionCommand.d.ts +12 -24
  202. package/dist-types/ts3.4/commands/RegisterOnPremisesInstanceCommand.d.ts +12 -24
  203. package/dist-types/ts3.4/commands/RemoveTagsFromOnPremisesInstancesCommand.d.ts +12 -24
  204. package/dist-types/ts3.4/commands/SkipWaitTimeForInstanceTerminationCommand.d.ts +12 -24
  205. package/dist-types/ts3.4/commands/StopDeploymentCommand.d.ts +14 -23
  206. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  207. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  208. package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +14 -23
  209. package/dist-types/ts3.4/commands/UpdateDeploymentGroupCommand.d.ts +12 -24
  210. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  211. package/dist-types/ts3.4/pagination/ListApplicationRevisionsPaginator.d.ts +3 -3
  212. package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +3 -3
  213. package/dist-types/ts3.4/pagination/ListDeploymentConfigsPaginator.d.ts +3 -3
  214. package/dist-types/ts3.4/pagination/ListDeploymentGroupsPaginator.d.ts +3 -3
  215. package/dist-types/ts3.4/pagination/ListDeploymentInstancesPaginator.d.ts +3 -3
  216. package/dist-types/ts3.4/pagination/ListDeploymentsPaginator.d.ts +3 -3
  217. 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_RemoveTagsFromOnPremisesInstancesCommand, se_RemoveTagsFromOnPremisesInstancesCommand, } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class RemoveTagsFromOnPremisesInstancesCommand 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, RemoveTagsFromOnPremisesInstancesCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CodeDeployClient";
26
- const commandName = "RemoveTagsFromOnPremisesInstancesCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "CodeDeploy_20141006",
35
- operation: "RemoveTagsFromOnPremisesInstances",
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_RemoveTagsFromOnPremisesInstancesCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_RemoveTagsFromOnPremisesInstancesCommand(output, context);
46
- }
7
+ export class RemoveTagsFromOnPremisesInstancesCommand 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("CodeDeploy_20141006", "RemoveTagsFromOnPremisesInstances", {})
19
+ .n("CodeDeployClient", "RemoveTagsFromOnPremisesInstancesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_RemoveTagsFromOnPremisesInstancesCommand)
22
+ .de(de_RemoveTagsFromOnPremisesInstancesCommand)
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_SkipWaitTimeForInstanceTerminationCommand, se_SkipWaitTimeForInstanceTerminationCommand, } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class SkipWaitTimeForInstanceTerminationCommand 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, SkipWaitTimeForInstanceTerminationCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CodeDeployClient";
26
- const commandName = "SkipWaitTimeForInstanceTerminationCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "CodeDeploy_20141006",
35
- operation: "SkipWaitTimeForInstanceTermination",
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_SkipWaitTimeForInstanceTerminationCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_SkipWaitTimeForInstanceTerminationCommand(output, context);
46
- }
7
+ export class SkipWaitTimeForInstanceTerminationCommand 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("CodeDeploy_20141006", "SkipWaitTimeForInstanceTermination", {})
19
+ .n("CodeDeployClient", "SkipWaitTimeForInstanceTerminationCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_SkipWaitTimeForInstanceTerminationCommand)
22
+ .de(de_SkipWaitTimeForInstanceTerminationCommand)
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_StopDeploymentCommand, se_StopDeploymentCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class StopDeploymentCommand 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, StopDeploymentCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CodeDeployClient";
26
- const commandName = "StopDeploymentCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "CodeDeploy_20141006",
35
- operation: "StopDeployment",
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_StopDeploymentCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_StopDeploymentCommand(output, context);
46
- }
7
+ export class StopDeploymentCommand 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("CodeDeploy_20141006", "StopDeployment", {})
19
+ .n("CodeDeployClient", "StopDeploymentCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_StopDeploymentCommand)
22
+ .de(de_StopDeploymentCommand)
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 = "CodeDeployClient";
26
- const commandName = "TagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "CodeDeploy_20141006",
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("CodeDeploy_20141006", "TagResource", {})
19
+ .n("CodeDeployClient", "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 = "CodeDeployClient";
26
- const commandName = "UntagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "CodeDeploy_20141006",
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("CodeDeploy_20141006", "UntagResource", {})
19
+ .n("CodeDeployClient", "UntagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UntagResourceCommand)
22
+ .de(de_UntagResourceCommand)
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_UpdateApplicationCommand, se_UpdateApplicationCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UpdateApplicationCommand 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, UpdateApplicationCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CodeDeployClient";
26
- const commandName = "UpdateApplicationCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "CodeDeploy_20141006",
35
- operation: "UpdateApplication",
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_UpdateApplicationCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateApplicationCommand(output, context);
46
- }
7
+ export class UpdateApplicationCommand 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("CodeDeploy_20141006", "UpdateApplication", {})
19
+ .n("CodeDeployClient", "UpdateApplicationCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateApplicationCommand)
22
+ .de(de_UpdateApplicationCommand)
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_UpdateDeploymentGroupCommand, se_UpdateDeploymentGroupCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UpdateDeploymentGroupCommand 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, UpdateDeploymentGroupCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CodeDeployClient";
26
- const commandName = "UpdateDeploymentGroupCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "CodeDeploy_20141006",
35
- operation: "UpdateDeploymentGroup",
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_UpdateDeploymentGroupCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateDeploymentGroupCommand(output, context);
46
- }
7
+ export class UpdateDeploymentGroupCommand 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("CodeDeploy_20141006", "UpdateDeploymentGroup", {})
19
+ .n("CodeDeployClient", "UpdateDeploymentGroupCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateDeploymentGroupCommand)
22
+ .de(de_UpdateDeploymentGroupCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "codedeploy",
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,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeDeployClient } from "../CodeDeployClient";
2
3
  import { ListApplicationRevisionsCommand, } from "../commands/ListApplicationRevisionsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListApplicationRevisionsCommand(input), ...args);
5
- };
6
- export async function* paginateListApplicationRevisions(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof CodeDeployClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListApplicationRevisions = createPaginator(CodeDeployClient, ListApplicationRevisionsCommand, "nextToken", "nextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeDeployClient } from "../CodeDeployClient";
2
3
  import { ListApplicationsCommand, } from "../commands/ListApplicationsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListApplicationsCommand(input), ...args);
5
- };
6
- export async function* paginateListApplications(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof CodeDeployClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListApplications = createPaginator(CodeDeployClient, ListApplicationsCommand, "nextToken", "nextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeDeployClient } from "../CodeDeployClient";
2
3
  import { ListDeploymentConfigsCommand, } from "../commands/ListDeploymentConfigsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListDeploymentConfigsCommand(input), ...args);
5
- };
6
- export async function* paginateListDeploymentConfigs(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof CodeDeployClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListDeploymentConfigs = createPaginator(CodeDeployClient, ListDeploymentConfigsCommand, "nextToken", "nextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeDeployClient } from "../CodeDeployClient";
2
3
  import { ListDeploymentGroupsCommand, } from "../commands/ListDeploymentGroupsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListDeploymentGroupsCommand(input), ...args);
5
- };
6
- export async function* paginateListDeploymentGroups(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof CodeDeployClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListDeploymentGroups = createPaginator(CodeDeployClient, ListDeploymentGroupsCommand, "nextToken", "nextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeDeployClient } from "../CodeDeployClient";
2
3
  import { ListDeploymentInstancesCommand, } from "../commands/ListDeploymentInstancesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListDeploymentInstancesCommand(input), ...args);
5
- };
6
- export async function* paginateListDeploymentInstances(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof CodeDeployClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListDeploymentInstances = createPaginator(CodeDeployClient, ListDeploymentInstancesCommand, "nextToken", "nextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeDeployClient } from "../CodeDeployClient";
2
3
  import { ListDeploymentsCommand, } from "../commands/ListDeploymentsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListDeploymentsCommand(input), ...args);
5
- };
6
- export async function* paginateListDeployments(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof CodeDeployClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListDeployments = createPaginator(CodeDeployClient, ListDeploymentsCommand, "nextToken", "nextToken", "");