@aws-sdk/client-data-pipeline 3.180.0 → 3.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +25 -19
- package/dist-es/DataPipeline.js +78 -85
- package/dist-es/DataPipelineClient.js +22 -28
- package/dist-es/commands/ActivatePipelineCommand.js +21 -28
- package/dist-es/commands/AddTagsCommand.js +21 -28
- package/dist-es/commands/CreatePipelineCommand.js +21 -28
- package/dist-es/commands/DeactivatePipelineCommand.js +21 -28
- package/dist-es/commands/DeletePipelineCommand.js +22 -29
- package/dist-es/commands/DescribeObjectsCommand.js +21 -28
- package/dist-es/commands/DescribePipelinesCommand.js +21 -28
- package/dist-es/commands/EvaluateExpressionCommand.js +21 -28
- package/dist-es/commands/GetPipelineDefinitionCommand.js +21 -28
- package/dist-es/commands/ListPipelinesCommand.js +21 -28
- package/dist-es/commands/PollForTaskCommand.js +21 -28
- package/dist-es/commands/PutPipelineDefinitionCommand.js +21 -28
- package/dist-es/commands/QueryObjectsCommand.js +21 -28
- package/dist-es/commands/RemoveTagsCommand.js +21 -28
- package/dist-es/commands/ReportTaskProgressCommand.js +21 -28
- package/dist-es/commands/ReportTaskRunnerHeartbeatCommand.js +21 -28
- package/dist-es/commands/SetStatusCommand.js +22 -29
- package/dist-es/commands/SetTaskStatusCommand.js +21 -28
- package/dist-es/commands/ValidatePipelineDefinitionCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/DataPipelineServiceException.js +5 -10
- package/dist-es/models/models_0.js +208 -107
- package/dist-es/pagination/DescribeObjectsPaginator.js +24 -67
- package/dist-es/pagination/ListPipelinesPaginator.js +24 -67
- package/dist-es/pagination/QueryObjectsPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +1323 -1667
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-data-pipeline
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-data-pipeline
|
|
@@ -212,7 +212,7 @@ exports.deserializeAws_json1_1ActivatePipelineCommand = deserializeAws_json1_1Ac
|
|
|
212
212
|
const deserializeAws_json1_1ActivatePipelineCommandError = async (output, context) => {
|
|
213
213
|
const parsedOutput = {
|
|
214
214
|
...output,
|
|
215
|
-
body: await
|
|
215
|
+
body: await parseErrorBody(output.body, context),
|
|
216
216
|
};
|
|
217
217
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
218
218
|
switch (errorCode) {
|
|
@@ -255,7 +255,7 @@ exports.deserializeAws_json1_1AddTagsCommand = deserializeAws_json1_1AddTagsComm
|
|
|
255
255
|
const deserializeAws_json1_1AddTagsCommandError = async (output, context) => {
|
|
256
256
|
const parsedOutput = {
|
|
257
257
|
...output,
|
|
258
|
-
body: await
|
|
258
|
+
body: await parseErrorBody(output.body, context),
|
|
259
259
|
};
|
|
260
260
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
261
261
|
switch (errorCode) {
|
|
@@ -298,7 +298,7 @@ exports.deserializeAws_json1_1CreatePipelineCommand = deserializeAws_json1_1Crea
|
|
|
298
298
|
const deserializeAws_json1_1CreatePipelineCommandError = async (output, context) => {
|
|
299
299
|
const parsedOutput = {
|
|
300
300
|
...output,
|
|
301
|
-
body: await
|
|
301
|
+
body: await parseErrorBody(output.body, context),
|
|
302
302
|
};
|
|
303
303
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
304
304
|
switch (errorCode) {
|
|
@@ -335,7 +335,7 @@ exports.deserializeAws_json1_1DeactivatePipelineCommand = deserializeAws_json1_1
|
|
|
335
335
|
const deserializeAws_json1_1DeactivatePipelineCommandError = async (output, context) => {
|
|
336
336
|
const parsedOutput = {
|
|
337
337
|
...output,
|
|
338
|
-
body: await
|
|
338
|
+
body: await parseErrorBody(output.body, context),
|
|
339
339
|
};
|
|
340
340
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
341
341
|
switch (errorCode) {
|
|
@@ -375,7 +375,7 @@ exports.deserializeAws_json1_1DeletePipelineCommand = deserializeAws_json1_1Dele
|
|
|
375
375
|
const deserializeAws_json1_1DeletePipelineCommandError = async (output, context) => {
|
|
376
376
|
const parsedOutput = {
|
|
377
377
|
...output,
|
|
378
|
-
body: await
|
|
378
|
+
body: await parseErrorBody(output.body, context),
|
|
379
379
|
};
|
|
380
380
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
381
381
|
switch (errorCode) {
|
|
@@ -415,7 +415,7 @@ exports.deserializeAws_json1_1DescribeObjectsCommand = deserializeAws_json1_1Des
|
|
|
415
415
|
const deserializeAws_json1_1DescribeObjectsCommandError = async (output, context) => {
|
|
416
416
|
const parsedOutput = {
|
|
417
417
|
...output,
|
|
418
|
-
body: await
|
|
418
|
+
body: await parseErrorBody(output.body, context),
|
|
419
419
|
};
|
|
420
420
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
421
421
|
switch (errorCode) {
|
|
@@ -458,7 +458,7 @@ exports.deserializeAws_json1_1DescribePipelinesCommand = deserializeAws_json1_1D
|
|
|
458
458
|
const deserializeAws_json1_1DescribePipelinesCommandError = async (output, context) => {
|
|
459
459
|
const parsedOutput = {
|
|
460
460
|
...output,
|
|
461
|
-
body: await
|
|
461
|
+
body: await parseErrorBody(output.body, context),
|
|
462
462
|
};
|
|
463
463
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
464
464
|
switch (errorCode) {
|
|
@@ -501,7 +501,7 @@ exports.deserializeAws_json1_1EvaluateExpressionCommand = deserializeAws_json1_1
|
|
|
501
501
|
const deserializeAws_json1_1EvaluateExpressionCommandError = async (output, context) => {
|
|
502
502
|
const parsedOutput = {
|
|
503
503
|
...output,
|
|
504
|
-
body: await
|
|
504
|
+
body: await parseErrorBody(output.body, context),
|
|
505
505
|
};
|
|
506
506
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
507
507
|
switch (errorCode) {
|
|
@@ -547,7 +547,7 @@ exports.deserializeAws_json1_1GetPipelineDefinitionCommand = deserializeAws_json
|
|
|
547
547
|
const deserializeAws_json1_1GetPipelineDefinitionCommandError = async (output, context) => {
|
|
548
548
|
const parsedOutput = {
|
|
549
549
|
...output,
|
|
550
|
-
body: await
|
|
550
|
+
body: await parseErrorBody(output.body, context),
|
|
551
551
|
};
|
|
552
552
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
553
553
|
switch (errorCode) {
|
|
@@ -590,7 +590,7 @@ exports.deserializeAws_json1_1ListPipelinesCommand = deserializeAws_json1_1ListP
|
|
|
590
590
|
const deserializeAws_json1_1ListPipelinesCommandError = async (output, context) => {
|
|
591
591
|
const parsedOutput = {
|
|
592
592
|
...output,
|
|
593
|
-
body: await
|
|
593
|
+
body: await parseErrorBody(output.body, context),
|
|
594
594
|
};
|
|
595
595
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
596
596
|
switch (errorCode) {
|
|
@@ -627,7 +627,7 @@ exports.deserializeAws_json1_1PollForTaskCommand = deserializeAws_json1_1PollFor
|
|
|
627
627
|
const deserializeAws_json1_1PollForTaskCommandError = async (output, context) => {
|
|
628
628
|
const parsedOutput = {
|
|
629
629
|
...output,
|
|
630
|
-
body: await
|
|
630
|
+
body: await parseErrorBody(output.body, context),
|
|
631
631
|
};
|
|
632
632
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
633
633
|
switch (errorCode) {
|
|
@@ -667,7 +667,7 @@ exports.deserializeAws_json1_1PutPipelineDefinitionCommand = deserializeAws_json
|
|
|
667
667
|
const deserializeAws_json1_1PutPipelineDefinitionCommandError = async (output, context) => {
|
|
668
668
|
const parsedOutput = {
|
|
669
669
|
...output,
|
|
670
|
-
body: await
|
|
670
|
+
body: await parseErrorBody(output.body, context),
|
|
671
671
|
};
|
|
672
672
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
673
673
|
switch (errorCode) {
|
|
@@ -710,7 +710,7 @@ exports.deserializeAws_json1_1QueryObjectsCommand = deserializeAws_json1_1QueryO
|
|
|
710
710
|
const deserializeAws_json1_1QueryObjectsCommandError = async (output, context) => {
|
|
711
711
|
const parsedOutput = {
|
|
712
712
|
...output,
|
|
713
|
-
body: await
|
|
713
|
+
body: await parseErrorBody(output.body, context),
|
|
714
714
|
};
|
|
715
715
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
716
716
|
switch (errorCode) {
|
|
@@ -753,7 +753,7 @@ exports.deserializeAws_json1_1RemoveTagsCommand = deserializeAws_json1_1RemoveTa
|
|
|
753
753
|
const deserializeAws_json1_1RemoveTagsCommandError = async (output, context) => {
|
|
754
754
|
const parsedOutput = {
|
|
755
755
|
...output,
|
|
756
|
-
body: await
|
|
756
|
+
body: await parseErrorBody(output.body, context),
|
|
757
757
|
};
|
|
758
758
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
759
759
|
switch (errorCode) {
|
|
@@ -796,7 +796,7 @@ exports.deserializeAws_json1_1ReportTaskProgressCommand = deserializeAws_json1_1
|
|
|
796
796
|
const deserializeAws_json1_1ReportTaskProgressCommandError = async (output, context) => {
|
|
797
797
|
const parsedOutput = {
|
|
798
798
|
...output,
|
|
799
|
-
body: await
|
|
799
|
+
body: await parseErrorBody(output.body, context),
|
|
800
800
|
};
|
|
801
801
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
802
802
|
switch (errorCode) {
|
|
@@ -842,7 +842,7 @@ exports.deserializeAws_json1_1ReportTaskRunnerHeartbeatCommand = deserializeAws_
|
|
|
842
842
|
const deserializeAws_json1_1ReportTaskRunnerHeartbeatCommandError = async (output, context) => {
|
|
843
843
|
const parsedOutput = {
|
|
844
844
|
...output,
|
|
845
|
-
body: await
|
|
845
|
+
body: await parseErrorBody(output.body, context),
|
|
846
846
|
};
|
|
847
847
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
848
848
|
switch (errorCode) {
|
|
@@ -876,7 +876,7 @@ exports.deserializeAws_json1_1SetStatusCommand = deserializeAws_json1_1SetStatus
|
|
|
876
876
|
const deserializeAws_json1_1SetStatusCommandError = async (output, context) => {
|
|
877
877
|
const parsedOutput = {
|
|
878
878
|
...output,
|
|
879
|
-
body: await
|
|
879
|
+
body: await parseErrorBody(output.body, context),
|
|
880
880
|
};
|
|
881
881
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
882
882
|
switch (errorCode) {
|
|
@@ -919,7 +919,7 @@ exports.deserializeAws_json1_1SetTaskStatusCommand = deserializeAws_json1_1SetTa
|
|
|
919
919
|
const deserializeAws_json1_1SetTaskStatusCommandError = async (output, context) => {
|
|
920
920
|
const parsedOutput = {
|
|
921
921
|
...output,
|
|
922
|
-
body: await
|
|
922
|
+
body: await parseErrorBody(output.body, context),
|
|
923
923
|
};
|
|
924
924
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
925
925
|
switch (errorCode) {
|
|
@@ -965,7 +965,7 @@ exports.deserializeAws_json1_1ValidatePipelineDefinitionCommand = deserializeAws
|
|
|
965
965
|
const deserializeAws_json1_1ValidatePipelineDefinitionCommandError = async (output, context) => {
|
|
966
966
|
const parsedOutput = {
|
|
967
967
|
...output,
|
|
968
|
-
body: await
|
|
968
|
+
body: await parseErrorBody(output.body, context),
|
|
969
969
|
};
|
|
970
970
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
971
971
|
switch (errorCode) {
|
|
@@ -1694,6 +1694,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
1694
1694
|
}
|
|
1695
1695
|
return {};
|
|
1696
1696
|
});
|
|
1697
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
1698
|
+
var _a;
|
|
1699
|
+
const value = await parseBody(errorBody, context);
|
|
1700
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
1701
|
+
return value;
|
|
1702
|
+
};
|
|
1697
1703
|
const loadRestJsonErrorCode = (output, data) => {
|
|
1698
1704
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1699
1705
|
const sanitizeErrorCode = (rawValue) => {
|
package/dist-es/DataPipeline.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { ActivatePipelineCommand, } from "./commands/ActivatePipelineCommand";
|
|
3
2
|
import { AddTagsCommand } from "./commands/AddTagsCommand";
|
|
4
3
|
import { CreatePipelineCommand, } from "./commands/CreatePipelineCommand";
|
|
@@ -19,277 +18,271 @@ import { SetStatusCommand } from "./commands/SetStatusCommand";
|
|
|
19
18
|
import { SetTaskStatusCommand, } from "./commands/SetTaskStatusCommand";
|
|
20
19
|
import { ValidatePipelineDefinitionCommand, } from "./commands/ValidatePipelineDefinitionCommand";
|
|
21
20
|
import { DataPipelineClient } from "./DataPipelineClient";
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
}
|
|
27
|
-
DataPipeline.prototype.activatePipeline = function (args, optionsOrCb, cb) {
|
|
28
|
-
var command = new ActivatePipelineCommand(args);
|
|
21
|
+
export class DataPipeline extends DataPipelineClient {
|
|
22
|
+
activatePipeline(args, optionsOrCb, cb) {
|
|
23
|
+
const command = new ActivatePipelineCommand(args);
|
|
29
24
|
if (typeof optionsOrCb === "function") {
|
|
30
25
|
this.send(command, optionsOrCb);
|
|
31
26
|
}
|
|
32
27
|
else if (typeof cb === "function") {
|
|
33
28
|
if (typeof optionsOrCb !== "object")
|
|
34
|
-
throw new Error(
|
|
29
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
35
30
|
this.send(command, optionsOrCb || {}, cb);
|
|
36
31
|
}
|
|
37
32
|
else {
|
|
38
33
|
return this.send(command, optionsOrCb);
|
|
39
34
|
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
}
|
|
36
|
+
addTags(args, optionsOrCb, cb) {
|
|
37
|
+
const command = new AddTagsCommand(args);
|
|
43
38
|
if (typeof optionsOrCb === "function") {
|
|
44
39
|
this.send(command, optionsOrCb);
|
|
45
40
|
}
|
|
46
41
|
else if (typeof cb === "function") {
|
|
47
42
|
if (typeof optionsOrCb !== "object")
|
|
48
|
-
throw new Error(
|
|
43
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
49
44
|
this.send(command, optionsOrCb || {}, cb);
|
|
50
45
|
}
|
|
51
46
|
else {
|
|
52
47
|
return this.send(command, optionsOrCb);
|
|
53
48
|
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
}
|
|
50
|
+
createPipeline(args, optionsOrCb, cb) {
|
|
51
|
+
const command = new CreatePipelineCommand(args);
|
|
57
52
|
if (typeof optionsOrCb === "function") {
|
|
58
53
|
this.send(command, optionsOrCb);
|
|
59
54
|
}
|
|
60
55
|
else if (typeof cb === "function") {
|
|
61
56
|
if (typeof optionsOrCb !== "object")
|
|
62
|
-
throw new Error(
|
|
57
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
63
58
|
this.send(command, optionsOrCb || {}, cb);
|
|
64
59
|
}
|
|
65
60
|
else {
|
|
66
61
|
return this.send(command, optionsOrCb);
|
|
67
62
|
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
63
|
+
}
|
|
64
|
+
deactivatePipeline(args, optionsOrCb, cb) {
|
|
65
|
+
const command = new DeactivatePipelineCommand(args);
|
|
71
66
|
if (typeof optionsOrCb === "function") {
|
|
72
67
|
this.send(command, optionsOrCb);
|
|
73
68
|
}
|
|
74
69
|
else if (typeof cb === "function") {
|
|
75
70
|
if (typeof optionsOrCb !== "object")
|
|
76
|
-
throw new Error(
|
|
71
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
77
72
|
this.send(command, optionsOrCb || {}, cb);
|
|
78
73
|
}
|
|
79
74
|
else {
|
|
80
75
|
return this.send(command, optionsOrCb);
|
|
81
76
|
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
77
|
+
}
|
|
78
|
+
deletePipeline(args, optionsOrCb, cb) {
|
|
79
|
+
const command = new DeletePipelineCommand(args);
|
|
85
80
|
if (typeof optionsOrCb === "function") {
|
|
86
81
|
this.send(command, optionsOrCb);
|
|
87
82
|
}
|
|
88
83
|
else if (typeof cb === "function") {
|
|
89
84
|
if (typeof optionsOrCb !== "object")
|
|
90
|
-
throw new Error(
|
|
85
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
91
86
|
this.send(command, optionsOrCb || {}, cb);
|
|
92
87
|
}
|
|
93
88
|
else {
|
|
94
89
|
return this.send(command, optionsOrCb);
|
|
95
90
|
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
|
|
91
|
+
}
|
|
92
|
+
describeObjects(args, optionsOrCb, cb) {
|
|
93
|
+
const command = new DescribeObjectsCommand(args);
|
|
99
94
|
if (typeof optionsOrCb === "function") {
|
|
100
95
|
this.send(command, optionsOrCb);
|
|
101
96
|
}
|
|
102
97
|
else if (typeof cb === "function") {
|
|
103
98
|
if (typeof optionsOrCb !== "object")
|
|
104
|
-
throw new Error(
|
|
99
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
105
100
|
this.send(command, optionsOrCb || {}, cb);
|
|
106
101
|
}
|
|
107
102
|
else {
|
|
108
103
|
return this.send(command, optionsOrCb);
|
|
109
104
|
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
|
|
105
|
+
}
|
|
106
|
+
describePipelines(args, optionsOrCb, cb) {
|
|
107
|
+
const command = new DescribePipelinesCommand(args);
|
|
113
108
|
if (typeof optionsOrCb === "function") {
|
|
114
109
|
this.send(command, optionsOrCb);
|
|
115
110
|
}
|
|
116
111
|
else if (typeof cb === "function") {
|
|
117
112
|
if (typeof optionsOrCb !== "object")
|
|
118
|
-
throw new Error(
|
|
113
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
119
114
|
this.send(command, optionsOrCb || {}, cb);
|
|
120
115
|
}
|
|
121
116
|
else {
|
|
122
117
|
return this.send(command, optionsOrCb);
|
|
123
118
|
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
119
|
+
}
|
|
120
|
+
evaluateExpression(args, optionsOrCb, cb) {
|
|
121
|
+
const command = new EvaluateExpressionCommand(args);
|
|
127
122
|
if (typeof optionsOrCb === "function") {
|
|
128
123
|
this.send(command, optionsOrCb);
|
|
129
124
|
}
|
|
130
125
|
else if (typeof cb === "function") {
|
|
131
126
|
if (typeof optionsOrCb !== "object")
|
|
132
|
-
throw new Error(
|
|
127
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
133
128
|
this.send(command, optionsOrCb || {}, cb);
|
|
134
129
|
}
|
|
135
130
|
else {
|
|
136
131
|
return this.send(command, optionsOrCb);
|
|
137
132
|
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
|
|
133
|
+
}
|
|
134
|
+
getPipelineDefinition(args, optionsOrCb, cb) {
|
|
135
|
+
const command = new GetPipelineDefinitionCommand(args);
|
|
141
136
|
if (typeof optionsOrCb === "function") {
|
|
142
137
|
this.send(command, optionsOrCb);
|
|
143
138
|
}
|
|
144
139
|
else if (typeof cb === "function") {
|
|
145
140
|
if (typeof optionsOrCb !== "object")
|
|
146
|
-
throw new Error(
|
|
141
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
147
142
|
this.send(command, optionsOrCb || {}, cb);
|
|
148
143
|
}
|
|
149
144
|
else {
|
|
150
145
|
return this.send(command, optionsOrCb);
|
|
151
146
|
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
147
|
+
}
|
|
148
|
+
listPipelines(args, optionsOrCb, cb) {
|
|
149
|
+
const command = new ListPipelinesCommand(args);
|
|
155
150
|
if (typeof optionsOrCb === "function") {
|
|
156
151
|
this.send(command, optionsOrCb);
|
|
157
152
|
}
|
|
158
153
|
else if (typeof cb === "function") {
|
|
159
154
|
if (typeof optionsOrCb !== "object")
|
|
160
|
-
throw new Error(
|
|
155
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
161
156
|
this.send(command, optionsOrCb || {}, cb);
|
|
162
157
|
}
|
|
163
158
|
else {
|
|
164
159
|
return this.send(command, optionsOrCb);
|
|
165
160
|
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
|
|
161
|
+
}
|
|
162
|
+
pollForTask(args, optionsOrCb, cb) {
|
|
163
|
+
const command = new PollForTaskCommand(args);
|
|
169
164
|
if (typeof optionsOrCb === "function") {
|
|
170
165
|
this.send(command, optionsOrCb);
|
|
171
166
|
}
|
|
172
167
|
else if (typeof cb === "function") {
|
|
173
168
|
if (typeof optionsOrCb !== "object")
|
|
174
|
-
throw new Error(
|
|
169
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
175
170
|
this.send(command, optionsOrCb || {}, cb);
|
|
176
171
|
}
|
|
177
172
|
else {
|
|
178
173
|
return this.send(command, optionsOrCb);
|
|
179
174
|
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
|
|
175
|
+
}
|
|
176
|
+
putPipelineDefinition(args, optionsOrCb, cb) {
|
|
177
|
+
const command = new PutPipelineDefinitionCommand(args);
|
|
183
178
|
if (typeof optionsOrCb === "function") {
|
|
184
179
|
this.send(command, optionsOrCb);
|
|
185
180
|
}
|
|
186
181
|
else if (typeof cb === "function") {
|
|
187
182
|
if (typeof optionsOrCb !== "object")
|
|
188
|
-
throw new Error(
|
|
183
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
189
184
|
this.send(command, optionsOrCb || {}, cb);
|
|
190
185
|
}
|
|
191
186
|
else {
|
|
192
187
|
return this.send(command, optionsOrCb);
|
|
193
188
|
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
|
|
189
|
+
}
|
|
190
|
+
queryObjects(args, optionsOrCb, cb) {
|
|
191
|
+
const command = new QueryObjectsCommand(args);
|
|
197
192
|
if (typeof optionsOrCb === "function") {
|
|
198
193
|
this.send(command, optionsOrCb);
|
|
199
194
|
}
|
|
200
195
|
else if (typeof cb === "function") {
|
|
201
196
|
if (typeof optionsOrCb !== "object")
|
|
202
|
-
throw new Error(
|
|
197
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
203
198
|
this.send(command, optionsOrCb || {}, cb);
|
|
204
199
|
}
|
|
205
200
|
else {
|
|
206
201
|
return this.send(command, optionsOrCb);
|
|
207
202
|
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
|
|
203
|
+
}
|
|
204
|
+
removeTags(args, optionsOrCb, cb) {
|
|
205
|
+
const command = new RemoveTagsCommand(args);
|
|
211
206
|
if (typeof optionsOrCb === "function") {
|
|
212
207
|
this.send(command, optionsOrCb);
|
|
213
208
|
}
|
|
214
209
|
else if (typeof cb === "function") {
|
|
215
210
|
if (typeof optionsOrCb !== "object")
|
|
216
|
-
throw new Error(
|
|
211
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
217
212
|
this.send(command, optionsOrCb || {}, cb);
|
|
218
213
|
}
|
|
219
214
|
else {
|
|
220
215
|
return this.send(command, optionsOrCb);
|
|
221
216
|
}
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
|
|
217
|
+
}
|
|
218
|
+
reportTaskProgress(args, optionsOrCb, cb) {
|
|
219
|
+
const command = new ReportTaskProgressCommand(args);
|
|
225
220
|
if (typeof optionsOrCb === "function") {
|
|
226
221
|
this.send(command, optionsOrCb);
|
|
227
222
|
}
|
|
228
223
|
else if (typeof cb === "function") {
|
|
229
224
|
if (typeof optionsOrCb !== "object")
|
|
230
|
-
throw new Error(
|
|
225
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
231
226
|
this.send(command, optionsOrCb || {}, cb);
|
|
232
227
|
}
|
|
233
228
|
else {
|
|
234
229
|
return this.send(command, optionsOrCb);
|
|
235
230
|
}
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
|
|
231
|
+
}
|
|
232
|
+
reportTaskRunnerHeartbeat(args, optionsOrCb, cb) {
|
|
233
|
+
const command = new ReportTaskRunnerHeartbeatCommand(args);
|
|
239
234
|
if (typeof optionsOrCb === "function") {
|
|
240
235
|
this.send(command, optionsOrCb);
|
|
241
236
|
}
|
|
242
237
|
else if (typeof cb === "function") {
|
|
243
238
|
if (typeof optionsOrCb !== "object")
|
|
244
|
-
throw new Error(
|
|
239
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
245
240
|
this.send(command, optionsOrCb || {}, cb);
|
|
246
241
|
}
|
|
247
242
|
else {
|
|
248
243
|
return this.send(command, optionsOrCb);
|
|
249
244
|
}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
|
|
245
|
+
}
|
|
246
|
+
setStatus(args, optionsOrCb, cb) {
|
|
247
|
+
const command = new SetStatusCommand(args);
|
|
253
248
|
if (typeof optionsOrCb === "function") {
|
|
254
249
|
this.send(command, optionsOrCb);
|
|
255
250
|
}
|
|
256
251
|
else if (typeof cb === "function") {
|
|
257
252
|
if (typeof optionsOrCb !== "object")
|
|
258
|
-
throw new Error(
|
|
253
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
259
254
|
this.send(command, optionsOrCb || {}, cb);
|
|
260
255
|
}
|
|
261
256
|
else {
|
|
262
257
|
return this.send(command, optionsOrCb);
|
|
263
258
|
}
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
|
|
259
|
+
}
|
|
260
|
+
setTaskStatus(args, optionsOrCb, cb) {
|
|
261
|
+
const command = new SetTaskStatusCommand(args);
|
|
267
262
|
if (typeof optionsOrCb === "function") {
|
|
268
263
|
this.send(command, optionsOrCb);
|
|
269
264
|
}
|
|
270
265
|
else if (typeof cb === "function") {
|
|
271
266
|
if (typeof optionsOrCb !== "object")
|
|
272
|
-
throw new Error(
|
|
267
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
273
268
|
this.send(command, optionsOrCb || {}, cb);
|
|
274
269
|
}
|
|
275
270
|
else {
|
|
276
271
|
return this.send(command, optionsOrCb);
|
|
277
272
|
}
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
|
|
273
|
+
}
|
|
274
|
+
validatePipelineDefinition(args, optionsOrCb, cb) {
|
|
275
|
+
const command = new ValidatePipelineDefinitionCommand(args);
|
|
281
276
|
if (typeof optionsOrCb === "function") {
|
|
282
277
|
this.send(command, optionsOrCb);
|
|
283
278
|
}
|
|
284
279
|
else if (typeof cb === "function") {
|
|
285
280
|
if (typeof optionsOrCb !== "object")
|
|
286
|
-
throw new Error(
|
|
281
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
287
282
|
this.send(command, optionsOrCb || {}, cb);
|
|
288
283
|
}
|
|
289
284
|
else {
|
|
290
285
|
return this.send(command, optionsOrCb);
|
|
291
286
|
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
}(DataPipelineClient));
|
|
295
|
-
export { DataPipeline };
|
|
287
|
+
}
|
|
288
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
3
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
9
8
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
9
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
10
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
-
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
-
return _this;
|
|
11
|
+
export class DataPipelineClient extends __Client {
|
|
12
|
+
constructor(configuration) {
|
|
13
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
14
|
+
const _config_1 = resolveRegionConfig(_config_0);
|
|
15
|
+
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
16
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
17
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
18
|
+
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
19
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
20
|
+
super(_config_6);
|
|
21
|
+
this.config = _config_6;
|
|
22
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
23
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
25
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
33
29
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}(__Client));
|
|
39
|
-
export { DataPipelineClient };
|
|
30
|
+
destroy() {
|
|
31
|
+
super.destroy();
|
|
32
|
+
}
|
|
33
|
+
}
|