@aws-sdk/client-data-pipeline 3.899.0 → 3.906.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist-cjs/index.js +994 -1106
  2. package/package.json +37 -37
package/dist-cjs/index.js CHANGED
@@ -1,1165 +1,1053 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
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
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
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
- // src/DataPipelineClient.ts
61
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
62
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
63
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
64
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
65
- var import_config_resolver = require("@smithy/config-resolver");
66
- var import_core = require("@smithy/core");
67
- var import_middleware_content_length = require("@smithy/middleware-content-length");
68
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
69
- var import_middleware_retry = require("@smithy/middleware-retry");
70
-
71
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
72
-
73
- // src/endpoint/EndpointParameters.ts
74
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
75
- return Object.assign(options, {
76
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
77
- useFipsEndpoint: options.useFipsEndpoint ?? false,
78
- defaultSigningName: "datapipeline"
79
- });
80
- }, "resolveClientEndpointParameters");
81
- var commonParams = {
82
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
83
- Endpoint: { type: "builtInParams", name: "endpoint" },
84
- Region: { type: "builtInParams", name: "region" },
85
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
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
- // src/DataPipelineClient.ts
89
- var import_runtimeConfig = require("././runtimeConfig");
90
-
91
- // src/runtimeExtensions.ts
92
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
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
- // src/auth/httpAuthExtensionConfiguration.ts
97
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
98
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
99
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
100
- let _credentials = runtimeConfig.credentials;
101
- return {
102
- setHttpAuthScheme(httpAuthScheme) {
103
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
104
- if (index === -1) {
105
- _httpAuthSchemes.push(httpAuthScheme);
106
- } else {
107
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
108
- }
109
- },
110
- httpAuthSchemes() {
111
- return _httpAuthSchemes;
112
- },
113
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
114
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
115
- },
116
- httpAuthSchemeProvider() {
117
- return _httpAuthSchemeProvider;
118
- },
119
- setCredentials(credentials) {
120
- _credentials = credentials;
121
- },
122
- credentials() {
123
- return _credentials;
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
- // src/runtimeExtensions.ts
136
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
137
- const extensionConfiguration = Object.assign(
138
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
139
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
140
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
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
- // src/DataPipelineClient.ts
154
- var DataPipelineClient = class extends import_smithy_client.Client {
155
- static {
156
- __name(this, "DataPipelineClient");
157
- }
158
- /**
159
- * The resolved configuration of DataPipelineClient class. This is resolved and normalized from the {@link DataPipelineClientConfig | constructor configuration interface}.
160
- */
161
- config;
162
- constructor(...[configuration]) {
163
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
164
- super(_config_0);
165
- this.initConfig = _config_0;
166
- const _config_1 = resolveClientEndpointParameters(_config_0);
167
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
168
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
169
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
170
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
171
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
172
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
173
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
174
- this.config = _config_8;
175
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
176
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
177
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
178
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
179
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
180
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
181
- this.middlewareStack.use(
182
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
183
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultDataPipelineHttpAuthSchemeParametersProvider,
184
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
185
- "aws.auth#sigv4": config.credentials
186
- }), "identityProviderConfigProvider")
187
- })
188
- );
189
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
190
- }
191
- /**
192
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
193
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
194
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
195
- */
196
- destroy() {
197
- super.destroy();
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
- // src/DataPipeline.ts
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
- // src/models/models_0.ts
230
- var InternalServiceError = class _InternalServiceError extends DataPipelineServiceException {
231
- static {
232
- __name(this, "InternalServiceError");
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
- var InvalidRequestException = class _InvalidRequestException extends DataPipelineServiceException {
249
- static {
250
- __name(this, "InvalidRequestException");
251
- }
252
- name = "InvalidRequestException";
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
- var PipelineDeletedException = class _PipelineDeletedException extends DataPipelineServiceException {
267
- static {
268
- __name(this, "PipelineDeletedException");
269
- }
270
- name = "PipelineDeletedException";
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
- var PipelineNotFoundException = class _PipelineNotFoundException extends DataPipelineServiceException {
285
- static {
286
- __name(this, "PipelineNotFoundException");
287
- }
288
- name = "PipelineNotFoundException";
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
- var TaskNotFoundException = class _TaskNotFoundException extends DataPipelineServiceException {
303
- static {
304
- __name(this, "TaskNotFoundException");
305
- }
306
- name = "TaskNotFoundException";
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
- var OperatorType = {
321
- Between: "BETWEEN",
322
- Equal: "EQ",
323
- GreaterThanOrEqual: "GE",
324
- LessThanOrEqual: "LE",
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
- var TaskStatus = {
328
- FAILED: "FAILED",
329
- FALSE: "FALSE",
330
- FINISHED: "FINISHED"
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
- // src/protocols/Aws_json1_1.ts
334
- var se_ActivatePipelineCommand = /* @__PURE__ */ __name(async (input, context) => {
335
- const headers = sharedHeaders("ActivatePipeline");
336
- let body;
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
- // src/commands/AddTagsCommand.ts
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
- // src/commands/CreatePipelineCommand.ts
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
- // src/commands/DeactivatePipelineCommand.ts
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
- // src/commands/DeletePipelineCommand.ts
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
- // src/commands/DescribeObjectsCommand.ts
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
- // src/commands/DescribePipelinesCommand.ts
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
- // src/commands/EvaluateExpressionCommand.ts
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
- // src/commands/GetPipelineDefinitionCommand.ts
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
- // src/commands/ListPipelinesCommand.ts
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
- // src/commands/PollForTaskCommand.ts
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
- // src/commands/PutPipelineDefinitionCommand.ts
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
- // src/commands/QueryObjectsCommand.ts
983
-
984
-
985
-
986
- var QueryObjectsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
987
- return [
988
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
989
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
990
- ];
991
- }).s("DataPipeline", "QueryObjects", {}).n("DataPipelineClient", "QueryObjectsCommand").f(void 0, void 0).ser(se_QueryObjectsCommand).de(de_QueryObjectsCommand).build() {
992
- static {
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
- // src/commands/RemoveTagsCommand.ts
998
-
999
-
1000
-
1001
- var RemoveTagsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1002
- return [
1003
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1004
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1005
- ];
1006
- }).s("DataPipeline", "RemoveTags", {}).n("DataPipelineClient", "RemoveTagsCommand").f(void 0, void 0).ser(se_RemoveTagsCommand).de(de_RemoveTagsCommand).build() {
1007
- static {
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
- // src/commands/ReportTaskProgressCommand.ts
1013
-
1014
-
1015
-
1016
- var ReportTaskProgressCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1017
- return [
1018
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1019
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1020
- ];
1021
- }).s("DataPipeline", "ReportTaskProgress", {}).n("DataPipelineClient", "ReportTaskProgressCommand").f(void 0, void 0).ser(se_ReportTaskProgressCommand).de(de_ReportTaskProgressCommand).build() {
1022
- static {
1023
- __name(this, "ReportTaskProgressCommand");
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
- // src/commands/ReportTaskRunnerHeartbeatCommand.ts
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
- var ReportTaskRunnerHeartbeatCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1032
- return [
1033
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1034
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1035
- ];
1036
- }).s("DataPipeline", "ReportTaskRunnerHeartbeat", {}).n("DataPipelineClient", "ReportTaskRunnerHeartbeatCommand").f(void 0, void 0).ser(se_ReportTaskRunnerHeartbeatCommand).de(de_ReportTaskRunnerHeartbeatCommand).build() {
1037
- static {
1038
- __name(this, "ReportTaskRunnerHeartbeatCommand");
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
- // src/commands/SetStatusCommand.ts
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
- var SetStatusCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1047
- return [
1048
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1049
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1050
- ];
1051
- }).s("DataPipeline", "SetStatus", {}).n("DataPipelineClient", "SetStatusCommand").f(void 0, void 0).ser(se_SetStatusCommand).de(de_SetStatusCommand).build() {
1052
- static {
1053
- __name(this, "SetStatusCommand");
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
- // src/commands/SetTaskStatusCommand.ts
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
- var SetTaskStatusCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1062
- return [
1063
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1064
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1065
- ];
1066
- }).s("DataPipeline", "SetTaskStatus", {}).n("DataPipelineClient", "SetTaskStatusCommand").f(void 0, void 0).ser(se_SetTaskStatusCommand).de(de_SetTaskStatusCommand).build() {
1067
- static {
1068
- __name(this, "SetTaskStatusCommand");
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
- // src/commands/ValidatePipelineDefinitionCommand.ts
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
- var ValidatePipelineDefinitionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1077
- return [
1078
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1079
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1080
- ];
1081
- }).s("DataPipeline", "ValidatePipelineDefinition", {}).n("DataPipelineClient", "ValidatePipelineDefinitionCommand").f(void 0, void 0).ser(se_ValidatePipelineDefinitionCommand).de(de_ValidatePipelineDefinitionCommand).build() {
1082
- static {
1083
- __name(this, "ValidatePipelineDefinitionCommand");
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
- // src/DataPipeline.ts
1088
- var commands = {
1089
- ActivatePipelineCommand,
1090
- AddTagsCommand,
1091
- CreatePipelineCommand,
1092
- DeactivatePipelineCommand,
1093
- DeletePipelineCommand,
1094
- DescribeObjectsCommand,
1095
- DescribePipelinesCommand,
1096
- EvaluateExpressionCommand,
1097
- GetPipelineDefinitionCommand,
1098
- ListPipelinesCommand,
1099
- PollForTaskCommand,
1100
- PutPipelineDefinitionCommand,
1101
- QueryObjectsCommand,
1102
- RemoveTagsCommand,
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
- // src/pagination/DescribeObjectsPaginator.ts
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
- var paginateDescribeObjects = (0, import_core.createPaginator)(DataPipelineClient, DescribeObjectsCommand, "marker", "marker", "");
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
- // src/pagination/ListPipelinesPaginator.ts
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
- var paginateListPipelines = (0, import_core.createPaginator)(DataPipelineClient, ListPipelinesCommand, "marker", "marker", "");
1008
+ const paginateDescribeObjects = core.createPaginator(DataPipelineClient, DescribeObjectsCommand, "marker", "marker", "");
1123
1009
 
1124
- // src/pagination/QueryObjectsPaginator.ts
1010
+ const paginateListPipelines = core.createPaginator(DataPipelineClient, ListPipelinesCommand, "marker", "marker", "");
1125
1011
 
1126
- var paginateQueryObjects = (0, import_core.createPaginator)(DataPipelineClient, QueryObjectsCommand, "marker", "marker", "limit");
1127
- // Annotate the CommonJS export names for ESM import in node:
1012
+ const paginateQueryObjects = core.createPaginator(DataPipelineClient, QueryObjectsCommand, "marker", "marker", "limit");
1128
1013
 
1129
- 0 && (module.exports = {
1130
- DataPipelineServiceException,
1131
- __Client,
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;