@aws-sdk/client-signer 3.137.0 → 3.145.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 +30 -0
- package/README.md +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +284 -518
- package/dist-es/protocols/Aws_restJson1.js +349 -502
- package/package.json +11 -6
|
@@ -1,11 +1,11 @@
|
|
|
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, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { AccessDeniedException, BadRequestException, ConflictException, InternalServiceErrorException, NotFoundException, ResourceNotFoundException, ServiceLimitExceededException, ThrottlingException, TooManyRequestsException, ValidationException, } from "../models/models_0";
|
|
6
6
|
import { SignerServiceException as __BaseException } from "../models/SignerServiceException";
|
|
7
7
|
export var serializeAws_restJson1AddProfilePermissionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
8
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
9
9
|
return __generator(this, function (_c) {
|
|
10
10
|
switch (_c.label) {
|
|
11
11
|
case 0: return [4, context.endpoint()];
|
|
@@ -16,16 +16,7 @@ export var serializeAws_restJson1AddProfilePermissionCommand = function (input,
|
|
|
16
16
|
};
|
|
17
17
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
18
18
|
"/signing-profiles/{profileName}/permissions";
|
|
19
|
-
|
|
20
|
-
labelValue = input.profileName;
|
|
21
|
-
if (labelValue.length <= 0) {
|
|
22
|
-
throw new Error("Empty value provided for input HTTP label: profileName.");
|
|
23
|
-
}
|
|
24
|
-
resolvedPath = resolvedPath.replace("{profileName}", __extendedEncodeURIComponent(labelValue));
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
throw new Error("No value provided for input HTTP label: profileName.");
|
|
28
|
-
}
|
|
19
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "profileName", function () { return input.profileName; }, "{profileName}", false);
|
|
29
20
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.action != null && { action: input.action })), (input.principal != null && { principal: input.principal })), (input.profileVersion != null && { profileVersion: input.profileVersion })), (input.revisionId != null && { revisionId: input.revisionId })), (input.statementId != null && { statementId: input.statementId })));
|
|
30
21
|
return [2, new __HttpRequest({
|
|
31
22
|
protocol: protocol,
|
|
@@ -40,7 +31,7 @@ export var serializeAws_restJson1AddProfilePermissionCommand = function (input,
|
|
|
40
31
|
});
|
|
41
32
|
}); };
|
|
42
33
|
export var serializeAws_restJson1CancelSigningProfileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
43
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
34
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
44
35
|
return __generator(this, function (_c) {
|
|
45
36
|
switch (_c.label) {
|
|
46
37
|
case 0: return [4, context.endpoint()];
|
|
@@ -48,16 +39,7 @@ export var serializeAws_restJson1CancelSigningProfileCommand = function (input,
|
|
|
48
39
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
49
40
|
headers = {};
|
|
50
41
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/signing-profiles/{profileName}";
|
|
51
|
-
|
|
52
|
-
labelValue = input.profileName;
|
|
53
|
-
if (labelValue.length <= 0) {
|
|
54
|
-
throw new Error("Empty value provided for input HTTP label: profileName.");
|
|
55
|
-
}
|
|
56
|
-
resolvedPath = resolvedPath.replace("{profileName}", __extendedEncodeURIComponent(labelValue));
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
throw new Error("No value provided for input HTTP label: profileName.");
|
|
60
|
-
}
|
|
42
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "profileName", function () { return input.profileName; }, "{profileName}", false);
|
|
61
43
|
return [2, new __HttpRequest({
|
|
62
44
|
protocol: protocol,
|
|
63
45
|
hostname: hostname,
|
|
@@ -71,7 +53,7 @@ export var serializeAws_restJson1CancelSigningProfileCommand = function (input,
|
|
|
71
53
|
});
|
|
72
54
|
}); };
|
|
73
55
|
export var serializeAws_restJson1DescribeSigningJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
74
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
56
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
75
57
|
return __generator(this, function (_c) {
|
|
76
58
|
switch (_c.label) {
|
|
77
59
|
case 0: return [4, context.endpoint()];
|
|
@@ -79,16 +61,7 @@ export var serializeAws_restJson1DescribeSigningJobCommand = function (input, co
|
|
|
79
61
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
80
62
|
headers = {};
|
|
81
63
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/signing-jobs/{jobId}";
|
|
82
|
-
|
|
83
|
-
labelValue = input.jobId;
|
|
84
|
-
if (labelValue.length <= 0) {
|
|
85
|
-
throw new Error("Empty value provided for input HTTP label: jobId.");
|
|
86
|
-
}
|
|
87
|
-
resolvedPath = resolvedPath.replace("{jobId}", __extendedEncodeURIComponent(labelValue));
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
throw new Error("No value provided for input HTTP label: jobId.");
|
|
91
|
-
}
|
|
64
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "jobId", function () { return input.jobId; }, "{jobId}", false);
|
|
92
65
|
return [2, new __HttpRequest({
|
|
93
66
|
protocol: protocol,
|
|
94
67
|
hostname: hostname,
|
|
@@ -102,7 +75,7 @@ export var serializeAws_restJson1DescribeSigningJobCommand = function (input, co
|
|
|
102
75
|
});
|
|
103
76
|
}); };
|
|
104
77
|
export var serializeAws_restJson1GetSigningPlatformCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
105
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
78
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
106
79
|
return __generator(this, function (_c) {
|
|
107
80
|
switch (_c.label) {
|
|
108
81
|
case 0: return [4, context.endpoint()];
|
|
@@ -110,16 +83,7 @@ export var serializeAws_restJson1GetSigningPlatformCommand = function (input, co
|
|
|
110
83
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
111
84
|
headers = {};
|
|
112
85
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/signing-platforms/{platformId}";
|
|
113
|
-
|
|
114
|
-
labelValue = input.platformId;
|
|
115
|
-
if (labelValue.length <= 0) {
|
|
116
|
-
throw new Error("Empty value provided for input HTTP label: platformId.");
|
|
117
|
-
}
|
|
118
|
-
resolvedPath = resolvedPath.replace("{platformId}", __extendedEncodeURIComponent(labelValue));
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
throw new Error("No value provided for input HTTP label: platformId.");
|
|
122
|
-
}
|
|
86
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "platformId", function () { return input.platformId; }, "{platformId}", false);
|
|
123
87
|
return [2, new __HttpRequest({
|
|
124
88
|
protocol: protocol,
|
|
125
89
|
hostname: hostname,
|
|
@@ -133,7 +97,7 @@ export var serializeAws_restJson1GetSigningPlatformCommand = function (input, co
|
|
|
133
97
|
});
|
|
134
98
|
}); };
|
|
135
99
|
export var serializeAws_restJson1GetSigningProfileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
136
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
100
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
137
101
|
return __generator(this, function (_c) {
|
|
138
102
|
switch (_c.label) {
|
|
139
103
|
case 0: return [4, context.endpoint()];
|
|
@@ -141,17 +105,10 @@ export var serializeAws_restJson1GetSigningProfileCommand = function (input, con
|
|
|
141
105
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
142
106
|
headers = {};
|
|
143
107
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/signing-profiles/{profileName}";
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}
|
|
149
|
-
resolvedPath = resolvedPath.replace("{profileName}", __extendedEncodeURIComponent(labelValue));
|
|
150
|
-
}
|
|
151
|
-
else {
|
|
152
|
-
throw new Error("No value provided for input HTTP label: profileName.");
|
|
153
|
-
}
|
|
154
|
-
query = __assign({}, (input.profileOwner !== undefined && { profileOwner: input.profileOwner }));
|
|
108
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "profileName", function () { return input.profileName; }, "{profileName}", false);
|
|
109
|
+
query = map({
|
|
110
|
+
profileOwner: [, input.profileOwner],
|
|
111
|
+
});
|
|
155
112
|
return [2, new __HttpRequest({
|
|
156
113
|
protocol: protocol,
|
|
157
114
|
hostname: hostname,
|
|
@@ -166,7 +123,7 @@ export var serializeAws_restJson1GetSigningProfileCommand = function (input, con
|
|
|
166
123
|
});
|
|
167
124
|
}); };
|
|
168
125
|
export var serializeAws_restJson1ListProfilePermissionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
169
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
126
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
170
127
|
return __generator(this, function (_c) {
|
|
171
128
|
switch (_c.label) {
|
|
172
129
|
case 0: return [4, context.endpoint()];
|
|
@@ -175,17 +132,10 @@ export var serializeAws_restJson1ListProfilePermissionsCommand = function (input
|
|
|
175
132
|
headers = {};
|
|
176
133
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
177
134
|
"/signing-profiles/{profileName}/permissions";
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
resolvedPath = resolvedPath.replace("{profileName}", __extendedEncodeURIComponent(labelValue));
|
|
184
|
-
}
|
|
185
|
-
else {
|
|
186
|
-
throw new Error("No value provided for input HTTP label: profileName.");
|
|
187
|
-
}
|
|
188
|
-
query = __assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
135
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "profileName", function () { return input.profileName; }, "{profileName}", false);
|
|
136
|
+
query = map({
|
|
137
|
+
nextToken: [, input.nextToken],
|
|
138
|
+
});
|
|
189
139
|
return [2, new __HttpRequest({
|
|
190
140
|
protocol: protocol,
|
|
191
141
|
hostname: hostname,
|
|
@@ -208,11 +158,23 @@ export var serializeAws_restJson1ListSigningJobsCommand = function (input, conte
|
|
|
208
158
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
209
159
|
headers = {};
|
|
210
160
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/signing-jobs";
|
|
211
|
-
query =
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
161
|
+
query = map({
|
|
162
|
+
status: [, input.status],
|
|
163
|
+
platformId: [, input.platformId],
|
|
164
|
+
requestedBy: [, input.requestedBy],
|
|
165
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
166
|
+
nextToken: [, input.nextToken],
|
|
167
|
+
isRevoked: [function () { return input.isRevoked !== void 0; }, function () { return input.isRevoked.toString(); }],
|
|
168
|
+
signatureExpiresBefore: [
|
|
169
|
+
function () { return input.signatureExpiresBefore !== void 0; },
|
|
170
|
+
function () { return (input.signatureExpiresBefore.toISOString().split(".")[0] + "Z").toString(); },
|
|
171
|
+
],
|
|
172
|
+
signatureExpiresAfter: [
|
|
173
|
+
function () { return input.signatureExpiresAfter !== void 0; },
|
|
174
|
+
function () { return (input.signatureExpiresAfter.toISOString().split(".")[0] + "Z").toString(); },
|
|
175
|
+
],
|
|
176
|
+
jobInvoker: [, input.jobInvoker],
|
|
177
|
+
});
|
|
216
178
|
return [2, new __HttpRequest({
|
|
217
179
|
protocol: protocol,
|
|
218
180
|
hostname: hostname,
|
|
@@ -235,7 +197,13 @@ export var serializeAws_restJson1ListSigningPlatformsCommand = function (input,
|
|
|
235
197
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
236
198
|
headers = {};
|
|
237
199
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/signing-platforms";
|
|
238
|
-
query =
|
|
200
|
+
query = map({
|
|
201
|
+
category: [, input.category],
|
|
202
|
+
partner: [, input.partner],
|
|
203
|
+
target: [, input.target],
|
|
204
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
205
|
+
nextToken: [, input.nextToken],
|
|
206
|
+
});
|
|
239
207
|
return [2, new __HttpRequest({
|
|
240
208
|
protocol: protocol,
|
|
241
209
|
hostname: hostname,
|
|
@@ -258,7 +226,13 @@ export var serializeAws_restJson1ListSigningProfilesCommand = function (input, c
|
|
|
258
226
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
259
227
|
headers = {};
|
|
260
228
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/signing-profiles";
|
|
261
|
-
query =
|
|
229
|
+
query = map({
|
|
230
|
+
includeCanceled: [function () { return input.includeCanceled !== void 0; }, function () { return input.includeCanceled.toString(); }],
|
|
231
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
232
|
+
nextToken: [, input.nextToken],
|
|
233
|
+
platformId: [, input.platformId],
|
|
234
|
+
statuses: [function () { return input.statuses !== void 0; }, function () { return (input.statuses || []).map(function (_entry) { return _entry; }); }],
|
|
235
|
+
});
|
|
262
236
|
return [2, new __HttpRequest({
|
|
263
237
|
protocol: protocol,
|
|
264
238
|
hostname: hostname,
|
|
@@ -273,7 +247,7 @@ export var serializeAws_restJson1ListSigningProfilesCommand = function (input, c
|
|
|
273
247
|
});
|
|
274
248
|
}); };
|
|
275
249
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
276
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
250
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
277
251
|
return __generator(this, function (_c) {
|
|
278
252
|
switch (_c.label) {
|
|
279
253
|
case 0: return [4, context.endpoint()];
|
|
@@ -281,16 +255,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
281
255
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
282
256
|
headers = {};
|
|
283
257
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
284
|
-
|
|
285
|
-
labelValue = input.resourceArn;
|
|
286
|
-
if (labelValue.length <= 0) {
|
|
287
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
288
|
-
}
|
|
289
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
290
|
-
}
|
|
291
|
-
else {
|
|
292
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
293
|
-
}
|
|
258
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
294
259
|
return [2, new __HttpRequest({
|
|
295
260
|
protocol: protocol,
|
|
296
261
|
hostname: hostname,
|
|
@@ -304,7 +269,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
304
269
|
});
|
|
305
270
|
}); };
|
|
306
271
|
export var serializeAws_restJson1PutSigningProfileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
307
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
272
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
308
273
|
return __generator(this, function (_c) {
|
|
309
274
|
switch (_c.label) {
|
|
310
275
|
case 0: return [4, context.endpoint()];
|
|
@@ -314,16 +279,7 @@ export var serializeAws_restJson1PutSigningProfileCommand = function (input, con
|
|
|
314
279
|
"content-type": "application/json",
|
|
315
280
|
};
|
|
316
281
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/signing-profiles/{profileName}";
|
|
317
|
-
|
|
318
|
-
labelValue = input.profileName;
|
|
319
|
-
if (labelValue.length <= 0) {
|
|
320
|
-
throw new Error("Empty value provided for input HTTP label: profileName.");
|
|
321
|
-
}
|
|
322
|
-
resolvedPath = resolvedPath.replace("{profileName}", __extendedEncodeURIComponent(labelValue));
|
|
323
|
-
}
|
|
324
|
-
else {
|
|
325
|
-
throw new Error("No value provided for input HTTP label: profileName.");
|
|
326
|
-
}
|
|
282
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "profileName", function () { return input.profileName; }, "{profileName}", false);
|
|
327
283
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.overrides != null && {
|
|
328
284
|
overrides: serializeAws_restJson1SigningPlatformOverrides(input.overrides, context),
|
|
329
285
|
})), (input.platformId != null && { platformId: input.platformId })), (input.signatureValidityPeriod != null && {
|
|
@@ -346,7 +302,7 @@ export var serializeAws_restJson1PutSigningProfileCommand = function (input, con
|
|
|
346
302
|
});
|
|
347
303
|
}); };
|
|
348
304
|
export var serializeAws_restJson1RemoveProfilePermissionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
349
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
305
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
350
306
|
return __generator(this, function (_c) {
|
|
351
307
|
switch (_c.label) {
|
|
352
308
|
case 0: return [4, context.endpoint()];
|
|
@@ -355,27 +311,11 @@ export var serializeAws_restJson1RemoveProfilePermissionCommand = function (inpu
|
|
|
355
311
|
headers = {};
|
|
356
312
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
357
313
|
"/signing-profiles/{profileName}/permissions/{statementId}";
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
resolvedPath = resolvedPath.replace("{profileName}", __extendedEncodeURIComponent(labelValue));
|
|
364
|
-
}
|
|
365
|
-
else {
|
|
366
|
-
throw new Error("No value provided for input HTTP label: profileName.");
|
|
367
|
-
}
|
|
368
|
-
if (input.statementId !== undefined) {
|
|
369
|
-
labelValue = input.statementId;
|
|
370
|
-
if (labelValue.length <= 0) {
|
|
371
|
-
throw new Error("Empty value provided for input HTTP label: statementId.");
|
|
372
|
-
}
|
|
373
|
-
resolvedPath = resolvedPath.replace("{statementId}", __extendedEncodeURIComponent(labelValue));
|
|
374
|
-
}
|
|
375
|
-
else {
|
|
376
|
-
throw new Error("No value provided for input HTTP label: statementId.");
|
|
377
|
-
}
|
|
378
|
-
query = __assign({}, (input.revisionId !== undefined && { revisionId: input.revisionId }));
|
|
314
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "profileName", function () { return input.profileName; }, "{profileName}", false);
|
|
315
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "statementId", function () { return input.statementId; }, "{statementId}", false);
|
|
316
|
+
query = map({
|
|
317
|
+
revisionId: [, input.revisionId],
|
|
318
|
+
});
|
|
379
319
|
return [2, new __HttpRequest({
|
|
380
320
|
protocol: protocol,
|
|
381
321
|
hostname: hostname,
|
|
@@ -390,7 +330,7 @@ export var serializeAws_restJson1RemoveProfilePermissionCommand = function (inpu
|
|
|
390
330
|
});
|
|
391
331
|
}); };
|
|
392
332
|
export var serializeAws_restJson1RevokeSignatureCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
393
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
333
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
394
334
|
return __generator(this, function (_c) {
|
|
395
335
|
switch (_c.label) {
|
|
396
336
|
case 0: return [4, context.endpoint()];
|
|
@@ -400,16 +340,7 @@ export var serializeAws_restJson1RevokeSignatureCommand = function (input, conte
|
|
|
400
340
|
"content-type": "application/json",
|
|
401
341
|
};
|
|
402
342
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/signing-jobs/{jobId}/revoke";
|
|
403
|
-
|
|
404
|
-
labelValue = input.jobId;
|
|
405
|
-
if (labelValue.length <= 0) {
|
|
406
|
-
throw new Error("Empty value provided for input HTTP label: jobId.");
|
|
407
|
-
}
|
|
408
|
-
resolvedPath = resolvedPath.replace("{jobId}", __extendedEncodeURIComponent(labelValue));
|
|
409
|
-
}
|
|
410
|
-
else {
|
|
411
|
-
throw new Error("No value provided for input HTTP label: jobId.");
|
|
412
|
-
}
|
|
343
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "jobId", function () { return input.jobId; }, "{jobId}", false);
|
|
413
344
|
body = JSON.stringify(__assign(__assign({}, (input.jobOwner != null && { jobOwner: input.jobOwner })), (input.reason != null && { reason: input.reason })));
|
|
414
345
|
return [2, new __HttpRequest({
|
|
415
346
|
protocol: protocol,
|
|
@@ -424,7 +355,7 @@ export var serializeAws_restJson1RevokeSignatureCommand = function (input, conte
|
|
|
424
355
|
});
|
|
425
356
|
}); };
|
|
426
357
|
export var serializeAws_restJson1RevokeSigningProfileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
427
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
358
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
428
359
|
return __generator(this, function (_c) {
|
|
429
360
|
switch (_c.label) {
|
|
430
361
|
case 0: return [4, context.endpoint()];
|
|
@@ -434,16 +365,7 @@ export var serializeAws_restJson1RevokeSigningProfileCommand = function (input,
|
|
|
434
365
|
"content-type": "application/json",
|
|
435
366
|
};
|
|
436
367
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/signing-profiles/{profileName}/revoke";
|
|
437
|
-
|
|
438
|
-
labelValue = input.profileName;
|
|
439
|
-
if (labelValue.length <= 0) {
|
|
440
|
-
throw new Error("Empty value provided for input HTTP label: profileName.");
|
|
441
|
-
}
|
|
442
|
-
resolvedPath = resolvedPath.replace("{profileName}", __extendedEncodeURIComponent(labelValue));
|
|
443
|
-
}
|
|
444
|
-
else {
|
|
445
|
-
throw new Error("No value provided for input HTTP label: profileName.");
|
|
446
|
-
}
|
|
368
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "profileName", function () { return input.profileName; }, "{profileName}", false);
|
|
447
369
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.effectiveTime != null && { effectiveTime: Math.round(input.effectiveTime.getTime() / 1000) })), (input.profileVersion != null && { profileVersion: input.profileVersion })), (input.reason != null && { reason: input.reason })));
|
|
448
370
|
return [2, new __HttpRequest({
|
|
449
371
|
protocol: protocol,
|
|
@@ -483,7 +405,7 @@ export var serializeAws_restJson1StartSigningJobCommand = function (input, conte
|
|
|
483
405
|
});
|
|
484
406
|
}); };
|
|
485
407
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
486
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
408
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
487
409
|
return __generator(this, function (_c) {
|
|
488
410
|
switch (_c.label) {
|
|
489
411
|
case 0: return [4, context.endpoint()];
|
|
@@ -493,16 +415,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
493
415
|
"content-type": "application/json",
|
|
494
416
|
};
|
|
495
417
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
496
|
-
|
|
497
|
-
labelValue = input.resourceArn;
|
|
498
|
-
if (labelValue.length <= 0) {
|
|
499
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
500
|
-
}
|
|
501
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
502
|
-
}
|
|
503
|
-
else {
|
|
504
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
505
|
-
}
|
|
418
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
506
419
|
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
507
420
|
return [2, new __HttpRequest({
|
|
508
421
|
protocol: protocol,
|
|
@@ -517,7 +430,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
517
430
|
});
|
|
518
431
|
}); };
|
|
519
432
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
520
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
433
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
521
434
|
return __generator(this, function (_c) {
|
|
522
435
|
switch (_c.label) {
|
|
523
436
|
case 0: return [4, context.endpoint()];
|
|
@@ -525,17 +438,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
525
438
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
526
439
|
headers = {};
|
|
527
440
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
}
|
|
533
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
534
|
-
}
|
|
535
|
-
else {
|
|
536
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
537
|
-
}
|
|
538
|
-
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
441
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
442
|
+
query = map({
|
|
443
|
+
tagKeys: [function () { return input.tagKeys !== void 0; }, function () { return (input.tagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
444
|
+
});
|
|
539
445
|
return [2, new __HttpRequest({
|
|
540
446
|
protocol: protocol,
|
|
541
447
|
hostname: hostname,
|
|
@@ -557,24 +463,23 @@ export var deserializeAws_restJson1AddProfilePermissionCommand = function (outpu
|
|
|
557
463
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
558
464
|
return [2, deserializeAws_restJson1AddProfilePermissionCommandError(output, context)];
|
|
559
465
|
}
|
|
560
|
-
contents = {
|
|
466
|
+
contents = map({
|
|
561
467
|
$metadata: deserializeMetadata(output),
|
|
562
|
-
|
|
563
|
-
};
|
|
468
|
+
});
|
|
564
469
|
_a = __expectNonNull;
|
|
565
470
|
_b = __expectObject;
|
|
566
471
|
return [4, parseBody(output.body, context)];
|
|
567
472
|
case 1:
|
|
568
473
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
569
|
-
if (data.revisionId
|
|
474
|
+
if (data.revisionId != null) {
|
|
570
475
|
contents.revisionId = __expectString(data.revisionId);
|
|
571
476
|
}
|
|
572
|
-
return [2,
|
|
477
|
+
return [2, contents];
|
|
573
478
|
}
|
|
574
479
|
});
|
|
575
480
|
}); };
|
|
576
481
|
var deserializeAws_restJson1AddProfilePermissionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
577
|
-
var parsedOutput, _a,
|
|
482
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
578
483
|
var _c;
|
|
579
484
|
return __generator(this, function (_d) {
|
|
580
485
|
switch (_d.label) {
|
|
@@ -619,14 +524,14 @@ var deserializeAws_restJson1AddProfilePermissionCommandError = function (output,
|
|
|
619
524
|
case 15: throw _d.sent();
|
|
620
525
|
case 16:
|
|
621
526
|
parsedBody = parsedOutput.body;
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
$metadata: $metadata,
|
|
527
|
+
throwDefaultError({
|
|
528
|
+
output: output,
|
|
529
|
+
parsedBody: parsedBody,
|
|
530
|
+
exceptionCtor: __BaseException,
|
|
531
|
+
errorCode: errorCode,
|
|
628
532
|
});
|
|
629
|
-
|
|
533
|
+
_d.label = 17;
|
|
534
|
+
case 17: return [2];
|
|
630
535
|
}
|
|
631
536
|
});
|
|
632
537
|
}); };
|
|
@@ -638,18 +543,18 @@ export var deserializeAws_restJson1CancelSigningProfileCommand = function (outpu
|
|
|
638
543
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
639
544
|
return [2, deserializeAws_restJson1CancelSigningProfileCommandError(output, context)];
|
|
640
545
|
}
|
|
641
|
-
contents = {
|
|
546
|
+
contents = map({
|
|
642
547
|
$metadata: deserializeMetadata(output),
|
|
643
|
-
};
|
|
548
|
+
});
|
|
644
549
|
return [4, collectBody(output.body, context)];
|
|
645
550
|
case 1:
|
|
646
551
|
_a.sent();
|
|
647
|
-
return [2,
|
|
552
|
+
return [2, contents];
|
|
648
553
|
}
|
|
649
554
|
});
|
|
650
555
|
}); };
|
|
651
556
|
var deserializeAws_restJson1CancelSigningProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
652
|
-
var parsedOutput, _a,
|
|
557
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
653
558
|
var _c;
|
|
654
559
|
return __generator(this, function (_d) {
|
|
655
560
|
switch (_d.label) {
|
|
@@ -682,14 +587,14 @@ var deserializeAws_restJson1CancelSigningProfileCommandError = function (output,
|
|
|
682
587
|
case 9: throw _d.sent();
|
|
683
588
|
case 10:
|
|
684
589
|
parsedBody = parsedOutput.body;
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
$metadata: $metadata,
|
|
590
|
+
throwDefaultError({
|
|
591
|
+
output: output,
|
|
592
|
+
parsedBody: parsedBody,
|
|
593
|
+
exceptionCtor: __BaseException,
|
|
594
|
+
errorCode: errorCode,
|
|
691
595
|
});
|
|
692
|
-
|
|
596
|
+
_d.label = 11;
|
|
597
|
+
case 11: return [2];
|
|
693
598
|
}
|
|
694
599
|
});
|
|
695
600
|
}); };
|
|
@@ -701,96 +606,77 @@ export var deserializeAws_restJson1DescribeSigningJobCommand = function (output,
|
|
|
701
606
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
702
607
|
return [2, deserializeAws_restJson1DescribeSigningJobCommandError(output, context)];
|
|
703
608
|
}
|
|
704
|
-
contents = {
|
|
609
|
+
contents = map({
|
|
705
610
|
$metadata: deserializeMetadata(output),
|
|
706
|
-
|
|
707
|
-
createdAt: undefined,
|
|
708
|
-
jobId: undefined,
|
|
709
|
-
jobInvoker: undefined,
|
|
710
|
-
jobOwner: undefined,
|
|
711
|
-
overrides: undefined,
|
|
712
|
-
platformDisplayName: undefined,
|
|
713
|
-
platformId: undefined,
|
|
714
|
-
profileName: undefined,
|
|
715
|
-
profileVersion: undefined,
|
|
716
|
-
requestedBy: undefined,
|
|
717
|
-
revocationRecord: undefined,
|
|
718
|
-
signatureExpiresAt: undefined,
|
|
719
|
-
signedObject: undefined,
|
|
720
|
-
signingMaterial: undefined,
|
|
721
|
-
signingParameters: undefined,
|
|
722
|
-
source: undefined,
|
|
723
|
-
status: undefined,
|
|
724
|
-
statusReason: undefined,
|
|
725
|
-
};
|
|
611
|
+
});
|
|
726
612
|
_a = __expectNonNull;
|
|
727
613
|
_b = __expectObject;
|
|
728
614
|
return [4, parseBody(output.body, context)];
|
|
729
615
|
case 1:
|
|
730
616
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
731
|
-
if (data.completedAt
|
|
617
|
+
if (data.completedAt != null) {
|
|
732
618
|
contents.completedAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.completedAt)));
|
|
733
619
|
}
|
|
734
|
-
if (data.createdAt
|
|
620
|
+
if (data.createdAt != null) {
|
|
735
621
|
contents.createdAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.createdAt)));
|
|
736
622
|
}
|
|
737
|
-
if (data.jobId
|
|
623
|
+
if (data.jobId != null) {
|
|
738
624
|
contents.jobId = __expectString(data.jobId);
|
|
739
625
|
}
|
|
740
|
-
if (data.jobInvoker
|
|
626
|
+
if (data.jobInvoker != null) {
|
|
741
627
|
contents.jobInvoker = __expectString(data.jobInvoker);
|
|
742
628
|
}
|
|
743
|
-
if (data.jobOwner
|
|
629
|
+
if (data.jobOwner != null) {
|
|
744
630
|
contents.jobOwner = __expectString(data.jobOwner);
|
|
745
631
|
}
|
|
746
|
-
if (data.overrides
|
|
632
|
+
if (data.overrides != null) {
|
|
747
633
|
contents.overrides = deserializeAws_restJson1SigningPlatformOverrides(data.overrides, context);
|
|
748
634
|
}
|
|
749
|
-
if (data.platformDisplayName
|
|
635
|
+
if (data.platformDisplayName != null) {
|
|
750
636
|
contents.platformDisplayName = __expectString(data.platformDisplayName);
|
|
751
637
|
}
|
|
752
|
-
if (data.platformId
|
|
638
|
+
if (data.platformId != null) {
|
|
753
639
|
contents.platformId = __expectString(data.platformId);
|
|
754
640
|
}
|
|
755
|
-
if (data.profileName
|
|
641
|
+
if (data.profileName != null) {
|
|
756
642
|
contents.profileName = __expectString(data.profileName);
|
|
757
643
|
}
|
|
758
|
-
if (data.profileVersion
|
|
644
|
+
if (data.profileVersion != null) {
|
|
759
645
|
contents.profileVersion = __expectString(data.profileVersion);
|
|
760
646
|
}
|
|
761
|
-
if (data.requestedBy
|
|
647
|
+
if (data.requestedBy != null) {
|
|
762
648
|
contents.requestedBy = __expectString(data.requestedBy);
|
|
763
649
|
}
|
|
764
|
-
if (data.revocationRecord
|
|
650
|
+
if (data.revocationRecord != null) {
|
|
765
651
|
contents.revocationRecord = deserializeAws_restJson1SigningJobRevocationRecord(data.revocationRecord, context);
|
|
766
652
|
}
|
|
767
|
-
if (data.signatureExpiresAt
|
|
653
|
+
if (data.signatureExpiresAt != null) {
|
|
768
654
|
contents.signatureExpiresAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.signatureExpiresAt)));
|
|
769
655
|
}
|
|
770
|
-
if (data.signedObject
|
|
656
|
+
if (data.signedObject != null) {
|
|
771
657
|
contents.signedObject = deserializeAws_restJson1SignedObject(data.signedObject, context);
|
|
772
658
|
}
|
|
773
|
-
if (data.signingMaterial
|
|
659
|
+
if (data.signingMaterial != null) {
|
|
774
660
|
contents.signingMaterial = deserializeAws_restJson1SigningMaterial(data.signingMaterial, context);
|
|
775
661
|
}
|
|
776
|
-
if (data.signingParameters
|
|
662
|
+
if (data.signingParameters != null) {
|
|
777
663
|
contents.signingParameters = deserializeAws_restJson1SigningParameters(data.signingParameters, context);
|
|
778
664
|
}
|
|
779
|
-
if (data.source
|
|
665
|
+
if (data.source != null) {
|
|
780
666
|
contents.source = deserializeAws_restJson1Source(data.source, context);
|
|
781
667
|
}
|
|
782
|
-
if (data.status
|
|
668
|
+
if (data.status != null) {
|
|
783
669
|
contents.status = __expectString(data.status);
|
|
784
670
|
}
|
|
785
|
-
if (data.statusReason
|
|
671
|
+
if (data.statusReason != null) {
|
|
786
672
|
contents.statusReason = __expectString(data.statusReason);
|
|
787
673
|
}
|
|
788
|
-
return [2,
|
|
674
|
+
return [2, contents];
|
|
789
675
|
}
|
|
790
676
|
});
|
|
791
677
|
}); };
|
|
792
678
|
var deserializeAws_restJson1DescribeSigningJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
793
|
-
var parsedOutput, _a,
|
|
679
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
794
680
|
var _c;
|
|
795
681
|
return __generator(this, function (_d) {
|
|
796
682
|
switch (_d.label) {
|
|
@@ -823,14 +709,14 @@ var deserializeAws_restJson1DescribeSigningJobCommandError = function (output, c
|
|
|
823
709
|
case 9: throw _d.sent();
|
|
824
710
|
case 10:
|
|
825
711
|
parsedBody = parsedOutput.body;
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
$metadata: $metadata,
|
|
712
|
+
throwDefaultError({
|
|
713
|
+
output: output,
|
|
714
|
+
parsedBody: parsedBody,
|
|
715
|
+
exceptionCtor: __BaseException,
|
|
716
|
+
errorCode: errorCode,
|
|
832
717
|
});
|
|
833
|
-
|
|
718
|
+
_d.label = 11;
|
|
719
|
+
case 11: return [2];
|
|
834
720
|
}
|
|
835
721
|
});
|
|
836
722
|
}); };
|
|
@@ -842,56 +728,47 @@ export var deserializeAws_restJson1GetSigningPlatformCommand = function (output,
|
|
|
842
728
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
843
729
|
return [2, deserializeAws_restJson1GetSigningPlatformCommandError(output, context)];
|
|
844
730
|
}
|
|
845
|
-
contents = {
|
|
731
|
+
contents = map({
|
|
846
732
|
$metadata: deserializeMetadata(output),
|
|
847
|
-
|
|
848
|
-
displayName: undefined,
|
|
849
|
-
maxSizeInMB: undefined,
|
|
850
|
-
partner: undefined,
|
|
851
|
-
platformId: undefined,
|
|
852
|
-
revocationSupported: undefined,
|
|
853
|
-
signingConfiguration: undefined,
|
|
854
|
-
signingImageFormat: undefined,
|
|
855
|
-
target: undefined,
|
|
856
|
-
};
|
|
733
|
+
});
|
|
857
734
|
_a = __expectNonNull;
|
|
858
735
|
_b = __expectObject;
|
|
859
736
|
return [4, parseBody(output.body, context)];
|
|
860
737
|
case 1:
|
|
861
738
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
862
|
-
if (data.category
|
|
739
|
+
if (data.category != null) {
|
|
863
740
|
contents.category = __expectString(data.category);
|
|
864
741
|
}
|
|
865
|
-
if (data.displayName
|
|
742
|
+
if (data.displayName != null) {
|
|
866
743
|
contents.displayName = __expectString(data.displayName);
|
|
867
744
|
}
|
|
868
|
-
if (data.maxSizeInMB
|
|
745
|
+
if (data.maxSizeInMB != null) {
|
|
869
746
|
contents.maxSizeInMB = __expectInt32(data.maxSizeInMB);
|
|
870
747
|
}
|
|
871
|
-
if (data.partner
|
|
748
|
+
if (data.partner != null) {
|
|
872
749
|
contents.partner = __expectString(data.partner);
|
|
873
750
|
}
|
|
874
|
-
if (data.platformId
|
|
751
|
+
if (data.platformId != null) {
|
|
875
752
|
contents.platformId = __expectString(data.platformId);
|
|
876
753
|
}
|
|
877
|
-
if (data.revocationSupported
|
|
754
|
+
if (data.revocationSupported != null) {
|
|
878
755
|
contents.revocationSupported = __expectBoolean(data.revocationSupported);
|
|
879
756
|
}
|
|
880
|
-
if (data.signingConfiguration
|
|
757
|
+
if (data.signingConfiguration != null) {
|
|
881
758
|
contents.signingConfiguration = deserializeAws_restJson1SigningConfiguration(data.signingConfiguration, context);
|
|
882
759
|
}
|
|
883
|
-
if (data.signingImageFormat
|
|
760
|
+
if (data.signingImageFormat != null) {
|
|
884
761
|
contents.signingImageFormat = deserializeAws_restJson1SigningImageFormat(data.signingImageFormat, context);
|
|
885
762
|
}
|
|
886
|
-
if (data.target
|
|
763
|
+
if (data.target != null) {
|
|
887
764
|
contents.target = __expectString(data.target);
|
|
888
765
|
}
|
|
889
|
-
return [2,
|
|
766
|
+
return [2, contents];
|
|
890
767
|
}
|
|
891
768
|
});
|
|
892
769
|
}); };
|
|
893
770
|
var deserializeAws_restJson1GetSigningPlatformCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
894
|
-
var parsedOutput, _a,
|
|
771
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
895
772
|
var _c;
|
|
896
773
|
return __generator(this, function (_d) {
|
|
897
774
|
switch (_d.label) {
|
|
@@ -924,14 +801,14 @@ var deserializeAws_restJson1GetSigningPlatformCommandError = function (output, c
|
|
|
924
801
|
case 9: throw _d.sent();
|
|
925
802
|
case 10:
|
|
926
803
|
parsedBody = parsedOutput.body;
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
$metadata: $metadata,
|
|
804
|
+
throwDefaultError({
|
|
805
|
+
output: output,
|
|
806
|
+
parsedBody: parsedBody,
|
|
807
|
+
exceptionCtor: __BaseException,
|
|
808
|
+
errorCode: errorCode,
|
|
933
809
|
});
|
|
934
|
-
|
|
810
|
+
_d.label = 11;
|
|
811
|
+
case 11: return [2];
|
|
935
812
|
}
|
|
936
813
|
});
|
|
937
814
|
}); };
|
|
@@ -943,76 +820,62 @@ export var deserializeAws_restJson1GetSigningProfileCommand = function (output,
|
|
|
943
820
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
944
821
|
return [2, deserializeAws_restJson1GetSigningProfileCommandError(output, context)];
|
|
945
822
|
}
|
|
946
|
-
contents = {
|
|
823
|
+
contents = map({
|
|
947
824
|
$metadata: deserializeMetadata(output),
|
|
948
|
-
|
|
949
|
-
overrides: undefined,
|
|
950
|
-
platformDisplayName: undefined,
|
|
951
|
-
platformId: undefined,
|
|
952
|
-
profileName: undefined,
|
|
953
|
-
profileVersion: undefined,
|
|
954
|
-
profileVersionArn: undefined,
|
|
955
|
-
revocationRecord: undefined,
|
|
956
|
-
signatureValidityPeriod: undefined,
|
|
957
|
-
signingMaterial: undefined,
|
|
958
|
-
signingParameters: undefined,
|
|
959
|
-
status: undefined,
|
|
960
|
-
statusReason: undefined,
|
|
961
|
-
tags: undefined,
|
|
962
|
-
};
|
|
825
|
+
});
|
|
963
826
|
_a = __expectNonNull;
|
|
964
827
|
_b = __expectObject;
|
|
965
828
|
return [4, parseBody(output.body, context)];
|
|
966
829
|
case 1:
|
|
967
830
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
968
|
-
if (data.arn
|
|
831
|
+
if (data.arn != null) {
|
|
969
832
|
contents.arn = __expectString(data.arn);
|
|
970
833
|
}
|
|
971
|
-
if (data.overrides
|
|
834
|
+
if (data.overrides != null) {
|
|
972
835
|
contents.overrides = deserializeAws_restJson1SigningPlatformOverrides(data.overrides, context);
|
|
973
836
|
}
|
|
974
|
-
if (data.platformDisplayName
|
|
837
|
+
if (data.platformDisplayName != null) {
|
|
975
838
|
contents.platformDisplayName = __expectString(data.platformDisplayName);
|
|
976
839
|
}
|
|
977
|
-
if (data.platformId
|
|
840
|
+
if (data.platformId != null) {
|
|
978
841
|
contents.platformId = __expectString(data.platformId);
|
|
979
842
|
}
|
|
980
|
-
if (data.profileName
|
|
843
|
+
if (data.profileName != null) {
|
|
981
844
|
contents.profileName = __expectString(data.profileName);
|
|
982
845
|
}
|
|
983
|
-
if (data.profileVersion
|
|
846
|
+
if (data.profileVersion != null) {
|
|
984
847
|
contents.profileVersion = __expectString(data.profileVersion);
|
|
985
848
|
}
|
|
986
|
-
if (data.profileVersionArn
|
|
849
|
+
if (data.profileVersionArn != null) {
|
|
987
850
|
contents.profileVersionArn = __expectString(data.profileVersionArn);
|
|
988
851
|
}
|
|
989
|
-
if (data.revocationRecord
|
|
852
|
+
if (data.revocationRecord != null) {
|
|
990
853
|
contents.revocationRecord = deserializeAws_restJson1SigningProfileRevocationRecord(data.revocationRecord, context);
|
|
991
854
|
}
|
|
992
|
-
if (data.signatureValidityPeriod
|
|
855
|
+
if (data.signatureValidityPeriod != null) {
|
|
993
856
|
contents.signatureValidityPeriod = deserializeAws_restJson1SignatureValidityPeriod(data.signatureValidityPeriod, context);
|
|
994
857
|
}
|
|
995
|
-
if (data.signingMaterial
|
|
858
|
+
if (data.signingMaterial != null) {
|
|
996
859
|
contents.signingMaterial = deserializeAws_restJson1SigningMaterial(data.signingMaterial, context);
|
|
997
860
|
}
|
|
998
|
-
if (data.signingParameters
|
|
861
|
+
if (data.signingParameters != null) {
|
|
999
862
|
contents.signingParameters = deserializeAws_restJson1SigningParameters(data.signingParameters, context);
|
|
1000
863
|
}
|
|
1001
|
-
if (data.status
|
|
864
|
+
if (data.status != null) {
|
|
1002
865
|
contents.status = __expectString(data.status);
|
|
1003
866
|
}
|
|
1004
|
-
if (data.statusReason
|
|
867
|
+
if (data.statusReason != null) {
|
|
1005
868
|
contents.statusReason = __expectString(data.statusReason);
|
|
1006
869
|
}
|
|
1007
|
-
if (data.tags
|
|
870
|
+
if (data.tags != null) {
|
|
1008
871
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
1009
872
|
}
|
|
1010
|
-
return [2,
|
|
873
|
+
return [2, contents];
|
|
1011
874
|
}
|
|
1012
875
|
});
|
|
1013
876
|
}); };
|
|
1014
877
|
var deserializeAws_restJson1GetSigningProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1015
|
-
var parsedOutput, _a,
|
|
878
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1016
879
|
var _c;
|
|
1017
880
|
return __generator(this, function (_d) {
|
|
1018
881
|
switch (_d.label) {
|
|
@@ -1045,14 +908,14 @@ var deserializeAws_restJson1GetSigningProfileCommandError = function (output, co
|
|
|
1045
908
|
case 9: throw _d.sent();
|
|
1046
909
|
case 10:
|
|
1047
910
|
parsedBody = parsedOutput.body;
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
$metadata: $metadata,
|
|
911
|
+
throwDefaultError({
|
|
912
|
+
output: output,
|
|
913
|
+
parsedBody: parsedBody,
|
|
914
|
+
exceptionCtor: __BaseException,
|
|
915
|
+
errorCode: errorCode,
|
|
1054
916
|
});
|
|
1055
|
-
|
|
917
|
+
_d.label = 11;
|
|
918
|
+
case 11: return [2];
|
|
1056
919
|
}
|
|
1057
920
|
});
|
|
1058
921
|
}); };
|
|
@@ -1064,36 +927,32 @@ export var deserializeAws_restJson1ListProfilePermissionsCommand = function (out
|
|
|
1064
927
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1065
928
|
return [2, deserializeAws_restJson1ListProfilePermissionsCommandError(output, context)];
|
|
1066
929
|
}
|
|
1067
|
-
contents = {
|
|
930
|
+
contents = map({
|
|
1068
931
|
$metadata: deserializeMetadata(output),
|
|
1069
|
-
|
|
1070
|
-
permissions: undefined,
|
|
1071
|
-
policySizeBytes: undefined,
|
|
1072
|
-
revisionId: undefined,
|
|
1073
|
-
};
|
|
932
|
+
});
|
|
1074
933
|
_a = __expectNonNull;
|
|
1075
934
|
_b = __expectObject;
|
|
1076
935
|
return [4, parseBody(output.body, context)];
|
|
1077
936
|
case 1:
|
|
1078
937
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1079
|
-
if (data.nextToken
|
|
938
|
+
if (data.nextToken != null) {
|
|
1080
939
|
contents.nextToken = __expectString(data.nextToken);
|
|
1081
940
|
}
|
|
1082
|
-
if (data.permissions
|
|
941
|
+
if (data.permissions != null) {
|
|
1083
942
|
contents.permissions = deserializeAws_restJson1Permissions(data.permissions, context);
|
|
1084
943
|
}
|
|
1085
|
-
if (data.policySizeBytes
|
|
944
|
+
if (data.policySizeBytes != null) {
|
|
1086
945
|
contents.policySizeBytes = __expectInt32(data.policySizeBytes);
|
|
1087
946
|
}
|
|
1088
|
-
if (data.revisionId
|
|
947
|
+
if (data.revisionId != null) {
|
|
1089
948
|
contents.revisionId = __expectString(data.revisionId);
|
|
1090
949
|
}
|
|
1091
|
-
return [2,
|
|
950
|
+
return [2, contents];
|
|
1092
951
|
}
|
|
1093
952
|
});
|
|
1094
953
|
}); };
|
|
1095
954
|
var deserializeAws_restJson1ListProfilePermissionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1096
|
-
var parsedOutput, _a,
|
|
955
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1097
956
|
var _c;
|
|
1098
957
|
return __generator(this, function (_d) {
|
|
1099
958
|
switch (_d.label) {
|
|
@@ -1130,14 +989,14 @@ var deserializeAws_restJson1ListProfilePermissionsCommandError = function (outpu
|
|
|
1130
989
|
case 11: throw _d.sent();
|
|
1131
990
|
case 12:
|
|
1132
991
|
parsedBody = parsedOutput.body;
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
$metadata: $metadata,
|
|
992
|
+
throwDefaultError({
|
|
993
|
+
output: output,
|
|
994
|
+
parsedBody: parsedBody,
|
|
995
|
+
exceptionCtor: __BaseException,
|
|
996
|
+
errorCode: errorCode,
|
|
1139
997
|
});
|
|
1140
|
-
|
|
998
|
+
_d.label = 13;
|
|
999
|
+
case 13: return [2];
|
|
1141
1000
|
}
|
|
1142
1001
|
});
|
|
1143
1002
|
}); };
|
|
@@ -1149,28 +1008,26 @@ export var deserializeAws_restJson1ListSigningJobsCommand = function (output, co
|
|
|
1149
1008
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1150
1009
|
return [2, deserializeAws_restJson1ListSigningJobsCommandError(output, context)];
|
|
1151
1010
|
}
|
|
1152
|
-
contents = {
|
|
1011
|
+
contents = map({
|
|
1153
1012
|
$metadata: deserializeMetadata(output),
|
|
1154
|
-
|
|
1155
|
-
nextToken: undefined,
|
|
1156
|
-
};
|
|
1013
|
+
});
|
|
1157
1014
|
_a = __expectNonNull;
|
|
1158
1015
|
_b = __expectObject;
|
|
1159
1016
|
return [4, parseBody(output.body, context)];
|
|
1160
1017
|
case 1:
|
|
1161
1018
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1162
|
-
if (data.jobs
|
|
1019
|
+
if (data.jobs != null) {
|
|
1163
1020
|
contents.jobs = deserializeAws_restJson1SigningJobs(data.jobs, context);
|
|
1164
1021
|
}
|
|
1165
|
-
if (data.nextToken
|
|
1022
|
+
if (data.nextToken != null) {
|
|
1166
1023
|
contents.nextToken = __expectString(data.nextToken);
|
|
1167
1024
|
}
|
|
1168
|
-
return [2,
|
|
1025
|
+
return [2, contents];
|
|
1169
1026
|
}
|
|
1170
1027
|
});
|
|
1171
1028
|
}); };
|
|
1172
1029
|
var deserializeAws_restJson1ListSigningJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1173
|
-
var parsedOutput, _a,
|
|
1030
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1174
1031
|
var _c;
|
|
1175
1032
|
return __generator(this, function (_d) {
|
|
1176
1033
|
switch (_d.label) {
|
|
@@ -1203,14 +1060,14 @@ var deserializeAws_restJson1ListSigningJobsCommandError = function (output, cont
|
|
|
1203
1060
|
case 9: throw _d.sent();
|
|
1204
1061
|
case 10:
|
|
1205
1062
|
parsedBody = parsedOutput.body;
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
$metadata: $metadata,
|
|
1063
|
+
throwDefaultError({
|
|
1064
|
+
output: output,
|
|
1065
|
+
parsedBody: parsedBody,
|
|
1066
|
+
exceptionCtor: __BaseException,
|
|
1067
|
+
errorCode: errorCode,
|
|
1212
1068
|
});
|
|
1213
|
-
|
|
1069
|
+
_d.label = 11;
|
|
1070
|
+
case 11: return [2];
|
|
1214
1071
|
}
|
|
1215
1072
|
});
|
|
1216
1073
|
}); };
|
|
@@ -1222,28 +1079,26 @@ export var deserializeAws_restJson1ListSigningPlatformsCommand = function (outpu
|
|
|
1222
1079
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1223
1080
|
return [2, deserializeAws_restJson1ListSigningPlatformsCommandError(output, context)];
|
|
1224
1081
|
}
|
|
1225
|
-
contents = {
|
|
1082
|
+
contents = map({
|
|
1226
1083
|
$metadata: deserializeMetadata(output),
|
|
1227
|
-
|
|
1228
|
-
platforms: undefined,
|
|
1229
|
-
};
|
|
1084
|
+
});
|
|
1230
1085
|
_a = __expectNonNull;
|
|
1231
1086
|
_b = __expectObject;
|
|
1232
1087
|
return [4, parseBody(output.body, context)];
|
|
1233
1088
|
case 1:
|
|
1234
1089
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1235
|
-
if (data.nextToken
|
|
1090
|
+
if (data.nextToken != null) {
|
|
1236
1091
|
contents.nextToken = __expectString(data.nextToken);
|
|
1237
1092
|
}
|
|
1238
|
-
if (data.platforms
|
|
1093
|
+
if (data.platforms != null) {
|
|
1239
1094
|
contents.platforms = deserializeAws_restJson1SigningPlatforms(data.platforms, context);
|
|
1240
1095
|
}
|
|
1241
|
-
return [2,
|
|
1096
|
+
return [2, contents];
|
|
1242
1097
|
}
|
|
1243
1098
|
});
|
|
1244
1099
|
}); };
|
|
1245
1100
|
var deserializeAws_restJson1ListSigningPlatformsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1246
|
-
var parsedOutput, _a,
|
|
1101
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1247
1102
|
var _c;
|
|
1248
1103
|
return __generator(this, function (_d) {
|
|
1249
1104
|
switch (_d.label) {
|
|
@@ -1276,14 +1131,14 @@ var deserializeAws_restJson1ListSigningPlatformsCommandError = function (output,
|
|
|
1276
1131
|
case 9: throw _d.sent();
|
|
1277
1132
|
case 10:
|
|
1278
1133
|
parsedBody = parsedOutput.body;
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
$metadata: $metadata,
|
|
1134
|
+
throwDefaultError({
|
|
1135
|
+
output: output,
|
|
1136
|
+
parsedBody: parsedBody,
|
|
1137
|
+
exceptionCtor: __BaseException,
|
|
1138
|
+
errorCode: errorCode,
|
|
1285
1139
|
});
|
|
1286
|
-
|
|
1140
|
+
_d.label = 11;
|
|
1141
|
+
case 11: return [2];
|
|
1287
1142
|
}
|
|
1288
1143
|
});
|
|
1289
1144
|
}); };
|
|
@@ -1295,28 +1150,26 @@ export var deserializeAws_restJson1ListSigningProfilesCommand = function (output
|
|
|
1295
1150
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1296
1151
|
return [2, deserializeAws_restJson1ListSigningProfilesCommandError(output, context)];
|
|
1297
1152
|
}
|
|
1298
|
-
contents = {
|
|
1153
|
+
contents = map({
|
|
1299
1154
|
$metadata: deserializeMetadata(output),
|
|
1300
|
-
|
|
1301
|
-
profiles: undefined,
|
|
1302
|
-
};
|
|
1155
|
+
});
|
|
1303
1156
|
_a = __expectNonNull;
|
|
1304
1157
|
_b = __expectObject;
|
|
1305
1158
|
return [4, parseBody(output.body, context)];
|
|
1306
1159
|
case 1:
|
|
1307
1160
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1308
|
-
if (data.nextToken
|
|
1161
|
+
if (data.nextToken != null) {
|
|
1309
1162
|
contents.nextToken = __expectString(data.nextToken);
|
|
1310
1163
|
}
|
|
1311
|
-
if (data.profiles
|
|
1164
|
+
if (data.profiles != null) {
|
|
1312
1165
|
contents.profiles = deserializeAws_restJson1SigningProfiles(data.profiles, context);
|
|
1313
1166
|
}
|
|
1314
|
-
return [2,
|
|
1167
|
+
return [2, contents];
|
|
1315
1168
|
}
|
|
1316
1169
|
});
|
|
1317
1170
|
}); };
|
|
1318
1171
|
var deserializeAws_restJson1ListSigningProfilesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1319
|
-
var parsedOutput, _a,
|
|
1172
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1320
1173
|
var _c;
|
|
1321
1174
|
return __generator(this, function (_d) {
|
|
1322
1175
|
switch (_d.label) {
|
|
@@ -1345,14 +1198,14 @@ var deserializeAws_restJson1ListSigningProfilesCommandError = function (output,
|
|
|
1345
1198
|
case 7: throw _d.sent();
|
|
1346
1199
|
case 8:
|
|
1347
1200
|
parsedBody = parsedOutput.body;
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
$metadata: $metadata,
|
|
1201
|
+
throwDefaultError({
|
|
1202
|
+
output: output,
|
|
1203
|
+
parsedBody: parsedBody,
|
|
1204
|
+
exceptionCtor: __BaseException,
|
|
1205
|
+
errorCode: errorCode,
|
|
1354
1206
|
});
|
|
1355
|
-
|
|
1207
|
+
_d.label = 9;
|
|
1208
|
+
case 9: return [2];
|
|
1356
1209
|
}
|
|
1357
1210
|
});
|
|
1358
1211
|
}); };
|
|
@@ -1364,24 +1217,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1364
1217
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1365
1218
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
1366
1219
|
}
|
|
1367
|
-
contents = {
|
|
1220
|
+
contents = map({
|
|
1368
1221
|
$metadata: deserializeMetadata(output),
|
|
1369
|
-
|
|
1370
|
-
};
|
|
1222
|
+
});
|
|
1371
1223
|
_a = __expectNonNull;
|
|
1372
1224
|
_b = __expectObject;
|
|
1373
1225
|
return [4, parseBody(output.body, context)];
|
|
1374
1226
|
case 1:
|
|
1375
1227
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1376
|
-
if (data.tags
|
|
1228
|
+
if (data.tags != null) {
|
|
1377
1229
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
1378
1230
|
}
|
|
1379
|
-
return [2,
|
|
1231
|
+
return [2, contents];
|
|
1380
1232
|
}
|
|
1381
1233
|
});
|
|
1382
1234
|
}); };
|
|
1383
1235
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1384
|
-
var parsedOutput, _a,
|
|
1236
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1385
1237
|
var _c;
|
|
1386
1238
|
return __generator(this, function (_d) {
|
|
1387
1239
|
switch (_d.label) {
|
|
@@ -1414,14 +1266,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1414
1266
|
case 9: throw _d.sent();
|
|
1415
1267
|
case 10:
|
|
1416
1268
|
parsedBody = parsedOutput.body;
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
$metadata: $metadata,
|
|
1269
|
+
throwDefaultError({
|
|
1270
|
+
output: output,
|
|
1271
|
+
parsedBody: parsedBody,
|
|
1272
|
+
exceptionCtor: __BaseException,
|
|
1273
|
+
errorCode: errorCode,
|
|
1423
1274
|
});
|
|
1424
|
-
|
|
1275
|
+
_d.label = 11;
|
|
1276
|
+
case 11: return [2];
|
|
1425
1277
|
}
|
|
1426
1278
|
});
|
|
1427
1279
|
}); };
|
|
@@ -1433,32 +1285,29 @@ export var deserializeAws_restJson1PutSigningProfileCommand = function (output,
|
|
|
1433
1285
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1434
1286
|
return [2, deserializeAws_restJson1PutSigningProfileCommandError(output, context)];
|
|
1435
1287
|
}
|
|
1436
|
-
contents = {
|
|
1288
|
+
contents = map({
|
|
1437
1289
|
$metadata: deserializeMetadata(output),
|
|
1438
|
-
|
|
1439
|
-
profileVersion: undefined,
|
|
1440
|
-
profileVersionArn: undefined,
|
|
1441
|
-
};
|
|
1290
|
+
});
|
|
1442
1291
|
_a = __expectNonNull;
|
|
1443
1292
|
_b = __expectObject;
|
|
1444
1293
|
return [4, parseBody(output.body, context)];
|
|
1445
1294
|
case 1:
|
|
1446
1295
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1447
|
-
if (data.arn
|
|
1296
|
+
if (data.arn != null) {
|
|
1448
1297
|
contents.arn = __expectString(data.arn);
|
|
1449
1298
|
}
|
|
1450
|
-
if (data.profileVersion
|
|
1299
|
+
if (data.profileVersion != null) {
|
|
1451
1300
|
contents.profileVersion = __expectString(data.profileVersion);
|
|
1452
1301
|
}
|
|
1453
|
-
if (data.profileVersionArn
|
|
1302
|
+
if (data.profileVersionArn != null) {
|
|
1454
1303
|
contents.profileVersionArn = __expectString(data.profileVersionArn);
|
|
1455
1304
|
}
|
|
1456
|
-
return [2,
|
|
1305
|
+
return [2, contents];
|
|
1457
1306
|
}
|
|
1458
1307
|
});
|
|
1459
1308
|
}); };
|
|
1460
1309
|
var deserializeAws_restJson1PutSigningProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1461
|
-
var parsedOutput, _a,
|
|
1310
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1462
1311
|
var _c;
|
|
1463
1312
|
return __generator(this, function (_d) {
|
|
1464
1313
|
switch (_d.label) {
|
|
@@ -1495,14 +1344,14 @@ var deserializeAws_restJson1PutSigningProfileCommandError = function (output, co
|
|
|
1495
1344
|
case 11: throw _d.sent();
|
|
1496
1345
|
case 12:
|
|
1497
1346
|
parsedBody = parsedOutput.body;
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
$metadata: $metadata,
|
|
1347
|
+
throwDefaultError({
|
|
1348
|
+
output: output,
|
|
1349
|
+
parsedBody: parsedBody,
|
|
1350
|
+
exceptionCtor: __BaseException,
|
|
1351
|
+
errorCode: errorCode,
|
|
1504
1352
|
});
|
|
1505
|
-
|
|
1353
|
+
_d.label = 13;
|
|
1354
|
+
case 13: return [2];
|
|
1506
1355
|
}
|
|
1507
1356
|
});
|
|
1508
1357
|
}); };
|
|
@@ -1514,24 +1363,23 @@ export var deserializeAws_restJson1RemoveProfilePermissionCommand = function (ou
|
|
|
1514
1363
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1515
1364
|
return [2, deserializeAws_restJson1RemoveProfilePermissionCommandError(output, context)];
|
|
1516
1365
|
}
|
|
1517
|
-
contents = {
|
|
1366
|
+
contents = map({
|
|
1518
1367
|
$metadata: deserializeMetadata(output),
|
|
1519
|
-
|
|
1520
|
-
};
|
|
1368
|
+
});
|
|
1521
1369
|
_a = __expectNonNull;
|
|
1522
1370
|
_b = __expectObject;
|
|
1523
1371
|
return [4, parseBody(output.body, context)];
|
|
1524
1372
|
case 1:
|
|
1525
1373
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1526
|
-
if (data.revisionId
|
|
1374
|
+
if (data.revisionId != null) {
|
|
1527
1375
|
contents.revisionId = __expectString(data.revisionId);
|
|
1528
1376
|
}
|
|
1529
|
-
return [2,
|
|
1377
|
+
return [2, contents];
|
|
1530
1378
|
}
|
|
1531
1379
|
});
|
|
1532
1380
|
}); };
|
|
1533
1381
|
var deserializeAws_restJson1RemoveProfilePermissionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1534
|
-
var parsedOutput, _a,
|
|
1382
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1535
1383
|
var _c;
|
|
1536
1384
|
return __generator(this, function (_d) {
|
|
1537
1385
|
switch (_d.label) {
|
|
@@ -1572,14 +1420,14 @@ var deserializeAws_restJson1RemoveProfilePermissionCommandError = function (outp
|
|
|
1572
1420
|
case 13: throw _d.sent();
|
|
1573
1421
|
case 14:
|
|
1574
1422
|
parsedBody = parsedOutput.body;
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
$metadata: $metadata,
|
|
1423
|
+
throwDefaultError({
|
|
1424
|
+
output: output,
|
|
1425
|
+
parsedBody: parsedBody,
|
|
1426
|
+
exceptionCtor: __BaseException,
|
|
1427
|
+
errorCode: errorCode,
|
|
1581
1428
|
});
|
|
1582
|
-
|
|
1429
|
+
_d.label = 15;
|
|
1430
|
+
case 15: return [2];
|
|
1583
1431
|
}
|
|
1584
1432
|
});
|
|
1585
1433
|
}); };
|
|
@@ -1591,18 +1439,18 @@ export var deserializeAws_restJson1RevokeSignatureCommand = function (output, co
|
|
|
1591
1439
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1592
1440
|
return [2, deserializeAws_restJson1RevokeSignatureCommandError(output, context)];
|
|
1593
1441
|
}
|
|
1594
|
-
contents = {
|
|
1442
|
+
contents = map({
|
|
1595
1443
|
$metadata: deserializeMetadata(output),
|
|
1596
|
-
};
|
|
1444
|
+
});
|
|
1597
1445
|
return [4, collectBody(output.body, context)];
|
|
1598
1446
|
case 1:
|
|
1599
1447
|
_a.sent();
|
|
1600
|
-
return [2,
|
|
1448
|
+
return [2, contents];
|
|
1601
1449
|
}
|
|
1602
1450
|
});
|
|
1603
1451
|
}); };
|
|
1604
1452
|
var deserializeAws_restJson1RevokeSignatureCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1605
|
-
var parsedOutput, _a,
|
|
1453
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1606
1454
|
var _c;
|
|
1607
1455
|
return __generator(this, function (_d) {
|
|
1608
1456
|
switch (_d.label) {
|
|
@@ -1639,14 +1487,14 @@ var deserializeAws_restJson1RevokeSignatureCommandError = function (output, cont
|
|
|
1639
1487
|
case 11: throw _d.sent();
|
|
1640
1488
|
case 12:
|
|
1641
1489
|
parsedBody = parsedOutput.body;
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
$metadata: $metadata,
|
|
1490
|
+
throwDefaultError({
|
|
1491
|
+
output: output,
|
|
1492
|
+
parsedBody: parsedBody,
|
|
1493
|
+
exceptionCtor: __BaseException,
|
|
1494
|
+
errorCode: errorCode,
|
|
1648
1495
|
});
|
|
1649
|
-
|
|
1496
|
+
_d.label = 13;
|
|
1497
|
+
case 13: return [2];
|
|
1650
1498
|
}
|
|
1651
1499
|
});
|
|
1652
1500
|
}); };
|
|
@@ -1658,18 +1506,18 @@ export var deserializeAws_restJson1RevokeSigningProfileCommand = function (outpu
|
|
|
1658
1506
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1659
1507
|
return [2, deserializeAws_restJson1RevokeSigningProfileCommandError(output, context)];
|
|
1660
1508
|
}
|
|
1661
|
-
contents = {
|
|
1509
|
+
contents = map({
|
|
1662
1510
|
$metadata: deserializeMetadata(output),
|
|
1663
|
-
};
|
|
1511
|
+
});
|
|
1664
1512
|
return [4, collectBody(output.body, context)];
|
|
1665
1513
|
case 1:
|
|
1666
1514
|
_a.sent();
|
|
1667
|
-
return [2,
|
|
1515
|
+
return [2, contents];
|
|
1668
1516
|
}
|
|
1669
1517
|
});
|
|
1670
1518
|
}); };
|
|
1671
1519
|
var deserializeAws_restJson1RevokeSigningProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1672
|
-
var parsedOutput, _a,
|
|
1520
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1673
1521
|
var _c;
|
|
1674
1522
|
return __generator(this, function (_d) {
|
|
1675
1523
|
switch (_d.label) {
|
|
@@ -1706,14 +1554,14 @@ var deserializeAws_restJson1RevokeSigningProfileCommandError = function (output,
|
|
|
1706
1554
|
case 11: throw _d.sent();
|
|
1707
1555
|
case 12:
|
|
1708
1556
|
parsedBody = parsedOutput.body;
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
$metadata: $metadata,
|
|
1557
|
+
throwDefaultError({
|
|
1558
|
+
output: output,
|
|
1559
|
+
parsedBody: parsedBody,
|
|
1560
|
+
exceptionCtor: __BaseException,
|
|
1561
|
+
errorCode: errorCode,
|
|
1715
1562
|
});
|
|
1716
|
-
|
|
1563
|
+
_d.label = 13;
|
|
1564
|
+
case 13: return [2];
|
|
1717
1565
|
}
|
|
1718
1566
|
});
|
|
1719
1567
|
}); };
|
|
@@ -1725,28 +1573,26 @@ export var deserializeAws_restJson1StartSigningJobCommand = function (output, co
|
|
|
1725
1573
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1726
1574
|
return [2, deserializeAws_restJson1StartSigningJobCommandError(output, context)];
|
|
1727
1575
|
}
|
|
1728
|
-
contents = {
|
|
1576
|
+
contents = map({
|
|
1729
1577
|
$metadata: deserializeMetadata(output),
|
|
1730
|
-
|
|
1731
|
-
jobOwner: undefined,
|
|
1732
|
-
};
|
|
1578
|
+
});
|
|
1733
1579
|
_a = __expectNonNull;
|
|
1734
1580
|
_b = __expectObject;
|
|
1735
1581
|
return [4, parseBody(output.body, context)];
|
|
1736
1582
|
case 1:
|
|
1737
1583
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1738
|
-
if (data.jobId
|
|
1584
|
+
if (data.jobId != null) {
|
|
1739
1585
|
contents.jobId = __expectString(data.jobId);
|
|
1740
1586
|
}
|
|
1741
|
-
if (data.jobOwner
|
|
1587
|
+
if (data.jobOwner != null) {
|
|
1742
1588
|
contents.jobOwner = __expectString(data.jobOwner);
|
|
1743
1589
|
}
|
|
1744
|
-
return [2,
|
|
1590
|
+
return [2, contents];
|
|
1745
1591
|
}
|
|
1746
1592
|
});
|
|
1747
1593
|
}); };
|
|
1748
1594
|
var deserializeAws_restJson1StartSigningJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1749
|
-
var parsedOutput, _a,
|
|
1595
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1750
1596
|
var _c;
|
|
1751
1597
|
return __generator(this, function (_d) {
|
|
1752
1598
|
switch (_d.label) {
|
|
@@ -1787,14 +1633,14 @@ var deserializeAws_restJson1StartSigningJobCommandError = function (output, cont
|
|
|
1787
1633
|
case 13: throw _d.sent();
|
|
1788
1634
|
case 14:
|
|
1789
1635
|
parsedBody = parsedOutput.body;
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
$metadata: $metadata,
|
|
1636
|
+
throwDefaultError({
|
|
1637
|
+
output: output,
|
|
1638
|
+
parsedBody: parsedBody,
|
|
1639
|
+
exceptionCtor: __BaseException,
|
|
1640
|
+
errorCode: errorCode,
|
|
1796
1641
|
});
|
|
1797
|
-
|
|
1642
|
+
_d.label = 15;
|
|
1643
|
+
case 15: return [2];
|
|
1798
1644
|
}
|
|
1799
1645
|
});
|
|
1800
1646
|
}); };
|
|
@@ -1806,18 +1652,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
1806
1652
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1807
1653
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
1808
1654
|
}
|
|
1809
|
-
contents = {
|
|
1655
|
+
contents = map({
|
|
1810
1656
|
$metadata: deserializeMetadata(output),
|
|
1811
|
-
};
|
|
1657
|
+
});
|
|
1812
1658
|
return [4, collectBody(output.body, context)];
|
|
1813
1659
|
case 1:
|
|
1814
1660
|
_a.sent();
|
|
1815
|
-
return [2,
|
|
1661
|
+
return [2, contents];
|
|
1816
1662
|
}
|
|
1817
1663
|
});
|
|
1818
1664
|
}); };
|
|
1819
1665
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1820
|
-
var parsedOutput, _a,
|
|
1666
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1821
1667
|
var _c;
|
|
1822
1668
|
return __generator(this, function (_d) {
|
|
1823
1669
|
switch (_d.label) {
|
|
@@ -1850,14 +1696,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1850
1696
|
case 9: throw _d.sent();
|
|
1851
1697
|
case 10:
|
|
1852
1698
|
parsedBody = parsedOutput.body;
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
$metadata: $metadata,
|
|
1699
|
+
throwDefaultError({
|
|
1700
|
+
output: output,
|
|
1701
|
+
parsedBody: parsedBody,
|
|
1702
|
+
exceptionCtor: __BaseException,
|
|
1703
|
+
errorCode: errorCode,
|
|
1859
1704
|
});
|
|
1860
|
-
|
|
1705
|
+
_d.label = 11;
|
|
1706
|
+
case 11: return [2];
|
|
1861
1707
|
}
|
|
1862
1708
|
});
|
|
1863
1709
|
}); };
|
|
@@ -1869,18 +1715,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
1869
1715
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1870
1716
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
1871
1717
|
}
|
|
1872
|
-
contents = {
|
|
1718
|
+
contents = map({
|
|
1873
1719
|
$metadata: deserializeMetadata(output),
|
|
1874
|
-
};
|
|
1720
|
+
});
|
|
1875
1721
|
return [4, collectBody(output.body, context)];
|
|
1876
1722
|
case 1:
|
|
1877
1723
|
_a.sent();
|
|
1878
|
-
return [2,
|
|
1724
|
+
return [2, contents];
|
|
1879
1725
|
}
|
|
1880
1726
|
});
|
|
1881
1727
|
}); };
|
|
1882
1728
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1883
|
-
var parsedOutput, _a,
|
|
1729
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1884
1730
|
var _c;
|
|
1885
1731
|
return __generator(this, function (_d) {
|
|
1886
1732
|
switch (_d.label) {
|
|
@@ -1913,26 +1759,27 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1913
1759
|
case 9: throw _d.sent();
|
|
1914
1760
|
case 10:
|
|
1915
1761
|
parsedBody = parsedOutput.body;
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
$metadata: $metadata,
|
|
1762
|
+
throwDefaultError({
|
|
1763
|
+
output: output,
|
|
1764
|
+
parsedBody: parsedBody,
|
|
1765
|
+
exceptionCtor: __BaseException,
|
|
1766
|
+
errorCode: errorCode,
|
|
1922
1767
|
});
|
|
1923
|
-
|
|
1768
|
+
_d.label = 11;
|
|
1769
|
+
case 11: return [2];
|
|
1924
1770
|
}
|
|
1925
1771
|
});
|
|
1926
1772
|
}); };
|
|
1773
|
+
var map = __map;
|
|
1927
1774
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1928
1775
|
var contents, data, exception;
|
|
1929
1776
|
return __generator(this, function (_a) {
|
|
1930
|
-
contents = {};
|
|
1777
|
+
contents = map({});
|
|
1931
1778
|
data = parsedOutput.body;
|
|
1932
|
-
if (data.code
|
|
1779
|
+
if (data.code != null) {
|
|
1933
1780
|
contents.code = __expectString(data.code);
|
|
1934
1781
|
}
|
|
1935
|
-
if (data.message
|
|
1782
|
+
if (data.message != null) {
|
|
1936
1783
|
contents.message = __expectString(data.message);
|
|
1937
1784
|
}
|
|
1938
1785
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1942,12 +1789,12 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
1942
1789
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1943
1790
|
var contents, data, exception;
|
|
1944
1791
|
return __generator(this, function (_a) {
|
|
1945
|
-
contents = {};
|
|
1792
|
+
contents = map({});
|
|
1946
1793
|
data = parsedOutput.body;
|
|
1947
|
-
if (data.code
|
|
1794
|
+
if (data.code != null) {
|
|
1948
1795
|
contents.code = __expectString(data.code);
|
|
1949
1796
|
}
|
|
1950
|
-
if (data.message
|
|
1797
|
+
if (data.message != null) {
|
|
1951
1798
|
contents.message = __expectString(data.message);
|
|
1952
1799
|
}
|
|
1953
1800
|
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1957,12 +1804,12 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
1957
1804
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1958
1805
|
var contents, data, exception;
|
|
1959
1806
|
return __generator(this, function (_a) {
|
|
1960
|
-
contents = {};
|
|
1807
|
+
contents = map({});
|
|
1961
1808
|
data = parsedOutput.body;
|
|
1962
|
-
if (data.code
|
|
1809
|
+
if (data.code != null) {
|
|
1963
1810
|
contents.code = __expectString(data.code);
|
|
1964
1811
|
}
|
|
1965
|
-
if (data.message
|
|
1812
|
+
if (data.message != null) {
|
|
1966
1813
|
contents.message = __expectString(data.message);
|
|
1967
1814
|
}
|
|
1968
1815
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1972,12 +1819,12 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
1972
1819
|
var deserializeAws_restJson1InternalServiceErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1973
1820
|
var contents, data, exception;
|
|
1974
1821
|
return __generator(this, function (_a) {
|
|
1975
|
-
contents = {};
|
|
1822
|
+
contents = map({});
|
|
1976
1823
|
data = parsedOutput.body;
|
|
1977
|
-
if (data.code
|
|
1824
|
+
if (data.code != null) {
|
|
1978
1825
|
contents.code = __expectString(data.code);
|
|
1979
1826
|
}
|
|
1980
|
-
if (data.message
|
|
1827
|
+
if (data.message != null) {
|
|
1981
1828
|
contents.message = __expectString(data.message);
|
|
1982
1829
|
}
|
|
1983
1830
|
exception = new InternalServiceErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1987,12 +1834,12 @@ var deserializeAws_restJson1InternalServiceErrorExceptionResponse = function (pa
|
|
|
1987
1834
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1988
1835
|
var contents, data, exception;
|
|
1989
1836
|
return __generator(this, function (_a) {
|
|
1990
|
-
contents = {};
|
|
1837
|
+
contents = map({});
|
|
1991
1838
|
data = parsedOutput.body;
|
|
1992
|
-
if (data.code
|
|
1839
|
+
if (data.code != null) {
|
|
1993
1840
|
contents.code = __expectString(data.code);
|
|
1994
1841
|
}
|
|
1995
|
-
if (data.message
|
|
1842
|
+
if (data.message != null) {
|
|
1996
1843
|
contents.message = __expectString(data.message);
|
|
1997
1844
|
}
|
|
1998
1845
|
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2002,12 +1849,12 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
2002
1849
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2003
1850
|
var contents, data, exception;
|
|
2004
1851
|
return __generator(this, function (_a) {
|
|
2005
|
-
contents = {};
|
|
1852
|
+
contents = map({});
|
|
2006
1853
|
data = parsedOutput.body;
|
|
2007
|
-
if (data.code
|
|
1854
|
+
if (data.code != null) {
|
|
2008
1855
|
contents.code = __expectString(data.code);
|
|
2009
1856
|
}
|
|
2010
|
-
if (data.message
|
|
1857
|
+
if (data.message != null) {
|
|
2011
1858
|
contents.message = __expectString(data.message);
|
|
2012
1859
|
}
|
|
2013
1860
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2017,12 +1864,12 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
2017
1864
|
var deserializeAws_restJson1ServiceLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2018
1865
|
var contents, data, exception;
|
|
2019
1866
|
return __generator(this, function (_a) {
|
|
2020
|
-
contents = {};
|
|
1867
|
+
contents = map({});
|
|
2021
1868
|
data = parsedOutput.body;
|
|
2022
|
-
if (data.code
|
|
1869
|
+
if (data.code != null) {
|
|
2023
1870
|
contents.code = __expectString(data.code);
|
|
2024
1871
|
}
|
|
2025
|
-
if (data.message
|
|
1872
|
+
if (data.message != null) {
|
|
2026
1873
|
contents.message = __expectString(data.message);
|
|
2027
1874
|
}
|
|
2028
1875
|
exception = new ServiceLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2032,12 +1879,12 @@ var deserializeAws_restJson1ServiceLimitExceededExceptionResponse = function (pa
|
|
|
2032
1879
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2033
1880
|
var contents, data, exception;
|
|
2034
1881
|
return __generator(this, function (_a) {
|
|
2035
|
-
contents = {};
|
|
1882
|
+
contents = map({});
|
|
2036
1883
|
data = parsedOutput.body;
|
|
2037
|
-
if (data.code
|
|
1884
|
+
if (data.code != null) {
|
|
2038
1885
|
contents.code = __expectString(data.code);
|
|
2039
1886
|
}
|
|
2040
|
-
if (data.message
|
|
1887
|
+
if (data.message != null) {
|
|
2041
1888
|
contents.message = __expectString(data.message);
|
|
2042
1889
|
}
|
|
2043
1890
|
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2047,12 +1894,12 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
2047
1894
|
var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2048
1895
|
var contents, data, exception;
|
|
2049
1896
|
return __generator(this, function (_a) {
|
|
2050
|
-
contents = {};
|
|
1897
|
+
contents = map({});
|
|
2051
1898
|
data = parsedOutput.body;
|
|
2052
|
-
if (data.code
|
|
1899
|
+
if (data.code != null) {
|
|
2053
1900
|
contents.code = __expectString(data.code);
|
|
2054
1901
|
}
|
|
2055
|
-
if (data.message
|
|
1902
|
+
if (data.message != null) {
|
|
2056
1903
|
contents.message = __expectString(data.message);
|
|
2057
1904
|
}
|
|
2058
1905
|
exception = new TooManyRequestsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2062,12 +1909,12 @@ var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedO
|
|
|
2062
1909
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2063
1910
|
var contents, data, exception;
|
|
2064
1911
|
return __generator(this, function (_a) {
|
|
2065
|
-
contents = {};
|
|
1912
|
+
contents = map({});
|
|
2066
1913
|
data = parsedOutput.body;
|
|
2067
|
-
if (data.code
|
|
1914
|
+
if (data.code != null) {
|
|
2068
1915
|
contents.code = __expectString(data.code);
|
|
2069
1916
|
}
|
|
2070
|
-
if (data.message
|
|
1917
|
+
if (data.message != null) {
|
|
2071
1918
|
contents.message = __expectString(data.message);
|
|
2072
1919
|
}
|
|
2073
1920
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|