@aws-sdk/client-data-pipeline 3.901.0 → 3.907.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 +994 -1106
- package/package.json +6 -6
package/dist-cjs/index.js
CHANGED
|
@@ -1,1165 +1,1053 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
23
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
24
|
+
defaultSigningName: "datapipeline",
|
|
25
|
+
});
|
|
10
26
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
27
|
+
const commonParams = {
|
|
28
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
29
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
30
|
+
Region: { type: "builtInParams", name: "region" },
|
|
31
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
32
|
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/index.ts
|
|
22
|
-
var index_exports = {};
|
|
23
|
-
__export(index_exports, {
|
|
24
|
-
ActivatePipelineCommand: () => ActivatePipelineCommand,
|
|
25
|
-
AddTagsCommand: () => AddTagsCommand,
|
|
26
|
-
CreatePipelineCommand: () => CreatePipelineCommand,
|
|
27
|
-
DataPipeline: () => DataPipeline,
|
|
28
|
-
DataPipelineClient: () => DataPipelineClient,
|
|
29
|
-
DataPipelineServiceException: () => DataPipelineServiceException,
|
|
30
|
-
DeactivatePipelineCommand: () => DeactivatePipelineCommand,
|
|
31
|
-
DeletePipelineCommand: () => DeletePipelineCommand,
|
|
32
|
-
DescribeObjectsCommand: () => DescribeObjectsCommand,
|
|
33
|
-
DescribePipelinesCommand: () => DescribePipelinesCommand,
|
|
34
|
-
EvaluateExpressionCommand: () => EvaluateExpressionCommand,
|
|
35
|
-
GetPipelineDefinitionCommand: () => GetPipelineDefinitionCommand,
|
|
36
|
-
InternalServiceError: () => InternalServiceError,
|
|
37
|
-
InvalidRequestException: () => InvalidRequestException,
|
|
38
|
-
ListPipelinesCommand: () => ListPipelinesCommand,
|
|
39
|
-
OperatorType: () => OperatorType,
|
|
40
|
-
PipelineDeletedException: () => PipelineDeletedException,
|
|
41
|
-
PipelineNotFoundException: () => PipelineNotFoundException,
|
|
42
|
-
PollForTaskCommand: () => PollForTaskCommand,
|
|
43
|
-
PutPipelineDefinitionCommand: () => PutPipelineDefinitionCommand,
|
|
44
|
-
QueryObjectsCommand: () => QueryObjectsCommand,
|
|
45
|
-
RemoveTagsCommand: () => RemoveTagsCommand,
|
|
46
|
-
ReportTaskProgressCommand: () => ReportTaskProgressCommand,
|
|
47
|
-
ReportTaskRunnerHeartbeatCommand: () => ReportTaskRunnerHeartbeatCommand,
|
|
48
|
-
SetStatusCommand: () => SetStatusCommand,
|
|
49
|
-
SetTaskStatusCommand: () => SetTaskStatusCommand,
|
|
50
|
-
TaskNotFoundException: () => TaskNotFoundException,
|
|
51
|
-
TaskStatus: () => TaskStatus,
|
|
52
|
-
ValidatePipelineDefinitionCommand: () => ValidatePipelineDefinitionCommand,
|
|
53
|
-
__Client: () => import_smithy_client.Client,
|
|
54
|
-
paginateDescribeObjects: () => paginateDescribeObjects,
|
|
55
|
-
paginateListPipelines: () => paginateListPipelines,
|
|
56
|
-
paginateQueryObjects: () => paginateQueryObjects
|
|
57
|
-
});
|
|
58
|
-
module.exports = __toCommonJS(index_exports);
|
|
59
33
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
86
71
|
};
|
|
87
72
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
var import_protocol_http = require("@smithy/protocol-http");
|
|
94
|
-
var import_smithy_client = require("@smithy/smithy-client");
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
95
78
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
79
|
+
class DataPipelineClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
101
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultDataPipelineHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
107
|
+
}
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
124
110
|
}
|
|
125
|
-
|
|
126
|
-
}, "getHttpAuthExtensionConfiguration");
|
|
127
|
-
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
128
|
-
return {
|
|
129
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
130
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
131
|
-
credentials: config.credentials()
|
|
132
|
-
};
|
|
133
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
111
|
+
}
|
|
134
112
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
142
|
-
);
|
|
143
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
144
|
-
return Object.assign(
|
|
145
|
-
runtimeConfig,
|
|
146
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
147
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
148
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
149
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
150
|
-
);
|
|
151
|
-
}, "resolveRuntimeExtensions");
|
|
113
|
+
class DataPipelineServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, DataPipelineServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
152
119
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
120
|
+
class InternalServiceError extends DataPipelineServiceException {
|
|
121
|
+
name = "InternalServiceError";
|
|
122
|
+
$fault = "server";
|
|
123
|
+
constructor(opts) {
|
|
124
|
+
super({
|
|
125
|
+
name: "InternalServiceError",
|
|
126
|
+
$fault: "server",
|
|
127
|
+
...opts,
|
|
128
|
+
});
|
|
129
|
+
Object.setPrototypeOf(this, InternalServiceError.prototype);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
class InvalidRequestException extends DataPipelineServiceException {
|
|
133
|
+
name = "InvalidRequestException";
|
|
134
|
+
$fault = "client";
|
|
135
|
+
constructor(opts) {
|
|
136
|
+
super({
|
|
137
|
+
name: "InvalidRequestException",
|
|
138
|
+
$fault: "client",
|
|
139
|
+
...opts,
|
|
140
|
+
});
|
|
141
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
class PipelineDeletedException extends DataPipelineServiceException {
|
|
145
|
+
name = "PipelineDeletedException";
|
|
146
|
+
$fault = "client";
|
|
147
|
+
constructor(opts) {
|
|
148
|
+
super({
|
|
149
|
+
name: "PipelineDeletedException",
|
|
150
|
+
$fault: "client",
|
|
151
|
+
...opts,
|
|
152
|
+
});
|
|
153
|
+
Object.setPrototypeOf(this, PipelineDeletedException.prototype);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
class PipelineNotFoundException extends DataPipelineServiceException {
|
|
157
|
+
name = "PipelineNotFoundException";
|
|
158
|
+
$fault = "client";
|
|
159
|
+
constructor(opts) {
|
|
160
|
+
super({
|
|
161
|
+
name: "PipelineNotFoundException",
|
|
162
|
+
$fault: "client",
|
|
163
|
+
...opts,
|
|
164
|
+
});
|
|
165
|
+
Object.setPrototypeOf(this, PipelineNotFoundException.prototype);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
class TaskNotFoundException extends DataPipelineServiceException {
|
|
169
|
+
name = "TaskNotFoundException";
|
|
170
|
+
$fault = "client";
|
|
171
|
+
constructor(opts) {
|
|
172
|
+
super({
|
|
173
|
+
name: "TaskNotFoundException",
|
|
174
|
+
$fault: "client",
|
|
175
|
+
...opts,
|
|
176
|
+
});
|
|
177
|
+
Object.setPrototypeOf(this, TaskNotFoundException.prototype);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
const OperatorType = {
|
|
181
|
+
Between: "BETWEEN",
|
|
182
|
+
Equal: "EQ",
|
|
183
|
+
GreaterThanOrEqual: "GE",
|
|
184
|
+
LessThanOrEqual: "LE",
|
|
185
|
+
ReferenceEqual: "REF_EQ",
|
|
199
186
|
};
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
// src/commands/ActivatePipelineCommand.ts
|
|
205
|
-
|
|
206
|
-
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
// src/protocols/Aws_json1_1.ts
|
|
210
|
-
var import_core2 = require("@aws-sdk/core");
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
// src/models/DataPipelineServiceException.ts
|
|
215
|
-
|
|
216
|
-
var DataPipelineServiceException = class _DataPipelineServiceException extends import_smithy_client.ServiceException {
|
|
217
|
-
static {
|
|
218
|
-
__name(this, "DataPipelineServiceException");
|
|
219
|
-
}
|
|
220
|
-
/**
|
|
221
|
-
* @internal
|
|
222
|
-
*/
|
|
223
|
-
constructor(options) {
|
|
224
|
-
super(options);
|
|
225
|
-
Object.setPrototypeOf(this, _DataPipelineServiceException.prototype);
|
|
226
|
-
}
|
|
187
|
+
const TaskStatus = {
|
|
188
|
+
FAILED: "FAILED",
|
|
189
|
+
FALSE: "FALSE",
|
|
190
|
+
FINISHED: "FINISHED",
|
|
227
191
|
};
|
|
228
192
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
name = "InternalServiceError";
|
|
235
|
-
$fault = "server";
|
|
236
|
-
/**
|
|
237
|
-
* @internal
|
|
238
|
-
*/
|
|
239
|
-
constructor(opts) {
|
|
240
|
-
super({
|
|
241
|
-
name: "InternalServiceError",
|
|
242
|
-
$fault: "server",
|
|
243
|
-
...opts
|
|
244
|
-
});
|
|
245
|
-
Object.setPrototypeOf(this, _InternalServiceError.prototype);
|
|
246
|
-
}
|
|
193
|
+
const se_ActivatePipelineCommand = async (input, context) => {
|
|
194
|
+
const headers = sharedHeaders("ActivatePipeline");
|
|
195
|
+
let body;
|
|
196
|
+
body = JSON.stringify(se_ActivatePipelineInput(input));
|
|
197
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
198
|
};
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
$fault = "client";
|
|
254
|
-
/**
|
|
255
|
-
* @internal
|
|
256
|
-
*/
|
|
257
|
-
constructor(opts) {
|
|
258
|
-
super({
|
|
259
|
-
name: "InvalidRequestException",
|
|
260
|
-
$fault: "client",
|
|
261
|
-
...opts
|
|
262
|
-
});
|
|
263
|
-
Object.setPrototypeOf(this, _InvalidRequestException.prototype);
|
|
264
|
-
}
|
|
199
|
+
const se_AddTagsCommand = async (input, context) => {
|
|
200
|
+
const headers = sharedHeaders("AddTags");
|
|
201
|
+
let body;
|
|
202
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
203
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
265
204
|
};
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
$fault = "client";
|
|
272
|
-
/**
|
|
273
|
-
* @internal
|
|
274
|
-
*/
|
|
275
|
-
constructor(opts) {
|
|
276
|
-
super({
|
|
277
|
-
name: "PipelineDeletedException",
|
|
278
|
-
$fault: "client",
|
|
279
|
-
...opts
|
|
280
|
-
});
|
|
281
|
-
Object.setPrototypeOf(this, _PipelineDeletedException.prototype);
|
|
282
|
-
}
|
|
205
|
+
const se_CreatePipelineCommand = async (input, context) => {
|
|
206
|
+
const headers = sharedHeaders("CreatePipeline");
|
|
207
|
+
let body;
|
|
208
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
209
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
283
210
|
};
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
$fault = "client";
|
|
290
|
-
/**
|
|
291
|
-
* @internal
|
|
292
|
-
*/
|
|
293
|
-
constructor(opts) {
|
|
294
|
-
super({
|
|
295
|
-
name: "PipelineNotFoundException",
|
|
296
|
-
$fault: "client",
|
|
297
|
-
...opts
|
|
298
|
-
});
|
|
299
|
-
Object.setPrototypeOf(this, _PipelineNotFoundException.prototype);
|
|
300
|
-
}
|
|
211
|
+
const se_DeactivatePipelineCommand = async (input, context) => {
|
|
212
|
+
const headers = sharedHeaders("DeactivatePipeline");
|
|
213
|
+
let body;
|
|
214
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
215
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
301
216
|
};
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
$fault = "client";
|
|
308
|
-
/**
|
|
309
|
-
* @internal
|
|
310
|
-
*/
|
|
311
|
-
constructor(opts) {
|
|
312
|
-
super({
|
|
313
|
-
name: "TaskNotFoundException",
|
|
314
|
-
$fault: "client",
|
|
315
|
-
...opts
|
|
316
|
-
});
|
|
317
|
-
Object.setPrototypeOf(this, _TaskNotFoundException.prototype);
|
|
318
|
-
}
|
|
217
|
+
const se_DeletePipelineCommand = async (input, context) => {
|
|
218
|
+
const headers = sharedHeaders("DeletePipeline");
|
|
219
|
+
let body;
|
|
220
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
221
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
319
222
|
};
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
ReferenceEqual: "REF_EQ"
|
|
223
|
+
const se_DescribeObjectsCommand = async (input, context) => {
|
|
224
|
+
const headers = sharedHeaders("DescribeObjects");
|
|
225
|
+
let body;
|
|
226
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
227
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
326
228
|
};
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
229
|
+
const se_DescribePipelinesCommand = async (input, context) => {
|
|
230
|
+
const headers = sharedHeaders("DescribePipelines");
|
|
231
|
+
let body;
|
|
232
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
233
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
331
234
|
};
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
body = JSON.stringify(se_ActivatePipelineInput(input, context));
|
|
338
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
339
|
-
}, "se_ActivatePipelineCommand");
|
|
340
|
-
var se_AddTagsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
341
|
-
const headers = sharedHeaders("AddTags");
|
|
342
|
-
let body;
|
|
343
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
344
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
345
|
-
}, "se_AddTagsCommand");
|
|
346
|
-
var se_CreatePipelineCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
347
|
-
const headers = sharedHeaders("CreatePipeline");
|
|
348
|
-
let body;
|
|
349
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
350
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
351
|
-
}, "se_CreatePipelineCommand");
|
|
352
|
-
var se_DeactivatePipelineCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
353
|
-
const headers = sharedHeaders("DeactivatePipeline");
|
|
354
|
-
let body;
|
|
355
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
356
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
357
|
-
}, "se_DeactivatePipelineCommand");
|
|
358
|
-
var se_DeletePipelineCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
359
|
-
const headers = sharedHeaders("DeletePipeline");
|
|
360
|
-
let body;
|
|
361
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
362
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
363
|
-
}, "se_DeletePipelineCommand");
|
|
364
|
-
var se_DescribeObjectsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
365
|
-
const headers = sharedHeaders("DescribeObjects");
|
|
366
|
-
let body;
|
|
367
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
368
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
369
|
-
}, "se_DescribeObjectsCommand");
|
|
370
|
-
var se_DescribePipelinesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
371
|
-
const headers = sharedHeaders("DescribePipelines");
|
|
372
|
-
let body;
|
|
373
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
374
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
375
|
-
}, "se_DescribePipelinesCommand");
|
|
376
|
-
var se_EvaluateExpressionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
377
|
-
const headers = sharedHeaders("EvaluateExpression");
|
|
378
|
-
let body;
|
|
379
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
380
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
381
|
-
}, "se_EvaluateExpressionCommand");
|
|
382
|
-
var se_GetPipelineDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
383
|
-
const headers = sharedHeaders("GetPipelineDefinition");
|
|
384
|
-
let body;
|
|
385
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
386
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
387
|
-
}, "se_GetPipelineDefinitionCommand");
|
|
388
|
-
var se_ListPipelinesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
389
|
-
const headers = sharedHeaders("ListPipelines");
|
|
390
|
-
let body;
|
|
391
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
392
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
393
|
-
}, "se_ListPipelinesCommand");
|
|
394
|
-
var se_PollForTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
395
|
-
const headers = sharedHeaders("PollForTask");
|
|
396
|
-
let body;
|
|
397
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
398
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
399
|
-
}, "se_PollForTaskCommand");
|
|
400
|
-
var se_PutPipelineDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
401
|
-
const headers = sharedHeaders("PutPipelineDefinition");
|
|
402
|
-
let body;
|
|
403
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
404
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
405
|
-
}, "se_PutPipelineDefinitionCommand");
|
|
406
|
-
var se_QueryObjectsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
407
|
-
const headers = sharedHeaders("QueryObjects");
|
|
408
|
-
let body;
|
|
409
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
410
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
411
|
-
}, "se_QueryObjectsCommand");
|
|
412
|
-
var se_RemoveTagsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
413
|
-
const headers = sharedHeaders("RemoveTags");
|
|
414
|
-
let body;
|
|
415
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
416
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
417
|
-
}, "se_RemoveTagsCommand");
|
|
418
|
-
var se_ReportTaskProgressCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
419
|
-
const headers = sharedHeaders("ReportTaskProgress");
|
|
420
|
-
let body;
|
|
421
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
422
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
423
|
-
}, "se_ReportTaskProgressCommand");
|
|
424
|
-
var se_ReportTaskRunnerHeartbeatCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
425
|
-
const headers = sharedHeaders("ReportTaskRunnerHeartbeat");
|
|
426
|
-
let body;
|
|
427
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
428
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
429
|
-
}, "se_ReportTaskRunnerHeartbeatCommand");
|
|
430
|
-
var se_SetStatusCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
431
|
-
const headers = sharedHeaders("SetStatus");
|
|
432
|
-
let body;
|
|
433
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
434
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
435
|
-
}, "se_SetStatusCommand");
|
|
436
|
-
var se_SetTaskStatusCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
437
|
-
const headers = sharedHeaders("SetTaskStatus");
|
|
438
|
-
let body;
|
|
439
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
440
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
441
|
-
}, "se_SetTaskStatusCommand");
|
|
442
|
-
var se_ValidatePipelineDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
443
|
-
const headers = sharedHeaders("ValidatePipelineDefinition");
|
|
444
|
-
let body;
|
|
445
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
446
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
447
|
-
}, "se_ValidatePipelineDefinitionCommand");
|
|
448
|
-
var de_ActivatePipelineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
449
|
-
if (output.statusCode >= 300) {
|
|
450
|
-
return de_CommandError(output, context);
|
|
451
|
-
}
|
|
452
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
453
|
-
let contents = {};
|
|
454
|
-
contents = (0, import_smithy_client._json)(data);
|
|
455
|
-
const response = {
|
|
456
|
-
$metadata: deserializeMetadata(output),
|
|
457
|
-
...contents
|
|
458
|
-
};
|
|
459
|
-
return response;
|
|
460
|
-
}, "de_ActivatePipelineCommand");
|
|
461
|
-
var de_AddTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
462
|
-
if (output.statusCode >= 300) {
|
|
463
|
-
return de_CommandError(output, context);
|
|
464
|
-
}
|
|
465
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
466
|
-
let contents = {};
|
|
467
|
-
contents = (0, import_smithy_client._json)(data);
|
|
468
|
-
const response = {
|
|
469
|
-
$metadata: deserializeMetadata(output),
|
|
470
|
-
...contents
|
|
471
|
-
};
|
|
472
|
-
return response;
|
|
473
|
-
}, "de_AddTagsCommand");
|
|
474
|
-
var de_CreatePipelineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
475
|
-
if (output.statusCode >= 300) {
|
|
476
|
-
return de_CommandError(output, context);
|
|
477
|
-
}
|
|
478
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
479
|
-
let contents = {};
|
|
480
|
-
contents = (0, import_smithy_client._json)(data);
|
|
481
|
-
const response = {
|
|
482
|
-
$metadata: deserializeMetadata(output),
|
|
483
|
-
...contents
|
|
484
|
-
};
|
|
485
|
-
return response;
|
|
486
|
-
}, "de_CreatePipelineCommand");
|
|
487
|
-
var de_DeactivatePipelineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
488
|
-
if (output.statusCode >= 300) {
|
|
489
|
-
return de_CommandError(output, context);
|
|
490
|
-
}
|
|
491
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
492
|
-
let contents = {};
|
|
493
|
-
contents = (0, import_smithy_client._json)(data);
|
|
494
|
-
const response = {
|
|
495
|
-
$metadata: deserializeMetadata(output),
|
|
496
|
-
...contents
|
|
497
|
-
};
|
|
498
|
-
return response;
|
|
499
|
-
}, "de_DeactivatePipelineCommand");
|
|
500
|
-
var de_DeletePipelineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
501
|
-
if (output.statusCode >= 300) {
|
|
502
|
-
return de_CommandError(output, context);
|
|
503
|
-
}
|
|
504
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
505
|
-
const response = {
|
|
506
|
-
$metadata: deserializeMetadata(output)
|
|
507
|
-
};
|
|
508
|
-
return response;
|
|
509
|
-
}, "de_DeletePipelineCommand");
|
|
510
|
-
var de_DescribeObjectsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
511
|
-
if (output.statusCode >= 300) {
|
|
512
|
-
return de_CommandError(output, context);
|
|
513
|
-
}
|
|
514
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
515
|
-
let contents = {};
|
|
516
|
-
contents = (0, import_smithy_client._json)(data);
|
|
517
|
-
const response = {
|
|
518
|
-
$metadata: deserializeMetadata(output),
|
|
519
|
-
...contents
|
|
520
|
-
};
|
|
521
|
-
return response;
|
|
522
|
-
}, "de_DescribeObjectsCommand");
|
|
523
|
-
var de_DescribePipelinesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
524
|
-
if (output.statusCode >= 300) {
|
|
525
|
-
return de_CommandError(output, context);
|
|
526
|
-
}
|
|
527
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
528
|
-
let contents = {};
|
|
529
|
-
contents = (0, import_smithy_client._json)(data);
|
|
530
|
-
const response = {
|
|
531
|
-
$metadata: deserializeMetadata(output),
|
|
532
|
-
...contents
|
|
533
|
-
};
|
|
534
|
-
return response;
|
|
535
|
-
}, "de_DescribePipelinesCommand");
|
|
536
|
-
var de_EvaluateExpressionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
537
|
-
if (output.statusCode >= 300) {
|
|
538
|
-
return de_CommandError(output, context);
|
|
539
|
-
}
|
|
540
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
541
|
-
let contents = {};
|
|
542
|
-
contents = (0, import_smithy_client._json)(data);
|
|
543
|
-
const response = {
|
|
544
|
-
$metadata: deserializeMetadata(output),
|
|
545
|
-
...contents
|
|
546
|
-
};
|
|
547
|
-
return response;
|
|
548
|
-
}, "de_EvaluateExpressionCommand");
|
|
549
|
-
var de_GetPipelineDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
550
|
-
if (output.statusCode >= 300) {
|
|
551
|
-
return de_CommandError(output, context);
|
|
552
|
-
}
|
|
553
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
554
|
-
let contents = {};
|
|
555
|
-
contents = (0, import_smithy_client._json)(data);
|
|
556
|
-
const response = {
|
|
557
|
-
$metadata: deserializeMetadata(output),
|
|
558
|
-
...contents
|
|
559
|
-
};
|
|
560
|
-
return response;
|
|
561
|
-
}, "de_GetPipelineDefinitionCommand");
|
|
562
|
-
var de_ListPipelinesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
563
|
-
if (output.statusCode >= 300) {
|
|
564
|
-
return de_CommandError(output, context);
|
|
565
|
-
}
|
|
566
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
567
|
-
let contents = {};
|
|
568
|
-
contents = (0, import_smithy_client._json)(data);
|
|
569
|
-
const response = {
|
|
570
|
-
$metadata: deserializeMetadata(output),
|
|
571
|
-
...contents
|
|
572
|
-
};
|
|
573
|
-
return response;
|
|
574
|
-
}, "de_ListPipelinesCommand");
|
|
575
|
-
var de_PollForTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
576
|
-
if (output.statusCode >= 300) {
|
|
577
|
-
return de_CommandError(output, context);
|
|
578
|
-
}
|
|
579
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
580
|
-
let contents = {};
|
|
581
|
-
contents = (0, import_smithy_client._json)(data);
|
|
582
|
-
const response = {
|
|
583
|
-
$metadata: deserializeMetadata(output),
|
|
584
|
-
...contents
|
|
585
|
-
};
|
|
586
|
-
return response;
|
|
587
|
-
}, "de_PollForTaskCommand");
|
|
588
|
-
var de_PutPipelineDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
589
|
-
if (output.statusCode >= 300) {
|
|
590
|
-
return de_CommandError(output, context);
|
|
591
|
-
}
|
|
592
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
593
|
-
let contents = {};
|
|
594
|
-
contents = (0, import_smithy_client._json)(data);
|
|
595
|
-
const response = {
|
|
596
|
-
$metadata: deserializeMetadata(output),
|
|
597
|
-
...contents
|
|
598
|
-
};
|
|
599
|
-
return response;
|
|
600
|
-
}, "de_PutPipelineDefinitionCommand");
|
|
601
|
-
var de_QueryObjectsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
602
|
-
if (output.statusCode >= 300) {
|
|
603
|
-
return de_CommandError(output, context);
|
|
604
|
-
}
|
|
605
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
606
|
-
let contents = {};
|
|
607
|
-
contents = (0, import_smithy_client._json)(data);
|
|
608
|
-
const response = {
|
|
609
|
-
$metadata: deserializeMetadata(output),
|
|
610
|
-
...contents
|
|
611
|
-
};
|
|
612
|
-
return response;
|
|
613
|
-
}, "de_QueryObjectsCommand");
|
|
614
|
-
var de_RemoveTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
615
|
-
if (output.statusCode >= 300) {
|
|
616
|
-
return de_CommandError(output, context);
|
|
617
|
-
}
|
|
618
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
619
|
-
let contents = {};
|
|
620
|
-
contents = (0, import_smithy_client._json)(data);
|
|
621
|
-
const response = {
|
|
622
|
-
$metadata: deserializeMetadata(output),
|
|
623
|
-
...contents
|
|
624
|
-
};
|
|
625
|
-
return response;
|
|
626
|
-
}, "de_RemoveTagsCommand");
|
|
627
|
-
var de_ReportTaskProgressCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
628
|
-
if (output.statusCode >= 300) {
|
|
629
|
-
return de_CommandError(output, context);
|
|
630
|
-
}
|
|
631
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
632
|
-
let contents = {};
|
|
633
|
-
contents = (0, import_smithy_client._json)(data);
|
|
634
|
-
const response = {
|
|
635
|
-
$metadata: deserializeMetadata(output),
|
|
636
|
-
...contents
|
|
637
|
-
};
|
|
638
|
-
return response;
|
|
639
|
-
}, "de_ReportTaskProgressCommand");
|
|
640
|
-
var de_ReportTaskRunnerHeartbeatCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
641
|
-
if (output.statusCode >= 300) {
|
|
642
|
-
return de_CommandError(output, context);
|
|
643
|
-
}
|
|
644
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
645
|
-
let contents = {};
|
|
646
|
-
contents = (0, import_smithy_client._json)(data);
|
|
647
|
-
const response = {
|
|
648
|
-
$metadata: deserializeMetadata(output),
|
|
649
|
-
...contents
|
|
650
|
-
};
|
|
651
|
-
return response;
|
|
652
|
-
}, "de_ReportTaskRunnerHeartbeatCommand");
|
|
653
|
-
var de_SetStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
654
|
-
if (output.statusCode >= 300) {
|
|
655
|
-
return de_CommandError(output, context);
|
|
656
|
-
}
|
|
657
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
658
|
-
const response = {
|
|
659
|
-
$metadata: deserializeMetadata(output)
|
|
660
|
-
};
|
|
661
|
-
return response;
|
|
662
|
-
}, "de_SetStatusCommand");
|
|
663
|
-
var de_SetTaskStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
664
|
-
if (output.statusCode >= 300) {
|
|
665
|
-
return de_CommandError(output, context);
|
|
666
|
-
}
|
|
667
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
668
|
-
let contents = {};
|
|
669
|
-
contents = (0, import_smithy_client._json)(data);
|
|
670
|
-
const response = {
|
|
671
|
-
$metadata: deserializeMetadata(output),
|
|
672
|
-
...contents
|
|
673
|
-
};
|
|
674
|
-
return response;
|
|
675
|
-
}, "de_SetTaskStatusCommand");
|
|
676
|
-
var de_ValidatePipelineDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
677
|
-
if (output.statusCode >= 300) {
|
|
678
|
-
return de_CommandError(output, context);
|
|
679
|
-
}
|
|
680
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
681
|
-
let contents = {};
|
|
682
|
-
contents = (0, import_smithy_client._json)(data);
|
|
683
|
-
const response = {
|
|
684
|
-
$metadata: deserializeMetadata(output),
|
|
685
|
-
...contents
|
|
686
|
-
};
|
|
687
|
-
return response;
|
|
688
|
-
}, "de_ValidatePipelineDefinitionCommand");
|
|
689
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
690
|
-
const parsedOutput = {
|
|
691
|
-
...output,
|
|
692
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
693
|
-
};
|
|
694
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
695
|
-
switch (errorCode) {
|
|
696
|
-
case "InternalServiceError":
|
|
697
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
698
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
699
|
-
case "InvalidRequestException":
|
|
700
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
701
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
702
|
-
case "PipelineDeletedException":
|
|
703
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
704
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
705
|
-
case "PipelineNotFoundException":
|
|
706
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
707
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
708
|
-
case "TaskNotFoundException":
|
|
709
|
-
case "com.amazonaws.datapipeline#TaskNotFoundException":
|
|
710
|
-
throw await de_TaskNotFoundExceptionRes(parsedOutput, context);
|
|
711
|
-
default:
|
|
712
|
-
const parsedBody = parsedOutput.body;
|
|
713
|
-
return throwDefaultError({
|
|
714
|
-
output,
|
|
715
|
-
parsedBody,
|
|
716
|
-
errorCode
|
|
717
|
-
});
|
|
718
|
-
}
|
|
719
|
-
}, "de_CommandError");
|
|
720
|
-
var de_InternalServiceErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
721
|
-
const body = parsedOutput.body;
|
|
722
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
723
|
-
const exception = new InternalServiceError({
|
|
724
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
725
|
-
...deserialized
|
|
726
|
-
});
|
|
727
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
728
|
-
}, "de_InternalServiceErrorRes");
|
|
729
|
-
var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
730
|
-
const body = parsedOutput.body;
|
|
731
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
732
|
-
const exception = new InvalidRequestException({
|
|
733
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
734
|
-
...deserialized
|
|
735
|
-
});
|
|
736
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
737
|
-
}, "de_InvalidRequestExceptionRes");
|
|
738
|
-
var de_PipelineDeletedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
739
|
-
const body = parsedOutput.body;
|
|
740
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
741
|
-
const exception = new PipelineDeletedException({
|
|
742
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
743
|
-
...deserialized
|
|
744
|
-
});
|
|
745
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
746
|
-
}, "de_PipelineDeletedExceptionRes");
|
|
747
|
-
var de_PipelineNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
748
|
-
const body = parsedOutput.body;
|
|
749
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
750
|
-
const exception = new PipelineNotFoundException({
|
|
751
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
752
|
-
...deserialized
|
|
753
|
-
});
|
|
754
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
755
|
-
}, "de_PipelineNotFoundExceptionRes");
|
|
756
|
-
var de_TaskNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
757
|
-
const body = parsedOutput.body;
|
|
758
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
759
|
-
const exception = new TaskNotFoundException({
|
|
760
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
761
|
-
...deserialized
|
|
762
|
-
});
|
|
763
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
764
|
-
}, "de_TaskNotFoundExceptionRes");
|
|
765
|
-
var se_ActivatePipelineInput = /* @__PURE__ */ __name((input, context) => {
|
|
766
|
-
return (0, import_smithy_client.take)(input, {
|
|
767
|
-
parameterValues: import_smithy_client._json,
|
|
768
|
-
pipelineId: [],
|
|
769
|
-
startTimestamp: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "startTimestamp")
|
|
770
|
-
});
|
|
771
|
-
}, "se_ActivatePipelineInput");
|
|
772
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
773
|
-
httpStatusCode: output.statusCode,
|
|
774
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
775
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
776
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
777
|
-
}), "deserializeMetadata");
|
|
778
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(DataPipelineServiceException);
|
|
779
|
-
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
780
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
781
|
-
const contents = {
|
|
782
|
-
protocol,
|
|
783
|
-
hostname,
|
|
784
|
-
port,
|
|
785
|
-
method: "POST",
|
|
786
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
787
|
-
headers
|
|
788
|
-
};
|
|
789
|
-
if (resolvedHostname !== void 0) {
|
|
790
|
-
contents.hostname = resolvedHostname;
|
|
791
|
-
}
|
|
792
|
-
if (body !== void 0) {
|
|
793
|
-
contents.body = body;
|
|
794
|
-
}
|
|
795
|
-
return new import_protocol_http.HttpRequest(contents);
|
|
796
|
-
}, "buildHttpRpcRequest");
|
|
797
|
-
function sharedHeaders(operation) {
|
|
798
|
-
return {
|
|
799
|
-
"content-type": "application/x-amz-json-1.1",
|
|
800
|
-
"x-amz-target": `DataPipeline.${operation}`
|
|
801
|
-
};
|
|
802
|
-
}
|
|
803
|
-
__name(sharedHeaders, "sharedHeaders");
|
|
804
|
-
|
|
805
|
-
// src/commands/ActivatePipelineCommand.ts
|
|
806
|
-
var ActivatePipelineCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
807
|
-
return [
|
|
808
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
809
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
810
|
-
];
|
|
811
|
-
}).s("DataPipeline", "ActivatePipeline", {}).n("DataPipelineClient", "ActivatePipelineCommand").f(void 0, void 0).ser(se_ActivatePipelineCommand).de(de_ActivatePipelineCommand).build() {
|
|
812
|
-
static {
|
|
813
|
-
__name(this, "ActivatePipelineCommand");
|
|
814
|
-
}
|
|
235
|
+
const se_EvaluateExpressionCommand = async (input, context) => {
|
|
236
|
+
const headers = sharedHeaders("EvaluateExpression");
|
|
237
|
+
let body;
|
|
238
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
239
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
815
240
|
};
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
var AddTagsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
822
|
-
return [
|
|
823
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
824
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
825
|
-
];
|
|
826
|
-
}).s("DataPipeline", "AddTags", {}).n("DataPipelineClient", "AddTagsCommand").f(void 0, void 0).ser(se_AddTagsCommand).de(de_AddTagsCommand).build() {
|
|
827
|
-
static {
|
|
828
|
-
__name(this, "AddTagsCommand");
|
|
829
|
-
}
|
|
241
|
+
const se_GetPipelineDefinitionCommand = async (input, context) => {
|
|
242
|
+
const headers = sharedHeaders("GetPipelineDefinition");
|
|
243
|
+
let body;
|
|
244
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
245
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
830
246
|
};
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
var CreatePipelineCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
837
|
-
return [
|
|
838
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
839
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
840
|
-
];
|
|
841
|
-
}).s("DataPipeline", "CreatePipeline", {}).n("DataPipelineClient", "CreatePipelineCommand").f(void 0, void 0).ser(se_CreatePipelineCommand).de(de_CreatePipelineCommand).build() {
|
|
842
|
-
static {
|
|
843
|
-
__name(this, "CreatePipelineCommand");
|
|
844
|
-
}
|
|
247
|
+
const se_ListPipelinesCommand = async (input, context) => {
|
|
248
|
+
const headers = sharedHeaders("ListPipelines");
|
|
249
|
+
let body;
|
|
250
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
251
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
845
252
|
};
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
var DeactivatePipelineCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
852
|
-
return [
|
|
853
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
854
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
855
|
-
];
|
|
856
|
-
}).s("DataPipeline", "DeactivatePipeline", {}).n("DataPipelineClient", "DeactivatePipelineCommand").f(void 0, void 0).ser(se_DeactivatePipelineCommand).de(de_DeactivatePipelineCommand).build() {
|
|
857
|
-
static {
|
|
858
|
-
__name(this, "DeactivatePipelineCommand");
|
|
859
|
-
}
|
|
253
|
+
const se_PollForTaskCommand = async (input, context) => {
|
|
254
|
+
const headers = sharedHeaders("PollForTask");
|
|
255
|
+
let body;
|
|
256
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
257
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
860
258
|
};
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
var DeletePipelineCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
867
|
-
return [
|
|
868
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
869
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
870
|
-
];
|
|
871
|
-
}).s("DataPipeline", "DeletePipeline", {}).n("DataPipelineClient", "DeletePipelineCommand").f(void 0, void 0).ser(se_DeletePipelineCommand).de(de_DeletePipelineCommand).build() {
|
|
872
|
-
static {
|
|
873
|
-
__name(this, "DeletePipelineCommand");
|
|
874
|
-
}
|
|
259
|
+
const se_PutPipelineDefinitionCommand = async (input, context) => {
|
|
260
|
+
const headers = sharedHeaders("PutPipelineDefinition");
|
|
261
|
+
let body;
|
|
262
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
263
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
875
264
|
};
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
var DescribeObjectsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
882
|
-
return [
|
|
883
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
884
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
885
|
-
];
|
|
886
|
-
}).s("DataPipeline", "DescribeObjects", {}).n("DataPipelineClient", "DescribeObjectsCommand").f(void 0, void 0).ser(se_DescribeObjectsCommand).de(de_DescribeObjectsCommand).build() {
|
|
887
|
-
static {
|
|
888
|
-
__name(this, "DescribeObjectsCommand");
|
|
889
|
-
}
|
|
265
|
+
const se_QueryObjectsCommand = async (input, context) => {
|
|
266
|
+
const headers = sharedHeaders("QueryObjects");
|
|
267
|
+
let body;
|
|
268
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
269
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
890
270
|
};
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
var DescribePipelinesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
897
|
-
return [
|
|
898
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
899
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
900
|
-
];
|
|
901
|
-
}).s("DataPipeline", "DescribePipelines", {}).n("DataPipelineClient", "DescribePipelinesCommand").f(void 0, void 0).ser(se_DescribePipelinesCommand).de(de_DescribePipelinesCommand).build() {
|
|
902
|
-
static {
|
|
903
|
-
__name(this, "DescribePipelinesCommand");
|
|
904
|
-
}
|
|
271
|
+
const se_RemoveTagsCommand = async (input, context) => {
|
|
272
|
+
const headers = sharedHeaders("RemoveTags");
|
|
273
|
+
let body;
|
|
274
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
275
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
905
276
|
};
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
var EvaluateExpressionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
912
|
-
return [
|
|
913
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
914
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
915
|
-
];
|
|
916
|
-
}).s("DataPipeline", "EvaluateExpression", {}).n("DataPipelineClient", "EvaluateExpressionCommand").f(void 0, void 0).ser(se_EvaluateExpressionCommand).de(de_EvaluateExpressionCommand).build() {
|
|
917
|
-
static {
|
|
918
|
-
__name(this, "EvaluateExpressionCommand");
|
|
919
|
-
}
|
|
277
|
+
const se_ReportTaskProgressCommand = async (input, context) => {
|
|
278
|
+
const headers = sharedHeaders("ReportTaskProgress");
|
|
279
|
+
let body;
|
|
280
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
281
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
920
282
|
};
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
var GetPipelineDefinitionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
927
|
-
return [
|
|
928
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
929
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
930
|
-
];
|
|
931
|
-
}).s("DataPipeline", "GetPipelineDefinition", {}).n("DataPipelineClient", "GetPipelineDefinitionCommand").f(void 0, void 0).ser(se_GetPipelineDefinitionCommand).de(de_GetPipelineDefinitionCommand).build() {
|
|
932
|
-
static {
|
|
933
|
-
__name(this, "GetPipelineDefinitionCommand");
|
|
934
|
-
}
|
|
283
|
+
const se_ReportTaskRunnerHeartbeatCommand = async (input, context) => {
|
|
284
|
+
const headers = sharedHeaders("ReportTaskRunnerHeartbeat");
|
|
285
|
+
let body;
|
|
286
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
287
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
935
288
|
};
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
var ListPipelinesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
942
|
-
return [
|
|
943
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
944
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
945
|
-
];
|
|
946
|
-
}).s("DataPipeline", "ListPipelines", {}).n("DataPipelineClient", "ListPipelinesCommand").f(void 0, void 0).ser(se_ListPipelinesCommand).de(de_ListPipelinesCommand).build() {
|
|
947
|
-
static {
|
|
948
|
-
__name(this, "ListPipelinesCommand");
|
|
949
|
-
}
|
|
289
|
+
const se_SetStatusCommand = async (input, context) => {
|
|
290
|
+
const headers = sharedHeaders("SetStatus");
|
|
291
|
+
let body;
|
|
292
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
293
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
950
294
|
};
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
var PollForTaskCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
957
|
-
return [
|
|
958
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
959
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
960
|
-
];
|
|
961
|
-
}).s("DataPipeline", "PollForTask", {}).n("DataPipelineClient", "PollForTaskCommand").f(void 0, void 0).ser(se_PollForTaskCommand).de(de_PollForTaskCommand).build() {
|
|
962
|
-
static {
|
|
963
|
-
__name(this, "PollForTaskCommand");
|
|
964
|
-
}
|
|
295
|
+
const se_SetTaskStatusCommand = async (input, context) => {
|
|
296
|
+
const headers = sharedHeaders("SetTaskStatus");
|
|
297
|
+
let body;
|
|
298
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
299
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
965
300
|
};
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
var PutPipelineDefinitionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
972
|
-
return [
|
|
973
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
974
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
975
|
-
];
|
|
976
|
-
}).s("DataPipeline", "PutPipelineDefinition", {}).n("DataPipelineClient", "PutPipelineDefinitionCommand").f(void 0, void 0).ser(se_PutPipelineDefinitionCommand).de(de_PutPipelineDefinitionCommand).build() {
|
|
977
|
-
static {
|
|
978
|
-
__name(this, "PutPipelineDefinitionCommand");
|
|
979
|
-
}
|
|
301
|
+
const se_ValidatePipelineDefinitionCommand = async (input, context) => {
|
|
302
|
+
const headers = sharedHeaders("ValidatePipelineDefinition");
|
|
303
|
+
let body;
|
|
304
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
305
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
980
306
|
};
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
__name(this, "QueryObjectsCommand");
|
|
994
|
-
}
|
|
307
|
+
const de_ActivatePipelineCommand = async (output, context) => {
|
|
308
|
+
if (output.statusCode >= 300) {
|
|
309
|
+
return de_CommandError(output, context);
|
|
310
|
+
}
|
|
311
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
312
|
+
let contents = {};
|
|
313
|
+
contents = smithyClient._json(data);
|
|
314
|
+
const response = {
|
|
315
|
+
$metadata: deserializeMetadata(output),
|
|
316
|
+
...contents,
|
|
317
|
+
};
|
|
318
|
+
return response;
|
|
995
319
|
};
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
}
|
|
1007
|
-
|
|
1008
|
-
__name(this, "RemoveTagsCommand");
|
|
1009
|
-
}
|
|
320
|
+
const de_AddTagsCommand = async (output, context) => {
|
|
321
|
+
if (output.statusCode >= 300) {
|
|
322
|
+
return de_CommandError(output, context);
|
|
323
|
+
}
|
|
324
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
325
|
+
let contents = {};
|
|
326
|
+
contents = smithyClient._json(data);
|
|
327
|
+
const response = {
|
|
328
|
+
$metadata: deserializeMetadata(output),
|
|
329
|
+
...contents,
|
|
330
|
+
};
|
|
331
|
+
return response;
|
|
1010
332
|
};
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
}
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
333
|
+
const de_CreatePipelineCommand = async (output, context) => {
|
|
334
|
+
if (output.statusCode >= 300) {
|
|
335
|
+
return de_CommandError(output, context);
|
|
336
|
+
}
|
|
337
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
338
|
+
let contents = {};
|
|
339
|
+
contents = smithyClient._json(data);
|
|
340
|
+
const response = {
|
|
341
|
+
$metadata: deserializeMetadata(output),
|
|
342
|
+
...contents,
|
|
343
|
+
};
|
|
344
|
+
return response;
|
|
345
|
+
};
|
|
346
|
+
const de_DeactivatePipelineCommand = async (output, context) => {
|
|
347
|
+
if (output.statusCode >= 300) {
|
|
348
|
+
return de_CommandError(output, context);
|
|
349
|
+
}
|
|
350
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
351
|
+
let contents = {};
|
|
352
|
+
contents = smithyClient._json(data);
|
|
353
|
+
const response = {
|
|
354
|
+
$metadata: deserializeMetadata(output),
|
|
355
|
+
...contents,
|
|
356
|
+
};
|
|
357
|
+
return response;
|
|
358
|
+
};
|
|
359
|
+
const de_DeletePipelineCommand = async (output, context) => {
|
|
360
|
+
if (output.statusCode >= 300) {
|
|
361
|
+
return de_CommandError(output, context);
|
|
362
|
+
}
|
|
363
|
+
await smithyClient.collectBody(output.body, context);
|
|
364
|
+
const response = {
|
|
365
|
+
$metadata: deserializeMetadata(output),
|
|
366
|
+
};
|
|
367
|
+
return response;
|
|
368
|
+
};
|
|
369
|
+
const de_DescribeObjectsCommand = async (output, context) => {
|
|
370
|
+
if (output.statusCode >= 300) {
|
|
371
|
+
return de_CommandError(output, context);
|
|
372
|
+
}
|
|
373
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
374
|
+
let contents = {};
|
|
375
|
+
contents = smithyClient._json(data);
|
|
376
|
+
const response = {
|
|
377
|
+
$metadata: deserializeMetadata(output),
|
|
378
|
+
...contents,
|
|
379
|
+
};
|
|
380
|
+
return response;
|
|
381
|
+
};
|
|
382
|
+
const de_DescribePipelinesCommand = async (output, context) => {
|
|
383
|
+
if (output.statusCode >= 300) {
|
|
384
|
+
return de_CommandError(output, context);
|
|
385
|
+
}
|
|
386
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
387
|
+
let contents = {};
|
|
388
|
+
contents = smithyClient._json(data);
|
|
389
|
+
const response = {
|
|
390
|
+
$metadata: deserializeMetadata(output),
|
|
391
|
+
...contents,
|
|
392
|
+
};
|
|
393
|
+
return response;
|
|
394
|
+
};
|
|
395
|
+
const de_EvaluateExpressionCommand = async (output, context) => {
|
|
396
|
+
if (output.statusCode >= 300) {
|
|
397
|
+
return de_CommandError(output, context);
|
|
398
|
+
}
|
|
399
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
400
|
+
let contents = {};
|
|
401
|
+
contents = smithyClient._json(data);
|
|
402
|
+
const response = {
|
|
403
|
+
$metadata: deserializeMetadata(output),
|
|
404
|
+
...contents,
|
|
405
|
+
};
|
|
406
|
+
return response;
|
|
407
|
+
};
|
|
408
|
+
const de_GetPipelineDefinitionCommand = async (output, context) => {
|
|
409
|
+
if (output.statusCode >= 300) {
|
|
410
|
+
return de_CommandError(output, context);
|
|
411
|
+
}
|
|
412
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
413
|
+
let contents = {};
|
|
414
|
+
contents = smithyClient._json(data);
|
|
415
|
+
const response = {
|
|
416
|
+
$metadata: deserializeMetadata(output),
|
|
417
|
+
...contents,
|
|
418
|
+
};
|
|
419
|
+
return response;
|
|
420
|
+
};
|
|
421
|
+
const de_ListPipelinesCommand = async (output, context) => {
|
|
422
|
+
if (output.statusCode >= 300) {
|
|
423
|
+
return de_CommandError(output, context);
|
|
424
|
+
}
|
|
425
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
426
|
+
let contents = {};
|
|
427
|
+
contents = smithyClient._json(data);
|
|
428
|
+
const response = {
|
|
429
|
+
$metadata: deserializeMetadata(output),
|
|
430
|
+
...contents,
|
|
431
|
+
};
|
|
432
|
+
return response;
|
|
433
|
+
};
|
|
434
|
+
const de_PollForTaskCommand = async (output, context) => {
|
|
435
|
+
if (output.statusCode >= 300) {
|
|
436
|
+
return de_CommandError(output, context);
|
|
437
|
+
}
|
|
438
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
439
|
+
let contents = {};
|
|
440
|
+
contents = smithyClient._json(data);
|
|
441
|
+
const response = {
|
|
442
|
+
$metadata: deserializeMetadata(output),
|
|
443
|
+
...contents,
|
|
444
|
+
};
|
|
445
|
+
return response;
|
|
446
|
+
};
|
|
447
|
+
const de_PutPipelineDefinitionCommand = async (output, context) => {
|
|
448
|
+
if (output.statusCode >= 300) {
|
|
449
|
+
return de_CommandError(output, context);
|
|
450
|
+
}
|
|
451
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
452
|
+
let contents = {};
|
|
453
|
+
contents = smithyClient._json(data);
|
|
454
|
+
const response = {
|
|
455
|
+
$metadata: deserializeMetadata(output),
|
|
456
|
+
...contents,
|
|
457
|
+
};
|
|
458
|
+
return response;
|
|
459
|
+
};
|
|
460
|
+
const de_QueryObjectsCommand = async (output, context) => {
|
|
461
|
+
if (output.statusCode >= 300) {
|
|
462
|
+
return de_CommandError(output, context);
|
|
463
|
+
}
|
|
464
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
465
|
+
let contents = {};
|
|
466
|
+
contents = smithyClient._json(data);
|
|
467
|
+
const response = {
|
|
468
|
+
$metadata: deserializeMetadata(output),
|
|
469
|
+
...contents,
|
|
470
|
+
};
|
|
471
|
+
return response;
|
|
472
|
+
};
|
|
473
|
+
const de_RemoveTagsCommand = async (output, context) => {
|
|
474
|
+
if (output.statusCode >= 300) {
|
|
475
|
+
return de_CommandError(output, context);
|
|
476
|
+
}
|
|
477
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
478
|
+
let contents = {};
|
|
479
|
+
contents = smithyClient._json(data);
|
|
480
|
+
const response = {
|
|
481
|
+
$metadata: deserializeMetadata(output),
|
|
482
|
+
...contents,
|
|
483
|
+
};
|
|
484
|
+
return response;
|
|
485
|
+
};
|
|
486
|
+
const de_ReportTaskProgressCommand = async (output, context) => {
|
|
487
|
+
if (output.statusCode >= 300) {
|
|
488
|
+
return de_CommandError(output, context);
|
|
489
|
+
}
|
|
490
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
491
|
+
let contents = {};
|
|
492
|
+
contents = smithyClient._json(data);
|
|
493
|
+
const response = {
|
|
494
|
+
$metadata: deserializeMetadata(output),
|
|
495
|
+
...contents,
|
|
496
|
+
};
|
|
497
|
+
return response;
|
|
498
|
+
};
|
|
499
|
+
const de_ReportTaskRunnerHeartbeatCommand = async (output, context) => {
|
|
500
|
+
if (output.statusCode >= 300) {
|
|
501
|
+
return de_CommandError(output, context);
|
|
502
|
+
}
|
|
503
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
504
|
+
let contents = {};
|
|
505
|
+
contents = smithyClient._json(data);
|
|
506
|
+
const response = {
|
|
507
|
+
$metadata: deserializeMetadata(output),
|
|
508
|
+
...contents,
|
|
509
|
+
};
|
|
510
|
+
return response;
|
|
511
|
+
};
|
|
512
|
+
const de_SetStatusCommand = async (output, context) => {
|
|
513
|
+
if (output.statusCode >= 300) {
|
|
514
|
+
return de_CommandError(output, context);
|
|
515
|
+
}
|
|
516
|
+
await smithyClient.collectBody(output.body, context);
|
|
517
|
+
const response = {
|
|
518
|
+
$metadata: deserializeMetadata(output),
|
|
519
|
+
};
|
|
520
|
+
return response;
|
|
521
|
+
};
|
|
522
|
+
const de_SetTaskStatusCommand = async (output, context) => {
|
|
523
|
+
if (output.statusCode >= 300) {
|
|
524
|
+
return de_CommandError(output, context);
|
|
525
|
+
}
|
|
526
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
527
|
+
let contents = {};
|
|
528
|
+
contents = smithyClient._json(data);
|
|
529
|
+
const response = {
|
|
530
|
+
$metadata: deserializeMetadata(output),
|
|
531
|
+
...contents,
|
|
532
|
+
};
|
|
533
|
+
return response;
|
|
534
|
+
};
|
|
535
|
+
const de_ValidatePipelineDefinitionCommand = async (output, context) => {
|
|
536
|
+
if (output.statusCode >= 300) {
|
|
537
|
+
return de_CommandError(output, context);
|
|
538
|
+
}
|
|
539
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
540
|
+
let contents = {};
|
|
541
|
+
contents = smithyClient._json(data);
|
|
542
|
+
const response = {
|
|
543
|
+
$metadata: deserializeMetadata(output),
|
|
544
|
+
...contents,
|
|
545
|
+
};
|
|
546
|
+
return response;
|
|
547
|
+
};
|
|
548
|
+
const de_CommandError = async (output, context) => {
|
|
549
|
+
const parsedOutput = {
|
|
550
|
+
...output,
|
|
551
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
552
|
+
};
|
|
553
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
554
|
+
switch (errorCode) {
|
|
555
|
+
case "InternalServiceError":
|
|
556
|
+
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
557
|
+
throw await de_InternalServiceErrorRes(parsedOutput);
|
|
558
|
+
case "InvalidRequestException":
|
|
559
|
+
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
560
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput);
|
|
561
|
+
case "PipelineDeletedException":
|
|
562
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
563
|
+
throw await de_PipelineDeletedExceptionRes(parsedOutput);
|
|
564
|
+
case "PipelineNotFoundException":
|
|
565
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
566
|
+
throw await de_PipelineNotFoundExceptionRes(parsedOutput);
|
|
567
|
+
case "TaskNotFoundException":
|
|
568
|
+
case "com.amazonaws.datapipeline#TaskNotFoundException":
|
|
569
|
+
throw await de_TaskNotFoundExceptionRes(parsedOutput);
|
|
570
|
+
default:
|
|
571
|
+
const parsedBody = parsedOutput.body;
|
|
572
|
+
return throwDefaultError({
|
|
573
|
+
output,
|
|
574
|
+
parsedBody,
|
|
575
|
+
errorCode,
|
|
576
|
+
});
|
|
577
|
+
}
|
|
578
|
+
};
|
|
579
|
+
const de_InternalServiceErrorRes = async (parsedOutput, context) => {
|
|
580
|
+
const body = parsedOutput.body;
|
|
581
|
+
const deserialized = smithyClient._json(body);
|
|
582
|
+
const exception = new InternalServiceError({
|
|
583
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
584
|
+
...deserialized,
|
|
585
|
+
});
|
|
586
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
587
|
+
};
|
|
588
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
589
|
+
const body = parsedOutput.body;
|
|
590
|
+
const deserialized = smithyClient._json(body);
|
|
591
|
+
const exception = new InvalidRequestException({
|
|
592
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
593
|
+
...deserialized,
|
|
594
|
+
});
|
|
595
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
596
|
+
};
|
|
597
|
+
const de_PipelineDeletedExceptionRes = async (parsedOutput, context) => {
|
|
598
|
+
const body = parsedOutput.body;
|
|
599
|
+
const deserialized = smithyClient._json(body);
|
|
600
|
+
const exception = new PipelineDeletedException({
|
|
601
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
602
|
+
...deserialized,
|
|
603
|
+
});
|
|
604
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
605
|
+
};
|
|
606
|
+
const de_PipelineNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
607
|
+
const body = parsedOutput.body;
|
|
608
|
+
const deserialized = smithyClient._json(body);
|
|
609
|
+
const exception = new PipelineNotFoundException({
|
|
610
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
611
|
+
...deserialized,
|
|
612
|
+
});
|
|
613
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
614
|
+
};
|
|
615
|
+
const de_TaskNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
616
|
+
const body = parsedOutput.body;
|
|
617
|
+
const deserialized = smithyClient._json(body);
|
|
618
|
+
const exception = new TaskNotFoundException({
|
|
619
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
620
|
+
...deserialized,
|
|
621
|
+
});
|
|
622
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1025
623
|
};
|
|
624
|
+
const se_ActivatePipelineInput = (input, context) => {
|
|
625
|
+
return smithyClient.take(input, {
|
|
626
|
+
parameterValues: smithyClient._json,
|
|
627
|
+
pipelineId: [],
|
|
628
|
+
startTimestamp: (_) => _.getTime() / 1_000,
|
|
629
|
+
});
|
|
630
|
+
};
|
|
631
|
+
const deserializeMetadata = (output) => ({
|
|
632
|
+
httpStatusCode: output.statusCode,
|
|
633
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
634
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
635
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
636
|
+
});
|
|
637
|
+
const throwDefaultError = smithyClient.withBaseException(DataPipelineServiceException);
|
|
638
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
639
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
640
|
+
const contents = {
|
|
641
|
+
protocol,
|
|
642
|
+
hostname,
|
|
643
|
+
port,
|
|
644
|
+
method: "POST",
|
|
645
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
646
|
+
headers,
|
|
647
|
+
};
|
|
648
|
+
if (body !== undefined) {
|
|
649
|
+
contents.body = body;
|
|
650
|
+
}
|
|
651
|
+
return new protocolHttp.HttpRequest(contents);
|
|
652
|
+
};
|
|
653
|
+
function sharedHeaders(operation) {
|
|
654
|
+
return {
|
|
655
|
+
"content-type": "application/x-amz-json-1.1",
|
|
656
|
+
"x-amz-target": `DataPipeline.${operation}`,
|
|
657
|
+
};
|
|
658
|
+
}
|
|
1026
659
|
|
|
1027
|
-
|
|
660
|
+
class ActivatePipelineCommand extends smithyClient.Command
|
|
661
|
+
.classBuilder()
|
|
662
|
+
.ep(commonParams)
|
|
663
|
+
.m(function (Command, cs, config, o) {
|
|
664
|
+
return [
|
|
665
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
666
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
667
|
+
];
|
|
668
|
+
})
|
|
669
|
+
.s("DataPipeline", "ActivatePipeline", {})
|
|
670
|
+
.n("DataPipelineClient", "ActivatePipelineCommand")
|
|
671
|
+
.f(void 0, void 0)
|
|
672
|
+
.ser(se_ActivatePipelineCommand)
|
|
673
|
+
.de(de_ActivatePipelineCommand)
|
|
674
|
+
.build() {
|
|
675
|
+
}
|
|
1028
676
|
|
|
677
|
+
class AddTagsCommand extends smithyClient.Command
|
|
678
|
+
.classBuilder()
|
|
679
|
+
.ep(commonParams)
|
|
680
|
+
.m(function (Command, cs, config, o) {
|
|
681
|
+
return [
|
|
682
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
683
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
684
|
+
];
|
|
685
|
+
})
|
|
686
|
+
.s("DataPipeline", "AddTags", {})
|
|
687
|
+
.n("DataPipelineClient", "AddTagsCommand")
|
|
688
|
+
.f(void 0, void 0)
|
|
689
|
+
.ser(se_AddTagsCommand)
|
|
690
|
+
.de(de_AddTagsCommand)
|
|
691
|
+
.build() {
|
|
692
|
+
}
|
|
1029
693
|
|
|
694
|
+
class CreatePipelineCommand extends smithyClient.Command
|
|
695
|
+
.classBuilder()
|
|
696
|
+
.ep(commonParams)
|
|
697
|
+
.m(function (Command, cs, config, o) {
|
|
698
|
+
return [
|
|
699
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
700
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
701
|
+
];
|
|
702
|
+
})
|
|
703
|
+
.s("DataPipeline", "CreatePipeline", {})
|
|
704
|
+
.n("DataPipelineClient", "CreatePipelineCommand")
|
|
705
|
+
.f(void 0, void 0)
|
|
706
|
+
.ser(se_CreatePipelineCommand)
|
|
707
|
+
.de(de_CreatePipelineCommand)
|
|
708
|
+
.build() {
|
|
709
|
+
}
|
|
1030
710
|
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
(
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
}
|
|
711
|
+
class DeactivatePipelineCommand extends smithyClient.Command
|
|
712
|
+
.classBuilder()
|
|
713
|
+
.ep(commonParams)
|
|
714
|
+
.m(function (Command, cs, config, o) {
|
|
715
|
+
return [
|
|
716
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
717
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
718
|
+
];
|
|
719
|
+
})
|
|
720
|
+
.s("DataPipeline", "DeactivatePipeline", {})
|
|
721
|
+
.n("DataPipelineClient", "DeactivatePipelineCommand")
|
|
722
|
+
.f(void 0, void 0)
|
|
723
|
+
.ser(se_DeactivatePipelineCommand)
|
|
724
|
+
.de(de_DeactivatePipelineCommand)
|
|
725
|
+
.build() {
|
|
726
|
+
}
|
|
1041
727
|
|
|
1042
|
-
|
|
728
|
+
class DeletePipelineCommand extends smithyClient.Command
|
|
729
|
+
.classBuilder()
|
|
730
|
+
.ep(commonParams)
|
|
731
|
+
.m(function (Command, cs, config, o) {
|
|
732
|
+
return [
|
|
733
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
734
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
735
|
+
];
|
|
736
|
+
})
|
|
737
|
+
.s("DataPipeline", "DeletePipeline", {})
|
|
738
|
+
.n("DataPipelineClient", "DeletePipelineCommand")
|
|
739
|
+
.f(void 0, void 0)
|
|
740
|
+
.ser(se_DeletePipelineCommand)
|
|
741
|
+
.de(de_DeletePipelineCommand)
|
|
742
|
+
.build() {
|
|
743
|
+
}
|
|
1043
744
|
|
|
745
|
+
class DescribeObjectsCommand extends smithyClient.Command
|
|
746
|
+
.classBuilder()
|
|
747
|
+
.ep(commonParams)
|
|
748
|
+
.m(function (Command, cs, config, o) {
|
|
749
|
+
return [
|
|
750
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
751
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
752
|
+
];
|
|
753
|
+
})
|
|
754
|
+
.s("DataPipeline", "DescribeObjects", {})
|
|
755
|
+
.n("DataPipelineClient", "DescribeObjectsCommand")
|
|
756
|
+
.f(void 0, void 0)
|
|
757
|
+
.ser(se_DescribeObjectsCommand)
|
|
758
|
+
.de(de_DescribeObjectsCommand)
|
|
759
|
+
.build() {
|
|
760
|
+
}
|
|
1044
761
|
|
|
762
|
+
class DescribePipelinesCommand extends smithyClient.Command
|
|
763
|
+
.classBuilder()
|
|
764
|
+
.ep(commonParams)
|
|
765
|
+
.m(function (Command, cs, config, o) {
|
|
766
|
+
return [
|
|
767
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
768
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
769
|
+
];
|
|
770
|
+
})
|
|
771
|
+
.s("DataPipeline", "DescribePipelines", {})
|
|
772
|
+
.n("DataPipelineClient", "DescribePipelinesCommand")
|
|
773
|
+
.f(void 0, void 0)
|
|
774
|
+
.ser(se_DescribePipelinesCommand)
|
|
775
|
+
.de(de_DescribePipelinesCommand)
|
|
776
|
+
.build() {
|
|
777
|
+
}
|
|
1045
778
|
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
(
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
}
|
|
779
|
+
class EvaluateExpressionCommand extends smithyClient.Command
|
|
780
|
+
.classBuilder()
|
|
781
|
+
.ep(commonParams)
|
|
782
|
+
.m(function (Command, cs, config, o) {
|
|
783
|
+
return [
|
|
784
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
785
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
786
|
+
];
|
|
787
|
+
})
|
|
788
|
+
.s("DataPipeline", "EvaluateExpression", {})
|
|
789
|
+
.n("DataPipelineClient", "EvaluateExpressionCommand")
|
|
790
|
+
.f(void 0, void 0)
|
|
791
|
+
.ser(se_EvaluateExpressionCommand)
|
|
792
|
+
.de(de_EvaluateExpressionCommand)
|
|
793
|
+
.build() {
|
|
794
|
+
}
|
|
1056
795
|
|
|
1057
|
-
|
|
796
|
+
class GetPipelineDefinitionCommand extends smithyClient.Command
|
|
797
|
+
.classBuilder()
|
|
798
|
+
.ep(commonParams)
|
|
799
|
+
.m(function (Command, cs, config, o) {
|
|
800
|
+
return [
|
|
801
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
802
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
803
|
+
];
|
|
804
|
+
})
|
|
805
|
+
.s("DataPipeline", "GetPipelineDefinition", {})
|
|
806
|
+
.n("DataPipelineClient", "GetPipelineDefinitionCommand")
|
|
807
|
+
.f(void 0, void 0)
|
|
808
|
+
.ser(se_GetPipelineDefinitionCommand)
|
|
809
|
+
.de(de_GetPipelineDefinitionCommand)
|
|
810
|
+
.build() {
|
|
811
|
+
}
|
|
1058
812
|
|
|
813
|
+
class ListPipelinesCommand extends smithyClient.Command
|
|
814
|
+
.classBuilder()
|
|
815
|
+
.ep(commonParams)
|
|
816
|
+
.m(function (Command, cs, config, o) {
|
|
817
|
+
return [
|
|
818
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
819
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
820
|
+
];
|
|
821
|
+
})
|
|
822
|
+
.s("DataPipeline", "ListPipelines", {})
|
|
823
|
+
.n("DataPipelineClient", "ListPipelinesCommand")
|
|
824
|
+
.f(void 0, void 0)
|
|
825
|
+
.ser(se_ListPipelinesCommand)
|
|
826
|
+
.de(de_ListPipelinesCommand)
|
|
827
|
+
.build() {
|
|
828
|
+
}
|
|
1059
829
|
|
|
830
|
+
class PollForTaskCommand extends smithyClient.Command
|
|
831
|
+
.classBuilder()
|
|
832
|
+
.ep(commonParams)
|
|
833
|
+
.m(function (Command, cs, config, o) {
|
|
834
|
+
return [
|
|
835
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
836
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
837
|
+
];
|
|
838
|
+
})
|
|
839
|
+
.s("DataPipeline", "PollForTask", {})
|
|
840
|
+
.n("DataPipelineClient", "PollForTaskCommand")
|
|
841
|
+
.f(void 0, void 0)
|
|
842
|
+
.ser(se_PollForTaskCommand)
|
|
843
|
+
.de(de_PollForTaskCommand)
|
|
844
|
+
.build() {
|
|
845
|
+
}
|
|
1060
846
|
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
(
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
}
|
|
847
|
+
class PutPipelineDefinitionCommand extends smithyClient.Command
|
|
848
|
+
.classBuilder()
|
|
849
|
+
.ep(commonParams)
|
|
850
|
+
.m(function (Command, cs, config, o) {
|
|
851
|
+
return [
|
|
852
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
853
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
854
|
+
];
|
|
855
|
+
})
|
|
856
|
+
.s("DataPipeline", "PutPipelineDefinition", {})
|
|
857
|
+
.n("DataPipelineClient", "PutPipelineDefinitionCommand")
|
|
858
|
+
.f(void 0, void 0)
|
|
859
|
+
.ser(se_PutPipelineDefinitionCommand)
|
|
860
|
+
.de(de_PutPipelineDefinitionCommand)
|
|
861
|
+
.build() {
|
|
862
|
+
}
|
|
1071
863
|
|
|
1072
|
-
|
|
864
|
+
class QueryObjectsCommand extends smithyClient.Command
|
|
865
|
+
.classBuilder()
|
|
866
|
+
.ep(commonParams)
|
|
867
|
+
.m(function (Command, cs, config, o) {
|
|
868
|
+
return [
|
|
869
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
870
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
871
|
+
];
|
|
872
|
+
})
|
|
873
|
+
.s("DataPipeline", "QueryObjects", {})
|
|
874
|
+
.n("DataPipelineClient", "QueryObjectsCommand")
|
|
875
|
+
.f(void 0, void 0)
|
|
876
|
+
.ser(se_QueryObjectsCommand)
|
|
877
|
+
.de(de_QueryObjectsCommand)
|
|
878
|
+
.build() {
|
|
879
|
+
}
|
|
1073
880
|
|
|
881
|
+
class RemoveTagsCommand extends smithyClient.Command
|
|
882
|
+
.classBuilder()
|
|
883
|
+
.ep(commonParams)
|
|
884
|
+
.m(function (Command, cs, config, o) {
|
|
885
|
+
return [
|
|
886
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
887
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
888
|
+
];
|
|
889
|
+
})
|
|
890
|
+
.s("DataPipeline", "RemoveTags", {})
|
|
891
|
+
.n("DataPipelineClient", "RemoveTagsCommand")
|
|
892
|
+
.f(void 0, void 0)
|
|
893
|
+
.ser(se_RemoveTagsCommand)
|
|
894
|
+
.de(de_RemoveTagsCommand)
|
|
895
|
+
.build() {
|
|
896
|
+
}
|
|
1074
897
|
|
|
898
|
+
class ReportTaskProgressCommand extends smithyClient.Command
|
|
899
|
+
.classBuilder()
|
|
900
|
+
.ep(commonParams)
|
|
901
|
+
.m(function (Command, cs, config, o) {
|
|
902
|
+
return [
|
|
903
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
904
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
905
|
+
];
|
|
906
|
+
})
|
|
907
|
+
.s("DataPipeline", "ReportTaskProgress", {})
|
|
908
|
+
.n("DataPipelineClient", "ReportTaskProgressCommand")
|
|
909
|
+
.f(void 0, void 0)
|
|
910
|
+
.ser(se_ReportTaskProgressCommand)
|
|
911
|
+
.de(de_ReportTaskProgressCommand)
|
|
912
|
+
.build() {
|
|
913
|
+
}
|
|
1075
914
|
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
(
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
}
|
|
915
|
+
class ReportTaskRunnerHeartbeatCommand extends smithyClient.Command
|
|
916
|
+
.classBuilder()
|
|
917
|
+
.ep(commonParams)
|
|
918
|
+
.m(function (Command, cs, config, o) {
|
|
919
|
+
return [
|
|
920
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
921
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
922
|
+
];
|
|
923
|
+
})
|
|
924
|
+
.s("DataPipeline", "ReportTaskRunnerHeartbeat", {})
|
|
925
|
+
.n("DataPipelineClient", "ReportTaskRunnerHeartbeatCommand")
|
|
926
|
+
.f(void 0, void 0)
|
|
927
|
+
.ser(se_ReportTaskRunnerHeartbeatCommand)
|
|
928
|
+
.de(de_ReportTaskRunnerHeartbeatCommand)
|
|
929
|
+
.build() {
|
|
930
|
+
}
|
|
1086
931
|
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
ReportTaskProgressCommand,
|
|
1104
|
-
ReportTaskRunnerHeartbeatCommand,
|
|
1105
|
-
SetStatusCommand,
|
|
1106
|
-
SetTaskStatusCommand,
|
|
1107
|
-
ValidatePipelineDefinitionCommand
|
|
1108
|
-
};
|
|
1109
|
-
var DataPipeline = class extends DataPipelineClient {
|
|
1110
|
-
static {
|
|
1111
|
-
__name(this, "DataPipeline");
|
|
1112
|
-
}
|
|
1113
|
-
};
|
|
1114
|
-
(0, import_smithy_client.createAggregatedClient)(commands, DataPipeline);
|
|
932
|
+
class SetStatusCommand extends smithyClient.Command
|
|
933
|
+
.classBuilder()
|
|
934
|
+
.ep(commonParams)
|
|
935
|
+
.m(function (Command, cs, config, o) {
|
|
936
|
+
return [
|
|
937
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
938
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
939
|
+
];
|
|
940
|
+
})
|
|
941
|
+
.s("DataPipeline", "SetStatus", {})
|
|
942
|
+
.n("DataPipelineClient", "SetStatusCommand")
|
|
943
|
+
.f(void 0, void 0)
|
|
944
|
+
.ser(se_SetStatusCommand)
|
|
945
|
+
.de(de_SetStatusCommand)
|
|
946
|
+
.build() {
|
|
947
|
+
}
|
|
1115
948
|
|
|
1116
|
-
|
|
949
|
+
class SetTaskStatusCommand extends smithyClient.Command
|
|
950
|
+
.classBuilder()
|
|
951
|
+
.ep(commonParams)
|
|
952
|
+
.m(function (Command, cs, config, o) {
|
|
953
|
+
return [
|
|
954
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
955
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
956
|
+
];
|
|
957
|
+
})
|
|
958
|
+
.s("DataPipeline", "SetTaskStatus", {})
|
|
959
|
+
.n("DataPipelineClient", "SetTaskStatusCommand")
|
|
960
|
+
.f(void 0, void 0)
|
|
961
|
+
.ser(se_SetTaskStatusCommand)
|
|
962
|
+
.de(de_SetTaskStatusCommand)
|
|
963
|
+
.build() {
|
|
964
|
+
}
|
|
1117
965
|
|
|
1118
|
-
|
|
966
|
+
class ValidatePipelineDefinitionCommand extends smithyClient.Command
|
|
967
|
+
.classBuilder()
|
|
968
|
+
.ep(commonParams)
|
|
969
|
+
.m(function (Command, cs, config, o) {
|
|
970
|
+
return [
|
|
971
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
972
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
973
|
+
];
|
|
974
|
+
})
|
|
975
|
+
.s("DataPipeline", "ValidatePipelineDefinition", {})
|
|
976
|
+
.n("DataPipelineClient", "ValidatePipelineDefinitionCommand")
|
|
977
|
+
.f(void 0, void 0)
|
|
978
|
+
.ser(se_ValidatePipelineDefinitionCommand)
|
|
979
|
+
.de(de_ValidatePipelineDefinitionCommand)
|
|
980
|
+
.build() {
|
|
981
|
+
}
|
|
1119
982
|
|
|
1120
|
-
|
|
983
|
+
const commands = {
|
|
984
|
+
ActivatePipelineCommand,
|
|
985
|
+
AddTagsCommand,
|
|
986
|
+
CreatePipelineCommand,
|
|
987
|
+
DeactivatePipelineCommand,
|
|
988
|
+
DeletePipelineCommand,
|
|
989
|
+
DescribeObjectsCommand,
|
|
990
|
+
DescribePipelinesCommand,
|
|
991
|
+
EvaluateExpressionCommand,
|
|
992
|
+
GetPipelineDefinitionCommand,
|
|
993
|
+
ListPipelinesCommand,
|
|
994
|
+
PollForTaskCommand,
|
|
995
|
+
PutPipelineDefinitionCommand,
|
|
996
|
+
QueryObjectsCommand,
|
|
997
|
+
RemoveTagsCommand,
|
|
998
|
+
ReportTaskProgressCommand,
|
|
999
|
+
ReportTaskRunnerHeartbeatCommand,
|
|
1000
|
+
SetStatusCommand,
|
|
1001
|
+
SetTaskStatusCommand,
|
|
1002
|
+
ValidatePipelineDefinitionCommand,
|
|
1003
|
+
};
|
|
1004
|
+
class DataPipeline extends DataPipelineClient {
|
|
1005
|
+
}
|
|
1006
|
+
smithyClient.createAggregatedClient(commands, DataPipeline);
|
|
1121
1007
|
|
|
1122
|
-
|
|
1008
|
+
const paginateDescribeObjects = core.createPaginator(DataPipelineClient, DescribeObjectsCommand, "marker", "marker", "");
|
|
1123
1009
|
|
|
1124
|
-
|
|
1010
|
+
const paginateListPipelines = core.createPaginator(DataPipelineClient, ListPipelinesCommand, "marker", "marker", "");
|
|
1125
1011
|
|
|
1126
|
-
|
|
1127
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1012
|
+
const paginateQueryObjects = core.createPaginator(DataPipelineClient, QueryObjectsCommand, "marker", "marker", "limit");
|
|
1128
1013
|
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
DataPipelineClient,
|
|
1133
|
-
DataPipeline,
|
|
1134
|
-
$Command,
|
|
1135
|
-
ActivatePipelineCommand,
|
|
1136
|
-
AddTagsCommand,
|
|
1137
|
-
CreatePipelineCommand,
|
|
1138
|
-
DeactivatePipelineCommand,
|
|
1139
|
-
DeletePipelineCommand,
|
|
1140
|
-
DescribeObjectsCommand,
|
|
1141
|
-
DescribePipelinesCommand,
|
|
1142
|
-
EvaluateExpressionCommand,
|
|
1143
|
-
GetPipelineDefinitionCommand,
|
|
1144
|
-
ListPipelinesCommand,
|
|
1145
|
-
PollForTaskCommand,
|
|
1146
|
-
PutPipelineDefinitionCommand,
|
|
1147
|
-
QueryObjectsCommand,
|
|
1148
|
-
RemoveTagsCommand,
|
|
1149
|
-
ReportTaskProgressCommand,
|
|
1150
|
-
ReportTaskRunnerHeartbeatCommand,
|
|
1151
|
-
SetStatusCommand,
|
|
1152
|
-
SetTaskStatusCommand,
|
|
1153
|
-
ValidatePipelineDefinitionCommand,
|
|
1154
|
-
paginateDescribeObjects,
|
|
1155
|
-
paginateListPipelines,
|
|
1156
|
-
paginateQueryObjects,
|
|
1157
|
-
InternalServiceError,
|
|
1158
|
-
InvalidRequestException,
|
|
1159
|
-
PipelineDeletedException,
|
|
1160
|
-
PipelineNotFoundException,
|
|
1161
|
-
TaskNotFoundException,
|
|
1162
|
-
OperatorType,
|
|
1163
|
-
TaskStatus
|
|
1014
|
+
Object.defineProperty(exports, "$Command", {
|
|
1015
|
+
enumerable: true,
|
|
1016
|
+
get: function () { return smithyClient.Command; }
|
|
1164
1017
|
});
|
|
1165
|
-
|
|
1018
|
+
Object.defineProperty(exports, "__Client", {
|
|
1019
|
+
enumerable: true,
|
|
1020
|
+
get: function () { return smithyClient.Client; }
|
|
1021
|
+
});
|
|
1022
|
+
exports.ActivatePipelineCommand = ActivatePipelineCommand;
|
|
1023
|
+
exports.AddTagsCommand = AddTagsCommand;
|
|
1024
|
+
exports.CreatePipelineCommand = CreatePipelineCommand;
|
|
1025
|
+
exports.DataPipeline = DataPipeline;
|
|
1026
|
+
exports.DataPipelineClient = DataPipelineClient;
|
|
1027
|
+
exports.DataPipelineServiceException = DataPipelineServiceException;
|
|
1028
|
+
exports.DeactivatePipelineCommand = DeactivatePipelineCommand;
|
|
1029
|
+
exports.DeletePipelineCommand = DeletePipelineCommand;
|
|
1030
|
+
exports.DescribeObjectsCommand = DescribeObjectsCommand;
|
|
1031
|
+
exports.DescribePipelinesCommand = DescribePipelinesCommand;
|
|
1032
|
+
exports.EvaluateExpressionCommand = EvaluateExpressionCommand;
|
|
1033
|
+
exports.GetPipelineDefinitionCommand = GetPipelineDefinitionCommand;
|
|
1034
|
+
exports.InternalServiceError = InternalServiceError;
|
|
1035
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
1036
|
+
exports.ListPipelinesCommand = ListPipelinesCommand;
|
|
1037
|
+
exports.OperatorType = OperatorType;
|
|
1038
|
+
exports.PipelineDeletedException = PipelineDeletedException;
|
|
1039
|
+
exports.PipelineNotFoundException = PipelineNotFoundException;
|
|
1040
|
+
exports.PollForTaskCommand = PollForTaskCommand;
|
|
1041
|
+
exports.PutPipelineDefinitionCommand = PutPipelineDefinitionCommand;
|
|
1042
|
+
exports.QueryObjectsCommand = QueryObjectsCommand;
|
|
1043
|
+
exports.RemoveTagsCommand = RemoveTagsCommand;
|
|
1044
|
+
exports.ReportTaskProgressCommand = ReportTaskProgressCommand;
|
|
1045
|
+
exports.ReportTaskRunnerHeartbeatCommand = ReportTaskRunnerHeartbeatCommand;
|
|
1046
|
+
exports.SetStatusCommand = SetStatusCommand;
|
|
1047
|
+
exports.SetTaskStatusCommand = SetTaskStatusCommand;
|
|
1048
|
+
exports.TaskNotFoundException = TaskNotFoundException;
|
|
1049
|
+
exports.TaskStatus = TaskStatus;
|
|
1050
|
+
exports.ValidatePipelineDefinitionCommand = ValidatePipelineDefinitionCommand;
|
|
1051
|
+
exports.paginateDescribeObjects = paginateDescribeObjects;
|
|
1052
|
+
exports.paginateListPipelines = paginateListPipelines;
|
|
1053
|
+
exports.paginateQueryObjects = paginateQueryObjects;
|