@aws-sdk/client-data-pipeline 3.927.0 → 3.928.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/dist-cjs/index.js +498 -619
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/DataPipelineClient.js +2 -0
- package/dist-es/commands/ActivatePipelineCommand.js +3 -9
- package/dist-es/commands/AddTagsCommand.js +3 -9
- package/dist-es/commands/CreatePipelineCommand.js +3 -9
- package/dist-es/commands/DeactivatePipelineCommand.js +3 -9
- package/dist-es/commands/DeletePipelineCommand.js +3 -9
- package/dist-es/commands/DescribeObjectsCommand.js +3 -9
- package/dist-es/commands/DescribePipelinesCommand.js +3 -9
- package/dist-es/commands/EvaluateExpressionCommand.js +3 -9
- package/dist-es/commands/GetPipelineDefinitionCommand.js +3 -9
- package/dist-es/commands/ListPipelinesCommand.js +3 -9
- package/dist-es/commands/PollForTaskCommand.js +3 -9
- package/dist-es/commands/PutPipelineDefinitionCommand.js +3 -9
- package/dist-es/commands/QueryObjectsCommand.js +3 -9
- package/dist-es/commands/RemoveTagsCommand.js +3 -9
- package/dist-es/commands/ReportTaskProgressCommand.js +3 -9
- package/dist-es/commands/ReportTaskRunnerHeartbeatCommand.js +3 -9
- package/dist-es/commands/SetStatusCommand.js +3 -9
- package/dist-es/commands/SetTaskStatusCommand.js +3 -9
- package/dist-es/commands/ValidatePipelineDefinitionCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +446 -0
- package/dist-types/DataPipelineClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +93 -0
- package/dist-types/ts3.4/DataPipelineClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +99 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -475
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -173
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -233
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StaticErrorSchema,
|
|
3
|
+
StaticListSchema,
|
|
4
|
+
StaticMapSchema,
|
|
5
|
+
StaticOperationSchema,
|
|
6
|
+
StaticStructureSchema,
|
|
7
|
+
} from "@smithy/types";
|
|
8
|
+
export declare var ActivatePipelineInput: StaticStructureSchema;
|
|
9
|
+
export declare var ActivatePipelineOutput: StaticStructureSchema;
|
|
10
|
+
export declare var AddTagsInput: StaticStructureSchema;
|
|
11
|
+
export declare var AddTagsOutput: StaticStructureSchema;
|
|
12
|
+
export declare var CreatePipelineInput: StaticStructureSchema;
|
|
13
|
+
export declare var CreatePipelineOutput: StaticStructureSchema;
|
|
14
|
+
export declare var DeactivatePipelineInput: StaticStructureSchema;
|
|
15
|
+
export declare var DeactivatePipelineOutput: StaticStructureSchema;
|
|
16
|
+
export declare var DeletePipelineInput: StaticStructureSchema;
|
|
17
|
+
export declare var DescribeObjectsInput: StaticStructureSchema;
|
|
18
|
+
export declare var DescribeObjectsOutput: StaticStructureSchema;
|
|
19
|
+
export declare var DescribePipelinesInput: StaticStructureSchema;
|
|
20
|
+
export declare var DescribePipelinesOutput: StaticStructureSchema;
|
|
21
|
+
export declare var EvaluateExpressionInput: StaticStructureSchema;
|
|
22
|
+
export declare var EvaluateExpressionOutput: StaticStructureSchema;
|
|
23
|
+
export declare var Field: StaticStructureSchema;
|
|
24
|
+
export declare var GetPipelineDefinitionInput: StaticStructureSchema;
|
|
25
|
+
export declare var GetPipelineDefinitionOutput: StaticStructureSchema;
|
|
26
|
+
export declare var InstanceIdentity: StaticStructureSchema;
|
|
27
|
+
export declare var InternalServiceError: StaticErrorSchema;
|
|
28
|
+
export declare var InvalidRequestException: StaticErrorSchema;
|
|
29
|
+
export declare var ListPipelinesInput: StaticStructureSchema;
|
|
30
|
+
export declare var ListPipelinesOutput: StaticStructureSchema;
|
|
31
|
+
export declare var Operator: StaticStructureSchema;
|
|
32
|
+
export declare var ParameterAttribute: StaticStructureSchema;
|
|
33
|
+
export declare var ParameterObject: StaticStructureSchema;
|
|
34
|
+
export declare var ParameterValue: StaticStructureSchema;
|
|
35
|
+
export declare var PipelineDeletedException: StaticErrorSchema;
|
|
36
|
+
export declare var PipelineDescription: StaticStructureSchema;
|
|
37
|
+
export declare var PipelineIdName: StaticStructureSchema;
|
|
38
|
+
export declare var PipelineNotFoundException: StaticErrorSchema;
|
|
39
|
+
export declare var PipelineObject: StaticStructureSchema;
|
|
40
|
+
export declare var PollForTaskInput: StaticStructureSchema;
|
|
41
|
+
export declare var PollForTaskOutput: StaticStructureSchema;
|
|
42
|
+
export declare var PutPipelineDefinitionInput: StaticStructureSchema;
|
|
43
|
+
export declare var PutPipelineDefinitionOutput: StaticStructureSchema;
|
|
44
|
+
export declare var Query: StaticStructureSchema;
|
|
45
|
+
export declare var QueryObjectsInput: StaticStructureSchema;
|
|
46
|
+
export declare var QueryObjectsOutput: StaticStructureSchema;
|
|
47
|
+
export declare var RemoveTagsInput: StaticStructureSchema;
|
|
48
|
+
export declare var RemoveTagsOutput: StaticStructureSchema;
|
|
49
|
+
export declare var ReportTaskProgressInput: StaticStructureSchema;
|
|
50
|
+
export declare var ReportTaskProgressOutput: StaticStructureSchema;
|
|
51
|
+
export declare var ReportTaskRunnerHeartbeatInput: StaticStructureSchema;
|
|
52
|
+
export declare var ReportTaskRunnerHeartbeatOutput: StaticStructureSchema;
|
|
53
|
+
export declare var Selector: StaticStructureSchema;
|
|
54
|
+
export declare var SetStatusInput: StaticStructureSchema;
|
|
55
|
+
export declare var SetTaskStatusInput: StaticStructureSchema;
|
|
56
|
+
export declare var SetTaskStatusOutput: StaticStructureSchema;
|
|
57
|
+
export declare var Tag: StaticStructureSchema;
|
|
58
|
+
export declare var TaskNotFoundException: StaticErrorSchema;
|
|
59
|
+
export declare var TaskObject: StaticStructureSchema;
|
|
60
|
+
export declare var ValidatePipelineDefinitionInput: StaticStructureSchema;
|
|
61
|
+
export declare var ValidatePipelineDefinitionOutput: StaticStructureSchema;
|
|
62
|
+
export declare var ValidationError: StaticStructureSchema;
|
|
63
|
+
export declare var ValidationWarning: StaticStructureSchema;
|
|
64
|
+
export declare var __Unit: "unit";
|
|
65
|
+
export declare var DataPipelineServiceException: StaticErrorSchema;
|
|
66
|
+
export declare var fieldList: StaticListSchema;
|
|
67
|
+
export declare var idList: number;
|
|
68
|
+
export declare var ParameterAttributeList: StaticListSchema;
|
|
69
|
+
export declare var ParameterObjectList: StaticListSchema;
|
|
70
|
+
export declare var ParameterValueList: StaticListSchema;
|
|
71
|
+
export declare var PipelineDescriptionList: StaticListSchema;
|
|
72
|
+
export declare var pipelineList: StaticListSchema;
|
|
73
|
+
export declare var PipelineObjectList: StaticListSchema;
|
|
74
|
+
export declare var SelectorList: StaticListSchema;
|
|
75
|
+
export declare var stringList: number;
|
|
76
|
+
export declare var tagList: StaticListSchema;
|
|
77
|
+
export declare var ValidationErrors: StaticListSchema;
|
|
78
|
+
export declare var validationMessages: number;
|
|
79
|
+
export declare var ValidationWarnings: StaticListSchema;
|
|
80
|
+
export declare var PipelineObjectMap: StaticMapSchema;
|
|
81
|
+
export declare var ActivatePipeline: StaticOperationSchema;
|
|
82
|
+
export declare var AddTags: StaticOperationSchema;
|
|
83
|
+
export declare var CreatePipeline: StaticOperationSchema;
|
|
84
|
+
export declare var DeactivatePipeline: StaticOperationSchema;
|
|
85
|
+
export declare var DeletePipeline: StaticOperationSchema;
|
|
86
|
+
export declare var DescribeObjects: StaticOperationSchema;
|
|
87
|
+
export declare var DescribePipelines: StaticOperationSchema;
|
|
88
|
+
export declare var EvaluateExpression: StaticOperationSchema;
|
|
89
|
+
export declare var GetPipelineDefinition: StaticOperationSchema;
|
|
90
|
+
export declare var ListPipelines: StaticOperationSchema;
|
|
91
|
+
export declare var PollForTask: StaticOperationSchema;
|
|
92
|
+
export declare var PutPipelineDefinition: StaticOperationSchema;
|
|
93
|
+
export declare var QueryObjects: StaticOperationSchema;
|
|
94
|
+
export declare var RemoveTags: StaticOperationSchema;
|
|
95
|
+
export declare var ReportTaskProgress: StaticOperationSchema;
|
|
96
|
+
export declare var ReportTaskRunnerHeartbeat: StaticOperationSchema;
|
|
97
|
+
export declare var SetStatus: StaticOperationSchema;
|
|
98
|
+
export declare var SetTaskStatus: StaticOperationSchema;
|
|
99
|
+
export declare var ValidatePipelineDefinition: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-data-pipeline",
|
|
3
3
|
"description": "AWS SDK for JavaScript Data Pipeline Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.928.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-data-pipeline",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.928.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.928.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.928.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.925.0",
|
|
30
30
|
"@aws-sdk/types": "3.922.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.922.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.922.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.928.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.4.2",
|
|
35
35
|
"@smithy/core": "^3.17.2",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.3.5",
|
|
@@ -1,475 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { DataPipelineServiceException as __BaseException } from "../models/DataPipelineServiceException";
|
|
5
|
-
import { InternalServiceError, InvalidRequestException, PipelineDeletedException, PipelineNotFoundException, TaskNotFoundException, } from "../models/models_0";
|
|
6
|
-
export const se_ActivatePipelineCommand = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("ActivatePipeline");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(se_ActivatePipelineInput(input, context));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const se_AddTagsCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("AddTags");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(_json(input));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
export const se_CreatePipelineCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("CreatePipeline");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(_json(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
export const se_DeactivatePipelineCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("DeactivatePipeline");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(_json(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
export const se_DeletePipelineCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("DeletePipeline");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(_json(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
export const se_DescribeObjectsCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("DescribeObjects");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify(_json(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
export const se_DescribePipelinesCommand = async (input, context) => {
|
|
43
|
-
const headers = sharedHeaders("DescribePipelines");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(_json(input));
|
|
46
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
-
};
|
|
48
|
-
export const se_EvaluateExpressionCommand = async (input, context) => {
|
|
49
|
-
const headers = sharedHeaders("EvaluateExpression");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(_json(input));
|
|
52
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
|
-
};
|
|
54
|
-
export const se_GetPipelineDefinitionCommand = async (input, context) => {
|
|
55
|
-
const headers = sharedHeaders("GetPipelineDefinition");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(_json(input));
|
|
58
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
-
};
|
|
60
|
-
export const se_ListPipelinesCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("ListPipelines");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(_json(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
export const se_PollForTaskCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("PollForTask");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(_json(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
export const se_PutPipelineDefinitionCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("PutPipelineDefinition");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify(_json(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
export const se_QueryObjectsCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("QueryObjects");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(_json(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
export const se_RemoveTagsCommand = async (input, context) => {
|
|
85
|
-
const headers = sharedHeaders("RemoveTags");
|
|
86
|
-
let body;
|
|
87
|
-
body = JSON.stringify(_json(input));
|
|
88
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
|
-
};
|
|
90
|
-
export const se_ReportTaskProgressCommand = async (input, context) => {
|
|
91
|
-
const headers = sharedHeaders("ReportTaskProgress");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify(_json(input));
|
|
94
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
-
};
|
|
96
|
-
export const se_ReportTaskRunnerHeartbeatCommand = async (input, context) => {
|
|
97
|
-
const headers = sharedHeaders("ReportTaskRunnerHeartbeat");
|
|
98
|
-
let body;
|
|
99
|
-
body = JSON.stringify(_json(input));
|
|
100
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
|
-
};
|
|
102
|
-
export const se_SetStatusCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("SetStatus");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify(_json(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
export const se_SetTaskStatusCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("SetTaskStatus");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify(_json(input));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
export const se_ValidatePipelineDefinitionCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("ValidatePipelineDefinition");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify(_json(input));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
export const de_ActivatePipelineCommand = async (output, context) => {
|
|
121
|
-
if (output.statusCode >= 300) {
|
|
122
|
-
return de_CommandError(output, context);
|
|
123
|
-
}
|
|
124
|
-
const data = await parseBody(output.body, context);
|
|
125
|
-
let contents = {};
|
|
126
|
-
contents = _json(data);
|
|
127
|
-
const response = {
|
|
128
|
-
$metadata: deserializeMetadata(output),
|
|
129
|
-
...contents,
|
|
130
|
-
};
|
|
131
|
-
return response;
|
|
132
|
-
};
|
|
133
|
-
export const de_AddTagsCommand = async (output, context) => {
|
|
134
|
-
if (output.statusCode >= 300) {
|
|
135
|
-
return de_CommandError(output, context);
|
|
136
|
-
}
|
|
137
|
-
const data = await parseBody(output.body, context);
|
|
138
|
-
let contents = {};
|
|
139
|
-
contents = _json(data);
|
|
140
|
-
const response = {
|
|
141
|
-
$metadata: deserializeMetadata(output),
|
|
142
|
-
...contents,
|
|
143
|
-
};
|
|
144
|
-
return response;
|
|
145
|
-
};
|
|
146
|
-
export const de_CreatePipelineCommand = async (output, context) => {
|
|
147
|
-
if (output.statusCode >= 300) {
|
|
148
|
-
return de_CommandError(output, context);
|
|
149
|
-
}
|
|
150
|
-
const data = await parseBody(output.body, context);
|
|
151
|
-
let contents = {};
|
|
152
|
-
contents = _json(data);
|
|
153
|
-
const response = {
|
|
154
|
-
$metadata: deserializeMetadata(output),
|
|
155
|
-
...contents,
|
|
156
|
-
};
|
|
157
|
-
return response;
|
|
158
|
-
};
|
|
159
|
-
export const de_DeactivatePipelineCommand = async (output, context) => {
|
|
160
|
-
if (output.statusCode >= 300) {
|
|
161
|
-
return de_CommandError(output, context);
|
|
162
|
-
}
|
|
163
|
-
const data = await parseBody(output.body, context);
|
|
164
|
-
let contents = {};
|
|
165
|
-
contents = _json(data);
|
|
166
|
-
const response = {
|
|
167
|
-
$metadata: deserializeMetadata(output),
|
|
168
|
-
...contents,
|
|
169
|
-
};
|
|
170
|
-
return response;
|
|
171
|
-
};
|
|
172
|
-
export const de_DeletePipelineCommand = async (output, context) => {
|
|
173
|
-
if (output.statusCode >= 300) {
|
|
174
|
-
return de_CommandError(output, context);
|
|
175
|
-
}
|
|
176
|
-
await collectBody(output.body, context);
|
|
177
|
-
const response = {
|
|
178
|
-
$metadata: deserializeMetadata(output),
|
|
179
|
-
};
|
|
180
|
-
return response;
|
|
181
|
-
};
|
|
182
|
-
export const de_DescribeObjectsCommand = async (output, context) => {
|
|
183
|
-
if (output.statusCode >= 300) {
|
|
184
|
-
return de_CommandError(output, context);
|
|
185
|
-
}
|
|
186
|
-
const data = await parseBody(output.body, context);
|
|
187
|
-
let contents = {};
|
|
188
|
-
contents = _json(data);
|
|
189
|
-
const response = {
|
|
190
|
-
$metadata: deserializeMetadata(output),
|
|
191
|
-
...contents,
|
|
192
|
-
};
|
|
193
|
-
return response;
|
|
194
|
-
};
|
|
195
|
-
export const de_DescribePipelinesCommand = async (output, context) => {
|
|
196
|
-
if (output.statusCode >= 300) {
|
|
197
|
-
return de_CommandError(output, context);
|
|
198
|
-
}
|
|
199
|
-
const data = await parseBody(output.body, context);
|
|
200
|
-
let contents = {};
|
|
201
|
-
contents = _json(data);
|
|
202
|
-
const response = {
|
|
203
|
-
$metadata: deserializeMetadata(output),
|
|
204
|
-
...contents,
|
|
205
|
-
};
|
|
206
|
-
return response;
|
|
207
|
-
};
|
|
208
|
-
export const de_EvaluateExpressionCommand = async (output, context) => {
|
|
209
|
-
if (output.statusCode >= 300) {
|
|
210
|
-
return de_CommandError(output, context);
|
|
211
|
-
}
|
|
212
|
-
const data = await parseBody(output.body, context);
|
|
213
|
-
let contents = {};
|
|
214
|
-
contents = _json(data);
|
|
215
|
-
const response = {
|
|
216
|
-
$metadata: deserializeMetadata(output),
|
|
217
|
-
...contents,
|
|
218
|
-
};
|
|
219
|
-
return response;
|
|
220
|
-
};
|
|
221
|
-
export const de_GetPipelineDefinitionCommand = async (output, context) => {
|
|
222
|
-
if (output.statusCode >= 300) {
|
|
223
|
-
return de_CommandError(output, context);
|
|
224
|
-
}
|
|
225
|
-
const data = await parseBody(output.body, context);
|
|
226
|
-
let contents = {};
|
|
227
|
-
contents = _json(data);
|
|
228
|
-
const response = {
|
|
229
|
-
$metadata: deserializeMetadata(output),
|
|
230
|
-
...contents,
|
|
231
|
-
};
|
|
232
|
-
return response;
|
|
233
|
-
};
|
|
234
|
-
export const de_ListPipelinesCommand = async (output, context) => {
|
|
235
|
-
if (output.statusCode >= 300) {
|
|
236
|
-
return de_CommandError(output, context);
|
|
237
|
-
}
|
|
238
|
-
const data = await parseBody(output.body, context);
|
|
239
|
-
let contents = {};
|
|
240
|
-
contents = _json(data);
|
|
241
|
-
const response = {
|
|
242
|
-
$metadata: deserializeMetadata(output),
|
|
243
|
-
...contents,
|
|
244
|
-
};
|
|
245
|
-
return response;
|
|
246
|
-
};
|
|
247
|
-
export const de_PollForTaskCommand = async (output, context) => {
|
|
248
|
-
if (output.statusCode >= 300) {
|
|
249
|
-
return de_CommandError(output, context);
|
|
250
|
-
}
|
|
251
|
-
const data = await parseBody(output.body, context);
|
|
252
|
-
let contents = {};
|
|
253
|
-
contents = _json(data);
|
|
254
|
-
const response = {
|
|
255
|
-
$metadata: deserializeMetadata(output),
|
|
256
|
-
...contents,
|
|
257
|
-
};
|
|
258
|
-
return response;
|
|
259
|
-
};
|
|
260
|
-
export const de_PutPipelineDefinitionCommand = async (output, context) => {
|
|
261
|
-
if (output.statusCode >= 300) {
|
|
262
|
-
return de_CommandError(output, context);
|
|
263
|
-
}
|
|
264
|
-
const data = await parseBody(output.body, context);
|
|
265
|
-
let contents = {};
|
|
266
|
-
contents = _json(data);
|
|
267
|
-
const response = {
|
|
268
|
-
$metadata: deserializeMetadata(output),
|
|
269
|
-
...contents,
|
|
270
|
-
};
|
|
271
|
-
return response;
|
|
272
|
-
};
|
|
273
|
-
export const de_QueryObjectsCommand = async (output, context) => {
|
|
274
|
-
if (output.statusCode >= 300) {
|
|
275
|
-
return de_CommandError(output, context);
|
|
276
|
-
}
|
|
277
|
-
const data = await parseBody(output.body, context);
|
|
278
|
-
let contents = {};
|
|
279
|
-
contents = _json(data);
|
|
280
|
-
const response = {
|
|
281
|
-
$metadata: deserializeMetadata(output),
|
|
282
|
-
...contents,
|
|
283
|
-
};
|
|
284
|
-
return response;
|
|
285
|
-
};
|
|
286
|
-
export const de_RemoveTagsCommand = async (output, context) => {
|
|
287
|
-
if (output.statusCode >= 300) {
|
|
288
|
-
return de_CommandError(output, context);
|
|
289
|
-
}
|
|
290
|
-
const data = await parseBody(output.body, context);
|
|
291
|
-
let contents = {};
|
|
292
|
-
contents = _json(data);
|
|
293
|
-
const response = {
|
|
294
|
-
$metadata: deserializeMetadata(output),
|
|
295
|
-
...contents,
|
|
296
|
-
};
|
|
297
|
-
return response;
|
|
298
|
-
};
|
|
299
|
-
export const de_ReportTaskProgressCommand = async (output, context) => {
|
|
300
|
-
if (output.statusCode >= 300) {
|
|
301
|
-
return de_CommandError(output, context);
|
|
302
|
-
}
|
|
303
|
-
const data = await parseBody(output.body, context);
|
|
304
|
-
let contents = {};
|
|
305
|
-
contents = _json(data);
|
|
306
|
-
const response = {
|
|
307
|
-
$metadata: deserializeMetadata(output),
|
|
308
|
-
...contents,
|
|
309
|
-
};
|
|
310
|
-
return response;
|
|
311
|
-
};
|
|
312
|
-
export const de_ReportTaskRunnerHeartbeatCommand = async (output, context) => {
|
|
313
|
-
if (output.statusCode >= 300) {
|
|
314
|
-
return de_CommandError(output, context);
|
|
315
|
-
}
|
|
316
|
-
const data = await parseBody(output.body, context);
|
|
317
|
-
let contents = {};
|
|
318
|
-
contents = _json(data);
|
|
319
|
-
const response = {
|
|
320
|
-
$metadata: deserializeMetadata(output),
|
|
321
|
-
...contents,
|
|
322
|
-
};
|
|
323
|
-
return response;
|
|
324
|
-
};
|
|
325
|
-
export const de_SetStatusCommand = async (output, context) => {
|
|
326
|
-
if (output.statusCode >= 300) {
|
|
327
|
-
return de_CommandError(output, context);
|
|
328
|
-
}
|
|
329
|
-
await collectBody(output.body, context);
|
|
330
|
-
const response = {
|
|
331
|
-
$metadata: deserializeMetadata(output),
|
|
332
|
-
};
|
|
333
|
-
return response;
|
|
334
|
-
};
|
|
335
|
-
export const de_SetTaskStatusCommand = async (output, context) => {
|
|
336
|
-
if (output.statusCode >= 300) {
|
|
337
|
-
return de_CommandError(output, context);
|
|
338
|
-
}
|
|
339
|
-
const data = await parseBody(output.body, context);
|
|
340
|
-
let contents = {};
|
|
341
|
-
contents = _json(data);
|
|
342
|
-
const response = {
|
|
343
|
-
$metadata: deserializeMetadata(output),
|
|
344
|
-
...contents,
|
|
345
|
-
};
|
|
346
|
-
return response;
|
|
347
|
-
};
|
|
348
|
-
export const de_ValidatePipelineDefinitionCommand = async (output, context) => {
|
|
349
|
-
if (output.statusCode >= 300) {
|
|
350
|
-
return de_CommandError(output, context);
|
|
351
|
-
}
|
|
352
|
-
const data = await parseBody(output.body, context);
|
|
353
|
-
let contents = {};
|
|
354
|
-
contents = _json(data);
|
|
355
|
-
const response = {
|
|
356
|
-
$metadata: deserializeMetadata(output),
|
|
357
|
-
...contents,
|
|
358
|
-
};
|
|
359
|
-
return response;
|
|
360
|
-
};
|
|
361
|
-
const de_CommandError = async (output, context) => {
|
|
362
|
-
const parsedOutput = {
|
|
363
|
-
...output,
|
|
364
|
-
body: await parseErrorBody(output.body, context),
|
|
365
|
-
};
|
|
366
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
367
|
-
switch (errorCode) {
|
|
368
|
-
case "InternalServiceError":
|
|
369
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
370
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
371
|
-
case "InvalidRequestException":
|
|
372
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
373
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
374
|
-
case "PipelineDeletedException":
|
|
375
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
376
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
377
|
-
case "PipelineNotFoundException":
|
|
378
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
379
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
380
|
-
case "TaskNotFoundException":
|
|
381
|
-
case "com.amazonaws.datapipeline#TaskNotFoundException":
|
|
382
|
-
throw await de_TaskNotFoundExceptionRes(parsedOutput, context);
|
|
383
|
-
default:
|
|
384
|
-
const parsedBody = parsedOutput.body;
|
|
385
|
-
return throwDefaultError({
|
|
386
|
-
output,
|
|
387
|
-
parsedBody,
|
|
388
|
-
errorCode,
|
|
389
|
-
});
|
|
390
|
-
}
|
|
391
|
-
};
|
|
392
|
-
const de_InternalServiceErrorRes = async (parsedOutput, context) => {
|
|
393
|
-
const body = parsedOutput.body;
|
|
394
|
-
const deserialized = _json(body);
|
|
395
|
-
const exception = new InternalServiceError({
|
|
396
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
397
|
-
...deserialized,
|
|
398
|
-
});
|
|
399
|
-
return __decorateServiceException(exception, body);
|
|
400
|
-
};
|
|
401
|
-
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
402
|
-
const body = parsedOutput.body;
|
|
403
|
-
const deserialized = _json(body);
|
|
404
|
-
const exception = new InvalidRequestException({
|
|
405
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
406
|
-
...deserialized,
|
|
407
|
-
});
|
|
408
|
-
return __decorateServiceException(exception, body);
|
|
409
|
-
};
|
|
410
|
-
const de_PipelineDeletedExceptionRes = async (parsedOutput, context) => {
|
|
411
|
-
const body = parsedOutput.body;
|
|
412
|
-
const deserialized = _json(body);
|
|
413
|
-
const exception = new PipelineDeletedException({
|
|
414
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
415
|
-
...deserialized,
|
|
416
|
-
});
|
|
417
|
-
return __decorateServiceException(exception, body);
|
|
418
|
-
};
|
|
419
|
-
const de_PipelineNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
420
|
-
const body = parsedOutput.body;
|
|
421
|
-
const deserialized = _json(body);
|
|
422
|
-
const exception = new PipelineNotFoundException({
|
|
423
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
424
|
-
...deserialized,
|
|
425
|
-
});
|
|
426
|
-
return __decorateServiceException(exception, body);
|
|
427
|
-
};
|
|
428
|
-
const de_TaskNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
429
|
-
const body = parsedOutput.body;
|
|
430
|
-
const deserialized = _json(body);
|
|
431
|
-
const exception = new TaskNotFoundException({
|
|
432
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
433
|
-
...deserialized,
|
|
434
|
-
});
|
|
435
|
-
return __decorateServiceException(exception, body);
|
|
436
|
-
};
|
|
437
|
-
const se_ActivatePipelineInput = (input, context) => {
|
|
438
|
-
return take(input, {
|
|
439
|
-
parameterValues: _json,
|
|
440
|
-
pipelineId: [],
|
|
441
|
-
startTimestamp: (_) => _.getTime() / 1_000,
|
|
442
|
-
});
|
|
443
|
-
};
|
|
444
|
-
const deserializeMetadata = (output) => ({
|
|
445
|
-
httpStatusCode: output.statusCode,
|
|
446
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
447
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
448
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
449
|
-
});
|
|
450
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
451
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
452
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
453
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
454
|
-
const contents = {
|
|
455
|
-
protocol,
|
|
456
|
-
hostname,
|
|
457
|
-
port,
|
|
458
|
-
method: "POST",
|
|
459
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
460
|
-
headers,
|
|
461
|
-
};
|
|
462
|
-
if (resolvedHostname !== undefined) {
|
|
463
|
-
contents.hostname = resolvedHostname;
|
|
464
|
-
}
|
|
465
|
-
if (body !== undefined) {
|
|
466
|
-
contents.body = body;
|
|
467
|
-
}
|
|
468
|
-
return new __HttpRequest(contents);
|
|
469
|
-
};
|
|
470
|
-
function sharedHeaders(operation) {
|
|
471
|
-
return {
|
|
472
|
-
"content-type": "application/x-amz-json-1.1",
|
|
473
|
-
"x-amz-target": `DataPipeline.${operation}`,
|
|
474
|
-
};
|
|
475
|
-
}
|