@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,130 +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 { ReportTaskRunnerHeartbeatInput, ReportTaskRunnerHeartbeatOutput } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1ReportTaskRunnerHeartbeatCommand,
18
- serializeAws_json1_1ReportTaskRunnerHeartbeatCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface ReportTaskRunnerHeartbeatCommandInput extends ReportTaskRunnerHeartbeatInput {}
22
- export interface ReportTaskRunnerHeartbeatCommandOutput extends ReportTaskRunnerHeartbeatOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Task runners call <code>ReportTaskRunnerHeartbeat</code> every 15 minutes to indicate that they are operational.
26
- * If the AWS Data Pipeline Task Runner is launched on a resource managed by AWS Data Pipeline, the web service can use
27
- * this call to detect when the task runner application has failed and restart a new instance.</p>
28
- *
29
- * <examples>
30
- * <request>
31
- *
32
- * POST / HTTP/1.1
33
- * Content-Type: application/x-amz-json-1.1
34
- * X-Amz-Target: DataPipeline.ReportTaskRunnerHeartbeat
35
- * Content-Length: 84
36
- * Host: datapipeline.us-east-1.amazonaws.com
37
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
38
- * Authorization: AuthParams
39
- *
40
- * {"taskrunnerId": "1234567890",
41
- * "workerGroup": "wg-12345",
42
- * "hostname": "example.com"}
43
- *
44
- * </request>
45
- *
46
- * <response>
47
- *
48
- * Status:
49
- * x-amzn-RequestId: b3104dc5-0734-11e2-af6f-6bc7a6be60d9
50
- * Content-Type: application/x-amz-json-1.1
51
- * Content-Length: 20
52
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
53
- *
54
- * {"terminate": false}
55
- *
56
- * </response>
57
- * </examples>
58
- * @example
59
- * Use a bare-bones client and the command you need to make an API call.
60
- * ```javascript
61
- * import { DataPipelineClient, ReportTaskRunnerHeartbeatCommand } from "@aws-sdk/client-data-pipeline"; // ES Modules import
62
- * // const { DataPipelineClient, ReportTaskRunnerHeartbeatCommand } = require("@aws-sdk/client-data-pipeline"); // CommonJS import
63
- * const client = new DataPipelineClient(config);
64
- * const command = new ReportTaskRunnerHeartbeatCommand(input);
65
- * const response = await client.send(command);
66
- * ```
67
- *
68
- * @see {@link ReportTaskRunnerHeartbeatCommandInput} for command's `input` shape.
69
- * @see {@link ReportTaskRunnerHeartbeatCommandOutput} for command's `response` shape.
70
- * @see {@link DataPipelineClientResolvedConfig | config} for command's `input` shape.
71
- *
72
- */
73
- export class ReportTaskRunnerHeartbeatCommand extends $Command<
74
- ReportTaskRunnerHeartbeatCommandInput,
75
- ReportTaskRunnerHeartbeatCommandOutput,
76
- DataPipelineClientResolvedConfig
77
- > {
78
- // Start section: command_properties
79
- // End section: command_properties
80
-
81
- constructor(readonly input: ReportTaskRunnerHeartbeatCommandInput) {
82
- // Start section: command_constructor
83
- super();
84
- // End section: command_constructor
85
- }
86
-
87
- /**
88
- * @internal
89
- */
90
- resolveMiddleware(
91
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
92
- configuration: DataPipelineClientResolvedConfig,
93
- options?: __HttpHandlerOptions
94
- ): Handler<ReportTaskRunnerHeartbeatCommandInput, ReportTaskRunnerHeartbeatCommandOutput> {
95
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
96
-
97
- const stack = clientStack.concat(this.middlewareStack);
98
-
99
- const { logger } = configuration;
100
- const clientName = "DataPipelineClient";
101
- const commandName = "ReportTaskRunnerHeartbeatCommand";
102
- const handlerExecutionContext: HandlerExecutionContext = {
103
- logger,
104
- clientName,
105
- commandName,
106
- inputFilterSensitiveLog: ReportTaskRunnerHeartbeatInput.filterSensitiveLog,
107
- outputFilterSensitiveLog: ReportTaskRunnerHeartbeatOutput.filterSensitiveLog,
108
- };
109
- const { requestHandler } = configuration;
110
- return stack.resolve(
111
- (request: FinalizeHandlerArguments<any>) =>
112
- requestHandler.handle(request.request as __HttpRequest, options || {}),
113
- handlerExecutionContext
114
- );
115
- }
116
-
117
- private serialize(input: ReportTaskRunnerHeartbeatCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
118
- return serializeAws_json1_1ReportTaskRunnerHeartbeatCommand(input, context);
119
- }
120
-
121
- private deserialize(
122
- output: __HttpResponse,
123
- context: __SerdeContext
124
- ): Promise<ReportTaskRunnerHeartbeatCommandOutput> {
125
- return deserializeAws_json1_1ReportTaskRunnerHeartbeatCommand(output, context);
126
- }
127
-
128
- // Start section: command_body_extra
129
- // End section: command_body_extra
130
- }
@@ -1,124 +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 { SetStatusInput } from "../models/models_0";
16
- import { deserializeAws_json1_1SetStatusCommand, serializeAws_json1_1SetStatusCommand } from "../protocols/Aws_json1_1";
17
-
18
- export interface SetStatusCommandInput extends SetStatusInput {}
19
- export interface SetStatusCommandOutput extends __MetadataBearer {}
20
-
21
- /**
22
- * <p>Requests that the status of the specified physical or logical pipeline objects be updated in the specified pipeline.
23
- * This update might not occur immediately, but is eventually consistent. The status that can be set depends on the type of object (for example, DataNode or Activity).
24
- * You cannot perform this operation on <code>FINISHED</code> pipelines and attempting to do so returns <code>InvalidRequestException</code>.</p>
25
- *
26
- * <examples>
27
- * <request>
28
- *
29
- * POST / HTTP/1.1
30
- * Content-Type: application/x-amz-json-1.1
31
- * X-Amz-Target: DataPipeline.SetStatus
32
- * Content-Length: 100
33
- * Host: datapipeline.us-east-1.amazonaws.com
34
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
35
- * Authorization: AuthParams
36
- *
37
- * {"pipelineId": "df-0634701J7KEXAMPLE",
38
- * "objectIds":
39
- * ["o-08600941GHJWMBR9E2"],
40
- * "status": "pause"}
41
- *
42
- * </request>
43
- *
44
- * <response>
45
- *
46
- * x-amzn-RequestId: e83b8ab7-076a-11e2-af6f-6bc7a6be60d9
47
- * Content-Type: application/x-amz-json-1.1
48
- * Content-Length: 0
49
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
50
- *
51
- * Unexpected response: 200, OK, undefined
52
- *
53
- * </response>
54
- * </examples>
55
- * @example
56
- * Use a bare-bones client and the command you need to make an API call.
57
- * ```javascript
58
- * import { DataPipelineClient, SetStatusCommand } from "@aws-sdk/client-data-pipeline"; // ES Modules import
59
- * // const { DataPipelineClient, SetStatusCommand } = require("@aws-sdk/client-data-pipeline"); // CommonJS import
60
- * const client = new DataPipelineClient(config);
61
- * const command = new SetStatusCommand(input);
62
- * const response = await client.send(command);
63
- * ```
64
- *
65
- * @see {@link SetStatusCommandInput} for command's `input` shape.
66
- * @see {@link SetStatusCommandOutput} for command's `response` shape.
67
- * @see {@link DataPipelineClientResolvedConfig | config} for command's `input` shape.
68
- *
69
- */
70
- export class SetStatusCommand extends $Command<
71
- SetStatusCommandInput,
72
- SetStatusCommandOutput,
73
- DataPipelineClientResolvedConfig
74
- > {
75
- // Start section: command_properties
76
- // End section: command_properties
77
-
78
- constructor(readonly input: SetStatusCommandInput) {
79
- // Start section: command_constructor
80
- super();
81
- // End section: command_constructor
82
- }
83
-
84
- /**
85
- * @internal
86
- */
87
- resolveMiddleware(
88
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
89
- configuration: DataPipelineClientResolvedConfig,
90
- options?: __HttpHandlerOptions
91
- ): Handler<SetStatusCommandInput, SetStatusCommandOutput> {
92
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
93
-
94
- const stack = clientStack.concat(this.middlewareStack);
95
-
96
- const { logger } = configuration;
97
- const clientName = "DataPipelineClient";
98
- const commandName = "SetStatusCommand";
99
- const handlerExecutionContext: HandlerExecutionContext = {
100
- logger,
101
- clientName,
102
- commandName,
103
- inputFilterSensitiveLog: SetStatusInput.filterSensitiveLog,
104
- outputFilterSensitiveLog: (output: any) => output,
105
- };
106
- const { requestHandler } = configuration;
107
- return stack.resolve(
108
- (request: FinalizeHandlerArguments<any>) =>
109
- requestHandler.handle(request.request as __HttpRequest, options || {}),
110
- handlerExecutionContext
111
- );
112
- }
113
-
114
- private serialize(input: SetStatusCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
115
- return serializeAws_json1_1SetStatusCommand(input, context);
116
- }
117
-
118
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<SetStatusCommandOutput> {
119
- return deserializeAws_json1_1SetStatusCommand(output, context);
120
- }
121
-
122
- // Start section: command_body_extra
123
- // End section: command_body_extra
124
- }
@@ -1,125 +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 { SetTaskStatusInput, SetTaskStatusOutput } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1SetTaskStatusCommand,
18
- serializeAws_json1_1SetTaskStatusCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface SetTaskStatusCommandInput extends SetTaskStatusInput {}
22
- export interface SetTaskStatusCommandOutput extends SetTaskStatusOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Task runners call <code>SetTaskStatus</code> to notify AWS Data Pipeline that a task is completed and provide information about the final status.
26
- * A task runner makes this call regardless of whether the task was sucessful. A task runner does not need to call <code>SetTaskStatus</code> for
27
- * tasks that are canceled by the web service during a call to <a>ReportTaskProgress</a>.</p>
28
- *
29
- * <examples>
30
- * <request>
31
- *
32
- * POST / HTTP/1.1
33
- * Content-Type: application/x-amz-json-1.1
34
- * X-Amz-Target: DataPipeline.SetTaskStatus
35
- * Content-Length: 847
36
- * Host: datapipeline.us-east-1.amazonaws.com
37
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
38
- * Authorization: AuthParams
39
- *
40
- * {"taskId": "aaGgHT4LuH0T0Y0oLrJRjas5qH0d8cDPADxqq3tn+zCWGELkCdV2JprLreXm1oxeP5EFZHFLJ69kjSsLYE0iYHYBYVGBrB+E/pYq7ANEEeGJFnSBMRiXZVA+8UJ3OzcInvXeinqBmBaKwii7hnnKb/AXjXiNTXyxgydX1KAyg1AxkwBYG4cfPYMZbuEbQJFJvv5C/2+GVXz1w94nKYTeUeepwUOFOuRLS6JVtZoYwpF56E+Yfk1IcGpFOvCZ01B4Bkuu7x3J+MD/j6kJgZLAgbCJQtI3eiW3kdGmX0p0I2BdY1ZsX6b4UiSvM3OMj6NEHJCJL4E0ZfitnhCoe24Kvjo6C2hFbZq+ei/HPgSXBQMSagkr4vS9c0ChzxH2+LNYvec6bY4kymkaZI1dvOzmpa0FcnGf5AjSK4GpsViZ/ujz6zxFv81qBXzjF0/4M1775rjV1VUdyKaixiA/sJiACNezqZqETidp8d24BDPRhGsj6pBCrnelqGFrk/gXEXUsJ+xwMifRC8UVwiKekpAvHUywVk7Ku4jH/n3i2VoLRP6FXwpUbelu34iiZ9czpXyLtyPKwxa87dlrnRVURwkcVjOt2Mcrcaqe+cbWHvNRhyrPkkdfSF3ac8/wfgVbXvLEB2k9mKc67aD9rvdc1PKX09Tk8BKklsMTpZ3TRCd4NzQlJKigMe8Jat9+1tKj4Ole5ZzW6uyTu2s2iFjEV8KXu4MaiRJyNKCdKeGhhZWY37Qk4NBK4Ppgu+C6Y41dpfOh288SLDEVx0/UySlqOEdhba7c6BiPp5r3hKj3mk9lFy5OYp1aoGLeeFmjXveTnPdf2gkWqXXg7AUbJ7jEs1F0lKZQg4szep2gcKyAJXgvXLfJJHcha8Lfb/Ee7wYmyOcAaRpDBoFNSbtoVXar46teIrpho+ZDvynUXvU0grHWGOk=:wn3SgymHZM99bEXAMPLE",
41
- * "taskStatus": "FINISHED"}
42
- *
43
- * </request>
44
- *
45
- * <response>
46
- *
47
- * x-amzn-RequestId: 8c8deb53-0788-11e2-af9c-6bc7a6be6qr8
48
- * Content-Type: application/x-amz-json-1.1
49
- * Content-Length: 0
50
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
51
- *
52
- * {}
53
- *
54
- * </response>
55
- * </examples>
56
- * @example
57
- * Use a bare-bones client and the command you need to make an API call.
58
- * ```javascript
59
- * import { DataPipelineClient, SetTaskStatusCommand } from "@aws-sdk/client-data-pipeline"; // ES Modules import
60
- * // const { DataPipelineClient, SetTaskStatusCommand } = require("@aws-sdk/client-data-pipeline"); // CommonJS import
61
- * const client = new DataPipelineClient(config);
62
- * const command = new SetTaskStatusCommand(input);
63
- * const response = await client.send(command);
64
- * ```
65
- *
66
- * @see {@link SetTaskStatusCommandInput} for command's `input` shape.
67
- * @see {@link SetTaskStatusCommandOutput} for command's `response` shape.
68
- * @see {@link DataPipelineClientResolvedConfig | config} for command's `input` shape.
69
- *
70
- */
71
- export class SetTaskStatusCommand extends $Command<
72
- SetTaskStatusCommandInput,
73
- SetTaskStatusCommandOutput,
74
- DataPipelineClientResolvedConfig
75
- > {
76
- // Start section: command_properties
77
- // End section: command_properties
78
-
79
- constructor(readonly input: SetTaskStatusCommandInput) {
80
- // Start section: command_constructor
81
- super();
82
- // End section: command_constructor
83
- }
84
-
85
- /**
86
- * @internal
87
- */
88
- resolveMiddleware(
89
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
90
- configuration: DataPipelineClientResolvedConfig,
91
- options?: __HttpHandlerOptions
92
- ): Handler<SetTaskStatusCommandInput, SetTaskStatusCommandOutput> {
93
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
94
-
95
- const stack = clientStack.concat(this.middlewareStack);
96
-
97
- const { logger } = configuration;
98
- const clientName = "DataPipelineClient";
99
- const commandName = "SetTaskStatusCommand";
100
- const handlerExecutionContext: HandlerExecutionContext = {
101
- logger,
102
- clientName,
103
- commandName,
104
- inputFilterSensitiveLog: SetTaskStatusInput.filterSensitiveLog,
105
- outputFilterSensitiveLog: SetTaskStatusOutput.filterSensitiveLog,
106
- };
107
- const { requestHandler } = configuration;
108
- return stack.resolve(
109
- (request: FinalizeHandlerArguments<any>) =>
110
- requestHandler.handle(request.request as __HttpRequest, options || {}),
111
- handlerExecutionContext
112
- );
113
- }
114
-
115
- private serialize(input: SetTaskStatusCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
116
- return serializeAws_json1_1SetTaskStatusCommand(input, context);
117
- }
118
-
119
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<SetTaskStatusCommandOutput> {
120
- return deserializeAws_json1_1SetTaskStatusCommand(output, context);
121
- }
122
-
123
- // Start section: command_body_extra
124
- // End section: command_body_extra
125
- }
@@ -1,249 +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 { ValidatePipelineDefinitionInput, ValidatePipelineDefinitionOutput } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1ValidatePipelineDefinitionCommand,
18
- serializeAws_json1_1ValidatePipelineDefinitionCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface ValidatePipelineDefinitionCommandInput extends ValidatePipelineDefinitionInput {}
22
- export interface ValidatePipelineDefinitionCommandOutput extends ValidatePipelineDefinitionOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Validates the specified pipeline definition to ensure that it is well formed and can be run without error.</p>
26
- *
27
- * <examples>
28
- * <example>
29
- * <name>Example 1</name>
30
- * <description>
31
- * This example sets an valid pipeline configuration and returns success.
32
- * </description>
33
- * <request>
34
- *
35
- * POST / HTTP/1.1
36
- * Content-Type: application/x-amz-json-1.1
37
- * X-Amz-Target: DataPipeline.ValidatePipelineDefinition
38
- * Content-Length: 936
39
- * Host: datapipeline.us-east-1.amazonaws.com
40
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
41
- * Authorization: AuthParams
42
- *
43
- * {"pipelineId": "df-06372391ZG65EXAMPLE",
44
- * "pipelineObjects":
45
- * [
46
- * {"id": "Default",
47
- * "name": "Default",
48
- * "fields":
49
- * [
50
- * {"key": "workerGroup",
51
- * "stringValue": "MyworkerGroup"}
52
- * ]
53
- * },
54
- * {"id": "Schedule",
55
- * "name": "Schedule",
56
- * "fields":
57
- * [
58
- * {"key": "startDateTime",
59
- * "stringValue": "2012-09-25T17:00:00"},
60
- * {"key": "type",
61
- * "stringValue": "Schedule"},
62
- * {"key": "period",
63
- * "stringValue": "1 hour"},
64
- * {"key": "endDateTime",
65
- * "stringValue": "2012-09-25T18:00:00"}
66
- * ]
67
- * },
68
- * {"id": "SayHello",
69
- * "name": "SayHello",
70
- * "fields":
71
- * [
72
- * {"key": "type",
73
- * "stringValue": "ShellCommandActivity"},
74
- * {"key": "command",
75
- * "stringValue": "echo hello"},
76
- * {"key": "parent",
77
- * "refValue": "Default"},
78
- * {"key": "schedule",
79
- * "refValue": "Schedule"}
80
- *
81
- * ]
82
- * }
83
- * ]
84
- * }
85
- *
86
- * </request>
87
- * <response>
88
- *
89
- * x-amzn-RequestId: 92c9f347-0776-11e2-8a14-21bb8a1f50ef
90
- * Content-Type: application/x-amz-json-1.1
91
- * Content-Length: 18
92
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
93
- *
94
- * {"errored": false}
95
- *
96
- * </response>
97
- * </example>
98
- * <example>
99
- * <name>Example 2</name>
100
- * <description>
101
- * This example sets an invalid pipeline configuration and returns the associated set of validation errors.
102
- * </description>
103
- *
104
- * <request>
105
- *
106
- * POST / HTTP/1.1
107
- * Content-Type: application/x-amz-json-1.1
108
- * X-Amz-Target: DataPipeline.ValidatePipelineDefinition
109
- * Content-Length: 903
110
- * Host: datapipeline.us-east-1.amazonaws.com
111
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
112
- * Authorization: AuthParams
113
- *
114
- * {"pipelineId": "df-06372391ZG65EXAMPLE",
115
- * "pipelineObjects":
116
- * [
117
- * {"id": "Default",
118
- * "name": "Default",
119
- * "fields":
120
- * [
121
- * {"key": "workerGroup",
122
- * "stringValue": "MyworkerGroup"}
123
- * ]
124
- * },
125
- * {"id": "Schedule",
126
- * "name": "Schedule",
127
- * "fields":
128
- * [
129
- * {"key": "startDateTime",
130
- * "stringValue": "bad-time"},
131
- * {"key": "type",
132
- * "stringValue": "Schedule"},
133
- * {"key": "period",
134
- * "stringValue": "1 hour"},
135
- * {"key": "endDateTime",
136
- * "stringValue": "2012-09-25T18:00:00"}
137
- * ]
138
- * },
139
- * {"id": "SayHello",
140
- * "name": "SayHello",
141
- * "fields":
142
- * [
143
- * {"key": "type",
144
- * "stringValue": "ShellCommandActivity"},
145
- * {"key": "command",
146
- * "stringValue": "echo hello"},
147
- * {"key": "parent",
148
- * "refValue": "Default"},
149
- * {"key": "schedule",
150
- * "refValue": "Schedule"}
151
- *
152
- * ]
153
- * }
154
- * ]
155
- * }
156
- *
157
- * </request>
158
- * <response>
159
- *
160
- * x-amzn-RequestId: 496a1f5a-0e6a-11e2-a61c-bd6312c92ddd
161
- * Content-Type: application/x-amz-json-1.1
162
- * Content-Length: 278
163
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
164
- *
165
- * {"errored": true,
166
- * "validationErrors":
167
- * [
168
- * {"errors":
169
- * ["INVALID_FIELD_VALUE: 'startDateTime' value must be a literal datetime value."],
170
- * "id": "Schedule"}
171
- * ]
172
- * }
173
- *
174
- * </response>
175
- * </example>
176
- * </examples>
177
- * @example
178
- * Use a bare-bones client and the command you need to make an API call.
179
- * ```javascript
180
- * import { DataPipelineClient, ValidatePipelineDefinitionCommand } from "@aws-sdk/client-data-pipeline"; // ES Modules import
181
- * // const { DataPipelineClient, ValidatePipelineDefinitionCommand } = require("@aws-sdk/client-data-pipeline"); // CommonJS import
182
- * const client = new DataPipelineClient(config);
183
- * const command = new ValidatePipelineDefinitionCommand(input);
184
- * const response = await client.send(command);
185
- * ```
186
- *
187
- * @see {@link ValidatePipelineDefinitionCommandInput} for command's `input` shape.
188
- * @see {@link ValidatePipelineDefinitionCommandOutput} for command's `response` shape.
189
- * @see {@link DataPipelineClientResolvedConfig | config} for command's `input` shape.
190
- *
191
- */
192
- export class ValidatePipelineDefinitionCommand extends $Command<
193
- ValidatePipelineDefinitionCommandInput,
194
- ValidatePipelineDefinitionCommandOutput,
195
- DataPipelineClientResolvedConfig
196
- > {
197
- // Start section: command_properties
198
- // End section: command_properties
199
-
200
- constructor(readonly input: ValidatePipelineDefinitionCommandInput) {
201
- // Start section: command_constructor
202
- super();
203
- // End section: command_constructor
204
- }
205
-
206
- /**
207
- * @internal
208
- */
209
- resolveMiddleware(
210
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
211
- configuration: DataPipelineClientResolvedConfig,
212
- options?: __HttpHandlerOptions
213
- ): Handler<ValidatePipelineDefinitionCommandInput, ValidatePipelineDefinitionCommandOutput> {
214
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
215
-
216
- const stack = clientStack.concat(this.middlewareStack);
217
-
218
- const { logger } = configuration;
219
- const clientName = "DataPipelineClient";
220
- const commandName = "ValidatePipelineDefinitionCommand";
221
- const handlerExecutionContext: HandlerExecutionContext = {
222
- logger,
223
- clientName,
224
- commandName,
225
- inputFilterSensitiveLog: ValidatePipelineDefinitionInput.filterSensitiveLog,
226
- outputFilterSensitiveLog: ValidatePipelineDefinitionOutput.filterSensitiveLog,
227
- };
228
- const { requestHandler } = configuration;
229
- return stack.resolve(
230
- (request: FinalizeHandlerArguments<any>) =>
231
- requestHandler.handle(request.request as __HttpRequest, options || {}),
232
- handlerExecutionContext
233
- );
234
- }
235
-
236
- private serialize(input: ValidatePipelineDefinitionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
237
- return serializeAws_json1_1ValidatePipelineDefinitionCommand(input, context);
238
- }
239
-
240
- private deserialize(
241
- output: __HttpResponse,
242
- context: __SerdeContext
243
- ): Promise<ValidatePipelineDefinitionCommandOutput> {
244
- return deserializeAws_json1_1ValidatePipelineDefinitionCommand(output, context);
245
- }
246
-
247
- // Start section: command_body_extra
248
- // End section: command_body_extra
249
- }
package/src/endpoints.ts DELETED
@@ -1,57 +0,0 @@
1
- import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
2
- import { RegionInfoProvider } from "@aws-sdk/types";
3
-
4
- const regionHash: RegionHash = {};
5
-
6
- const partitionHash: PartitionHash = {
7
- aws: {
8
- regions: [
9
- "af-south-1",
10
- "ap-east-1",
11
- "ap-northeast-1",
12
- "ap-northeast-2",
13
- "ap-northeast-3",
14
- "ap-south-1",
15
- "ap-southeast-1",
16
- "ap-southeast-2",
17
- "ca-central-1",
18
- "eu-central-1",
19
- "eu-north-1",
20
- "eu-south-1",
21
- "eu-west-1",
22
- "eu-west-2",
23
- "eu-west-3",
24
- "me-south-1",
25
- "sa-east-1",
26
- "us-east-1",
27
- "us-east-2",
28
- "us-west-1",
29
- "us-west-2",
30
- ],
31
- hostname: "datapipeline.{region}.amazonaws.com",
32
- },
33
- "aws-cn": {
34
- regions: ["cn-north-1", "cn-northwest-1"],
35
- hostname: "datapipeline.{region}.amazonaws.com.cn",
36
- },
37
- "aws-iso": {
38
- regions: ["us-iso-east-1"],
39
- hostname: "datapipeline.{region}.c2s.ic.gov",
40
- },
41
- "aws-iso-b": {
42
- regions: ["us-isob-east-1"],
43
- hostname: "datapipeline.{region}.sc2s.sgov.gov",
44
- },
45
- "aws-us-gov": {
46
- regions: ["us-gov-east-1", "us-gov-west-1"],
47
- hostname: "datapipeline.{region}.amazonaws.com",
48
- },
49
- };
50
-
51
- export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
52
- getRegionInfo(region, {
53
- ...options,
54
- signingService: "datapipeline",
55
- regionHash,
56
- partitionHash,
57
- });