@aws-sdk/client-data-pipeline 3.36.0 → 3.39.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 (72) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/DataPipeline.js +0 -19
  3. package/dist-cjs/DataPipelineClient.js +0 -24
  4. package/dist-cjs/commands/ActivatePipelineCommand.js +0 -54
  5. package/dist-cjs/commands/AddTagsCommand.js +0 -24
  6. package/dist-cjs/commands/CreatePipelineCommand.js +0 -54
  7. package/dist-cjs/commands/DeactivatePipelineCommand.js +0 -27
  8. package/dist-cjs/commands/DeletePipelineCommand.js +0 -55
  9. package/dist-cjs/commands/DescribeObjectsCommand.js +0 -82
  10. package/dist-cjs/commands/DescribePipelinesCommand.js +0 -85
  11. package/dist-cjs/commands/EvaluateExpressionCommand.js +0 -54
  12. package/dist-cjs/commands/GetPipelineDefinitionCommand.js +0 -88
  13. package/dist-cjs/commands/ListPipelinesCommand.js +0 -55
  14. package/dist-cjs/commands/PollForTaskCommand.js +0 -102
  15. package/dist-cjs/commands/PutPipelineDefinitionCommand.js +0 -183
  16. package/dist-cjs/commands/QueryObjectsCommand.js +0 -62
  17. package/dist-cjs/commands/RemoveTagsCommand.js +0 -24
  18. package/dist-cjs/commands/ReportTaskProgressCommand.js +0 -61
  19. package/dist-cjs/commands/ReportTaskRunnerHeartbeatCommand.js +0 -56
  20. package/dist-cjs/commands/SetStatusCommand.js +0 -56
  21. package/dist-cjs/commands/SetTaskStatusCommand.js +0 -54
  22. package/dist-cjs/commands/ValidatePipelineDefinitionCommand.js +0 -175
  23. package/dist-cjs/commands/index.js +22 -0
  24. package/dist-cjs/endpoints.js +6 -1
  25. package/dist-cjs/index.js +4 -25
  26. package/dist-cjs/models/models_0.js +0 -168
  27. package/dist-cjs/pagination/DescribeObjectsPaginator.js +0 -10
  28. package/dist-cjs/pagination/ListPipelinesPaginator.js +0 -10
  29. package/dist-cjs/pagination/QueryObjectsPaginator.js +0 -10
  30. package/dist-cjs/pagination/index.js +7 -0
  31. package/dist-cjs/protocols/Aws_json1_1.js +0 -5
  32. package/dist-cjs/runtimeConfig.browser.js +1 -5
  33. package/dist-cjs/runtimeConfig.js +1 -5
  34. package/dist-cjs/runtimeConfig.native.js +0 -3
  35. package/dist-cjs/runtimeConfig.shared.js +0 -3
  36. package/dist-es/commands/index.js +19 -0
  37. package/dist-es/endpoints.js +6 -1
  38. package/dist-es/index.js +4 -25
  39. package/dist-es/pagination/index.js +4 -0
  40. package/dist-types/commands/index.d.ts +19 -0
  41. package/dist-types/index.d.ts +4 -25
  42. package/dist-types/pagination/index.d.ts +4 -0
  43. package/dist-types/ts3.4/DataPipeline.d.ts +20 -971
  44. package/dist-types/ts3.4/DataPipelineClient.d.ts +24 -105
  45. package/dist-types/ts3.4/commands/ActivatePipelineCommand.d.ts +2 -50
  46. package/dist-types/ts3.4/commands/AddTagsCommand.d.ts +2 -20
  47. package/dist-types/ts3.4/commands/CreatePipelineCommand.d.ts +2 -50
  48. package/dist-types/ts3.4/commands/DeactivatePipelineCommand.d.ts +2 -23
  49. package/dist-types/ts3.4/commands/DeletePipelineCommand.d.ts +2 -51
  50. package/dist-types/ts3.4/commands/DescribeObjectsCommand.d.ts +2 -78
  51. package/dist-types/ts3.4/commands/DescribePipelinesCommand.d.ts +2 -81
  52. package/dist-types/ts3.4/commands/EvaluateExpressionCommand.d.ts +2 -50
  53. package/dist-types/ts3.4/commands/GetPipelineDefinitionCommand.d.ts +2 -84
  54. package/dist-types/ts3.4/commands/ListPipelinesCommand.d.ts +2 -51
  55. package/dist-types/ts3.4/commands/PollForTaskCommand.d.ts +2 -98
  56. package/dist-types/ts3.4/commands/PutPipelineDefinitionCommand.d.ts +2 -179
  57. package/dist-types/ts3.4/commands/QueryObjectsCommand.d.ts +2 -58
  58. package/dist-types/ts3.4/commands/RemoveTagsCommand.d.ts +2 -20
  59. package/dist-types/ts3.4/commands/ReportTaskProgressCommand.d.ts +2 -57
  60. package/dist-types/ts3.4/commands/ReportTaskRunnerHeartbeatCommand.d.ts +2 -52
  61. package/dist-types/ts3.4/commands/SetStatusCommand.d.ts +2 -52
  62. package/dist-types/ts3.4/commands/SetTaskStatusCommand.d.ts +2 -50
  63. package/dist-types/ts3.4/commands/ValidatePipelineDefinitionCommand.d.ts +2 -171
  64. package/dist-types/ts3.4/commands/index.d.ts +19 -0
  65. package/dist-types/ts3.4/index.d.ts +4 -25
  66. package/dist-types/ts3.4/models/models_0.d.ts +231 -769
  67. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  68. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  69. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  70. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  71. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  72. package/package.json +32 -32
@@ -5,99 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Gets the definition of the specified pipeline. You can call <code>GetPipelineDefinition</code> to retrieve
10
- * the pipeline definition that you provided using <a>PutPipelineDefinition</a>.</p>
11
- *
12
- * <examples>
13
- * <request>
14
- *
15
- * POST / HTTP/1.1
16
- * Content-Type: application/x-amz-json-1.1
17
- * X-Amz-Target: DataPipeline.GetPipelineDefinition
18
- * Content-Length: 40
19
- * Host: datapipeline.us-east-1.amazonaws.com
20
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
21
- * Authorization: AuthParams
22
- *
23
- *
24
- * {"pipelineId": "df-06372391ZG65EXAMPLE"}
25
- *
26
- * </request>
27
- * <response>
28
- *
29
- * x-amzn-RequestId: e28309e5-0776-11e2-8a14-21bb8a1f50ef
30
- * Content-Type: application/x-amz-json-1.1
31
- * Content-Length: 890
32
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
33
- *
34
- * {"pipelineObjects":
35
- * [
36
- * {"fields":
37
- * [
38
- * {"key": "workerGroup",
39
- * "stringValue": "workerGroup"}
40
- * ],
41
- * "id": "Default",
42
- * "name": "Default"},
43
- * {"fields":
44
- * [
45
- * {"key": "startDateTime",
46
- * "stringValue": "2012-09-25T17:00:00"},
47
- * {"key": "type",
48
- * "stringValue": "Schedule"},
49
- * {"key": "period",
50
- * "stringValue": "1 hour"},
51
- * {"key": "endDateTime",
52
- * "stringValue": "2012-09-25T18:00:00"}
53
- * ],
54
- * "id": "Schedule",
55
- * "name": "Schedule"},
56
- * {"fields":
57
- * [
58
- * {"key": "schedule",
59
- * "refValue": "Schedule"},
60
- * {"key": "command",
61
- * "stringValue": "echo hello"},
62
- * {"key": "parent",
63
- * "refValue": "Default"},
64
- * {"key": "type",
65
- * "stringValue": "ShellCommandActivity"}
66
- * ],
67
- * "id": "SayHello",
68
- * "name": "SayHello"}
69
- * ]
70
- * }
71
- *
72
- * </response>
73
- * </examples>
74
- * @example
75
- * Use a bare-bones client and the command you need to make an API call.
76
- * ```javascript
77
- * import { DataPipelineClient, GetPipelineDefinitionCommand } from "@aws-sdk/client-data-pipeline"; // ES Modules import
78
- * // const { DataPipelineClient, GetPipelineDefinitionCommand } = require("@aws-sdk/client-data-pipeline"); // CommonJS import
79
- * const client = new DataPipelineClient(config);
80
- * const command = new GetPipelineDefinitionCommand(input);
81
- * const response = await client.send(command);
82
- * ```
83
- *
84
- * @see {@link GetPipelineDefinitionCommandInput} for command's `input` shape.
85
- * @see {@link GetPipelineDefinitionCommandOutput} for command's `response` shape.
86
- * @see {@link DataPipelineClientResolvedConfig | config} for command's `input` shape.
87
- *
88
- */
89
8
  class GetPipelineDefinitionCommand extends smithy_client_1.Command {
90
- // Start section: command_properties
91
- // End section: command_properties
92
9
  constructor(input) {
93
- // Start section: command_constructor
94
10
  super();
95
11
  this.input = input;
96
- // End section: command_constructor
97
12
  }
98
- /**
99
- * @internal
100
- */
101
13
  resolveMiddleware(clientStack, configuration, options) {
102
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
103
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,66 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Lists the pipeline identifiers for all active pipelines that you have permission to access.</p>
10
- *
11
- * <examples>
12
- * <request>
13
- *
14
- * POST / HTTP/1.1
15
- * Content-Type: application/x-amz-json-1.1
16
- * X-Amz-Target: DataPipeline.ListPipelines
17
- * Content-Length: 14
18
- * Host: datapipeline.us-east-1.amazonaws.com
19
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
20
- * Authorization: AuthParams
21
- *
22
- * {}</request>
23
- *
24
- * <response>
25
- *
26
- * Status:
27
- * x-amzn-RequestId: b3104dc5-0734-11e2-af6f-6bc7a6be60d9
28
- * Content-Type: application/x-amz-json-1.1
29
- * Content-Length: 39
30
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
31
- *
32
- * {"PipelineIdList":
33
- * [
34
- * {"id": "df-08785951KAKJEXAMPLE",
35
- * "name": "MyPipeline"},
36
- * {"id": "df-08662578ISYEXAMPLE",
37
- * "name": "MySecondPipeline"}
38
- * ]
39
- * }</response>
40
- * </examples>
41
- * @example
42
- * Use a bare-bones client and the command you need to make an API call.
43
- * ```javascript
44
- * import { DataPipelineClient, ListPipelinesCommand } from "@aws-sdk/client-data-pipeline"; // ES Modules import
45
- * // const { DataPipelineClient, ListPipelinesCommand } = require("@aws-sdk/client-data-pipeline"); // CommonJS import
46
- * const client = new DataPipelineClient(config);
47
- * const command = new ListPipelinesCommand(input);
48
- * const response = await client.send(command);
49
- * ```
50
- *
51
- * @see {@link ListPipelinesCommandInput} for command's `input` shape.
52
- * @see {@link ListPipelinesCommandOutput} for command's `response` shape.
53
- * @see {@link DataPipelineClientResolvedConfig | config} for command's `input` shape.
54
- *
55
- */
56
8
  class ListPipelinesCommand extends smithy_client_1.Command {
57
- // Start section: command_properties
58
- // End section: command_properties
59
9
  constructor(input) {
60
- // Start section: command_constructor
61
10
  super();
62
11
  this.input = input;
63
- // End section: command_constructor
64
12
  }
65
- /**
66
- * @internal
67
- */
68
13
  resolveMiddleware(clientStack, configuration, options) {
69
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
70
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,113 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <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
10
- * by setting a value for the <code>workerGroup</code> parameter. The task returned can come from any of the pipelines that
11
- * match the <code>workerGroup</code> value passed in by the task runner and that was launched using the IAM user credentials
12
- * specified by the task runner.</p>
13
- * <p>If tasks are ready in the work queue, <code>PollForTask</code> returns a response immediately. If no tasks are available in the queue,
14
- * <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
15
- * scheduled task is handed to the task runner. To accomodate this, set the socket timeout in your task runner to 90 seconds. The task
16
- * 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.
17
- * </p>
18
- *
19
- * <examples>
20
- * <request>
21
- *
22
- * POST / HTTP/1.1
23
- * Content-Type: application/x-amz-json-1.1
24
- * X-Amz-Target: DataPipeline.PollForTask
25
- * Content-Length: 59
26
- * Host: datapipeline.us-east-1.amazonaws.com
27
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
28
- * Authorization: AuthParams
29
- *
30
- * {"workerGroup": "MyworkerGroup",
31
- * "hostname": "example.com"}
32
- *
33
- * </request>
34
- *
35
- * <response>
36
- *
37
- * x-amzn-RequestId: 41c713d2-0775-11e2-af6f-6bc7a6be60d9
38
- * Content-Type: application/x-amz-json-1.1
39
- * Content-Length: 39
40
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
41
- *
42
- * {"taskObject":
43
- * {"attemptId": "@SayHello_2012-12-12T00:00:00_Attempt=1",
44
- * "objects":
45
- * {"@SayHello_2012-12-12T00:00:00_Attempt=1":
46
- * {"fields":
47
- * [
48
- * {"key": "@componentParent",
49
- * "refValue": "SayHello"},
50
- * {"key": "@scheduledStartTime",
51
- * "stringValue": "2012-12-12T00:00:00"},
52
- * {"key": "parent",
53
- * "refValue": "SayHello"},
54
- * {"key": "@sphere",
55
- * "stringValue": "ATTEMPT"},
56
- * {"key": "workerGroup",
57
- * "stringValue": "workerGroup"},
58
- * {"key": "@instanceParent",
59
- * "refValue": "@SayHello_2012-12-12T00:00:00"},
60
- * {"key": "type",
61
- * "stringValue": "ShellCommandActivity"},
62
- * {"key": "@status",
63
- * "stringValue": "WAITING_FOR_RUNNER"},
64
- * {"key": "@version",
65
- * "stringValue": "1"},
66
- * {"key": "schedule",
67
- * "refValue": "Schedule"},
68
- * {"key": "@actualStartTime",
69
- * "stringValue": "2012-12-13T01:40:50"},
70
- * {"key": "command",
71
- * "stringValue": "echo hello"},
72
- * {"key": "@scheduledEndTime",
73
- * "stringValue": "2012-12-12T01:00:00"},
74
- * {"key": "@activeInstances",
75
- * "refValue": "@SayHello_2012-12-12T00:00:00"},
76
- * {"key": "@pipelineId",
77
- * "stringValue": "df-0937003356ZJEXAMPLE"}
78
- * ],
79
- * "id": "@SayHello_2012-12-12T00:00:00_Attempt=1",
80
- * "name": "@SayHello_2012-12-12T00:00:00_Attempt=1"}
81
- * },
82
- * "pipelineId": "df-0937003356ZJEXAMPLE",
83
- * "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"}
84
- * }
85
- *
86
- * </response>
87
- * </examples>
88
- * @example
89
- * Use a bare-bones client and the command you need to make an API call.
90
- * ```javascript
91
- * import { DataPipelineClient, PollForTaskCommand } from "@aws-sdk/client-data-pipeline"; // ES Modules import
92
- * // const { DataPipelineClient, PollForTaskCommand } = require("@aws-sdk/client-data-pipeline"); // CommonJS import
93
- * const client = new DataPipelineClient(config);
94
- * const command = new PollForTaskCommand(input);
95
- * const response = await client.send(command);
96
- * ```
97
- *
98
- * @see {@link PollForTaskCommandInput} for command's `input` shape.
99
- * @see {@link PollForTaskCommandOutput} for command's `response` shape.
100
- * @see {@link DataPipelineClientResolvedConfig | config} for command's `input` shape.
101
- *
102
- */
103
8
  class PollForTaskCommand extends smithy_client_1.Command {
104
- // Start section: command_properties
105
- // End section: command_properties
106
9
  constructor(input) {
107
- // Start section: command_constructor
108
10
  super();
109
11
  this.input = input;
110
- // End section: command_constructor
111
12
  }
112
- /**
113
- * @internal
114
- */
115
13
  resolveMiddleware(clientStack, configuration, options) {
116
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
117
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,194 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Adds tasks, schedules, and preconditions to the specified pipeline. You can use <code>PutPipelineDefinition</code> to populate a new pipeline.</p>
10
- * <p>
11
- * <code>PutPipelineDefinition</code> also validates the configuration as it adds it to the pipeline. Changes to the pipeline are saved unless one
12
- * of the following three validation errors exists in the pipeline.
13
- * </p>
14
- * <ol>
15
- * <li>An object is missing a name or identifier field.</li>
16
- * <li>A string or reference field is empty.</li>
17
- * <li>The number of objects in the pipeline exceeds the maximum allowed objects.</li>
18
- * <li>The pipeline is in a FINISHED state.</li>
19
- * </ol>
20
- * <p>
21
- * Pipeline object definitions are passed to the <code>PutPipelineDefinition</code> action and returned by the <a>GetPipelineDefinition</a> action.
22
- * </p>
23
- * <examples>
24
- * <example>
25
- * <name>Example 1</name>
26
- * <description>
27
- * This example sets an valid pipeline configuration and returns success.
28
- * </description>
29
- * <request>
30
- *
31
- * POST / HTTP/1.1
32
- * Content-Type: application/x-amz-json-1.1
33
- * X-Amz-Target: DataPipeline.PutPipelineDefinition
34
- * Content-Length: 914
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
- * {"pipelineId": "df-0937003356ZJEXAMPLE",
40
- * "pipelineObjects":
41
- * [
42
- * {"id": "Default",
43
- * "name": "Default",
44
- * "fields":
45
- * [
46
- * {"key": "workerGroup",
47
- * "stringValue": "workerGroup"}
48
- * ]
49
- * },
50
- * {"id": "Schedule",
51
- * "name": "Schedule",
52
- * "fields":
53
- * [
54
- * {"key": "startDateTime",
55
- * "stringValue": "2012-12-12T00:00:00"},
56
- * {"key": "type",
57
- * "stringValue": "Schedule"},
58
- * {"key": "period",
59
- * "stringValue": "1 hour"},
60
- * {"key": "endDateTime",
61
- * "stringValue": "2012-12-21T18:00:00"}
62
- * ]
63
- * },
64
- * {"id": "SayHello",
65
- * "name": "SayHello",
66
- * "fields":
67
- * [
68
- * {"key": "type",
69
- * "stringValue": "ShellCommandActivity"},
70
- * {"key": "command",
71
- * "stringValue": "echo hello"},
72
- * {"key": "parent",
73
- * "refValue": "Default"},
74
- * {"key": "schedule",
75
- * "refValue": "Schedule"}
76
- * ]
77
- * }
78
- * ]
79
- * }
80
- *
81
- * </request>
82
- * <response>
83
- *
84
- * HTTP/1.1 200
85
- * x-amzn-RequestId: f74afc14-0754-11e2-af6f-6bc7a6be60d9
86
- * Content-Type: application/x-amz-json-1.1
87
- * Content-Length: 18
88
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
89
- *
90
- * {"errored": false}
91
- *
92
- *
93
- * </response>
94
- * </example>
95
- * <example>
96
- * <name>Example 2</name>
97
- * <description>
98
- * This example sets an invalid pipeline configuration (the value for <code>workerGroup</code> is an empty string) and returns an error message.
99
- * </description>
100
- * <request>
101
- *
102
- * POST / HTTP/1.1
103
- * Content-Type: application/x-amz-json-1.1
104
- * X-Amz-Target: DataPipeline.PutPipelineDefinition
105
- * Content-Length: 903
106
- * Host: datapipeline.us-east-1.amazonaws.com
107
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
108
- * Authorization: AuthParams
109
- *
110
- * {"pipelineId": "df-06372391ZG65EXAMPLE",
111
- * "pipelineObjects":
112
- * [
113
- * {"id": "Default",
114
- * "name": "Default",
115
- * "fields":
116
- * [
117
- * {"key": "workerGroup",
118
- * "stringValue": ""}
119
- * ]
120
- * },
121
- * {"id": "Schedule",
122
- * "name": "Schedule",
123
- * "fields":
124
- * [
125
- * {"key": "startDateTime",
126
- * "stringValue": "2012-09-25T17:00:00"},
127
- * {"key": "type",
128
- * "stringValue": "Schedule"},
129
- * {"key": "period",
130
- * "stringValue": "1 hour"},
131
- * {"key": "endDateTime",
132
- * "stringValue": "2012-09-25T18:00:00"}
133
- * ]
134
- * },
135
- * {"id": "SayHello",
136
- * "name": "SayHello",
137
- * "fields":
138
- * [
139
- * {"key": "type",
140
- * "stringValue": "ShellCommandActivity"},
141
- * {"key": "command",
142
- * "stringValue": "echo hello"},
143
- * {"key": "parent",
144
- * "refValue": "Default"},
145
- * {"key": "schedule",
146
- * "refValue": "Schedule"}
147
- *
148
- * ]
149
- * }
150
- * ]
151
- * }
152
- *
153
- * </request>
154
- * <response>
155
- *
156
- * HTTP/1.1 200
157
- * x-amzn-RequestId: f74afc14-0754-11e2-af6f-6bc7a6be60d9
158
- * Content-Type: application/x-amz-json-1.1
159
- * Content-Length: 18
160
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
161
- *
162
- * {"__type": "com.amazon.setl.webservice#InvalidRequestException",
163
- * "message": "Pipeline definition has errors: Could not save the pipeline definition due to FATAL errors: [com.amazon.setl.webservice.ValidationError@108d7ea9] Please call Validate to validate your pipeline"}
164
- *
165
- *
166
- * </response>
167
- * </example>
168
- * </examples>
169
- * @example
170
- * Use a bare-bones client and the command you need to make an API call.
171
- * ```javascript
172
- * import { DataPipelineClient, PutPipelineDefinitionCommand } from "@aws-sdk/client-data-pipeline"; // ES Modules import
173
- * // const { DataPipelineClient, PutPipelineDefinitionCommand } = require("@aws-sdk/client-data-pipeline"); // CommonJS import
174
- * const client = new DataPipelineClient(config);
175
- * const command = new PutPipelineDefinitionCommand(input);
176
- * const response = await client.send(command);
177
- * ```
178
- *
179
- * @see {@link PutPipelineDefinitionCommandInput} for command's `input` shape.
180
- * @see {@link PutPipelineDefinitionCommandOutput} for command's `response` shape.
181
- * @see {@link DataPipelineClientResolvedConfig | config} for command's `input` shape.
182
- *
183
- */
184
8
  class PutPipelineDefinitionCommand extends smithy_client_1.Command {
185
- // Start section: command_properties
186
- // End section: command_properties
187
9
  constructor(input) {
188
- // Start section: command_constructor
189
10
  super();
190
11
  this.input = input;
191
- // End section: command_constructor
192
12
  }
193
- /**
194
- * @internal
195
- */
196
13
  resolveMiddleware(clientStack, configuration, options) {
197
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
198
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,73 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Queries the specified pipeline for the names of objects that match the specified set of conditions.</p>
10
- *
11
- * <examples>
12
- * <request>
13
- *
14
- * POST / HTTP/1.1
15
- * Content-Type: application/x-amz-json-1.1
16
- * X-Amz-Target: DataPipeline.QueryObjects
17
- * Content-Length: 123
18
- * Host: datapipeline.us-east-1.amazonaws.com
19
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
20
- * Authorization: AuthParams
21
- *
22
- * {"pipelineId": "df-06372391ZG65EXAMPLE",
23
- * "query":
24
- * {"selectors":
25
- * [
26
- * ]
27
- * },
28
- * "sphere": "INSTANCE",
29
- * "marker": "",
30
- * "limit": 10}
31
- *
32
- * </request>
33
- *
34
- *
35
- * <response>
36
- *
37
- * x-amzn-RequestId: 14d704c1-0775-11e2-af6f-6bc7a6be60d9
38
- * Content-Type: application/x-amz-json-1.1
39
- * Content-Length: 72
40
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
41
- *
42
- * {"hasMoreResults": false,
43
- * "ids":
44
- * ["@SayHello_1_2012-09-25T17:00:00"]
45
- * }
46
- * </response>
47
- * </examples>
48
- * @example
49
- * Use a bare-bones client and the command you need to make an API call.
50
- * ```javascript
51
- * import { DataPipelineClient, QueryObjectsCommand } from "@aws-sdk/client-data-pipeline"; // ES Modules import
52
- * // const { DataPipelineClient, QueryObjectsCommand } = require("@aws-sdk/client-data-pipeline"); // CommonJS import
53
- * const client = new DataPipelineClient(config);
54
- * const command = new QueryObjectsCommand(input);
55
- * const response = await client.send(command);
56
- * ```
57
- *
58
- * @see {@link QueryObjectsCommandInput} for command's `input` shape.
59
- * @see {@link QueryObjectsCommandOutput} for command's `response` shape.
60
- * @see {@link DataPipelineClientResolvedConfig | config} for command's `input` shape.
61
- *
62
- */
63
8
  class QueryObjectsCommand extends smithy_client_1.Command {
64
- // Start section: command_properties
65
- // End section: command_properties
66
9
  constructor(input) {
67
- // Start section: command_constructor
68
10
  super();
69
11
  this.input = input;
70
- // End section: command_constructor
71
12
  }
72
- /**
73
- * @internal
74
- */
75
13
  resolveMiddleware(clientStack, configuration, options) {
76
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
77
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Removes existing tags from the specified pipeline.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { DataPipelineClient, RemoveTagsCommand } from "@aws-sdk/client-data-pipeline"; // ES Modules import
14
- * // const { DataPipelineClient, RemoveTagsCommand } = require("@aws-sdk/client-data-pipeline"); // CommonJS import
15
- * const client = new DataPipelineClient(config);
16
- * const command = new RemoveTagsCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link RemoveTagsCommandInput} for command's `input` shape.
21
- * @see {@link RemoveTagsCommandOutput} for command's `response` shape.
22
- * @see {@link DataPipelineClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class RemoveTagsCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,72 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Task runners call <code>ReportTaskProgress</code> when assigned a task to acknowledge that it has the task. If the web service does not
10
- * receive this acknowledgement within 2 minutes, it assigns the task in a subsequent <a>PollForTask</a> call. After this initial acknowledgement,
11
- * the task runner only needs to report progress every 15 minutes to maintain its ownership of the task. You can change this reporting time
12
- * from 15 minutes by specifying a <code>reportProgressTimeout</code> field in your pipeline.</p>
13
- * <p>If a task runner does not report its status after 5 minutes, AWS Data Pipeline assumes that the task runner is unable to process the task
14
- * and reassigns the task in a subsequent response to <a>PollForTask</a>. Task runners should call <code>ReportTaskProgress</code> every 60 seconds.</p>
15
- * <examples>
16
- * <request>
17
- *
18
- * POST / HTTP/1.1
19
- * Content-Type: application/x-amz-json-1.1
20
- * X-Amz-Target: DataPipeline.ReportTaskProgress
21
- * Content-Length: 832
22
- * Host: datapipeline.us-east-1.amazonaws.com
23
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
24
- * Authorization: AuthParams
25
- *
26
- * {"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",
27
- * "fields":
28
- * [
29
- * {"key": "percentComplete",
30
- * "stringValue": "50"}
31
- * ]
32
- * }
33
- *
34
- * </request>
35
- *
36
- * <response>
37
- *
38
- * x-amzn-RequestId: 640bd023-0775-11e2-af6f-6bc7a6be60d9
39
- * Content-Type: application/x-amz-json-1.1
40
- * Content-Length: 18
41
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
42
- *
43
- * {"canceled": false}
44
- *
45
- * </response>
46
- * </examples>
47
- * @example
48
- * Use a bare-bones client and the command you need to make an API call.
49
- * ```javascript
50
- * import { DataPipelineClient, ReportTaskProgressCommand } from "@aws-sdk/client-data-pipeline"; // ES Modules import
51
- * // const { DataPipelineClient, ReportTaskProgressCommand } = require("@aws-sdk/client-data-pipeline"); // CommonJS import
52
- * const client = new DataPipelineClient(config);
53
- * const command = new ReportTaskProgressCommand(input);
54
- * const response = await client.send(command);
55
- * ```
56
- *
57
- * @see {@link ReportTaskProgressCommandInput} for command's `input` shape.
58
- * @see {@link ReportTaskProgressCommandOutput} for command's `response` shape.
59
- * @see {@link DataPipelineClientResolvedConfig | config} for command's `input` shape.
60
- *
61
- */
62
8
  class ReportTaskProgressCommand extends smithy_client_1.Command {
63
- // Start section: command_properties
64
- // End section: command_properties
65
9
  constructor(input) {
66
- // Start section: command_constructor
67
10
  super();
68
11
  this.input = input;
69
- // End section: command_constructor
70
12
  }
71
- /**
72
- * @internal
73
- */
74
13
  resolveMiddleware(clientStack, configuration, options) {
75
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
76
15
  const stack = clientStack.concat(this.middlewareStack);