@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,98 +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 { DeactivatePipelineInput, DeactivatePipelineOutput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1DeactivatePipelineCommand,
|
|
18
|
-
serializeAws_json1_1DeactivatePipelineCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface DeactivatePipelineCommandInput extends DeactivatePipelineInput {}
|
|
22
|
-
export interface DeactivatePipelineCommandOutput extends DeactivatePipelineOutput, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Deactivates the specified running pipeline. The pipeline is set to the <code>DEACTIVATING</code>
|
|
26
|
-
* state until the deactivation process completes.</p>
|
|
27
|
-
* <p>To resume a deactivated pipeline, use <a>ActivatePipeline</a>. By default, the pipeline resumes from the last completed execution.
|
|
28
|
-
* Optionally, you can specify the date and time to resume the pipeline.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { DataPipelineClient, DeactivatePipelineCommand } from "@aws-sdk/client-data-pipeline"; // ES Modules import
|
|
33
|
-
* // const { DataPipelineClient, DeactivatePipelineCommand } = require("@aws-sdk/client-data-pipeline"); // CommonJS import
|
|
34
|
-
* const client = new DataPipelineClient(config);
|
|
35
|
-
* const command = new DeactivatePipelineCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link DeactivatePipelineCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link DeactivatePipelineCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link DataPipelineClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class DeactivatePipelineCommand extends $Command<
|
|
45
|
-
DeactivatePipelineCommandInput,
|
|
46
|
-
DeactivatePipelineCommandOutput,
|
|
47
|
-
DataPipelineClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: DeactivatePipelineCommandInput) {
|
|
53
|
-
// Start section: command_constructor
|
|
54
|
-
super();
|
|
55
|
-
// End section: command_constructor
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
|
-
resolveMiddleware(
|
|
62
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
63
|
-
configuration: DataPipelineClientResolvedConfig,
|
|
64
|
-
options?: __HttpHandlerOptions
|
|
65
|
-
): Handler<DeactivatePipelineCommandInput, DeactivatePipelineCommandOutput> {
|
|
66
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
67
|
-
|
|
68
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
69
|
-
|
|
70
|
-
const { logger } = configuration;
|
|
71
|
-
const clientName = "DataPipelineClient";
|
|
72
|
-
const commandName = "DeactivatePipelineCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: DeactivatePipelineInput.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: DeactivatePipelineOutput.filterSensitiveLog,
|
|
79
|
-
};
|
|
80
|
-
const { requestHandler } = configuration;
|
|
81
|
-
return stack.resolve(
|
|
82
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
83
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
84
|
-
handlerExecutionContext
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private serialize(input: DeactivatePipelineCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_json1_1DeactivatePipelineCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeactivatePipelineCommandOutput> {
|
|
93
|
-
return deserializeAws_json1_1DeactivatePipelineCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|
|
@@ -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 { DeletePipelineInput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1DeletePipelineCommand,
|
|
18
|
-
serializeAws_json1_1DeletePipelineCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface DeletePipelineCommandInput extends DeletePipelineInput {}
|
|
22
|
-
export interface DeletePipelineCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Deletes a pipeline, its pipeline definition, and its run history.
|
|
26
|
-
* AWS Data Pipeline attempts to cancel instances associated with the pipeline that are currently being processed by task runners.</p>
|
|
27
|
-
* <p>Deleting a pipeline cannot be undone. You cannot query or restore a deleted pipeline.
|
|
28
|
-
* To temporarily pause a pipeline instead of deleting it, call <a>SetStatus</a> with the status set to <code>PAUSE</code> on individual components.
|
|
29
|
-
* Components that are paused by <a>SetStatus</a> can be resumed.</p>
|
|
30
|
-
*
|
|
31
|
-
* <examples>
|
|
32
|
-
* <request>
|
|
33
|
-
*
|
|
34
|
-
* POST / HTTP/1.1
|
|
35
|
-
* Content-Type: application/x-amz-json-1.1
|
|
36
|
-
* X-Amz-Target: DataPipeline.DeletePipeline
|
|
37
|
-
* Content-Length: 50
|
|
38
|
-
* Host: datapipeline.us-east-1.amazonaws.com
|
|
39
|
-
* X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
|
|
40
|
-
* Authorization: AuthParams
|
|
41
|
-
*
|
|
42
|
-
* {"pipelineId": "df-06372391ZG65EXAMPLE"}
|
|
43
|
-
*
|
|
44
|
-
* </request>
|
|
45
|
-
*
|
|
46
|
-
* <response>
|
|
47
|
-
*
|
|
48
|
-
* x-amzn-RequestId: b7a88c81-0754-11e2-af6f-6bc7a6be60d9
|
|
49
|
-
* Content-Type: application/x-amz-json-1.1
|
|
50
|
-
* Content-Length: 0
|
|
51
|
-
* Date: Mon, 12 Nov 2012 17:50:53 GMT
|
|
52
|
-
*
|
|
53
|
-
* Unexpected response: 200, OK, undefined
|
|
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, DeletePipelineCommand } from "@aws-sdk/client-data-pipeline"; // ES Modules import
|
|
61
|
-
* // const { DataPipelineClient, DeletePipelineCommand } = require("@aws-sdk/client-data-pipeline"); // CommonJS import
|
|
62
|
-
* const client = new DataPipelineClient(config);
|
|
63
|
-
* const command = new DeletePipelineCommand(input);
|
|
64
|
-
* const response = await client.send(command);
|
|
65
|
-
* ```
|
|
66
|
-
*
|
|
67
|
-
* @see {@link DeletePipelineCommandInput} for command's `input` shape.
|
|
68
|
-
* @see {@link DeletePipelineCommandOutput} for command's `response` shape.
|
|
69
|
-
* @see {@link DataPipelineClientResolvedConfig | config} for command's `input` shape.
|
|
70
|
-
*
|
|
71
|
-
*/
|
|
72
|
-
export class DeletePipelineCommand extends $Command<
|
|
73
|
-
DeletePipelineCommandInput,
|
|
74
|
-
DeletePipelineCommandOutput,
|
|
75
|
-
DataPipelineClientResolvedConfig
|
|
76
|
-
> {
|
|
77
|
-
// Start section: command_properties
|
|
78
|
-
// End section: command_properties
|
|
79
|
-
|
|
80
|
-
constructor(readonly input: DeletePipelineCommandInput) {
|
|
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<DeletePipelineCommandInput, DeletePipelineCommandOutput> {
|
|
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 = "DeletePipelineCommand";
|
|
101
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
102
|
-
logger,
|
|
103
|
-
clientName,
|
|
104
|
-
commandName,
|
|
105
|
-
inputFilterSensitiveLog: DeletePipelineInput.filterSensitiveLog,
|
|
106
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
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: DeletePipelineCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
117
|
-
return serializeAws_json1_1DeletePipelineCommand(input, context);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeletePipelineCommandOutput> {
|
|
121
|
-
return deserializeAws_json1_1DeletePipelineCommand(output, context);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
// Start section: command_body_extra
|
|
125
|
-
// End section: command_body_extra
|
|
126
|
-
}
|
|
@@ -1,153 +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 { DescribeObjectsInput, DescribeObjectsOutput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1DescribeObjectsCommand,
|
|
18
|
-
serializeAws_json1_1DescribeObjectsCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface DescribeObjectsCommandInput extends DescribeObjectsInput {}
|
|
22
|
-
export interface DescribeObjectsCommandOutput extends DescribeObjectsOutput, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Gets the object definitions for a set of objects associated with the pipeline. Object definitions are composed of
|
|
26
|
-
* a set of fields that define the properties of the object.</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.DescribeObjects
|
|
34
|
-
* Content-Length: 98
|
|
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-06372391ZG65EXAMPLE",
|
|
40
|
-
* "objectIds":
|
|
41
|
-
* ["Schedule"],
|
|
42
|
-
* "evaluateExpressions": true}
|
|
43
|
-
*
|
|
44
|
-
* </request>
|
|
45
|
-
*
|
|
46
|
-
* <response>
|
|
47
|
-
*
|
|
48
|
-
* x-amzn-RequestId: 4c18ea5d-0777-11e2-8a14-21bb8a1f50ef
|
|
49
|
-
* Content-Type: application/x-amz-json-1.1
|
|
50
|
-
* Content-Length: 1488
|
|
51
|
-
* Date: Mon, 12 Nov 2012 17:50:53 GMT
|
|
52
|
-
*
|
|
53
|
-
* {"hasMoreResults": false,
|
|
54
|
-
* "pipelineObjects":
|
|
55
|
-
* [
|
|
56
|
-
* {"fields":
|
|
57
|
-
* [
|
|
58
|
-
* {"key": "startDateTime",
|
|
59
|
-
* "stringValue": "2012-12-12T00:00:00"},
|
|
60
|
-
* {"key": "parent",
|
|
61
|
-
* "refValue": "Default"},
|
|
62
|
-
* {"key": "@sphere",
|
|
63
|
-
* "stringValue": "COMPONENT"},
|
|
64
|
-
* {"key": "type",
|
|
65
|
-
* "stringValue": "Schedule"},
|
|
66
|
-
* {"key": "period",
|
|
67
|
-
* "stringValue": "1 hour"},
|
|
68
|
-
* {"key": "endDateTime",
|
|
69
|
-
* "stringValue": "2012-12-21T18:00:00"},
|
|
70
|
-
* {"key": "@version",
|
|
71
|
-
* "stringValue": "1"},
|
|
72
|
-
* {"key": "@status",
|
|
73
|
-
* "stringValue": "PENDING"},
|
|
74
|
-
* {"key": "@pipelineId",
|
|
75
|
-
* "stringValue": "df-06372391ZG65EXAMPLE"}
|
|
76
|
-
* ],
|
|
77
|
-
* "id": "Schedule",
|
|
78
|
-
* "name": "Schedule"}
|
|
79
|
-
* ]
|
|
80
|
-
* }
|
|
81
|
-
*
|
|
82
|
-
* </response>
|
|
83
|
-
* </examples>
|
|
84
|
-
* @example
|
|
85
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
86
|
-
* ```javascript
|
|
87
|
-
* import { DataPipelineClient, DescribeObjectsCommand } from "@aws-sdk/client-data-pipeline"; // ES Modules import
|
|
88
|
-
* // const { DataPipelineClient, DescribeObjectsCommand } = require("@aws-sdk/client-data-pipeline"); // CommonJS import
|
|
89
|
-
* const client = new DataPipelineClient(config);
|
|
90
|
-
* const command = new DescribeObjectsCommand(input);
|
|
91
|
-
* const response = await client.send(command);
|
|
92
|
-
* ```
|
|
93
|
-
*
|
|
94
|
-
* @see {@link DescribeObjectsCommandInput} for command's `input` shape.
|
|
95
|
-
* @see {@link DescribeObjectsCommandOutput} for command's `response` shape.
|
|
96
|
-
* @see {@link DataPipelineClientResolvedConfig | config} for command's `input` shape.
|
|
97
|
-
*
|
|
98
|
-
*/
|
|
99
|
-
export class DescribeObjectsCommand extends $Command<
|
|
100
|
-
DescribeObjectsCommandInput,
|
|
101
|
-
DescribeObjectsCommandOutput,
|
|
102
|
-
DataPipelineClientResolvedConfig
|
|
103
|
-
> {
|
|
104
|
-
// Start section: command_properties
|
|
105
|
-
// End section: command_properties
|
|
106
|
-
|
|
107
|
-
constructor(readonly input: DescribeObjectsCommandInput) {
|
|
108
|
-
// Start section: command_constructor
|
|
109
|
-
super();
|
|
110
|
-
// End section: command_constructor
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* @internal
|
|
115
|
-
*/
|
|
116
|
-
resolveMiddleware(
|
|
117
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
118
|
-
configuration: DataPipelineClientResolvedConfig,
|
|
119
|
-
options?: __HttpHandlerOptions
|
|
120
|
-
): Handler<DescribeObjectsCommandInput, DescribeObjectsCommandOutput> {
|
|
121
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
122
|
-
|
|
123
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
124
|
-
|
|
125
|
-
const { logger } = configuration;
|
|
126
|
-
const clientName = "DataPipelineClient";
|
|
127
|
-
const commandName = "DescribeObjectsCommand";
|
|
128
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
129
|
-
logger,
|
|
130
|
-
clientName,
|
|
131
|
-
commandName,
|
|
132
|
-
inputFilterSensitiveLog: DescribeObjectsInput.filterSensitiveLog,
|
|
133
|
-
outputFilterSensitiveLog: DescribeObjectsOutput.filterSensitiveLog,
|
|
134
|
-
};
|
|
135
|
-
const { requestHandler } = configuration;
|
|
136
|
-
return stack.resolve(
|
|
137
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
138
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
139
|
-
handlerExecutionContext
|
|
140
|
-
);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
private serialize(input: DescribeObjectsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
144
|
-
return serializeAws_json1_1DescribeObjectsCommand(input, context);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeObjectsCommandOutput> {
|
|
148
|
-
return deserializeAws_json1_1DescribeObjectsCommand(output, context);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
// Start section: command_body_extra
|
|
152
|
-
// End section: command_body_extra
|
|
153
|
-
}
|
|
@@ -1,156 +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 { DescribePipelinesInput, DescribePipelinesOutput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1DescribePipelinesCommand,
|
|
18
|
-
serializeAws_json1_1DescribePipelinesCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface DescribePipelinesCommandInput extends DescribePipelinesInput {}
|
|
22
|
-
export interface DescribePipelinesCommandOutput extends DescribePipelinesOutput, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Retrieves metadata about one or more pipelines. The information retrieved includes the name of the pipeline, the pipeline identifier,
|
|
26
|
-
* its current state, and the user account that owns the pipeline. Using account credentials, you can retrieve metadata about pipelines
|
|
27
|
-
* that you or your IAM users have created. If you are using an IAM user account, you can retrieve metadata about only those pipelines
|
|
28
|
-
* for which you have read permissions.</p>
|
|
29
|
-
* <p>To retrieve the full pipeline definition instead of metadata about the pipeline, call <a>GetPipelineDefinition</a>.</p>
|
|
30
|
-
*
|
|
31
|
-
* <examples>
|
|
32
|
-
* <request>
|
|
33
|
-
*
|
|
34
|
-
* POST / HTTP/1.1
|
|
35
|
-
* Content-Type: application/x-amz-json-1.1
|
|
36
|
-
* X-Amz-Target: DataPipeline.DescribePipelines
|
|
37
|
-
* Content-Length: 70
|
|
38
|
-
* Host: datapipeline.us-east-1.amazonaws.com
|
|
39
|
-
* X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
|
|
40
|
-
* Authorization: AuthParams
|
|
41
|
-
*
|
|
42
|
-
* {"pipelineIds":
|
|
43
|
-
* ["df-08785951KAKJEXAMPLE"]
|
|
44
|
-
* }
|
|
45
|
-
*
|
|
46
|
-
* </request>
|
|
47
|
-
*
|
|
48
|
-
* <response>
|
|
49
|
-
*
|
|
50
|
-
* x-amzn-RequestId: 02870eb7-0736-11e2-af6f-6bc7a6be60d9
|
|
51
|
-
* Content-Type: application/x-amz-json-1.1
|
|
52
|
-
* Content-Length: 767
|
|
53
|
-
* Date: Mon, 12 Nov 2012 17:50:53 GMT
|
|
54
|
-
*
|
|
55
|
-
* {"pipelineDescriptionList":
|
|
56
|
-
* [
|
|
57
|
-
* {"description": "This is my first pipeline",
|
|
58
|
-
* "fields":
|
|
59
|
-
* [
|
|
60
|
-
* {"key": "@pipelineState",
|
|
61
|
-
* "stringValue": "SCHEDULED"},
|
|
62
|
-
* {"key": "description",
|
|
63
|
-
* "stringValue": "This is my first pipeline"},
|
|
64
|
-
* {"key": "name",
|
|
65
|
-
* "stringValue": "myPipeline"},
|
|
66
|
-
* {"key": "@creationTime",
|
|
67
|
-
* "stringValue": "2012-12-13T01:24:06"},
|
|
68
|
-
* {"key": "@id",
|
|
69
|
-
* "stringValue": "df-0937003356ZJEXAMPLE"},
|
|
70
|
-
* {"key": "@sphere",
|
|
71
|
-
* "stringValue": "PIPELINE"},
|
|
72
|
-
* {"key": "@version",
|
|
73
|
-
* "stringValue": "1"},
|
|
74
|
-
* {"key": "@userId",
|
|
75
|
-
* "stringValue": "924374875933"},
|
|
76
|
-
* {"key": "@accountId",
|
|
77
|
-
* "stringValue": "924374875933"},
|
|
78
|
-
* {"key": "uniqueId",
|
|
79
|
-
* "stringValue": "1234567890"}
|
|
80
|
-
* ],
|
|
81
|
-
* "name": "myPipeline",
|
|
82
|
-
* "pipelineId": "df-0937003356ZJEXAMPLE"}
|
|
83
|
-
* ]
|
|
84
|
-
* }
|
|
85
|
-
* </response>
|
|
86
|
-
* </examples>
|
|
87
|
-
* @example
|
|
88
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
89
|
-
* ```javascript
|
|
90
|
-
* import { DataPipelineClient, DescribePipelinesCommand } from "@aws-sdk/client-data-pipeline"; // ES Modules import
|
|
91
|
-
* // const { DataPipelineClient, DescribePipelinesCommand } = require("@aws-sdk/client-data-pipeline"); // CommonJS import
|
|
92
|
-
* const client = new DataPipelineClient(config);
|
|
93
|
-
* const command = new DescribePipelinesCommand(input);
|
|
94
|
-
* const response = await client.send(command);
|
|
95
|
-
* ```
|
|
96
|
-
*
|
|
97
|
-
* @see {@link DescribePipelinesCommandInput} for command's `input` shape.
|
|
98
|
-
* @see {@link DescribePipelinesCommandOutput} for command's `response` shape.
|
|
99
|
-
* @see {@link DataPipelineClientResolvedConfig | config} for command's `input` shape.
|
|
100
|
-
*
|
|
101
|
-
*/
|
|
102
|
-
export class DescribePipelinesCommand extends $Command<
|
|
103
|
-
DescribePipelinesCommandInput,
|
|
104
|
-
DescribePipelinesCommandOutput,
|
|
105
|
-
DataPipelineClientResolvedConfig
|
|
106
|
-
> {
|
|
107
|
-
// Start section: command_properties
|
|
108
|
-
// End section: command_properties
|
|
109
|
-
|
|
110
|
-
constructor(readonly input: DescribePipelinesCommandInput) {
|
|
111
|
-
// Start section: command_constructor
|
|
112
|
-
super();
|
|
113
|
-
// End section: command_constructor
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* @internal
|
|
118
|
-
*/
|
|
119
|
-
resolveMiddleware(
|
|
120
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
121
|
-
configuration: DataPipelineClientResolvedConfig,
|
|
122
|
-
options?: __HttpHandlerOptions
|
|
123
|
-
): Handler<DescribePipelinesCommandInput, DescribePipelinesCommandOutput> {
|
|
124
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
125
|
-
|
|
126
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
127
|
-
|
|
128
|
-
const { logger } = configuration;
|
|
129
|
-
const clientName = "DataPipelineClient";
|
|
130
|
-
const commandName = "DescribePipelinesCommand";
|
|
131
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
132
|
-
logger,
|
|
133
|
-
clientName,
|
|
134
|
-
commandName,
|
|
135
|
-
inputFilterSensitiveLog: DescribePipelinesInput.filterSensitiveLog,
|
|
136
|
-
outputFilterSensitiveLog: DescribePipelinesOutput.filterSensitiveLog,
|
|
137
|
-
};
|
|
138
|
-
const { requestHandler } = configuration;
|
|
139
|
-
return stack.resolve(
|
|
140
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
141
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
142
|
-
handlerExecutionContext
|
|
143
|
-
);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
private serialize(input: DescribePipelinesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
147
|
-
return serializeAws_json1_1DescribePipelinesCommand(input, context);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribePipelinesCommandOutput> {
|
|
151
|
-
return deserializeAws_json1_1DescribePipelinesCommand(output, context);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
// Start section: command_body_extra
|
|
155
|
-
// End section: command_body_extra
|
|
156
|
-
}
|
|
@@ -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 { EvaluateExpressionInput, EvaluateExpressionOutput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1EvaluateExpressionCommand,
|
|
18
|
-
serializeAws_json1_1EvaluateExpressionCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface EvaluateExpressionCommandInput extends EvaluateExpressionInput {}
|
|
22
|
-
export interface EvaluateExpressionCommandOutput extends EvaluateExpressionOutput, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Task runners call <code>EvaluateExpression</code> to evaluate a string in the context of the specified object.
|
|
26
|
-
* For example, a task runner can evaluate SQL queries stored in Amazon S3.</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.DescribePipelines
|
|
34
|
-
* Content-Length: 164
|
|
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-08785951KAKJEXAMPLE",
|
|
40
|
-
* "objectId": "Schedule",
|
|
41
|
-
* "expression": "Transform started at #{startDateTime} and finished at #{endDateTime}"}
|
|
42
|
-
*
|
|
43
|
-
* </request>
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* <response>
|
|
47
|
-
*
|
|
48
|
-
* x-amzn-RequestId: 02870eb7-0736-11e2-af6f-6bc7a6be60d9
|
|
49
|
-
* Content-Type: application/x-amz-json-1.1
|
|
50
|
-
* Content-Length: 103
|
|
51
|
-
* Date: Mon, 12 Nov 2012 17:50:53 GMT
|
|
52
|
-
*
|
|
53
|
-
* {"evaluatedExpression": "Transform started at 2012-12-12T00:00:00 and finished at 2012-12-21T18:00:00"}
|
|
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, EvaluateExpressionCommand } from "@aws-sdk/client-data-pipeline"; // ES Modules import
|
|
60
|
-
* // const { DataPipelineClient, EvaluateExpressionCommand } = require("@aws-sdk/client-data-pipeline"); // CommonJS import
|
|
61
|
-
* const client = new DataPipelineClient(config);
|
|
62
|
-
* const command = new EvaluateExpressionCommand(input);
|
|
63
|
-
* const response = await client.send(command);
|
|
64
|
-
* ```
|
|
65
|
-
*
|
|
66
|
-
* @see {@link EvaluateExpressionCommandInput} for command's `input` shape.
|
|
67
|
-
* @see {@link EvaluateExpressionCommandOutput} for command's `response` shape.
|
|
68
|
-
* @see {@link DataPipelineClientResolvedConfig | config} for command's `input` shape.
|
|
69
|
-
*
|
|
70
|
-
*/
|
|
71
|
-
export class EvaluateExpressionCommand extends $Command<
|
|
72
|
-
EvaluateExpressionCommandInput,
|
|
73
|
-
EvaluateExpressionCommandOutput,
|
|
74
|
-
DataPipelineClientResolvedConfig
|
|
75
|
-
> {
|
|
76
|
-
// Start section: command_properties
|
|
77
|
-
// End section: command_properties
|
|
78
|
-
|
|
79
|
-
constructor(readonly input: EvaluateExpressionCommandInput) {
|
|
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<EvaluateExpressionCommandInput, EvaluateExpressionCommandOutput> {
|
|
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 = "EvaluateExpressionCommand";
|
|
100
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
101
|
-
logger,
|
|
102
|
-
clientName,
|
|
103
|
-
commandName,
|
|
104
|
-
inputFilterSensitiveLog: EvaluateExpressionInput.filterSensitiveLog,
|
|
105
|
-
outputFilterSensitiveLog: EvaluateExpressionOutput.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: EvaluateExpressionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
116
|
-
return serializeAws_json1_1EvaluateExpressionCommand(input, context);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<EvaluateExpressionCommandOutput> {
|
|
120
|
-
return deserializeAws_json1_1EvaluateExpressionCommand(output, context);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// Start section: command_body_extra
|
|
124
|
-
// End section: command_body_extra
|
|
125
|
-
}
|