@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.
- package/CHANGELOG.md +47 -0
- package/dist-cjs/DataPipeline.js +0 -20
- package/dist-cjs/DataPipelineClient.js +0 -25
- package/dist-cjs/commands/ActivatePipelineCommand.js +0 -55
- package/dist-cjs/commands/AddTagsCommand.js +0 -25
- package/dist-cjs/commands/CreatePipelineCommand.js +0 -55
- package/dist-cjs/commands/DeactivatePipelineCommand.js +0 -28
- package/dist-cjs/commands/DeletePipelineCommand.js +0 -56
- package/dist-cjs/commands/DescribeObjectsCommand.js +0 -83
- package/dist-cjs/commands/DescribePipelinesCommand.js +0 -86
- package/dist-cjs/commands/EvaluateExpressionCommand.js +0 -55
- package/dist-cjs/commands/GetPipelineDefinitionCommand.js +0 -89
- package/dist-cjs/commands/ListPipelinesCommand.js +0 -56
- package/dist-cjs/commands/PollForTaskCommand.js +0 -103
- package/dist-cjs/commands/PutPipelineDefinitionCommand.js +0 -184
- package/dist-cjs/commands/QueryObjectsCommand.js +0 -63
- package/dist-cjs/commands/RemoveTagsCommand.js +0 -25
- package/dist-cjs/commands/ReportTaskProgressCommand.js +0 -62
- package/dist-cjs/commands/ReportTaskRunnerHeartbeatCommand.js +0 -57
- package/dist-cjs/commands/SetStatusCommand.js +0 -57
- package/dist-cjs/commands/SetTaskStatusCommand.js +0 -55
- package/dist-cjs/commands/ValidatePipelineDefinitionCommand.js +0 -176
- package/dist-cjs/commands/index.js +22 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -26
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -169
- package/dist-cjs/pagination/DescribeObjectsPaginator.js +0 -11
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListPipelinesPaginator.js +0 -11
- package/dist-cjs/pagination/QueryObjectsPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/DataPipeline.js +0 -1
- package/dist-es/DataPipelineClient.js +0 -1
- package/dist-es/commands/ActivatePipelineCommand.js +0 -1
- package/dist-es/commands/AddTagsCommand.js +0 -1
- package/dist-es/commands/CreatePipelineCommand.js +0 -1
- package/dist-es/commands/DeactivatePipelineCommand.js +0 -1
- package/dist-es/commands/DeletePipelineCommand.js +0 -1
- package/dist-es/commands/DescribeObjectsCommand.js +0 -1
- package/dist-es/commands/DescribePipelinesCommand.js +0 -1
- package/dist-es/commands/EvaluateExpressionCommand.js +0 -1
- package/dist-es/commands/GetPipelineDefinitionCommand.js +0 -1
- package/dist-es/commands/ListPipelinesCommand.js +0 -1
- package/dist-es/commands/PollForTaskCommand.js +0 -1
- package/dist-es/commands/PutPipelineDefinitionCommand.js +0 -1
- package/dist-es/commands/QueryObjectsCommand.js +0 -1
- package/dist-es/commands/RemoveTagsCommand.js +0 -1
- package/dist-es/commands/ReportTaskProgressCommand.js +0 -1
- package/dist-es/commands/ReportTaskRunnerHeartbeatCommand.js +0 -1
- package/dist-es/commands/SetStatusCommand.js +0 -1
- package/dist-es/commands/SetTaskStatusCommand.js +0 -1
- package/dist-es/commands/ValidatePipelineDefinitionCommand.js +0 -1
- package/dist-es/commands/index.js +19 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -26
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/DescribeObjectsPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListPipelinesPaginator.js +0 -1
- package/dist-es/pagination/QueryObjectsPaginator.js +0 -1
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +19 -0
- package/dist-types/index.d.ts +4 -25
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/DataPipeline.d.ts +20 -971
- package/dist-types/ts3.4/DataPipelineClient.d.ts +24 -105
- package/dist-types/ts3.4/commands/ActivatePipelineCommand.d.ts +2 -50
- package/dist-types/ts3.4/commands/AddTagsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreatePipelineCommand.d.ts +2 -50
- package/dist-types/ts3.4/commands/DeactivatePipelineCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DeletePipelineCommand.d.ts +2 -51
- package/dist-types/ts3.4/commands/DescribeObjectsCommand.d.ts +2 -78
- package/dist-types/ts3.4/commands/DescribePipelinesCommand.d.ts +2 -81
- package/dist-types/ts3.4/commands/EvaluateExpressionCommand.d.ts +2 -50
- package/dist-types/ts3.4/commands/GetPipelineDefinitionCommand.d.ts +2 -84
- package/dist-types/ts3.4/commands/ListPipelinesCommand.d.ts +2 -51
- package/dist-types/ts3.4/commands/PollForTaskCommand.d.ts +2 -98
- package/dist-types/ts3.4/commands/PutPipelineDefinitionCommand.d.ts +2 -179
- package/dist-types/ts3.4/commands/QueryObjectsCommand.d.ts +2 -58
- package/dist-types/ts3.4/commands/RemoveTagsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ReportTaskProgressCommand.d.ts +2 -57
- package/dist-types/ts3.4/commands/ReportTaskRunnerHeartbeatCommand.d.ts +2 -52
- package/dist-types/ts3.4/commands/SetStatusCommand.d.ts +2 -52
- package/dist-types/ts3.4/commands/SetTaskStatusCommand.d.ts +2 -50
- package/dist-types/ts3.4/commands/ValidatePipelineDefinitionCommand.d.ts +2 -171
- package/dist-types/ts3.4/commands/index.d.ts +19 -0
- package/dist-types/ts3.4/index.d.ts +4 -25
- package/dist-types/ts3.4/models/models_0.d.ts +231 -769
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/DataPipeline.js.map +0 -1
- package/dist-cjs/DataPipelineClient.js.map +0 -1
- package/dist-cjs/commands/ActivatePipelineCommand.js.map +0 -1
- package/dist-cjs/commands/AddTagsCommand.js.map +0 -1
- package/dist-cjs/commands/CreatePipelineCommand.js.map +0 -1
- package/dist-cjs/commands/DeactivatePipelineCommand.js.map +0 -1
- package/dist-cjs/commands/DeletePipelineCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeObjectsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribePipelinesCommand.js.map +0 -1
- package/dist-cjs/commands/EvaluateExpressionCommand.js.map +0 -1
- package/dist-cjs/commands/GetPipelineDefinitionCommand.js.map +0 -1
- package/dist-cjs/commands/ListPipelinesCommand.js.map +0 -1
- package/dist-cjs/commands/PollForTaskCommand.js.map +0 -1
- package/dist-cjs/commands/PutPipelineDefinitionCommand.js.map +0 -1
- package/dist-cjs/commands/QueryObjectsCommand.js.map +0 -1
- package/dist-cjs/commands/RemoveTagsCommand.js.map +0 -1
- package/dist-cjs/commands/ReportTaskProgressCommand.js.map +0 -1
- package/dist-cjs/commands/ReportTaskRunnerHeartbeatCommand.js.map +0 -1
- package/dist-cjs/commands/SetStatusCommand.js.map +0 -1
- package/dist-cjs/commands/SetTaskStatusCommand.js.map +0 -1
- package/dist-cjs/commands/ValidatePipelineDefinitionCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/DescribeObjectsPaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListPipelinesPaginator.js.map +0 -1
- package/dist-cjs/pagination/QueryObjectsPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/DataPipeline.js.map +0 -1
- package/dist-es/DataPipelineClient.js.map +0 -1
- package/dist-es/commands/ActivatePipelineCommand.js.map +0 -1
- package/dist-es/commands/AddTagsCommand.js.map +0 -1
- package/dist-es/commands/CreatePipelineCommand.js.map +0 -1
- package/dist-es/commands/DeactivatePipelineCommand.js.map +0 -1
- package/dist-es/commands/DeletePipelineCommand.js.map +0 -1
- package/dist-es/commands/DescribeObjectsCommand.js.map +0 -1
- package/dist-es/commands/DescribePipelinesCommand.js.map +0 -1
- package/dist-es/commands/EvaluateExpressionCommand.js.map +0 -1
- package/dist-es/commands/GetPipelineDefinitionCommand.js.map +0 -1
- package/dist-es/commands/ListPipelinesCommand.js.map +0 -1
- package/dist-es/commands/PollForTaskCommand.js.map +0 -1
- package/dist-es/commands/PutPipelineDefinitionCommand.js.map +0 -1
- package/dist-es/commands/QueryObjectsCommand.js.map +0 -1
- package/dist-es/commands/RemoveTagsCommand.js.map +0 -1
- package/dist-es/commands/ReportTaskProgressCommand.js.map +0 -1
- package/dist-es/commands/ReportTaskRunnerHeartbeatCommand.js.map +0 -1
- package/dist-es/commands/SetStatusCommand.js.map +0 -1
- package/dist-es/commands/SetTaskStatusCommand.js.map +0 -1
- package/dist-es/commands/ValidatePipelineDefinitionCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/DescribeObjectsPaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListPipelinesPaginator.js.map +0 -1
- package/dist-es/pagination/QueryObjectsPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/DataPipeline.ts +0 -1579
- package/src/DataPipelineClient.ts +0 -321
- package/src/commands/ActivatePipelineCommand.ts +0 -125
- package/src/commands/AddTagsCommand.ts +0 -92
- package/src/commands/CreatePipelineCommand.ts +0 -125
- package/src/commands/DeactivatePipelineCommand.ts +0 -98
- package/src/commands/DeletePipelineCommand.ts +0 -126
- package/src/commands/DescribeObjectsCommand.ts +0 -153
- package/src/commands/DescribePipelinesCommand.ts +0 -156
- package/src/commands/EvaluateExpressionCommand.ts +0 -125
- package/src/commands/GetPipelineDefinitionCommand.ts +0 -159
- package/src/commands/ListPipelinesCommand.ts +0 -126
- package/src/commands/PollForTaskCommand.ts +0 -173
- package/src/commands/PutPipelineDefinitionCommand.ts +0 -254
- package/src/commands/QueryObjectsCommand.ts +0 -133
- package/src/commands/RemoveTagsCommand.ts +0 -95
- package/src/commands/ReportTaskProgressCommand.ts +0 -132
- package/src/commands/ReportTaskRunnerHeartbeatCommand.ts +0 -130
- package/src/commands/SetStatusCommand.ts +0 -124
- package/src/commands/SetTaskStatusCommand.ts +0 -125
- package/src/commands/ValidatePipelineDefinitionCommand.ts +0 -249
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -26
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -1480
- package/src/pagination/DescribeObjectsPaginator.ts +0 -58
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListPipelinesPaginator.ts +0 -58
- package/src/pagination/QueryObjectsPaginator.ts +0 -59
- package/src/protocols/Aws_json1_1.ts +0 -2767
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- 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
|
-
}
|