@aws-sdk/client-data-pipeline 3.35.0 → 3.38.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 (212) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/DataPipeline.js +0 -20
  3. package/dist-cjs/DataPipelineClient.js +0 -25
  4. package/dist-cjs/commands/ActivatePipelineCommand.js +0 -55
  5. package/dist-cjs/commands/AddTagsCommand.js +0 -25
  6. package/dist-cjs/commands/CreatePipelineCommand.js +0 -55
  7. package/dist-cjs/commands/DeactivatePipelineCommand.js +0 -28
  8. package/dist-cjs/commands/DeletePipelineCommand.js +0 -56
  9. package/dist-cjs/commands/DescribeObjectsCommand.js +0 -83
  10. package/dist-cjs/commands/DescribePipelinesCommand.js +0 -86
  11. package/dist-cjs/commands/EvaluateExpressionCommand.js +0 -55
  12. package/dist-cjs/commands/GetPipelineDefinitionCommand.js +0 -89
  13. package/dist-cjs/commands/ListPipelinesCommand.js +0 -56
  14. package/dist-cjs/commands/PollForTaskCommand.js +0 -103
  15. package/dist-cjs/commands/PutPipelineDefinitionCommand.js +0 -184
  16. package/dist-cjs/commands/QueryObjectsCommand.js +0 -63
  17. package/dist-cjs/commands/RemoveTagsCommand.js +0 -25
  18. package/dist-cjs/commands/ReportTaskProgressCommand.js +0 -62
  19. package/dist-cjs/commands/ReportTaskRunnerHeartbeatCommand.js +0 -57
  20. package/dist-cjs/commands/SetStatusCommand.js +0 -57
  21. package/dist-cjs/commands/SetTaskStatusCommand.js +0 -55
  22. package/dist-cjs/commands/ValidatePipelineDefinitionCommand.js +0 -176
  23. package/dist-cjs/commands/index.js +22 -0
  24. package/dist-cjs/endpoints.js +1 -2
  25. package/dist-cjs/index.js +4 -26
  26. package/dist-cjs/models/index.js +0 -1
  27. package/dist-cjs/models/models_0.js +0 -169
  28. package/dist-cjs/pagination/DescribeObjectsPaginator.js +0 -11
  29. package/dist-cjs/pagination/Interfaces.js +0 -1
  30. package/dist-cjs/pagination/ListPipelinesPaginator.js +0 -11
  31. package/dist-cjs/pagination/QueryObjectsPaginator.js +0 -11
  32. package/dist-cjs/pagination/index.js +7 -0
  33. package/dist-cjs/protocols/Aws_json1_1.js +0 -6
  34. package/dist-cjs/runtimeConfig.browser.js +1 -6
  35. package/dist-cjs/runtimeConfig.js +2 -7
  36. package/dist-cjs/runtimeConfig.native.js +0 -4
  37. package/dist-cjs/runtimeConfig.shared.js +0 -4
  38. package/dist-es/DataPipeline.js +0 -1
  39. package/dist-es/DataPipelineClient.js +0 -1
  40. package/dist-es/commands/ActivatePipelineCommand.js +0 -1
  41. package/dist-es/commands/AddTagsCommand.js +0 -1
  42. package/dist-es/commands/CreatePipelineCommand.js +0 -1
  43. package/dist-es/commands/DeactivatePipelineCommand.js +0 -1
  44. package/dist-es/commands/DeletePipelineCommand.js +0 -1
  45. package/dist-es/commands/DescribeObjectsCommand.js +0 -1
  46. package/dist-es/commands/DescribePipelinesCommand.js +0 -1
  47. package/dist-es/commands/EvaluateExpressionCommand.js +0 -1
  48. package/dist-es/commands/GetPipelineDefinitionCommand.js +0 -1
  49. package/dist-es/commands/ListPipelinesCommand.js +0 -1
  50. package/dist-es/commands/PollForTaskCommand.js +0 -1
  51. package/dist-es/commands/PutPipelineDefinitionCommand.js +0 -1
  52. package/dist-es/commands/QueryObjectsCommand.js +0 -1
  53. package/dist-es/commands/RemoveTagsCommand.js +0 -1
  54. package/dist-es/commands/ReportTaskProgressCommand.js +0 -1
  55. package/dist-es/commands/ReportTaskRunnerHeartbeatCommand.js +0 -1
  56. package/dist-es/commands/SetStatusCommand.js +0 -1
  57. package/dist-es/commands/SetTaskStatusCommand.js +0 -1
  58. package/dist-es/commands/ValidatePipelineDefinitionCommand.js +0 -1
  59. package/dist-es/commands/index.js +19 -0
  60. package/dist-es/endpoints.js +1 -2
  61. package/dist-es/index.js +4 -26
  62. package/dist-es/models/index.js +0 -1
  63. package/dist-es/models/models_0.js +0 -1
  64. package/dist-es/pagination/DescribeObjectsPaginator.js +0 -1
  65. package/dist-es/pagination/Interfaces.js +0 -1
  66. package/dist-es/pagination/ListPipelinesPaginator.js +0 -1
  67. package/dist-es/pagination/QueryObjectsPaginator.js +0 -1
  68. package/dist-es/pagination/index.js +4 -0
  69. package/dist-es/protocols/Aws_json1_1.js +0 -1
  70. package/dist-es/runtimeConfig.browser.js +1 -2
  71. package/dist-es/runtimeConfig.js +2 -3
  72. package/dist-es/runtimeConfig.native.js +0 -1
  73. package/dist-es/runtimeConfig.shared.js +0 -1
  74. package/dist-types/commands/index.d.ts +19 -0
  75. package/dist-types/index.d.ts +4 -25
  76. package/dist-types/pagination/index.d.ts +4 -0
  77. package/dist-types/ts3.4/DataPipeline.d.ts +20 -971
  78. package/dist-types/ts3.4/DataPipelineClient.d.ts +24 -105
  79. package/dist-types/ts3.4/commands/ActivatePipelineCommand.d.ts +2 -50
  80. package/dist-types/ts3.4/commands/AddTagsCommand.d.ts +2 -20
  81. package/dist-types/ts3.4/commands/CreatePipelineCommand.d.ts +2 -50
  82. package/dist-types/ts3.4/commands/DeactivatePipelineCommand.d.ts +2 -23
  83. package/dist-types/ts3.4/commands/DeletePipelineCommand.d.ts +2 -51
  84. package/dist-types/ts3.4/commands/DescribeObjectsCommand.d.ts +2 -78
  85. package/dist-types/ts3.4/commands/DescribePipelinesCommand.d.ts +2 -81
  86. package/dist-types/ts3.4/commands/EvaluateExpressionCommand.d.ts +2 -50
  87. package/dist-types/ts3.4/commands/GetPipelineDefinitionCommand.d.ts +2 -84
  88. package/dist-types/ts3.4/commands/ListPipelinesCommand.d.ts +2 -51
  89. package/dist-types/ts3.4/commands/PollForTaskCommand.d.ts +2 -98
  90. package/dist-types/ts3.4/commands/PutPipelineDefinitionCommand.d.ts +2 -179
  91. package/dist-types/ts3.4/commands/QueryObjectsCommand.d.ts +2 -58
  92. package/dist-types/ts3.4/commands/RemoveTagsCommand.d.ts +2 -20
  93. package/dist-types/ts3.4/commands/ReportTaskProgressCommand.d.ts +2 -57
  94. package/dist-types/ts3.4/commands/ReportTaskRunnerHeartbeatCommand.d.ts +2 -52
  95. package/dist-types/ts3.4/commands/SetStatusCommand.d.ts +2 -52
  96. package/dist-types/ts3.4/commands/SetTaskStatusCommand.d.ts +2 -50
  97. package/dist-types/ts3.4/commands/ValidatePipelineDefinitionCommand.d.ts +2 -171
  98. package/dist-types/ts3.4/commands/index.d.ts +19 -0
  99. package/dist-types/ts3.4/index.d.ts +4 -25
  100. package/dist-types/ts3.4/models/models_0.d.ts +231 -769
  101. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  102. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  103. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  104. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  105. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  106. package/package.json +33 -30
  107. package/dist-cjs/DataPipeline.js.map +0 -1
  108. package/dist-cjs/DataPipelineClient.js.map +0 -1
  109. package/dist-cjs/commands/ActivatePipelineCommand.js.map +0 -1
  110. package/dist-cjs/commands/AddTagsCommand.js.map +0 -1
  111. package/dist-cjs/commands/CreatePipelineCommand.js.map +0 -1
  112. package/dist-cjs/commands/DeactivatePipelineCommand.js.map +0 -1
  113. package/dist-cjs/commands/DeletePipelineCommand.js.map +0 -1
  114. package/dist-cjs/commands/DescribeObjectsCommand.js.map +0 -1
  115. package/dist-cjs/commands/DescribePipelinesCommand.js.map +0 -1
  116. package/dist-cjs/commands/EvaluateExpressionCommand.js.map +0 -1
  117. package/dist-cjs/commands/GetPipelineDefinitionCommand.js.map +0 -1
  118. package/dist-cjs/commands/ListPipelinesCommand.js.map +0 -1
  119. package/dist-cjs/commands/PollForTaskCommand.js.map +0 -1
  120. package/dist-cjs/commands/PutPipelineDefinitionCommand.js.map +0 -1
  121. package/dist-cjs/commands/QueryObjectsCommand.js.map +0 -1
  122. package/dist-cjs/commands/RemoveTagsCommand.js.map +0 -1
  123. package/dist-cjs/commands/ReportTaskProgressCommand.js.map +0 -1
  124. package/dist-cjs/commands/ReportTaskRunnerHeartbeatCommand.js.map +0 -1
  125. package/dist-cjs/commands/SetStatusCommand.js.map +0 -1
  126. package/dist-cjs/commands/SetTaskStatusCommand.js.map +0 -1
  127. package/dist-cjs/commands/ValidatePipelineDefinitionCommand.js.map +0 -1
  128. package/dist-cjs/endpoints.js.map +0 -1
  129. package/dist-cjs/index.js.map +0 -1
  130. package/dist-cjs/models/index.js.map +0 -1
  131. package/dist-cjs/models/models_0.js.map +0 -1
  132. package/dist-cjs/pagination/DescribeObjectsPaginator.js.map +0 -1
  133. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  134. package/dist-cjs/pagination/ListPipelinesPaginator.js.map +0 -1
  135. package/dist-cjs/pagination/QueryObjectsPaginator.js.map +0 -1
  136. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  137. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  138. package/dist-cjs/runtimeConfig.js.map +0 -1
  139. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  140. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  141. package/dist-es/DataPipeline.js.map +0 -1
  142. package/dist-es/DataPipelineClient.js.map +0 -1
  143. package/dist-es/commands/ActivatePipelineCommand.js.map +0 -1
  144. package/dist-es/commands/AddTagsCommand.js.map +0 -1
  145. package/dist-es/commands/CreatePipelineCommand.js.map +0 -1
  146. package/dist-es/commands/DeactivatePipelineCommand.js.map +0 -1
  147. package/dist-es/commands/DeletePipelineCommand.js.map +0 -1
  148. package/dist-es/commands/DescribeObjectsCommand.js.map +0 -1
  149. package/dist-es/commands/DescribePipelinesCommand.js.map +0 -1
  150. package/dist-es/commands/EvaluateExpressionCommand.js.map +0 -1
  151. package/dist-es/commands/GetPipelineDefinitionCommand.js.map +0 -1
  152. package/dist-es/commands/ListPipelinesCommand.js.map +0 -1
  153. package/dist-es/commands/PollForTaskCommand.js.map +0 -1
  154. package/dist-es/commands/PutPipelineDefinitionCommand.js.map +0 -1
  155. package/dist-es/commands/QueryObjectsCommand.js.map +0 -1
  156. package/dist-es/commands/RemoveTagsCommand.js.map +0 -1
  157. package/dist-es/commands/ReportTaskProgressCommand.js.map +0 -1
  158. package/dist-es/commands/ReportTaskRunnerHeartbeatCommand.js.map +0 -1
  159. package/dist-es/commands/SetStatusCommand.js.map +0 -1
  160. package/dist-es/commands/SetTaskStatusCommand.js.map +0 -1
  161. package/dist-es/commands/ValidatePipelineDefinitionCommand.js.map +0 -1
  162. package/dist-es/endpoints.js.map +0 -1
  163. package/dist-es/index.js.map +0 -1
  164. package/dist-es/models/index.js.map +0 -1
  165. package/dist-es/models/models_0.js.map +0 -1
  166. package/dist-es/pagination/DescribeObjectsPaginator.js.map +0 -1
  167. package/dist-es/pagination/Interfaces.js.map +0 -1
  168. package/dist-es/pagination/ListPipelinesPaginator.js.map +0 -1
  169. package/dist-es/pagination/QueryObjectsPaginator.js.map +0 -1
  170. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  171. package/dist-es/runtimeConfig.browser.js.map +0 -1
  172. package/dist-es/runtimeConfig.js.map +0 -1
  173. package/dist-es/runtimeConfig.native.js.map +0 -1
  174. package/dist-es/runtimeConfig.shared.js.map +0 -1
  175. package/jest.config.js +0 -4
  176. package/src/DataPipeline.ts +0 -1579
  177. package/src/DataPipelineClient.ts +0 -321
  178. package/src/commands/ActivatePipelineCommand.ts +0 -125
  179. package/src/commands/AddTagsCommand.ts +0 -92
  180. package/src/commands/CreatePipelineCommand.ts +0 -125
  181. package/src/commands/DeactivatePipelineCommand.ts +0 -98
  182. package/src/commands/DeletePipelineCommand.ts +0 -126
  183. package/src/commands/DescribeObjectsCommand.ts +0 -153
  184. package/src/commands/DescribePipelinesCommand.ts +0 -156
  185. package/src/commands/EvaluateExpressionCommand.ts +0 -125
  186. package/src/commands/GetPipelineDefinitionCommand.ts +0 -159
  187. package/src/commands/ListPipelinesCommand.ts +0 -126
  188. package/src/commands/PollForTaskCommand.ts +0 -173
  189. package/src/commands/PutPipelineDefinitionCommand.ts +0 -254
  190. package/src/commands/QueryObjectsCommand.ts +0 -133
  191. package/src/commands/RemoveTagsCommand.ts +0 -95
  192. package/src/commands/ReportTaskProgressCommand.ts +0 -132
  193. package/src/commands/ReportTaskRunnerHeartbeatCommand.ts +0 -130
  194. package/src/commands/SetStatusCommand.ts +0 -124
  195. package/src/commands/SetTaskStatusCommand.ts +0 -125
  196. package/src/commands/ValidatePipelineDefinitionCommand.ts +0 -249
  197. package/src/endpoints.ts +0 -57
  198. package/src/index.ts +0 -26
  199. package/src/models/index.ts +0 -1
  200. package/src/models/models_0.ts +0 -1480
  201. package/src/pagination/DescribeObjectsPaginator.ts +0 -58
  202. package/src/pagination/Interfaces.ts +0 -8
  203. package/src/pagination/ListPipelinesPaginator.ts +0 -58
  204. package/src/pagination/QueryObjectsPaginator.ts +0 -59
  205. package/src/protocols/Aws_json1_1.ts +0 -2767
  206. package/src/runtimeConfig.browser.ts +0 -41
  207. package/src/runtimeConfig.native.ts +0 -17
  208. package/src/runtimeConfig.shared.ts +0 -17
  209. package/src/runtimeConfig.ts +0 -46
  210. package/tsconfig.es.json +0 -10
  211. package/tsconfig.json +0 -33
  212. package/tsconfig.types.json +0 -9
@@ -1,159 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { DataPipelineClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataPipelineClient";
15
- import { GetPipelineDefinitionInput, GetPipelineDefinitionOutput } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1GetPipelineDefinitionCommand,
18
- serializeAws_json1_1GetPipelineDefinitionCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface GetPipelineDefinitionCommandInput extends GetPipelineDefinitionInput {}
22
- export interface GetPipelineDefinitionCommandOutput extends GetPipelineDefinitionOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Gets the definition of the specified pipeline. You can call <code>GetPipelineDefinition</code> to retrieve
26
- * the pipeline definition that you provided using <a>PutPipelineDefinition</a>.</p>
27
- *
28
- * <examples>
29
- * <request>
30
- *
31
- * POST / HTTP/1.1
32
- * Content-Type: application/x-amz-json-1.1
33
- * X-Amz-Target: DataPipeline.GetPipelineDefinition
34
- * Content-Length: 40
35
- * Host: datapipeline.us-east-1.amazonaws.com
36
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
37
- * Authorization: AuthParams
38
- *
39
- *
40
- * {"pipelineId": "df-06372391ZG65EXAMPLE"}
41
- *
42
- * </request>
43
- * <response>
44
- *
45
- * x-amzn-RequestId: e28309e5-0776-11e2-8a14-21bb8a1f50ef
46
- * Content-Type: application/x-amz-json-1.1
47
- * Content-Length: 890
48
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
49
- *
50
- * {"pipelineObjects":
51
- * [
52
- * {"fields":
53
- * [
54
- * {"key": "workerGroup",
55
- * "stringValue": "workerGroup"}
56
- * ],
57
- * "id": "Default",
58
- * "name": "Default"},
59
- * {"fields":
60
- * [
61
- * {"key": "startDateTime",
62
- * "stringValue": "2012-09-25T17:00:00"},
63
- * {"key": "type",
64
- * "stringValue": "Schedule"},
65
- * {"key": "period",
66
- * "stringValue": "1 hour"},
67
- * {"key": "endDateTime",
68
- * "stringValue": "2012-09-25T18:00:00"}
69
- * ],
70
- * "id": "Schedule",
71
- * "name": "Schedule"},
72
- * {"fields":
73
- * [
74
- * {"key": "schedule",
75
- * "refValue": "Schedule"},
76
- * {"key": "command",
77
- * "stringValue": "echo hello"},
78
- * {"key": "parent",
79
- * "refValue": "Default"},
80
- * {"key": "type",
81
- * "stringValue": "ShellCommandActivity"}
82
- * ],
83
- * "id": "SayHello",
84
- * "name": "SayHello"}
85
- * ]
86
- * }
87
- *
88
- * </response>
89
- * </examples>
90
- * @example
91
- * Use a bare-bones client and the command you need to make an API call.
92
- * ```javascript
93
- * import { DataPipelineClient, GetPipelineDefinitionCommand } from "@aws-sdk/client-data-pipeline"; // ES Modules import
94
- * // const { DataPipelineClient, GetPipelineDefinitionCommand } = require("@aws-sdk/client-data-pipeline"); // CommonJS import
95
- * const client = new DataPipelineClient(config);
96
- * const command = new GetPipelineDefinitionCommand(input);
97
- * const response = await client.send(command);
98
- * ```
99
- *
100
- * @see {@link GetPipelineDefinitionCommandInput} for command's `input` shape.
101
- * @see {@link GetPipelineDefinitionCommandOutput} for command's `response` shape.
102
- * @see {@link DataPipelineClientResolvedConfig | config} for command's `input` shape.
103
- *
104
- */
105
- export class GetPipelineDefinitionCommand extends $Command<
106
- GetPipelineDefinitionCommandInput,
107
- GetPipelineDefinitionCommandOutput,
108
- DataPipelineClientResolvedConfig
109
- > {
110
- // Start section: command_properties
111
- // End section: command_properties
112
-
113
- constructor(readonly input: GetPipelineDefinitionCommandInput) {
114
- // Start section: command_constructor
115
- super();
116
- // End section: command_constructor
117
- }
118
-
119
- /**
120
- * @internal
121
- */
122
- resolveMiddleware(
123
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
124
- configuration: DataPipelineClientResolvedConfig,
125
- options?: __HttpHandlerOptions
126
- ): Handler<GetPipelineDefinitionCommandInput, GetPipelineDefinitionCommandOutput> {
127
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
128
-
129
- const stack = clientStack.concat(this.middlewareStack);
130
-
131
- const { logger } = configuration;
132
- const clientName = "DataPipelineClient";
133
- const commandName = "GetPipelineDefinitionCommand";
134
- const handlerExecutionContext: HandlerExecutionContext = {
135
- logger,
136
- clientName,
137
- commandName,
138
- inputFilterSensitiveLog: GetPipelineDefinitionInput.filterSensitiveLog,
139
- outputFilterSensitiveLog: GetPipelineDefinitionOutput.filterSensitiveLog,
140
- };
141
- const { requestHandler } = configuration;
142
- return stack.resolve(
143
- (request: FinalizeHandlerArguments<any>) =>
144
- requestHandler.handle(request.request as __HttpRequest, options || {}),
145
- handlerExecutionContext
146
- );
147
- }
148
-
149
- private serialize(input: GetPipelineDefinitionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
150
- return serializeAws_json1_1GetPipelineDefinitionCommand(input, context);
151
- }
152
-
153
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetPipelineDefinitionCommandOutput> {
154
- return deserializeAws_json1_1GetPipelineDefinitionCommand(output, context);
155
- }
156
-
157
- // Start section: command_body_extra
158
- // End section: command_body_extra
159
- }
@@ -1,126 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { DataPipelineClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataPipelineClient";
15
- import { ListPipelinesInput, ListPipelinesOutput } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1ListPipelinesCommand,
18
- serializeAws_json1_1ListPipelinesCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface ListPipelinesCommandInput extends ListPipelinesInput {}
22
- export interface ListPipelinesCommandOutput extends ListPipelinesOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Lists the pipeline identifiers for all active pipelines that you have permission to access.</p>
26
- *
27
- * <examples>
28
- * <request>
29
- *
30
- * POST / HTTP/1.1
31
- * Content-Type: application/x-amz-json-1.1
32
- * X-Amz-Target: DataPipeline.ListPipelines
33
- * Content-Length: 14
34
- * Host: datapipeline.us-east-1.amazonaws.com
35
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
36
- * Authorization: AuthParams
37
- *
38
- * {}</request>
39
- *
40
- * <response>
41
- *
42
- * Status:
43
- * x-amzn-RequestId: b3104dc5-0734-11e2-af6f-6bc7a6be60d9
44
- * Content-Type: application/x-amz-json-1.1
45
- * Content-Length: 39
46
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
47
- *
48
- * {"PipelineIdList":
49
- * [
50
- * {"id": "df-08785951KAKJEXAMPLE",
51
- * "name": "MyPipeline"},
52
- * {"id": "df-08662578ISYEXAMPLE",
53
- * "name": "MySecondPipeline"}
54
- * ]
55
- * }</response>
56
- * </examples>
57
- * @example
58
- * Use a bare-bones client and the command you need to make an API call.
59
- * ```javascript
60
- * import { DataPipelineClient, ListPipelinesCommand } from "@aws-sdk/client-data-pipeline"; // ES Modules import
61
- * // const { DataPipelineClient, ListPipelinesCommand } = require("@aws-sdk/client-data-pipeline"); // CommonJS import
62
- * const client = new DataPipelineClient(config);
63
- * const command = new ListPipelinesCommand(input);
64
- * const response = await client.send(command);
65
- * ```
66
- *
67
- * @see {@link ListPipelinesCommandInput} for command's `input` shape.
68
- * @see {@link ListPipelinesCommandOutput} for command's `response` shape.
69
- * @see {@link DataPipelineClientResolvedConfig | config} for command's `input` shape.
70
- *
71
- */
72
- export class ListPipelinesCommand extends $Command<
73
- ListPipelinesCommandInput,
74
- ListPipelinesCommandOutput,
75
- DataPipelineClientResolvedConfig
76
- > {
77
- // Start section: command_properties
78
- // End section: command_properties
79
-
80
- constructor(readonly input: ListPipelinesCommandInput) {
81
- // Start section: command_constructor
82
- super();
83
- // End section: command_constructor
84
- }
85
-
86
- /**
87
- * @internal
88
- */
89
- resolveMiddleware(
90
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
91
- configuration: DataPipelineClientResolvedConfig,
92
- options?: __HttpHandlerOptions
93
- ): Handler<ListPipelinesCommandInput, ListPipelinesCommandOutput> {
94
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
95
-
96
- const stack = clientStack.concat(this.middlewareStack);
97
-
98
- const { logger } = configuration;
99
- const clientName = "DataPipelineClient";
100
- const commandName = "ListPipelinesCommand";
101
- const handlerExecutionContext: HandlerExecutionContext = {
102
- logger,
103
- clientName,
104
- commandName,
105
- inputFilterSensitiveLog: ListPipelinesInput.filterSensitiveLog,
106
- outputFilterSensitiveLog: ListPipelinesOutput.filterSensitiveLog,
107
- };
108
- const { requestHandler } = configuration;
109
- return stack.resolve(
110
- (request: FinalizeHandlerArguments<any>) =>
111
- requestHandler.handle(request.request as __HttpRequest, options || {}),
112
- handlerExecutionContext
113
- );
114
- }
115
-
116
- private serialize(input: ListPipelinesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
117
- return serializeAws_json1_1ListPipelinesCommand(input, context);
118
- }
119
-
120
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListPipelinesCommandOutput> {
121
- return deserializeAws_json1_1ListPipelinesCommand(output, context);
122
- }
123
-
124
- // Start section: command_body_extra
125
- // End section: command_body_extra
126
- }
@@ -1,173 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { DataPipelineClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataPipelineClient";
15
- import { PollForTaskInput, PollForTaskOutput } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1PollForTaskCommand,
18
- serializeAws_json1_1PollForTaskCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface PollForTaskCommandInput extends PollForTaskInput {}
22
- export interface PollForTaskCommandOutput extends PollForTaskOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Task runners call <code>PollForTask</code> to receive a task to perform from AWS Data Pipeline. The task runner specifies which tasks it can perform
26
- * by setting a value for the <code>workerGroup</code> parameter. The task returned can come from any of the pipelines that
27
- * match the <code>workerGroup</code> value passed in by the task runner and that was launched using the IAM user credentials
28
- * specified by the task runner.</p>
29
- * <p>If tasks are ready in the work queue, <code>PollForTask</code> returns a response immediately. If no tasks are available in the queue,
30
- * <code>PollForTask</code> uses long-polling and holds on to a poll connection for up to a 90 seconds, during which time the first newly
31
- * scheduled task is handed to the task runner. To accomodate this, set the socket timeout in your task runner to 90 seconds. The task
32
- * runner should not call <code>PollForTask</code> again on the same <code>workerGroup</code> until it receives a response, and this can take up to 90 seconds.
33
- * </p>
34
- *
35
- * <examples>
36
- * <request>
37
- *
38
- * POST / HTTP/1.1
39
- * Content-Type: application/x-amz-json-1.1
40
- * X-Amz-Target: DataPipeline.PollForTask
41
- * Content-Length: 59
42
- * Host: datapipeline.us-east-1.amazonaws.com
43
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
44
- * Authorization: AuthParams
45
- *
46
- * {"workerGroup": "MyworkerGroup",
47
- * "hostname": "example.com"}
48
- *
49
- * </request>
50
- *
51
- * <response>
52
- *
53
- * x-amzn-RequestId: 41c713d2-0775-11e2-af6f-6bc7a6be60d9
54
- * Content-Type: application/x-amz-json-1.1
55
- * Content-Length: 39
56
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
57
- *
58
- * {"taskObject":
59
- * {"attemptId": "@SayHello_2012-12-12T00:00:00_Attempt=1",
60
- * "objects":
61
- * {"@SayHello_2012-12-12T00:00:00_Attempt=1":
62
- * {"fields":
63
- * [
64
- * {"key": "@componentParent",
65
- * "refValue": "SayHello"},
66
- * {"key": "@scheduledStartTime",
67
- * "stringValue": "2012-12-12T00:00:00"},
68
- * {"key": "parent",
69
- * "refValue": "SayHello"},
70
- * {"key": "@sphere",
71
- * "stringValue": "ATTEMPT"},
72
- * {"key": "workerGroup",
73
- * "stringValue": "workerGroup"},
74
- * {"key": "@instanceParent",
75
- * "refValue": "@SayHello_2012-12-12T00:00:00"},
76
- * {"key": "type",
77
- * "stringValue": "ShellCommandActivity"},
78
- * {"key": "@status",
79
- * "stringValue": "WAITING_FOR_RUNNER"},
80
- * {"key": "@version",
81
- * "stringValue": "1"},
82
- * {"key": "schedule",
83
- * "refValue": "Schedule"},
84
- * {"key": "@actualStartTime",
85
- * "stringValue": "2012-12-13T01:40:50"},
86
- * {"key": "command",
87
- * "stringValue": "echo hello"},
88
- * {"key": "@scheduledEndTime",
89
- * "stringValue": "2012-12-12T01:00:00"},
90
- * {"key": "@activeInstances",
91
- * "refValue": "@SayHello_2012-12-12T00:00:00"},
92
- * {"key": "@pipelineId",
93
- * "stringValue": "df-0937003356ZJEXAMPLE"}
94
- * ],
95
- * "id": "@SayHello_2012-12-12T00:00:00_Attempt=1",
96
- * "name": "@SayHello_2012-12-12T00:00:00_Attempt=1"}
97
- * },
98
- * "pipelineId": "df-0937003356ZJEXAMPLE",
99
- * "taskId": "2xaM4wRs5zOsIH+g9U3oVHfAgAlbSqU6XduncB0HhZ3xMnmvfePZPn4dIbYXHyWyRK+cU15MqDHwdrvftx/4wv+sNS4w34vJfv7QA9aOoOazW28l1GYSb2ZRR0N0paiQp+d1MhSKo10hOTWOsVK5S5Lnx9Qm6omFgXHyIvZRIvTlrQMpr1xuUrflyGOfbFOGpOLpvPE172MYdqpZKnbSS4TcuqgQKSWV2833fEubI57DPOP7ghWa2TcYeSIv4pdLYG53fTuwfbnbdc98g2LNUQzSVhSnt7BoqyNwht2aQ6b/UHg9A80+KVpuXuqmz3m1MXwHFgxjdmuesXNOrrlGpeLCcRWD+aGo0RN1NqhQRzNAig8V4GlaPTQzMsRCljKqvrIyAoP3Tt2XEGsHkkQo12rEX8Z90957XX2qKRwhruwYzqGkSLWjINoLdAxUJdpRXRc5DJTrBd3D5mdzn7kY1l7NEh4kFHJDt3Cx4Z3Mk8MYCACyCk/CEyy9DwuPi66cLz0NBcgbCM5LKjTBOwo1m+am+pvM1kSposE9FPP1+RFGb8k6jQBTJx3TRz1yKilnGXQTZ5xvdOFpJrklIT0OXP1MG3+auM9FlJA+1dX90QoNJE5z7axmK//MOGXUdkqFe2kiDkorqjxwDvc0Js9pVKfKvAmW8YqUbmI9l0ERpWCXXnLVHNmPWz3jaPY+OBAmuJWDmxB/Z8p94aEDg4BVXQ7LvsKQ3DLYhaB7yJ390CJT+i0mm+EBqY60V6YikPSWDFrYQ/NPi2b1DgE19mX8zHqw8qprIl4yh1Ckx2Iige4En/N5ktOoIxnASxAw/TzcE2skxdw5KlHDF+UTj71m16CR/dIaKlXijlfNlNzUBo/bNSadCQn3G5NoO501wPKI:XO50TgDNyo8EXAMPLE/g==:1"}
100
- * }
101
- *
102
- * </response>
103
- * </examples>
104
- * @example
105
- * Use a bare-bones client and the command you need to make an API call.
106
- * ```javascript
107
- * import { DataPipelineClient, PollForTaskCommand } from "@aws-sdk/client-data-pipeline"; // ES Modules import
108
- * // const { DataPipelineClient, PollForTaskCommand } = require("@aws-sdk/client-data-pipeline"); // CommonJS import
109
- * const client = new DataPipelineClient(config);
110
- * const command = new PollForTaskCommand(input);
111
- * const response = await client.send(command);
112
- * ```
113
- *
114
- * @see {@link PollForTaskCommandInput} for command's `input` shape.
115
- * @see {@link PollForTaskCommandOutput} for command's `response` shape.
116
- * @see {@link DataPipelineClientResolvedConfig | config} for command's `input` shape.
117
- *
118
- */
119
- export class PollForTaskCommand extends $Command<
120
- PollForTaskCommandInput,
121
- PollForTaskCommandOutput,
122
- DataPipelineClientResolvedConfig
123
- > {
124
- // Start section: command_properties
125
- // End section: command_properties
126
-
127
- constructor(readonly input: PollForTaskCommandInput) {
128
- // Start section: command_constructor
129
- super();
130
- // End section: command_constructor
131
- }
132
-
133
- /**
134
- * @internal
135
- */
136
- resolveMiddleware(
137
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
138
- configuration: DataPipelineClientResolvedConfig,
139
- options?: __HttpHandlerOptions
140
- ): Handler<PollForTaskCommandInput, PollForTaskCommandOutput> {
141
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
142
-
143
- const stack = clientStack.concat(this.middlewareStack);
144
-
145
- const { logger } = configuration;
146
- const clientName = "DataPipelineClient";
147
- const commandName = "PollForTaskCommand";
148
- const handlerExecutionContext: HandlerExecutionContext = {
149
- logger,
150
- clientName,
151
- commandName,
152
- inputFilterSensitiveLog: PollForTaskInput.filterSensitiveLog,
153
- outputFilterSensitiveLog: PollForTaskOutput.filterSensitiveLog,
154
- };
155
- const { requestHandler } = configuration;
156
- return stack.resolve(
157
- (request: FinalizeHandlerArguments<any>) =>
158
- requestHandler.handle(request.request as __HttpRequest, options || {}),
159
- handlerExecutionContext
160
- );
161
- }
162
-
163
- private serialize(input: PollForTaskCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
164
- return serializeAws_json1_1PollForTaskCommand(input, context);
165
- }
166
-
167
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PollForTaskCommandOutput> {
168
- return deserializeAws_json1_1PollForTaskCommand(output, context);
169
- }
170
-
171
- // Start section: command_body_extra
172
- // End section: command_body_extra
173
- }