@aws-sdk/client-iot-jobs-data-plane 3.131.0 → 3.142.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 +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/DescribeJobExecutionCommand.js +2 -2
- package/dist-cjs/commands/GetPendingJobExecutionsCommand.js +2 -2
- package/dist-cjs/commands/StartNextPendingJobExecutionCommand.js +2 -2
- package/dist-cjs/commands/UpdateJobExecutionCommand.js +2 -2
- package/dist-cjs/models/models_0.js +45 -67
- package/dist-cjs/protocols/Aws_restJson1.js +64 -135
- package/dist-es/commands/DescribeJobExecutionCommand.js +3 -3
- package/dist-es/commands/GetPendingJobExecutionsCommand.js +3 -3
- package/dist-es/commands/StartNextPendingJobExecutionCommand.js +3 -3
- package/dist-es/commands/UpdateJobExecutionCommand.js +3 -3
- package/dist-es/models/models_0.js +11 -44
- package/dist-es/protocols/Aws_restJson1.js +81 -137
- package/dist-types/models/models_0.d.ts +44 -66
- package/dist-types/ts3.4/models/models_0.d.ts +22 -44
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { GetPendingJobExecutionsRequestFilterSensitiveLog, GetPendingJobExecutionsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1GetPendingJobExecutionsCommand, serializeAws_restJson1GetPendingJobExecutionsCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var GetPendingJobExecutionsCommand = (function (_super) {
|
|
7
7
|
__extends(GetPendingJobExecutionsCommand, _super);
|
|
@@ -20,8 +20,8 @@ var GetPendingJobExecutionsCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: GetPendingJobExecutionsRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetPendingJobExecutionsResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { StartNextPendingJobExecutionRequestFilterSensitiveLog, StartNextPendingJobExecutionResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1StartNextPendingJobExecutionCommand, serializeAws_restJson1StartNextPendingJobExecutionCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var StartNextPendingJobExecutionCommand = (function (_super) {
|
|
7
7
|
__extends(StartNextPendingJobExecutionCommand, _super);
|
|
@@ -20,8 +20,8 @@ var StartNextPendingJobExecutionCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: StartNextPendingJobExecutionRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: StartNextPendingJobExecutionResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { UpdateJobExecutionRequestFilterSensitiveLog, UpdateJobExecutionResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1UpdateJobExecutionCommand, serializeAws_restJson1UpdateJobExecutionCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var UpdateJobExecutionCommand = (function (_super) {
|
|
7
7
|
__extends(UpdateJobExecutionCommand, _super);
|
|
@@ -20,8 +20,8 @@ var UpdateJobExecutionCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: UpdateJobExecutionRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: UpdateJobExecutionResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -12,10 +12,6 @@ var CertificateValidationException = (function (_super) {
|
|
|
12
12
|
return CertificateValidationException;
|
|
13
13
|
}(__BaseException));
|
|
14
14
|
export { CertificateValidationException };
|
|
15
|
-
export var DescribeJobExecutionRequest;
|
|
16
|
-
(function (DescribeJobExecutionRequest) {
|
|
17
|
-
DescribeJobExecutionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
18
|
-
})(DescribeJobExecutionRequest || (DescribeJobExecutionRequest = {}));
|
|
19
15
|
export var JobExecutionStatus;
|
|
20
16
|
(function (JobExecutionStatus) {
|
|
21
17
|
JobExecutionStatus["CANCELED"] = "CANCELED";
|
|
@@ -27,14 +23,6 @@ export var JobExecutionStatus;
|
|
|
27
23
|
JobExecutionStatus["SUCCEEDED"] = "SUCCEEDED";
|
|
28
24
|
JobExecutionStatus["TIMED_OUT"] = "TIMED_OUT";
|
|
29
25
|
})(JobExecutionStatus || (JobExecutionStatus = {}));
|
|
30
|
-
export var JobExecution;
|
|
31
|
-
(function (JobExecution) {
|
|
32
|
-
JobExecution.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
33
|
-
})(JobExecution || (JobExecution = {}));
|
|
34
|
-
export var DescribeJobExecutionResponse;
|
|
35
|
-
(function (DescribeJobExecutionResponse) {
|
|
36
|
-
DescribeJobExecutionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
37
|
-
})(DescribeJobExecutionResponse || (DescribeJobExecutionResponse = {}));
|
|
38
26
|
var InvalidRequestException = (function (_super) {
|
|
39
27
|
__extends(InvalidRequestException, _super);
|
|
40
28
|
function InvalidRequestException(opts) {
|
|
@@ -96,18 +84,6 @@ var ThrottlingException = (function (_super) {
|
|
|
96
84
|
return ThrottlingException;
|
|
97
85
|
}(__BaseException));
|
|
98
86
|
export { ThrottlingException };
|
|
99
|
-
export var GetPendingJobExecutionsRequest;
|
|
100
|
-
(function (GetPendingJobExecutionsRequest) {
|
|
101
|
-
GetPendingJobExecutionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
102
|
-
})(GetPendingJobExecutionsRequest || (GetPendingJobExecutionsRequest = {}));
|
|
103
|
-
export var JobExecutionSummary;
|
|
104
|
-
(function (JobExecutionSummary) {
|
|
105
|
-
JobExecutionSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
106
|
-
})(JobExecutionSummary || (JobExecutionSummary = {}));
|
|
107
|
-
export var GetPendingJobExecutionsResponse;
|
|
108
|
-
(function (GetPendingJobExecutionsResponse) {
|
|
109
|
-
GetPendingJobExecutionsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
110
|
-
})(GetPendingJobExecutionsResponse || (GetPendingJobExecutionsResponse = {}));
|
|
111
87
|
var InvalidStateTransitionException = (function (_super) {
|
|
112
88
|
__extends(InvalidStateTransitionException, _super);
|
|
113
89
|
function InvalidStateTransitionException(opts) {
|
|
@@ -120,23 +96,14 @@ var InvalidStateTransitionException = (function (_super) {
|
|
|
120
96
|
return InvalidStateTransitionException;
|
|
121
97
|
}(__BaseException));
|
|
122
98
|
export { InvalidStateTransitionException };
|
|
123
|
-
export var
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
export var
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
export var
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
})(UpdateJobExecutionRequest || (UpdateJobExecutionRequest = {}));
|
|
135
|
-
export var JobExecutionState;
|
|
136
|
-
(function (JobExecutionState) {
|
|
137
|
-
JobExecutionState.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
138
|
-
})(JobExecutionState || (JobExecutionState = {}));
|
|
139
|
-
export var UpdateJobExecutionResponse;
|
|
140
|
-
(function (UpdateJobExecutionResponse) {
|
|
141
|
-
UpdateJobExecutionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
142
|
-
})(UpdateJobExecutionResponse || (UpdateJobExecutionResponse = {}));
|
|
99
|
+
export var DescribeJobExecutionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
100
|
+
export var JobExecutionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
101
|
+
export var DescribeJobExecutionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
102
|
+
export var GetPendingJobExecutionsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
103
|
+
export var JobExecutionSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
104
|
+
export var GetPendingJobExecutionsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
105
|
+
export var StartNextPendingJobExecutionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
106
|
+
export var StartNextPendingJobExecutionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
107
|
+
export var UpdateJobExecutionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
108
|
+
export var JobExecutionStateFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
109
|
+
export var UpdateJobExecutionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { IoTJobsDataPlaneServiceException as __BaseException } from "../models/IoTJobsDataPlaneServiceException";
|
|
5
5
|
import { CertificateValidationException, InvalidRequestException, InvalidStateTransitionException, ResourceNotFoundException, ServiceUnavailableException, TerminalStateException, ThrottlingException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1DescribeJobExecutionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
7
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
8
8
|
return __generator(this, function (_c) {
|
|
9
9
|
switch (_c.label) {
|
|
10
10
|
case 0: return [4, context.endpoint()];
|
|
@@ -12,27 +12,12 @@ export var serializeAws_restJson1DescribeJobExecutionCommand = function (input,
|
|
|
12
12
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
13
13
|
headers = {};
|
|
14
14
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/things/{thingName}/jobs/{jobId}";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
throw new Error("No value provided for input HTTP label: jobId.");
|
|
24
|
-
}
|
|
25
|
-
if (input.thingName !== undefined) {
|
|
26
|
-
labelValue = input.thingName;
|
|
27
|
-
if (labelValue.length <= 0) {
|
|
28
|
-
throw new Error("Empty value provided for input HTTP label: thingName.");
|
|
29
|
-
}
|
|
30
|
-
resolvedPath = resolvedPath.replace("{thingName}", __extendedEncodeURIComponent(labelValue));
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
throw new Error("No value provided for input HTTP label: thingName.");
|
|
34
|
-
}
|
|
35
|
-
query = __assign(__assign({}, (input.includeJobDocument !== undefined && { includeJobDocument: input.includeJobDocument.toString() })), (input.executionNumber !== undefined && { executionNumber: input.executionNumber.toString() }));
|
|
15
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "jobId", function () { return input.jobId; }, "{jobId}", false);
|
|
16
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "thingName", function () { return input.thingName; }, "{thingName}", false);
|
|
17
|
+
query = map({
|
|
18
|
+
includeJobDocument: [function () { return input.includeJobDocument !== void 0; }, function () { return input.includeJobDocument.toString(); }],
|
|
19
|
+
executionNumber: [function () { return input.executionNumber !== void 0; }, function () { return input.executionNumber.toString(); }],
|
|
20
|
+
});
|
|
36
21
|
return [2, new __HttpRequest({
|
|
37
22
|
protocol: protocol,
|
|
38
23
|
hostname: hostname,
|
|
@@ -47,7 +32,7 @@ export var serializeAws_restJson1DescribeJobExecutionCommand = function (input,
|
|
|
47
32
|
});
|
|
48
33
|
}); };
|
|
49
34
|
export var serializeAws_restJson1GetPendingJobExecutionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
50
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
35
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
51
36
|
return __generator(this, function (_c) {
|
|
52
37
|
switch (_c.label) {
|
|
53
38
|
case 0: return [4, context.endpoint()];
|
|
@@ -55,16 +40,7 @@ export var serializeAws_restJson1GetPendingJobExecutionsCommand = function (inpu
|
|
|
55
40
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
56
41
|
headers = {};
|
|
57
42
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/things/{thingName}/jobs";
|
|
58
|
-
|
|
59
|
-
labelValue = input.thingName;
|
|
60
|
-
if (labelValue.length <= 0) {
|
|
61
|
-
throw new Error("Empty value provided for input HTTP label: thingName.");
|
|
62
|
-
}
|
|
63
|
-
resolvedPath = resolvedPath.replace("{thingName}", __extendedEncodeURIComponent(labelValue));
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
throw new Error("No value provided for input HTTP label: thingName.");
|
|
67
|
-
}
|
|
43
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "thingName", function () { return input.thingName; }, "{thingName}", false);
|
|
68
44
|
return [2, new __HttpRequest({
|
|
69
45
|
protocol: protocol,
|
|
70
46
|
hostname: hostname,
|
|
@@ -78,7 +54,7 @@ export var serializeAws_restJson1GetPendingJobExecutionsCommand = function (inpu
|
|
|
78
54
|
});
|
|
79
55
|
}); };
|
|
80
56
|
export var serializeAws_restJson1StartNextPendingJobExecutionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
81
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
57
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
82
58
|
return __generator(this, function (_c) {
|
|
83
59
|
switch (_c.label) {
|
|
84
60
|
case 0: return [4, context.endpoint()];
|
|
@@ -88,16 +64,7 @@ export var serializeAws_restJson1StartNextPendingJobExecutionCommand = function
|
|
|
88
64
|
"content-type": "application/json",
|
|
89
65
|
};
|
|
90
66
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/things/{thingName}/jobs/$next";
|
|
91
|
-
|
|
92
|
-
labelValue = input.thingName;
|
|
93
|
-
if (labelValue.length <= 0) {
|
|
94
|
-
throw new Error("Empty value provided for input HTTP label: thingName.");
|
|
95
|
-
}
|
|
96
|
-
resolvedPath = resolvedPath.replace("{thingName}", __extendedEncodeURIComponent(labelValue));
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
throw new Error("No value provided for input HTTP label: thingName.");
|
|
100
|
-
}
|
|
67
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "thingName", function () { return input.thingName; }, "{thingName}", false);
|
|
101
68
|
body = JSON.stringify(__assign(__assign({}, (input.statusDetails != null && {
|
|
102
69
|
statusDetails: serializeAws_restJson1DetailsMap(input.statusDetails, context),
|
|
103
70
|
})), (input.stepTimeoutInMinutes != null && { stepTimeoutInMinutes: input.stepTimeoutInMinutes })));
|
|
@@ -114,7 +81,7 @@ export var serializeAws_restJson1StartNextPendingJobExecutionCommand = function
|
|
|
114
81
|
});
|
|
115
82
|
}); };
|
|
116
83
|
export var serializeAws_restJson1UpdateJobExecutionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
117
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
84
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
118
85
|
return __generator(this, function (_c) {
|
|
119
86
|
switch (_c.label) {
|
|
120
87
|
case 0: return [4, context.endpoint()];
|
|
@@ -124,26 +91,8 @@ export var serializeAws_restJson1UpdateJobExecutionCommand = function (input, co
|
|
|
124
91
|
"content-type": "application/json",
|
|
125
92
|
};
|
|
126
93
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/things/{thingName}/jobs/{jobId}";
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
if (labelValue.length <= 0) {
|
|
130
|
-
throw new Error("Empty value provided for input HTTP label: jobId.");
|
|
131
|
-
}
|
|
132
|
-
resolvedPath = resolvedPath.replace("{jobId}", __extendedEncodeURIComponent(labelValue));
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
throw new Error("No value provided for input HTTP label: jobId.");
|
|
136
|
-
}
|
|
137
|
-
if (input.thingName !== undefined) {
|
|
138
|
-
labelValue = input.thingName;
|
|
139
|
-
if (labelValue.length <= 0) {
|
|
140
|
-
throw new Error("Empty value provided for input HTTP label: thingName.");
|
|
141
|
-
}
|
|
142
|
-
resolvedPath = resolvedPath.replace("{thingName}", __extendedEncodeURIComponent(labelValue));
|
|
143
|
-
}
|
|
144
|
-
else {
|
|
145
|
-
throw new Error("No value provided for input HTTP label: thingName.");
|
|
146
|
-
}
|
|
94
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "jobId", function () { return input.jobId; }, "{jobId}", false);
|
|
95
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "thingName", function () { return input.thingName; }, "{thingName}", false);
|
|
147
96
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.executionNumber != null && { executionNumber: input.executionNumber })), (input.expectedVersion != null && { expectedVersion: input.expectedVersion })), (input.includeJobDocument != null && { includeJobDocument: input.includeJobDocument })), (input.includeJobExecutionState != null && { includeJobExecutionState: input.includeJobExecutionState })), (input.status != null && { status: input.status })), (input.statusDetails != null && {
|
|
148
97
|
statusDetails: serializeAws_restJson1DetailsMap(input.statusDetails, context),
|
|
149
98
|
})), (input.stepTimeoutInMinutes != null && { stepTimeoutInMinutes: input.stepTimeoutInMinutes })));
|
|
@@ -167,24 +116,23 @@ export var deserializeAws_restJson1DescribeJobExecutionCommand = function (outpu
|
|
|
167
116
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
168
117
|
return [2, deserializeAws_restJson1DescribeJobExecutionCommandError(output, context)];
|
|
169
118
|
}
|
|
170
|
-
contents = {
|
|
119
|
+
contents = map({
|
|
171
120
|
$metadata: deserializeMetadata(output),
|
|
172
|
-
|
|
173
|
-
};
|
|
121
|
+
});
|
|
174
122
|
_a = __expectNonNull;
|
|
175
123
|
_b = __expectObject;
|
|
176
124
|
return [4, parseBody(output.body, context)];
|
|
177
125
|
case 1:
|
|
178
126
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
179
|
-
if (data.execution
|
|
127
|
+
if (data.execution != null) {
|
|
180
128
|
contents.execution = deserializeAws_restJson1JobExecution(data.execution, context);
|
|
181
129
|
}
|
|
182
|
-
return [2,
|
|
130
|
+
return [2, contents];
|
|
183
131
|
}
|
|
184
132
|
});
|
|
185
133
|
}); };
|
|
186
134
|
var deserializeAws_restJson1DescribeJobExecutionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
187
|
-
var parsedOutput, _a,
|
|
135
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
188
136
|
var _c;
|
|
189
137
|
return __generator(this, function (_d) {
|
|
190
138
|
switch (_d.label) {
|
|
@@ -225,14 +173,14 @@ var deserializeAws_restJson1DescribeJobExecutionCommandError = function (output,
|
|
|
225
173
|
case 13: throw _d.sent();
|
|
226
174
|
case 14:
|
|
227
175
|
parsedBody = parsedOutput.body;
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
$metadata: $metadata,
|
|
176
|
+
throwDefaultError({
|
|
177
|
+
output: output,
|
|
178
|
+
parsedBody: parsedBody,
|
|
179
|
+
exceptionCtor: __BaseException,
|
|
180
|
+
errorCode: errorCode,
|
|
234
181
|
});
|
|
235
|
-
|
|
182
|
+
_d.label = 15;
|
|
183
|
+
case 15: return [2];
|
|
236
184
|
}
|
|
237
185
|
});
|
|
238
186
|
}); };
|
|
@@ -244,28 +192,26 @@ export var deserializeAws_restJson1GetPendingJobExecutionsCommand = function (ou
|
|
|
244
192
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
245
193
|
return [2, deserializeAws_restJson1GetPendingJobExecutionsCommandError(output, context)];
|
|
246
194
|
}
|
|
247
|
-
contents = {
|
|
195
|
+
contents = map({
|
|
248
196
|
$metadata: deserializeMetadata(output),
|
|
249
|
-
|
|
250
|
-
queuedJobs: undefined,
|
|
251
|
-
};
|
|
197
|
+
});
|
|
252
198
|
_a = __expectNonNull;
|
|
253
199
|
_b = __expectObject;
|
|
254
200
|
return [4, parseBody(output.body, context)];
|
|
255
201
|
case 1:
|
|
256
202
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
257
|
-
if (data.inProgressJobs
|
|
203
|
+
if (data.inProgressJobs != null) {
|
|
258
204
|
contents.inProgressJobs = deserializeAws_restJson1JobExecutionSummaryList(data.inProgressJobs, context);
|
|
259
205
|
}
|
|
260
|
-
if (data.queuedJobs
|
|
206
|
+
if (data.queuedJobs != null) {
|
|
261
207
|
contents.queuedJobs = deserializeAws_restJson1JobExecutionSummaryList(data.queuedJobs, context);
|
|
262
208
|
}
|
|
263
|
-
return [2,
|
|
209
|
+
return [2, contents];
|
|
264
210
|
}
|
|
265
211
|
});
|
|
266
212
|
}); };
|
|
267
213
|
var deserializeAws_restJson1GetPendingJobExecutionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
268
|
-
var parsedOutput, _a,
|
|
214
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
269
215
|
var _c;
|
|
270
216
|
return __generator(this, function (_d) {
|
|
271
217
|
switch (_d.label) {
|
|
@@ -302,14 +248,14 @@ var deserializeAws_restJson1GetPendingJobExecutionsCommandError = function (outp
|
|
|
302
248
|
case 11: throw _d.sent();
|
|
303
249
|
case 12:
|
|
304
250
|
parsedBody = parsedOutput.body;
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
$metadata: $metadata,
|
|
251
|
+
throwDefaultError({
|
|
252
|
+
output: output,
|
|
253
|
+
parsedBody: parsedBody,
|
|
254
|
+
exceptionCtor: __BaseException,
|
|
255
|
+
errorCode: errorCode,
|
|
311
256
|
});
|
|
312
|
-
|
|
257
|
+
_d.label = 13;
|
|
258
|
+
case 13: return [2];
|
|
313
259
|
}
|
|
314
260
|
});
|
|
315
261
|
}); };
|
|
@@ -321,24 +267,23 @@ export var deserializeAws_restJson1StartNextPendingJobExecutionCommand = functio
|
|
|
321
267
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
322
268
|
return [2, deserializeAws_restJson1StartNextPendingJobExecutionCommandError(output, context)];
|
|
323
269
|
}
|
|
324
|
-
contents = {
|
|
270
|
+
contents = map({
|
|
325
271
|
$metadata: deserializeMetadata(output),
|
|
326
|
-
|
|
327
|
-
};
|
|
272
|
+
});
|
|
328
273
|
_a = __expectNonNull;
|
|
329
274
|
_b = __expectObject;
|
|
330
275
|
return [4, parseBody(output.body, context)];
|
|
331
276
|
case 1:
|
|
332
277
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
333
|
-
if (data.execution
|
|
278
|
+
if (data.execution != null) {
|
|
334
279
|
contents.execution = deserializeAws_restJson1JobExecution(data.execution, context);
|
|
335
280
|
}
|
|
336
|
-
return [2,
|
|
281
|
+
return [2, contents];
|
|
337
282
|
}
|
|
338
283
|
});
|
|
339
284
|
}); };
|
|
340
285
|
var deserializeAws_restJson1StartNextPendingJobExecutionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
341
|
-
var parsedOutput, _a,
|
|
286
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
342
287
|
var _c;
|
|
343
288
|
return __generator(this, function (_d) {
|
|
344
289
|
switch (_d.label) {
|
|
@@ -375,14 +320,14 @@ var deserializeAws_restJson1StartNextPendingJobExecutionCommandError = function
|
|
|
375
320
|
case 11: throw _d.sent();
|
|
376
321
|
case 12:
|
|
377
322
|
parsedBody = parsedOutput.body;
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
$metadata: $metadata,
|
|
323
|
+
throwDefaultError({
|
|
324
|
+
output: output,
|
|
325
|
+
parsedBody: parsedBody,
|
|
326
|
+
exceptionCtor: __BaseException,
|
|
327
|
+
errorCode: errorCode,
|
|
384
328
|
});
|
|
385
|
-
|
|
329
|
+
_d.label = 13;
|
|
330
|
+
case 13: return [2];
|
|
386
331
|
}
|
|
387
332
|
});
|
|
388
333
|
}); };
|
|
@@ -394,28 +339,26 @@ export var deserializeAws_restJson1UpdateJobExecutionCommand = function (output,
|
|
|
394
339
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
395
340
|
return [2, deserializeAws_restJson1UpdateJobExecutionCommandError(output, context)];
|
|
396
341
|
}
|
|
397
|
-
contents = {
|
|
342
|
+
contents = map({
|
|
398
343
|
$metadata: deserializeMetadata(output),
|
|
399
|
-
|
|
400
|
-
jobDocument: undefined,
|
|
401
|
-
};
|
|
344
|
+
});
|
|
402
345
|
_a = __expectNonNull;
|
|
403
346
|
_b = __expectObject;
|
|
404
347
|
return [4, parseBody(output.body, context)];
|
|
405
348
|
case 1:
|
|
406
349
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
407
|
-
if (data.executionState
|
|
350
|
+
if (data.executionState != null) {
|
|
408
351
|
contents.executionState = deserializeAws_restJson1JobExecutionState(data.executionState, context);
|
|
409
352
|
}
|
|
410
|
-
if (data.jobDocument
|
|
353
|
+
if (data.jobDocument != null) {
|
|
411
354
|
contents.jobDocument = __expectString(data.jobDocument);
|
|
412
355
|
}
|
|
413
|
-
return [2,
|
|
356
|
+
return [2, contents];
|
|
414
357
|
}
|
|
415
358
|
});
|
|
416
359
|
}); };
|
|
417
360
|
var deserializeAws_restJson1UpdateJobExecutionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
418
|
-
var parsedOutput, _a,
|
|
361
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
419
362
|
var _c;
|
|
420
363
|
return __generator(this, function (_d) {
|
|
421
364
|
switch (_d.label) {
|
|
@@ -456,23 +399,24 @@ var deserializeAws_restJson1UpdateJobExecutionCommandError = function (output, c
|
|
|
456
399
|
case 13: throw _d.sent();
|
|
457
400
|
case 14:
|
|
458
401
|
parsedBody = parsedOutput.body;
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
$metadata: $metadata,
|
|
402
|
+
throwDefaultError({
|
|
403
|
+
output: output,
|
|
404
|
+
parsedBody: parsedBody,
|
|
405
|
+
exceptionCtor: __BaseException,
|
|
406
|
+
errorCode: errorCode,
|
|
465
407
|
});
|
|
466
|
-
|
|
408
|
+
_d.label = 15;
|
|
409
|
+
case 15: return [2];
|
|
467
410
|
}
|
|
468
411
|
});
|
|
469
412
|
}); };
|
|
413
|
+
var map = __map;
|
|
470
414
|
var deserializeAws_restJson1CertificateValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
471
415
|
var contents, data, exception;
|
|
472
416
|
return __generator(this, function (_a) {
|
|
473
|
-
contents = {};
|
|
417
|
+
contents = map({});
|
|
474
418
|
data = parsedOutput.body;
|
|
475
|
-
if (data.message
|
|
419
|
+
if (data.message != null) {
|
|
476
420
|
contents.message = __expectString(data.message);
|
|
477
421
|
}
|
|
478
422
|
exception = new CertificateValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -482,9 +426,9 @@ var deserializeAws_restJson1CertificateValidationExceptionResponse = function (p
|
|
|
482
426
|
var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
483
427
|
var contents, data, exception;
|
|
484
428
|
return __generator(this, function (_a) {
|
|
485
|
-
contents = {};
|
|
429
|
+
contents = map({});
|
|
486
430
|
data = parsedOutput.body;
|
|
487
|
-
if (data.message
|
|
431
|
+
if (data.message != null) {
|
|
488
432
|
contents.message = __expectString(data.message);
|
|
489
433
|
}
|
|
490
434
|
exception = new InvalidRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -494,9 +438,9 @@ var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOu
|
|
|
494
438
|
var deserializeAws_restJson1InvalidStateTransitionExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
495
439
|
var contents, data, exception;
|
|
496
440
|
return __generator(this, function (_a) {
|
|
497
|
-
contents = {};
|
|
441
|
+
contents = map({});
|
|
498
442
|
data = parsedOutput.body;
|
|
499
|
-
if (data.message
|
|
443
|
+
if (data.message != null) {
|
|
500
444
|
contents.message = __expectString(data.message);
|
|
501
445
|
}
|
|
502
446
|
exception = new InvalidStateTransitionException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -506,9 +450,9 @@ var deserializeAws_restJson1InvalidStateTransitionExceptionResponse = function (
|
|
|
506
450
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
507
451
|
var contents, data, exception;
|
|
508
452
|
return __generator(this, function (_a) {
|
|
509
|
-
contents = {};
|
|
453
|
+
contents = map({});
|
|
510
454
|
data = parsedOutput.body;
|
|
511
|
-
if (data.message
|
|
455
|
+
if (data.message != null) {
|
|
512
456
|
contents.message = __expectString(data.message);
|
|
513
457
|
}
|
|
514
458
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -518,9 +462,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
518
462
|
var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
519
463
|
var contents, data, exception;
|
|
520
464
|
return __generator(this, function (_a) {
|
|
521
|
-
contents = {};
|
|
465
|
+
contents = map({});
|
|
522
466
|
data = parsedOutput.body;
|
|
523
|
-
if (data.message
|
|
467
|
+
if (data.message != null) {
|
|
524
468
|
contents.message = __expectString(data.message);
|
|
525
469
|
}
|
|
526
470
|
exception = new ServiceUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -530,9 +474,9 @@ var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (pars
|
|
|
530
474
|
var deserializeAws_restJson1TerminalStateExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
531
475
|
var contents, data, exception;
|
|
532
476
|
return __generator(this, function (_a) {
|
|
533
|
-
contents = {};
|
|
477
|
+
contents = map({});
|
|
534
478
|
data = parsedOutput.body;
|
|
535
|
-
if (data.message
|
|
479
|
+
if (data.message != null) {
|
|
536
480
|
contents.message = __expectString(data.message);
|
|
537
481
|
}
|
|
538
482
|
exception = new TerminalStateException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -542,12 +486,12 @@ var deserializeAws_restJson1TerminalStateExceptionResponse = function (parsedOut
|
|
|
542
486
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
543
487
|
var contents, data, exception;
|
|
544
488
|
return __generator(this, function (_a) {
|
|
545
|
-
contents = {};
|
|
489
|
+
contents = map({});
|
|
546
490
|
data = parsedOutput.body;
|
|
547
|
-
if (data.message
|
|
491
|
+
if (data.message != null) {
|
|
548
492
|
contents.message = __expectString(data.message);
|
|
549
493
|
}
|
|
550
|
-
if (data.payload
|
|
494
|
+
if (data.payload != null) {
|
|
551
495
|
contents.payload = context.base64Decoder(data.payload);
|
|
552
496
|
}
|
|
553
497
|
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|