@aws-sdk/client-signer 3.303.0 → 3.309.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/AddProfilePermissionCommand.js +2 -2
- package/dist-cjs/commands/CancelSigningProfileCommand.js +2 -2
- package/dist-cjs/commands/DescribeSigningJobCommand.js +2 -2
- package/dist-cjs/commands/GetSigningPlatformCommand.js +2 -2
- package/dist-cjs/commands/GetSigningProfileCommand.js +2 -2
- package/dist-cjs/commands/ListProfilePermissionsCommand.js +2 -2
- package/dist-cjs/commands/ListSigningJobsCommand.js +2 -2
- package/dist-cjs/commands/ListSigningPlatformsCommand.js +2 -2
- package/dist-cjs/commands/ListSigningProfilesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/PutSigningProfileCommand.js +2 -2
- package/dist-cjs/commands/RemoveProfilePermissionCommand.js +2 -2
- package/dist-cjs/commands/RevokeSignatureCommand.js +2 -2
- package/dist-cjs/commands/RevokeSigningProfileCommand.js +2 -2
- package/dist-cjs/commands/StartSigningJobCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +279 -299
- package/dist-es/commands/AddProfilePermissionCommand.js +3 -3
- package/dist-es/commands/CancelSigningProfileCommand.js +3 -3
- package/dist-es/commands/DescribeSigningJobCommand.js +3 -3
- package/dist-es/commands/GetSigningPlatformCommand.js +3 -3
- package/dist-es/commands/GetSigningProfileCommand.js +3 -3
- package/dist-es/commands/ListProfilePermissionsCommand.js +3 -3
- package/dist-es/commands/ListSigningJobsCommand.js +3 -3
- package/dist-es/commands/ListSigningPlatformsCommand.js +3 -3
- package/dist-es/commands/ListSigningProfilesCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/PutSigningProfileCommand.js +3 -3
- package/dist-es/commands/RemoveProfilePermissionCommand.js +3 -3
- package/dist-es/commands/RevokeSignatureCommand.js +3 -3
- package/dist-es/commands/RevokeSigningProfileCommand.js +3 -3
- package/dist-es/commands/StartSigningJobCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +244 -264
- package/dist-types/protocols/Aws_restJson1.d.ts +136 -34
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +34 -34
- package/package.json +30 -30
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartSigningJobCommand = exports.de_RevokeSigningProfileCommand = exports.de_RevokeSignatureCommand = exports.de_RemoveProfilePermissionCommand = exports.de_PutSigningProfileCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSigningProfilesCommand = exports.de_ListSigningPlatformsCommand = exports.de_ListSigningJobsCommand = exports.de_ListProfilePermissionsCommand = exports.de_GetSigningProfileCommand = exports.de_GetSigningPlatformCommand = exports.de_DescribeSigningJobCommand = exports.de_CancelSigningProfileCommand = exports.de_AddProfilePermissionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartSigningJobCommand = exports.se_RevokeSigningProfileCommand = exports.se_RevokeSignatureCommand = exports.se_RemoveProfilePermissionCommand = exports.se_PutSigningProfileCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSigningProfilesCommand = exports.se_ListSigningPlatformsCommand = exports.se_ListSigningJobsCommand = exports.se_ListProfilePermissionsCommand = exports.se_GetSigningProfileCommand = exports.se_GetSigningPlatformCommand = exports.se_DescribeSigningJobCommand = exports.se_CancelSigningProfileCommand = exports.se_AddProfilePermissionCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const SignerServiceException_1 = require("../models/SignerServiceException");
|
|
9
|
-
const
|
|
9
|
+
const se_AddProfilePermissionCommand = async (input, context) => {
|
|
10
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
@@ -32,8 +32,8 @@ const serializeAws_restJson1AddProfilePermissionCommand = async (input, context)
|
|
|
32
32
|
body,
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
|
-
exports.
|
|
36
|
-
const
|
|
35
|
+
exports.se_AddProfilePermissionCommand = se_AddProfilePermissionCommand;
|
|
36
|
+
const se_CancelSigningProfileCommand = async (input, context) => {
|
|
37
37
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
38
38
|
const headers = {};
|
|
39
39
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-profiles/{profileName}";
|
|
@@ -49,8 +49,8 @@ const serializeAws_restJson1CancelSigningProfileCommand = async (input, context)
|
|
|
49
49
|
body,
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
|
-
exports.
|
|
53
|
-
const
|
|
52
|
+
exports.se_CancelSigningProfileCommand = se_CancelSigningProfileCommand;
|
|
53
|
+
const se_DescribeSigningJobCommand = async (input, context) => {
|
|
54
54
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
55
55
|
const headers = {};
|
|
56
56
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-jobs/{jobId}";
|
|
@@ -66,8 +66,8 @@ const serializeAws_restJson1DescribeSigningJobCommand = async (input, context) =
|
|
|
66
66
|
body,
|
|
67
67
|
});
|
|
68
68
|
};
|
|
69
|
-
exports.
|
|
70
|
-
const
|
|
69
|
+
exports.se_DescribeSigningJobCommand = se_DescribeSigningJobCommand;
|
|
70
|
+
const se_GetSigningPlatformCommand = async (input, context) => {
|
|
71
71
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
72
72
|
const headers = {};
|
|
73
73
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-platforms/{platformId}";
|
|
@@ -83,8 +83,8 @@ const serializeAws_restJson1GetSigningPlatformCommand = async (input, context) =
|
|
|
83
83
|
body,
|
|
84
84
|
});
|
|
85
85
|
};
|
|
86
|
-
exports.
|
|
87
|
-
const
|
|
86
|
+
exports.se_GetSigningPlatformCommand = se_GetSigningPlatformCommand;
|
|
87
|
+
const se_GetSigningProfileCommand = async (input, context) => {
|
|
88
88
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
89
89
|
const headers = {};
|
|
90
90
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-profiles/{profileName}";
|
|
@@ -104,8 +104,8 @@ const serializeAws_restJson1GetSigningProfileCommand = async (input, context) =>
|
|
|
104
104
|
body,
|
|
105
105
|
});
|
|
106
106
|
};
|
|
107
|
-
exports.
|
|
108
|
-
const
|
|
107
|
+
exports.se_GetSigningProfileCommand = se_GetSigningProfileCommand;
|
|
108
|
+
const se_ListProfilePermissionsCommand = async (input, context) => {
|
|
109
109
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
110
110
|
const headers = {};
|
|
111
111
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -126,8 +126,8 @@ const serializeAws_restJson1ListProfilePermissionsCommand = async (input, contex
|
|
|
126
126
|
body,
|
|
127
127
|
});
|
|
128
128
|
};
|
|
129
|
-
exports.
|
|
130
|
-
const
|
|
129
|
+
exports.se_ListProfilePermissionsCommand = se_ListProfilePermissionsCommand;
|
|
130
|
+
const se_ListSigningJobsCommand = async (input, context) => {
|
|
131
131
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
132
132
|
const headers = {};
|
|
133
133
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-jobs";
|
|
@@ -160,8 +160,8 @@ const serializeAws_restJson1ListSigningJobsCommand = async (input, context) => {
|
|
|
160
160
|
body,
|
|
161
161
|
});
|
|
162
162
|
};
|
|
163
|
-
exports.
|
|
164
|
-
const
|
|
163
|
+
exports.se_ListSigningJobsCommand = se_ListSigningJobsCommand;
|
|
164
|
+
const se_ListSigningPlatformsCommand = async (input, context) => {
|
|
165
165
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
166
166
|
const headers = {};
|
|
167
167
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-platforms";
|
|
@@ -184,8 +184,8 @@ const serializeAws_restJson1ListSigningPlatformsCommand = async (input, context)
|
|
|
184
184
|
body,
|
|
185
185
|
});
|
|
186
186
|
};
|
|
187
|
-
exports.
|
|
188
|
-
const
|
|
187
|
+
exports.se_ListSigningPlatformsCommand = se_ListSigningPlatformsCommand;
|
|
188
|
+
const se_ListSigningProfilesCommand = async (input, context) => {
|
|
189
189
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
190
190
|
const headers = {};
|
|
191
191
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-profiles";
|
|
@@ -208,8 +208,8 @@ const serializeAws_restJson1ListSigningProfilesCommand = async (input, context)
|
|
|
208
208
|
body,
|
|
209
209
|
});
|
|
210
210
|
};
|
|
211
|
-
exports.
|
|
212
|
-
const
|
|
211
|
+
exports.se_ListSigningProfilesCommand = se_ListSigningProfilesCommand;
|
|
212
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
213
213
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
214
214
|
const headers = {};
|
|
215
215
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -225,8 +225,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
225
225
|
body,
|
|
226
226
|
});
|
|
227
227
|
};
|
|
228
|
-
exports.
|
|
229
|
-
const
|
|
228
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
229
|
+
const se_PutSigningProfileCommand = async (input, context) => {
|
|
230
230
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
231
231
|
const headers = {
|
|
232
232
|
"content-type": "application/json",
|
|
@@ -235,20 +235,16 @@ const serializeAws_restJson1PutSigningProfileCommand = async (input, context) =>
|
|
|
235
235
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "profileName", () => input.profileName, "{profileName}", false);
|
|
236
236
|
let body;
|
|
237
237
|
body = JSON.stringify({
|
|
238
|
-
...(input.overrides != null && {
|
|
239
|
-
overrides: serializeAws_restJson1SigningPlatformOverrides(input.overrides, context),
|
|
240
|
-
}),
|
|
238
|
+
...(input.overrides != null && { overrides: se_SigningPlatformOverrides(input.overrides, context) }),
|
|
241
239
|
...(input.platformId != null && { platformId: input.platformId }),
|
|
242
240
|
...(input.signatureValidityPeriod != null && {
|
|
243
|
-
signatureValidityPeriod:
|
|
244
|
-
}),
|
|
245
|
-
...(input.signingMaterial != null && {
|
|
246
|
-
signingMaterial: serializeAws_restJson1SigningMaterial(input.signingMaterial, context),
|
|
241
|
+
signatureValidityPeriod: se_SignatureValidityPeriod(input.signatureValidityPeriod, context),
|
|
247
242
|
}),
|
|
243
|
+
...(input.signingMaterial != null && { signingMaterial: se_SigningMaterial(input.signingMaterial, context) }),
|
|
248
244
|
...(input.signingParameters != null && {
|
|
249
|
-
signingParameters:
|
|
245
|
+
signingParameters: se_SigningParameters(input.signingParameters, context),
|
|
250
246
|
}),
|
|
251
|
-
...(input.tags != null && { tags:
|
|
247
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
252
248
|
});
|
|
253
249
|
return new protocol_http_1.HttpRequest({
|
|
254
250
|
protocol,
|
|
@@ -260,8 +256,8 @@ const serializeAws_restJson1PutSigningProfileCommand = async (input, context) =>
|
|
|
260
256
|
body,
|
|
261
257
|
});
|
|
262
258
|
};
|
|
263
|
-
exports.
|
|
264
|
-
const
|
|
259
|
+
exports.se_PutSigningProfileCommand = se_PutSigningProfileCommand;
|
|
260
|
+
const se_RemoveProfilePermissionCommand = async (input, context) => {
|
|
265
261
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
266
262
|
const headers = {};
|
|
267
263
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -283,8 +279,8 @@ const serializeAws_restJson1RemoveProfilePermissionCommand = async (input, conte
|
|
|
283
279
|
body,
|
|
284
280
|
});
|
|
285
281
|
};
|
|
286
|
-
exports.
|
|
287
|
-
const
|
|
282
|
+
exports.se_RemoveProfilePermissionCommand = se_RemoveProfilePermissionCommand;
|
|
283
|
+
const se_RevokeSignatureCommand = async (input, context) => {
|
|
288
284
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
289
285
|
const headers = {
|
|
290
286
|
"content-type": "application/json",
|
|
@@ -306,8 +302,8 @@ const serializeAws_restJson1RevokeSignatureCommand = async (input, context) => {
|
|
|
306
302
|
body,
|
|
307
303
|
});
|
|
308
304
|
};
|
|
309
|
-
exports.
|
|
310
|
-
const
|
|
305
|
+
exports.se_RevokeSignatureCommand = se_RevokeSignatureCommand;
|
|
306
|
+
const se_RevokeSigningProfileCommand = async (input, context) => {
|
|
311
307
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
312
308
|
const headers = {
|
|
313
309
|
"content-type": "application/json",
|
|
@@ -330,8 +326,8 @@ const serializeAws_restJson1RevokeSigningProfileCommand = async (input, context)
|
|
|
330
326
|
body,
|
|
331
327
|
});
|
|
332
328
|
};
|
|
333
|
-
exports.
|
|
334
|
-
const
|
|
329
|
+
exports.se_RevokeSigningProfileCommand = se_RevokeSigningProfileCommand;
|
|
330
|
+
const se_StartSigningJobCommand = async (input, context) => {
|
|
335
331
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
336
332
|
const headers = {
|
|
337
333
|
"content-type": "application/json",
|
|
@@ -340,10 +336,10 @@ const serializeAws_restJson1StartSigningJobCommand = async (input, context) => {
|
|
|
340
336
|
let body;
|
|
341
337
|
body = JSON.stringify({
|
|
342
338
|
clientRequestToken: input.clientRequestToken ?? (0, uuid_1.v4)(),
|
|
343
|
-
...(input.destination != null && { destination:
|
|
339
|
+
...(input.destination != null && { destination: se_Destination(input.destination, context) }),
|
|
344
340
|
...(input.profileName != null && { profileName: input.profileName }),
|
|
345
341
|
...(input.profileOwner != null && { profileOwner: input.profileOwner }),
|
|
346
|
-
...(input.source != null && { source:
|
|
342
|
+
...(input.source != null && { source: se_Source(input.source, context) }),
|
|
347
343
|
});
|
|
348
344
|
return new protocol_http_1.HttpRequest({
|
|
349
345
|
protocol,
|
|
@@ -355,8 +351,8 @@ const serializeAws_restJson1StartSigningJobCommand = async (input, context) => {
|
|
|
355
351
|
body,
|
|
356
352
|
});
|
|
357
353
|
};
|
|
358
|
-
exports.
|
|
359
|
-
const
|
|
354
|
+
exports.se_StartSigningJobCommand = se_StartSigningJobCommand;
|
|
355
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
360
356
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
361
357
|
const headers = {
|
|
362
358
|
"content-type": "application/json",
|
|
@@ -365,7 +361,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
365
361
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
366
362
|
let body;
|
|
367
363
|
body = JSON.stringify({
|
|
368
|
-
...(input.tags != null && { tags:
|
|
364
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
369
365
|
});
|
|
370
366
|
return new protocol_http_1.HttpRequest({
|
|
371
367
|
protocol,
|
|
@@ -377,8 +373,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
377
373
|
body,
|
|
378
374
|
});
|
|
379
375
|
};
|
|
380
|
-
exports.
|
|
381
|
-
const
|
|
376
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
377
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
382
378
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
383
379
|
const headers = {};
|
|
384
380
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -401,10 +397,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
401
397
|
body,
|
|
402
398
|
});
|
|
403
399
|
};
|
|
404
|
-
exports.
|
|
405
|
-
const
|
|
400
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
401
|
+
const de_AddProfilePermissionCommand = async (output, context) => {
|
|
406
402
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
407
|
-
return
|
|
403
|
+
return de_AddProfilePermissionCommandError(output, context);
|
|
408
404
|
}
|
|
409
405
|
const contents = map({
|
|
410
406
|
$metadata: deserializeMetadata(output),
|
|
@@ -415,8 +411,8 @@ const deserializeAws_restJson1AddProfilePermissionCommand = async (output, conte
|
|
|
415
411
|
}
|
|
416
412
|
return contents;
|
|
417
413
|
};
|
|
418
|
-
exports.
|
|
419
|
-
const
|
|
414
|
+
exports.de_AddProfilePermissionCommand = de_AddProfilePermissionCommand;
|
|
415
|
+
const de_AddProfilePermissionCommandError = async (output, context) => {
|
|
420
416
|
const parsedOutput = {
|
|
421
417
|
...output,
|
|
422
418
|
body: await parseErrorBody(output.body, context),
|
|
@@ -425,25 +421,25 @@ const deserializeAws_restJson1AddProfilePermissionCommandError = async (output,
|
|
|
425
421
|
switch (errorCode) {
|
|
426
422
|
case "AccessDeniedException":
|
|
427
423
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
428
|
-
throw await
|
|
424
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
429
425
|
case "ConflictException":
|
|
430
426
|
case "com.amazonaws.signer#ConflictException":
|
|
431
|
-
throw await
|
|
427
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
432
428
|
case "InternalServiceErrorException":
|
|
433
429
|
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
434
|
-
throw await
|
|
430
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
435
431
|
case "ResourceNotFoundException":
|
|
436
432
|
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
437
|
-
throw await
|
|
433
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
438
434
|
case "ServiceLimitExceededException":
|
|
439
435
|
case "com.amazonaws.signer#ServiceLimitExceededException":
|
|
440
|
-
throw await
|
|
436
|
+
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
441
437
|
case "TooManyRequestsException":
|
|
442
438
|
case "com.amazonaws.signer#TooManyRequestsException":
|
|
443
|
-
throw await
|
|
439
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
444
440
|
case "ValidationException":
|
|
445
441
|
case "com.amazonaws.signer#ValidationException":
|
|
446
|
-
throw await
|
|
442
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
447
443
|
default:
|
|
448
444
|
const parsedBody = parsedOutput.body;
|
|
449
445
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -454,9 +450,9 @@ const deserializeAws_restJson1AddProfilePermissionCommandError = async (output,
|
|
|
454
450
|
});
|
|
455
451
|
}
|
|
456
452
|
};
|
|
457
|
-
const
|
|
453
|
+
const de_CancelSigningProfileCommand = async (output, context) => {
|
|
458
454
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
459
|
-
return
|
|
455
|
+
return de_CancelSigningProfileCommandError(output, context);
|
|
460
456
|
}
|
|
461
457
|
const contents = map({
|
|
462
458
|
$metadata: deserializeMetadata(output),
|
|
@@ -464,8 +460,8 @@ const deserializeAws_restJson1CancelSigningProfileCommand = async (output, conte
|
|
|
464
460
|
await collectBody(output.body, context);
|
|
465
461
|
return contents;
|
|
466
462
|
};
|
|
467
|
-
exports.
|
|
468
|
-
const
|
|
463
|
+
exports.de_CancelSigningProfileCommand = de_CancelSigningProfileCommand;
|
|
464
|
+
const de_CancelSigningProfileCommandError = async (output, context) => {
|
|
469
465
|
const parsedOutput = {
|
|
470
466
|
...output,
|
|
471
467
|
body: await parseErrorBody(output.body, context),
|
|
@@ -474,16 +470,16 @@ const deserializeAws_restJson1CancelSigningProfileCommandError = async (output,
|
|
|
474
470
|
switch (errorCode) {
|
|
475
471
|
case "AccessDeniedException":
|
|
476
472
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
477
|
-
throw await
|
|
473
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
478
474
|
case "InternalServiceErrorException":
|
|
479
475
|
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
480
|
-
throw await
|
|
476
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
481
477
|
case "ResourceNotFoundException":
|
|
482
478
|
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
483
|
-
throw await
|
|
479
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
484
480
|
case "TooManyRequestsException":
|
|
485
481
|
case "com.amazonaws.signer#TooManyRequestsException":
|
|
486
|
-
throw await
|
|
482
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
487
483
|
default:
|
|
488
484
|
const parsedBody = parsedOutput.body;
|
|
489
485
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -494,9 +490,9 @@ const deserializeAws_restJson1CancelSigningProfileCommandError = async (output,
|
|
|
494
490
|
});
|
|
495
491
|
}
|
|
496
492
|
};
|
|
497
|
-
const
|
|
493
|
+
const de_DescribeSigningJobCommand = async (output, context) => {
|
|
498
494
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
499
|
-
return
|
|
495
|
+
return de_DescribeSigningJobCommandError(output, context);
|
|
500
496
|
}
|
|
501
497
|
const contents = map({
|
|
502
498
|
$metadata: deserializeMetadata(output),
|
|
@@ -518,7 +514,7 @@ const deserializeAws_restJson1DescribeSigningJobCommand = async (output, context
|
|
|
518
514
|
contents.jobOwner = (0, smithy_client_1.expectString)(data.jobOwner);
|
|
519
515
|
}
|
|
520
516
|
if (data.overrides != null) {
|
|
521
|
-
contents.overrides =
|
|
517
|
+
contents.overrides = de_SigningPlatformOverrides(data.overrides, context);
|
|
522
518
|
}
|
|
523
519
|
if (data.platformDisplayName != null) {
|
|
524
520
|
contents.platformDisplayName = (0, smithy_client_1.expectString)(data.platformDisplayName);
|
|
@@ -536,22 +532,22 @@ const deserializeAws_restJson1DescribeSigningJobCommand = async (output, context
|
|
|
536
532
|
contents.requestedBy = (0, smithy_client_1.expectString)(data.requestedBy);
|
|
537
533
|
}
|
|
538
534
|
if (data.revocationRecord != null) {
|
|
539
|
-
contents.revocationRecord =
|
|
535
|
+
contents.revocationRecord = de_SigningJobRevocationRecord(data.revocationRecord, context);
|
|
540
536
|
}
|
|
541
537
|
if (data.signatureExpiresAt != null) {
|
|
542
538
|
contents.signatureExpiresAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.signatureExpiresAt)));
|
|
543
539
|
}
|
|
544
540
|
if (data.signedObject != null) {
|
|
545
|
-
contents.signedObject =
|
|
541
|
+
contents.signedObject = de_SignedObject(data.signedObject, context);
|
|
546
542
|
}
|
|
547
543
|
if (data.signingMaterial != null) {
|
|
548
|
-
contents.signingMaterial =
|
|
544
|
+
contents.signingMaterial = de_SigningMaterial(data.signingMaterial, context);
|
|
549
545
|
}
|
|
550
546
|
if (data.signingParameters != null) {
|
|
551
|
-
contents.signingParameters =
|
|
547
|
+
contents.signingParameters = de_SigningParameters(data.signingParameters, context);
|
|
552
548
|
}
|
|
553
549
|
if (data.source != null) {
|
|
554
|
-
contents.source =
|
|
550
|
+
contents.source = de_Source(data.source, context);
|
|
555
551
|
}
|
|
556
552
|
if (data.status != null) {
|
|
557
553
|
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
@@ -561,8 +557,8 @@ const deserializeAws_restJson1DescribeSigningJobCommand = async (output, context
|
|
|
561
557
|
}
|
|
562
558
|
return contents;
|
|
563
559
|
};
|
|
564
|
-
exports.
|
|
565
|
-
const
|
|
560
|
+
exports.de_DescribeSigningJobCommand = de_DescribeSigningJobCommand;
|
|
561
|
+
const de_DescribeSigningJobCommandError = async (output, context) => {
|
|
566
562
|
const parsedOutput = {
|
|
567
563
|
...output,
|
|
568
564
|
body: await parseErrorBody(output.body, context),
|
|
@@ -571,16 +567,16 @@ const deserializeAws_restJson1DescribeSigningJobCommandError = async (output, co
|
|
|
571
567
|
switch (errorCode) {
|
|
572
568
|
case "AccessDeniedException":
|
|
573
569
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
574
|
-
throw await
|
|
570
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
575
571
|
case "InternalServiceErrorException":
|
|
576
572
|
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
577
|
-
throw await
|
|
573
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
578
574
|
case "ResourceNotFoundException":
|
|
579
575
|
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
580
|
-
throw await
|
|
576
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
581
577
|
case "TooManyRequestsException":
|
|
582
578
|
case "com.amazonaws.signer#TooManyRequestsException":
|
|
583
|
-
throw await
|
|
579
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
584
580
|
default:
|
|
585
581
|
const parsedBody = parsedOutput.body;
|
|
586
582
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -591,9 +587,9 @@ const deserializeAws_restJson1DescribeSigningJobCommandError = async (output, co
|
|
|
591
587
|
});
|
|
592
588
|
}
|
|
593
589
|
};
|
|
594
|
-
const
|
|
590
|
+
const de_GetSigningPlatformCommand = async (output, context) => {
|
|
595
591
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
596
|
-
return
|
|
592
|
+
return de_GetSigningPlatformCommandError(output, context);
|
|
597
593
|
}
|
|
598
594
|
const contents = map({
|
|
599
595
|
$metadata: deserializeMetadata(output),
|
|
@@ -618,18 +614,18 @@ const deserializeAws_restJson1GetSigningPlatformCommand = async (output, context
|
|
|
618
614
|
contents.revocationSupported = (0, smithy_client_1.expectBoolean)(data.revocationSupported);
|
|
619
615
|
}
|
|
620
616
|
if (data.signingConfiguration != null) {
|
|
621
|
-
contents.signingConfiguration =
|
|
617
|
+
contents.signingConfiguration = de_SigningConfiguration(data.signingConfiguration, context);
|
|
622
618
|
}
|
|
623
619
|
if (data.signingImageFormat != null) {
|
|
624
|
-
contents.signingImageFormat =
|
|
620
|
+
contents.signingImageFormat = de_SigningImageFormat(data.signingImageFormat, context);
|
|
625
621
|
}
|
|
626
622
|
if (data.target != null) {
|
|
627
623
|
contents.target = (0, smithy_client_1.expectString)(data.target);
|
|
628
624
|
}
|
|
629
625
|
return contents;
|
|
630
626
|
};
|
|
631
|
-
exports.
|
|
632
|
-
const
|
|
627
|
+
exports.de_GetSigningPlatformCommand = de_GetSigningPlatformCommand;
|
|
628
|
+
const de_GetSigningPlatformCommandError = async (output, context) => {
|
|
633
629
|
const parsedOutput = {
|
|
634
630
|
...output,
|
|
635
631
|
body: await parseErrorBody(output.body, context),
|
|
@@ -638,16 +634,16 @@ const deserializeAws_restJson1GetSigningPlatformCommandError = async (output, co
|
|
|
638
634
|
switch (errorCode) {
|
|
639
635
|
case "AccessDeniedException":
|
|
640
636
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
641
|
-
throw await
|
|
637
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
642
638
|
case "InternalServiceErrorException":
|
|
643
639
|
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
644
|
-
throw await
|
|
640
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
645
641
|
case "ResourceNotFoundException":
|
|
646
642
|
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
647
|
-
throw await
|
|
643
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
648
644
|
case "TooManyRequestsException":
|
|
649
645
|
case "com.amazonaws.signer#TooManyRequestsException":
|
|
650
|
-
throw await
|
|
646
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
651
647
|
default:
|
|
652
648
|
const parsedBody = parsedOutput.body;
|
|
653
649
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -658,9 +654,9 @@ const deserializeAws_restJson1GetSigningPlatformCommandError = async (output, co
|
|
|
658
654
|
});
|
|
659
655
|
}
|
|
660
656
|
};
|
|
661
|
-
const
|
|
657
|
+
const de_GetSigningProfileCommand = async (output, context) => {
|
|
662
658
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
663
|
-
return
|
|
659
|
+
return de_GetSigningProfileCommandError(output, context);
|
|
664
660
|
}
|
|
665
661
|
const contents = map({
|
|
666
662
|
$metadata: deserializeMetadata(output),
|
|
@@ -670,7 +666,7 @@ const deserializeAws_restJson1GetSigningProfileCommand = async (output, context)
|
|
|
670
666
|
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
671
667
|
}
|
|
672
668
|
if (data.overrides != null) {
|
|
673
|
-
contents.overrides =
|
|
669
|
+
contents.overrides = de_SigningPlatformOverrides(data.overrides, context);
|
|
674
670
|
}
|
|
675
671
|
if (data.platformDisplayName != null) {
|
|
676
672
|
contents.platformDisplayName = (0, smithy_client_1.expectString)(data.platformDisplayName);
|
|
@@ -688,16 +684,16 @@ const deserializeAws_restJson1GetSigningProfileCommand = async (output, context)
|
|
|
688
684
|
contents.profileVersionArn = (0, smithy_client_1.expectString)(data.profileVersionArn);
|
|
689
685
|
}
|
|
690
686
|
if (data.revocationRecord != null) {
|
|
691
|
-
contents.revocationRecord =
|
|
687
|
+
contents.revocationRecord = de_SigningProfileRevocationRecord(data.revocationRecord, context);
|
|
692
688
|
}
|
|
693
689
|
if (data.signatureValidityPeriod != null) {
|
|
694
|
-
contents.signatureValidityPeriod =
|
|
690
|
+
contents.signatureValidityPeriod = de_SignatureValidityPeriod(data.signatureValidityPeriod, context);
|
|
695
691
|
}
|
|
696
692
|
if (data.signingMaterial != null) {
|
|
697
|
-
contents.signingMaterial =
|
|
693
|
+
contents.signingMaterial = de_SigningMaterial(data.signingMaterial, context);
|
|
698
694
|
}
|
|
699
695
|
if (data.signingParameters != null) {
|
|
700
|
-
contents.signingParameters =
|
|
696
|
+
contents.signingParameters = de_SigningParameters(data.signingParameters, context);
|
|
701
697
|
}
|
|
702
698
|
if (data.status != null) {
|
|
703
699
|
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
@@ -706,12 +702,12 @@ const deserializeAws_restJson1GetSigningProfileCommand = async (output, context)
|
|
|
706
702
|
contents.statusReason = (0, smithy_client_1.expectString)(data.statusReason);
|
|
707
703
|
}
|
|
708
704
|
if (data.tags != null) {
|
|
709
|
-
contents.tags =
|
|
705
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
710
706
|
}
|
|
711
707
|
return contents;
|
|
712
708
|
};
|
|
713
|
-
exports.
|
|
714
|
-
const
|
|
709
|
+
exports.de_GetSigningProfileCommand = de_GetSigningProfileCommand;
|
|
710
|
+
const de_GetSigningProfileCommandError = async (output, context) => {
|
|
715
711
|
const parsedOutput = {
|
|
716
712
|
...output,
|
|
717
713
|
body: await parseErrorBody(output.body, context),
|
|
@@ -720,16 +716,16 @@ const deserializeAws_restJson1GetSigningProfileCommandError = async (output, con
|
|
|
720
716
|
switch (errorCode) {
|
|
721
717
|
case "AccessDeniedException":
|
|
722
718
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
723
|
-
throw await
|
|
719
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
724
720
|
case "InternalServiceErrorException":
|
|
725
721
|
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
726
|
-
throw await
|
|
722
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
727
723
|
case "ResourceNotFoundException":
|
|
728
724
|
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
729
|
-
throw await
|
|
725
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
730
726
|
case "TooManyRequestsException":
|
|
731
727
|
case "com.amazonaws.signer#TooManyRequestsException":
|
|
732
|
-
throw await
|
|
728
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
733
729
|
default:
|
|
734
730
|
const parsedBody = parsedOutput.body;
|
|
735
731
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -740,9 +736,9 @@ const deserializeAws_restJson1GetSigningProfileCommandError = async (output, con
|
|
|
740
736
|
});
|
|
741
737
|
}
|
|
742
738
|
};
|
|
743
|
-
const
|
|
739
|
+
const de_ListProfilePermissionsCommand = async (output, context) => {
|
|
744
740
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
745
|
-
return
|
|
741
|
+
return de_ListProfilePermissionsCommandError(output, context);
|
|
746
742
|
}
|
|
747
743
|
const contents = map({
|
|
748
744
|
$metadata: deserializeMetadata(output),
|
|
@@ -752,7 +748,7 @@ const deserializeAws_restJson1ListProfilePermissionsCommand = async (output, con
|
|
|
752
748
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
753
749
|
}
|
|
754
750
|
if (data.permissions != null) {
|
|
755
|
-
contents.permissions =
|
|
751
|
+
contents.permissions = de_Permissions(data.permissions, context);
|
|
756
752
|
}
|
|
757
753
|
if (data.policySizeBytes != null) {
|
|
758
754
|
contents.policySizeBytes = (0, smithy_client_1.expectInt32)(data.policySizeBytes);
|
|
@@ -762,8 +758,8 @@ const deserializeAws_restJson1ListProfilePermissionsCommand = async (output, con
|
|
|
762
758
|
}
|
|
763
759
|
return contents;
|
|
764
760
|
};
|
|
765
|
-
exports.
|
|
766
|
-
const
|
|
761
|
+
exports.de_ListProfilePermissionsCommand = de_ListProfilePermissionsCommand;
|
|
762
|
+
const de_ListProfilePermissionsCommandError = async (output, context) => {
|
|
767
763
|
const parsedOutput = {
|
|
768
764
|
...output,
|
|
769
765
|
body: await parseErrorBody(output.body, context),
|
|
@@ -772,19 +768,19 @@ const deserializeAws_restJson1ListProfilePermissionsCommandError = async (output
|
|
|
772
768
|
switch (errorCode) {
|
|
773
769
|
case "AccessDeniedException":
|
|
774
770
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
775
|
-
throw await
|
|
771
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
776
772
|
case "InternalServiceErrorException":
|
|
777
773
|
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
778
|
-
throw await
|
|
774
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
779
775
|
case "ResourceNotFoundException":
|
|
780
776
|
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
781
|
-
throw await
|
|
777
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
782
778
|
case "TooManyRequestsException":
|
|
783
779
|
case "com.amazonaws.signer#TooManyRequestsException":
|
|
784
|
-
throw await
|
|
780
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
785
781
|
case "ValidationException":
|
|
786
782
|
case "com.amazonaws.signer#ValidationException":
|
|
787
|
-
throw await
|
|
783
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
788
784
|
default:
|
|
789
785
|
const parsedBody = parsedOutput.body;
|
|
790
786
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -795,24 +791,24 @@ const deserializeAws_restJson1ListProfilePermissionsCommandError = async (output
|
|
|
795
791
|
});
|
|
796
792
|
}
|
|
797
793
|
};
|
|
798
|
-
const
|
|
794
|
+
const de_ListSigningJobsCommand = async (output, context) => {
|
|
799
795
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
800
|
-
return
|
|
796
|
+
return de_ListSigningJobsCommandError(output, context);
|
|
801
797
|
}
|
|
802
798
|
const contents = map({
|
|
803
799
|
$metadata: deserializeMetadata(output),
|
|
804
800
|
});
|
|
805
801
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
806
802
|
if (data.jobs != null) {
|
|
807
|
-
contents.jobs =
|
|
803
|
+
contents.jobs = de_SigningJobs(data.jobs, context);
|
|
808
804
|
}
|
|
809
805
|
if (data.nextToken != null) {
|
|
810
806
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
811
807
|
}
|
|
812
808
|
return contents;
|
|
813
809
|
};
|
|
814
|
-
exports.
|
|
815
|
-
const
|
|
810
|
+
exports.de_ListSigningJobsCommand = de_ListSigningJobsCommand;
|
|
811
|
+
const de_ListSigningJobsCommandError = async (output, context) => {
|
|
816
812
|
const parsedOutput = {
|
|
817
813
|
...output,
|
|
818
814
|
body: await parseErrorBody(output.body, context),
|
|
@@ -821,16 +817,16 @@ const deserializeAws_restJson1ListSigningJobsCommandError = async (output, conte
|
|
|
821
817
|
switch (errorCode) {
|
|
822
818
|
case "AccessDeniedException":
|
|
823
819
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
824
|
-
throw await
|
|
820
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
825
821
|
case "InternalServiceErrorException":
|
|
826
822
|
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
827
|
-
throw await
|
|
823
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
828
824
|
case "TooManyRequestsException":
|
|
829
825
|
case "com.amazonaws.signer#TooManyRequestsException":
|
|
830
|
-
throw await
|
|
826
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
831
827
|
case "ValidationException":
|
|
832
828
|
case "com.amazonaws.signer#ValidationException":
|
|
833
|
-
throw await
|
|
829
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
834
830
|
default:
|
|
835
831
|
const parsedBody = parsedOutput.body;
|
|
836
832
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -841,9 +837,9 @@ const deserializeAws_restJson1ListSigningJobsCommandError = async (output, conte
|
|
|
841
837
|
});
|
|
842
838
|
}
|
|
843
839
|
};
|
|
844
|
-
const
|
|
840
|
+
const de_ListSigningPlatformsCommand = async (output, context) => {
|
|
845
841
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
846
|
-
return
|
|
842
|
+
return de_ListSigningPlatformsCommandError(output, context);
|
|
847
843
|
}
|
|
848
844
|
const contents = map({
|
|
849
845
|
$metadata: deserializeMetadata(output),
|
|
@@ -853,12 +849,12 @@ const deserializeAws_restJson1ListSigningPlatformsCommand = async (output, conte
|
|
|
853
849
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
854
850
|
}
|
|
855
851
|
if (data.platforms != null) {
|
|
856
|
-
contents.platforms =
|
|
852
|
+
contents.platforms = de_SigningPlatforms(data.platforms, context);
|
|
857
853
|
}
|
|
858
854
|
return contents;
|
|
859
855
|
};
|
|
860
|
-
exports.
|
|
861
|
-
const
|
|
856
|
+
exports.de_ListSigningPlatformsCommand = de_ListSigningPlatformsCommand;
|
|
857
|
+
const de_ListSigningPlatformsCommandError = async (output, context) => {
|
|
862
858
|
const parsedOutput = {
|
|
863
859
|
...output,
|
|
864
860
|
body: await parseErrorBody(output.body, context),
|
|
@@ -867,16 +863,16 @@ const deserializeAws_restJson1ListSigningPlatformsCommandError = async (output,
|
|
|
867
863
|
switch (errorCode) {
|
|
868
864
|
case "AccessDeniedException":
|
|
869
865
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
870
|
-
throw await
|
|
866
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
871
867
|
case "InternalServiceErrorException":
|
|
872
868
|
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
873
|
-
throw await
|
|
869
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
874
870
|
case "TooManyRequestsException":
|
|
875
871
|
case "com.amazonaws.signer#TooManyRequestsException":
|
|
876
|
-
throw await
|
|
872
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
877
873
|
case "ValidationException":
|
|
878
874
|
case "com.amazonaws.signer#ValidationException":
|
|
879
|
-
throw await
|
|
875
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
880
876
|
default:
|
|
881
877
|
const parsedBody = parsedOutput.body;
|
|
882
878
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -887,9 +883,9 @@ const deserializeAws_restJson1ListSigningPlatformsCommandError = async (output,
|
|
|
887
883
|
});
|
|
888
884
|
}
|
|
889
885
|
};
|
|
890
|
-
const
|
|
886
|
+
const de_ListSigningProfilesCommand = async (output, context) => {
|
|
891
887
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
892
|
-
return
|
|
888
|
+
return de_ListSigningProfilesCommandError(output, context);
|
|
893
889
|
}
|
|
894
890
|
const contents = map({
|
|
895
891
|
$metadata: deserializeMetadata(output),
|
|
@@ -899,12 +895,12 @@ const deserializeAws_restJson1ListSigningProfilesCommand = async (output, contex
|
|
|
899
895
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
900
896
|
}
|
|
901
897
|
if (data.profiles != null) {
|
|
902
|
-
contents.profiles =
|
|
898
|
+
contents.profiles = de_SigningProfiles(data.profiles, context);
|
|
903
899
|
}
|
|
904
900
|
return contents;
|
|
905
901
|
};
|
|
906
|
-
exports.
|
|
907
|
-
const
|
|
902
|
+
exports.de_ListSigningProfilesCommand = de_ListSigningProfilesCommand;
|
|
903
|
+
const de_ListSigningProfilesCommandError = async (output, context) => {
|
|
908
904
|
const parsedOutput = {
|
|
909
905
|
...output,
|
|
910
906
|
body: await parseErrorBody(output.body, context),
|
|
@@ -913,13 +909,13 @@ const deserializeAws_restJson1ListSigningProfilesCommandError = async (output, c
|
|
|
913
909
|
switch (errorCode) {
|
|
914
910
|
case "AccessDeniedException":
|
|
915
911
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
916
|
-
throw await
|
|
912
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
917
913
|
case "InternalServiceErrorException":
|
|
918
914
|
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
919
|
-
throw await
|
|
915
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
920
916
|
case "TooManyRequestsException":
|
|
921
917
|
case "com.amazonaws.signer#TooManyRequestsException":
|
|
922
|
-
throw await
|
|
918
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
923
919
|
default:
|
|
924
920
|
const parsedBody = parsedOutput.body;
|
|
925
921
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -930,21 +926,21 @@ const deserializeAws_restJson1ListSigningProfilesCommandError = async (output, c
|
|
|
930
926
|
});
|
|
931
927
|
}
|
|
932
928
|
};
|
|
933
|
-
const
|
|
929
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
934
930
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
935
|
-
return
|
|
931
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
936
932
|
}
|
|
937
933
|
const contents = map({
|
|
938
934
|
$metadata: deserializeMetadata(output),
|
|
939
935
|
});
|
|
940
936
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
941
937
|
if (data.tags != null) {
|
|
942
|
-
contents.tags =
|
|
938
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
943
939
|
}
|
|
944
940
|
return contents;
|
|
945
941
|
};
|
|
946
|
-
exports.
|
|
947
|
-
const
|
|
942
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
943
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
948
944
|
const parsedOutput = {
|
|
949
945
|
...output,
|
|
950
946
|
body: await parseErrorBody(output.body, context),
|
|
@@ -953,16 +949,16 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
953
949
|
switch (errorCode) {
|
|
954
950
|
case "BadRequestException":
|
|
955
951
|
case "com.amazonaws.signer#BadRequestException":
|
|
956
|
-
throw await
|
|
952
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
957
953
|
case "InternalServiceErrorException":
|
|
958
954
|
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
959
|
-
throw await
|
|
955
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
960
956
|
case "NotFoundException":
|
|
961
957
|
case "com.amazonaws.signer#NotFoundException":
|
|
962
|
-
throw await
|
|
958
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
963
959
|
case "TooManyRequestsException":
|
|
964
960
|
case "com.amazonaws.signer#TooManyRequestsException":
|
|
965
|
-
throw await
|
|
961
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
966
962
|
default:
|
|
967
963
|
const parsedBody = parsedOutput.body;
|
|
968
964
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -973,9 +969,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
973
969
|
});
|
|
974
970
|
}
|
|
975
971
|
};
|
|
976
|
-
const
|
|
972
|
+
const de_PutSigningProfileCommand = async (output, context) => {
|
|
977
973
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
978
|
-
return
|
|
974
|
+
return de_PutSigningProfileCommandError(output, context);
|
|
979
975
|
}
|
|
980
976
|
const contents = map({
|
|
981
977
|
$metadata: deserializeMetadata(output),
|
|
@@ -992,8 +988,8 @@ const deserializeAws_restJson1PutSigningProfileCommand = async (output, context)
|
|
|
992
988
|
}
|
|
993
989
|
return contents;
|
|
994
990
|
};
|
|
995
|
-
exports.
|
|
996
|
-
const
|
|
991
|
+
exports.de_PutSigningProfileCommand = de_PutSigningProfileCommand;
|
|
992
|
+
const de_PutSigningProfileCommandError = async (output, context) => {
|
|
997
993
|
const parsedOutput = {
|
|
998
994
|
...output,
|
|
999
995
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1002,19 +998,19 @@ const deserializeAws_restJson1PutSigningProfileCommandError = async (output, con
|
|
|
1002
998
|
switch (errorCode) {
|
|
1003
999
|
case "AccessDeniedException":
|
|
1004
1000
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
1005
|
-
throw await
|
|
1001
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1006
1002
|
case "InternalServiceErrorException":
|
|
1007
1003
|
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1008
|
-
throw await
|
|
1004
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1009
1005
|
case "ResourceNotFoundException":
|
|
1010
1006
|
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
1011
|
-
throw await
|
|
1007
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1012
1008
|
case "TooManyRequestsException":
|
|
1013
1009
|
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1014
|
-
throw await
|
|
1010
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1015
1011
|
case "ValidationException":
|
|
1016
1012
|
case "com.amazonaws.signer#ValidationException":
|
|
1017
|
-
throw await
|
|
1013
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1018
1014
|
default:
|
|
1019
1015
|
const parsedBody = parsedOutput.body;
|
|
1020
1016
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1025,9 +1021,9 @@ const deserializeAws_restJson1PutSigningProfileCommandError = async (output, con
|
|
|
1025
1021
|
});
|
|
1026
1022
|
}
|
|
1027
1023
|
};
|
|
1028
|
-
const
|
|
1024
|
+
const de_RemoveProfilePermissionCommand = async (output, context) => {
|
|
1029
1025
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1030
|
-
return
|
|
1026
|
+
return de_RemoveProfilePermissionCommandError(output, context);
|
|
1031
1027
|
}
|
|
1032
1028
|
const contents = map({
|
|
1033
1029
|
$metadata: deserializeMetadata(output),
|
|
@@ -1038,8 +1034,8 @@ const deserializeAws_restJson1RemoveProfilePermissionCommand = async (output, co
|
|
|
1038
1034
|
}
|
|
1039
1035
|
return contents;
|
|
1040
1036
|
};
|
|
1041
|
-
exports.
|
|
1042
|
-
const
|
|
1037
|
+
exports.de_RemoveProfilePermissionCommand = de_RemoveProfilePermissionCommand;
|
|
1038
|
+
const de_RemoveProfilePermissionCommandError = async (output, context) => {
|
|
1043
1039
|
const parsedOutput = {
|
|
1044
1040
|
...output,
|
|
1045
1041
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1048,22 +1044,22 @@ const deserializeAws_restJson1RemoveProfilePermissionCommandError = async (outpu
|
|
|
1048
1044
|
switch (errorCode) {
|
|
1049
1045
|
case "AccessDeniedException":
|
|
1050
1046
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
1051
|
-
throw await
|
|
1047
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1052
1048
|
case "ConflictException":
|
|
1053
1049
|
case "com.amazonaws.signer#ConflictException":
|
|
1054
|
-
throw await
|
|
1050
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1055
1051
|
case "InternalServiceErrorException":
|
|
1056
1052
|
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1057
|
-
throw await
|
|
1053
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1058
1054
|
case "ResourceNotFoundException":
|
|
1059
1055
|
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
1060
|
-
throw await
|
|
1056
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1061
1057
|
case "TooManyRequestsException":
|
|
1062
1058
|
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1063
|
-
throw await
|
|
1059
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1064
1060
|
case "ValidationException":
|
|
1065
1061
|
case "com.amazonaws.signer#ValidationException":
|
|
1066
|
-
throw await
|
|
1062
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1067
1063
|
default:
|
|
1068
1064
|
const parsedBody = parsedOutput.body;
|
|
1069
1065
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1074,9 +1070,9 @@ const deserializeAws_restJson1RemoveProfilePermissionCommandError = async (outpu
|
|
|
1074
1070
|
});
|
|
1075
1071
|
}
|
|
1076
1072
|
};
|
|
1077
|
-
const
|
|
1073
|
+
const de_RevokeSignatureCommand = async (output, context) => {
|
|
1078
1074
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1079
|
-
return
|
|
1075
|
+
return de_RevokeSignatureCommandError(output, context);
|
|
1080
1076
|
}
|
|
1081
1077
|
const contents = map({
|
|
1082
1078
|
$metadata: deserializeMetadata(output),
|
|
@@ -1084,8 +1080,8 @@ const deserializeAws_restJson1RevokeSignatureCommand = async (output, context) =
|
|
|
1084
1080
|
await collectBody(output.body, context);
|
|
1085
1081
|
return contents;
|
|
1086
1082
|
};
|
|
1087
|
-
exports.
|
|
1088
|
-
const
|
|
1083
|
+
exports.de_RevokeSignatureCommand = de_RevokeSignatureCommand;
|
|
1084
|
+
const de_RevokeSignatureCommandError = async (output, context) => {
|
|
1089
1085
|
const parsedOutput = {
|
|
1090
1086
|
...output,
|
|
1091
1087
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1094,19 +1090,19 @@ const deserializeAws_restJson1RevokeSignatureCommandError = async (output, conte
|
|
|
1094
1090
|
switch (errorCode) {
|
|
1095
1091
|
case "AccessDeniedException":
|
|
1096
1092
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
1097
|
-
throw await
|
|
1093
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1098
1094
|
case "InternalServiceErrorException":
|
|
1099
1095
|
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1100
|
-
throw await
|
|
1096
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1101
1097
|
case "ResourceNotFoundException":
|
|
1102
1098
|
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
1103
|
-
throw await
|
|
1099
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1104
1100
|
case "TooManyRequestsException":
|
|
1105
1101
|
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1106
|
-
throw await
|
|
1102
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1107
1103
|
case "ValidationException":
|
|
1108
1104
|
case "com.amazonaws.signer#ValidationException":
|
|
1109
|
-
throw await
|
|
1105
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1110
1106
|
default:
|
|
1111
1107
|
const parsedBody = parsedOutput.body;
|
|
1112
1108
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1117,9 +1113,9 @@ const deserializeAws_restJson1RevokeSignatureCommandError = async (output, conte
|
|
|
1117
1113
|
});
|
|
1118
1114
|
}
|
|
1119
1115
|
};
|
|
1120
|
-
const
|
|
1116
|
+
const de_RevokeSigningProfileCommand = async (output, context) => {
|
|
1121
1117
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1122
|
-
return
|
|
1118
|
+
return de_RevokeSigningProfileCommandError(output, context);
|
|
1123
1119
|
}
|
|
1124
1120
|
const contents = map({
|
|
1125
1121
|
$metadata: deserializeMetadata(output),
|
|
@@ -1127,8 +1123,8 @@ const deserializeAws_restJson1RevokeSigningProfileCommand = async (output, conte
|
|
|
1127
1123
|
await collectBody(output.body, context);
|
|
1128
1124
|
return contents;
|
|
1129
1125
|
};
|
|
1130
|
-
exports.
|
|
1131
|
-
const
|
|
1126
|
+
exports.de_RevokeSigningProfileCommand = de_RevokeSigningProfileCommand;
|
|
1127
|
+
const de_RevokeSigningProfileCommandError = async (output, context) => {
|
|
1132
1128
|
const parsedOutput = {
|
|
1133
1129
|
...output,
|
|
1134
1130
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1137,19 +1133,19 @@ const deserializeAws_restJson1RevokeSigningProfileCommandError = async (output,
|
|
|
1137
1133
|
switch (errorCode) {
|
|
1138
1134
|
case "AccessDeniedException":
|
|
1139
1135
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
1140
|
-
throw await
|
|
1136
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1141
1137
|
case "InternalServiceErrorException":
|
|
1142
1138
|
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1143
|
-
throw await
|
|
1139
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1144
1140
|
case "ResourceNotFoundException":
|
|
1145
1141
|
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
1146
|
-
throw await
|
|
1142
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1147
1143
|
case "TooManyRequestsException":
|
|
1148
1144
|
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1149
|
-
throw await
|
|
1145
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1150
1146
|
case "ValidationException":
|
|
1151
1147
|
case "com.amazonaws.signer#ValidationException":
|
|
1152
|
-
throw await
|
|
1148
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1153
1149
|
default:
|
|
1154
1150
|
const parsedBody = parsedOutput.body;
|
|
1155
1151
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1160,9 +1156,9 @@ const deserializeAws_restJson1RevokeSigningProfileCommandError = async (output,
|
|
|
1160
1156
|
});
|
|
1161
1157
|
}
|
|
1162
1158
|
};
|
|
1163
|
-
const
|
|
1159
|
+
const de_StartSigningJobCommand = async (output, context) => {
|
|
1164
1160
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1165
|
-
return
|
|
1161
|
+
return de_StartSigningJobCommandError(output, context);
|
|
1166
1162
|
}
|
|
1167
1163
|
const contents = map({
|
|
1168
1164
|
$metadata: deserializeMetadata(output),
|
|
@@ -1176,8 +1172,8 @@ const deserializeAws_restJson1StartSigningJobCommand = async (output, context) =
|
|
|
1176
1172
|
}
|
|
1177
1173
|
return contents;
|
|
1178
1174
|
};
|
|
1179
|
-
exports.
|
|
1180
|
-
const
|
|
1175
|
+
exports.de_StartSigningJobCommand = de_StartSigningJobCommand;
|
|
1176
|
+
const de_StartSigningJobCommandError = async (output, context) => {
|
|
1181
1177
|
const parsedOutput = {
|
|
1182
1178
|
...output,
|
|
1183
1179
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1186,22 +1182,22 @@ const deserializeAws_restJson1StartSigningJobCommandError = async (output, conte
|
|
|
1186
1182
|
switch (errorCode) {
|
|
1187
1183
|
case "AccessDeniedException":
|
|
1188
1184
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
1189
|
-
throw await
|
|
1185
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1190
1186
|
case "InternalServiceErrorException":
|
|
1191
1187
|
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1192
|
-
throw await
|
|
1188
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1193
1189
|
case "ResourceNotFoundException":
|
|
1194
1190
|
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
1195
|
-
throw await
|
|
1191
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1196
1192
|
case "ThrottlingException":
|
|
1197
1193
|
case "com.amazonaws.signer#ThrottlingException":
|
|
1198
|
-
throw await
|
|
1194
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1199
1195
|
case "TooManyRequestsException":
|
|
1200
1196
|
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1201
|
-
throw await
|
|
1197
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1202
1198
|
case "ValidationException":
|
|
1203
1199
|
case "com.amazonaws.signer#ValidationException":
|
|
1204
|
-
throw await
|
|
1200
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1205
1201
|
default:
|
|
1206
1202
|
const parsedBody = parsedOutput.body;
|
|
1207
1203
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1212,9 +1208,9 @@ const deserializeAws_restJson1StartSigningJobCommandError = async (output, conte
|
|
|
1212
1208
|
});
|
|
1213
1209
|
}
|
|
1214
1210
|
};
|
|
1215
|
-
const
|
|
1211
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
1216
1212
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1217
|
-
return
|
|
1213
|
+
return de_TagResourceCommandError(output, context);
|
|
1218
1214
|
}
|
|
1219
1215
|
const contents = map({
|
|
1220
1216
|
$metadata: deserializeMetadata(output),
|
|
@@ -1222,8 +1218,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
1222
1218
|
await collectBody(output.body, context);
|
|
1223
1219
|
return contents;
|
|
1224
1220
|
};
|
|
1225
|
-
exports.
|
|
1226
|
-
const
|
|
1221
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1222
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1227
1223
|
const parsedOutput = {
|
|
1228
1224
|
...output,
|
|
1229
1225
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1232,16 +1228,16 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1232
1228
|
switch (errorCode) {
|
|
1233
1229
|
case "BadRequestException":
|
|
1234
1230
|
case "com.amazonaws.signer#BadRequestException":
|
|
1235
|
-
throw await
|
|
1231
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1236
1232
|
case "InternalServiceErrorException":
|
|
1237
1233
|
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1238
|
-
throw await
|
|
1234
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1239
1235
|
case "NotFoundException":
|
|
1240
1236
|
case "com.amazonaws.signer#NotFoundException":
|
|
1241
|
-
throw await
|
|
1237
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1242
1238
|
case "TooManyRequestsException":
|
|
1243
1239
|
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1244
|
-
throw await
|
|
1240
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1245
1241
|
default:
|
|
1246
1242
|
const parsedBody = parsedOutput.body;
|
|
1247
1243
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1252,9 +1248,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1252
1248
|
});
|
|
1253
1249
|
}
|
|
1254
1250
|
};
|
|
1255
|
-
const
|
|
1251
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
1256
1252
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1257
|
-
return
|
|
1253
|
+
return de_UntagResourceCommandError(output, context);
|
|
1258
1254
|
}
|
|
1259
1255
|
const contents = map({
|
|
1260
1256
|
$metadata: deserializeMetadata(output),
|
|
@@ -1262,8 +1258,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
1262
1258
|
await collectBody(output.body, context);
|
|
1263
1259
|
return contents;
|
|
1264
1260
|
};
|
|
1265
|
-
exports.
|
|
1266
|
-
const
|
|
1261
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1262
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1267
1263
|
const parsedOutput = {
|
|
1268
1264
|
...output,
|
|
1269
1265
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1272,16 +1268,16 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1272
1268
|
switch (errorCode) {
|
|
1273
1269
|
case "BadRequestException":
|
|
1274
1270
|
case "com.amazonaws.signer#BadRequestException":
|
|
1275
|
-
throw await
|
|
1271
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1276
1272
|
case "InternalServiceErrorException":
|
|
1277
1273
|
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1278
|
-
throw await
|
|
1274
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1279
1275
|
case "NotFoundException":
|
|
1280
1276
|
case "com.amazonaws.signer#NotFoundException":
|
|
1281
|
-
throw await
|
|
1277
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1282
1278
|
case "TooManyRequestsException":
|
|
1283
1279
|
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1284
|
-
throw await
|
|
1280
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1285
1281
|
default:
|
|
1286
1282
|
const parsedBody = parsedOutput.body;
|
|
1287
1283
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1293,7 +1289,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1293
1289
|
}
|
|
1294
1290
|
};
|
|
1295
1291
|
const map = smithy_client_1.map;
|
|
1296
|
-
const
|
|
1292
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1297
1293
|
const contents = map({});
|
|
1298
1294
|
const data = parsedOutput.body;
|
|
1299
1295
|
if (data.code != null) {
|
|
@@ -1308,7 +1304,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
1308
1304
|
});
|
|
1309
1305
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1310
1306
|
};
|
|
1311
|
-
const
|
|
1307
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
1312
1308
|
const contents = map({});
|
|
1313
1309
|
const data = parsedOutput.body;
|
|
1314
1310
|
if (data.code != null) {
|
|
@@ -1323,7 +1319,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
1323
1319
|
});
|
|
1324
1320
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1325
1321
|
};
|
|
1326
|
-
const
|
|
1322
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1327
1323
|
const contents = map({});
|
|
1328
1324
|
const data = parsedOutput.body;
|
|
1329
1325
|
if (data.code != null) {
|
|
@@ -1338,7 +1334,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
1338
1334
|
});
|
|
1339
1335
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1340
1336
|
};
|
|
1341
|
-
const
|
|
1337
|
+
const de_InternalServiceErrorExceptionRes = async (parsedOutput, context) => {
|
|
1342
1338
|
const contents = map({});
|
|
1343
1339
|
const data = parsedOutput.body;
|
|
1344
1340
|
if (data.code != null) {
|
|
@@ -1353,7 +1349,7 @@ const deserializeAws_restJson1InternalServiceErrorExceptionResponse = async (par
|
|
|
1353
1349
|
});
|
|
1354
1350
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1355
1351
|
};
|
|
1356
|
-
const
|
|
1352
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1357
1353
|
const contents = map({});
|
|
1358
1354
|
const data = parsedOutput.body;
|
|
1359
1355
|
if (data.code != null) {
|
|
@@ -1368,7 +1364,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
1368
1364
|
});
|
|
1369
1365
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1370
1366
|
};
|
|
1371
|
-
const
|
|
1367
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1372
1368
|
const contents = map({});
|
|
1373
1369
|
const data = parsedOutput.body;
|
|
1374
1370
|
if (data.code != null) {
|
|
@@ -1383,7 +1379,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1383
1379
|
});
|
|
1384
1380
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1385
1381
|
};
|
|
1386
|
-
const
|
|
1382
|
+
const de_ServiceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1387
1383
|
const contents = map({});
|
|
1388
1384
|
const data = parsedOutput.body;
|
|
1389
1385
|
if (data.code != null) {
|
|
@@ -1398,7 +1394,7 @@ const deserializeAws_restJson1ServiceLimitExceededExceptionResponse = async (par
|
|
|
1398
1394
|
});
|
|
1399
1395
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1400
1396
|
};
|
|
1401
|
-
const
|
|
1397
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1402
1398
|
const contents = map({});
|
|
1403
1399
|
const data = parsedOutput.body;
|
|
1404
1400
|
if (data.code != null) {
|
|
@@ -1413,7 +1409,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
1413
1409
|
});
|
|
1414
1410
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1415
1411
|
};
|
|
1416
|
-
const
|
|
1412
|
+
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
1417
1413
|
const contents = map({});
|
|
1418
1414
|
const data = parsedOutput.body;
|
|
1419
1415
|
if (data.code != null) {
|
|
@@ -1428,7 +1424,7 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
|
|
|
1428
1424
|
});
|
|
1429
1425
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1430
1426
|
};
|
|
1431
|
-
const
|
|
1427
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1432
1428
|
const contents = map({});
|
|
1433
1429
|
const data = parsedOutput.body;
|
|
1434
1430
|
if (data.code != null) {
|
|
@@ -1443,42 +1439,42 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1443
1439
|
});
|
|
1444
1440
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1445
1441
|
};
|
|
1446
|
-
const
|
|
1442
|
+
const se_Destination = (input, context) => {
|
|
1447
1443
|
return {
|
|
1448
|
-
...(input.s3 != null && { s3:
|
|
1444
|
+
...(input.s3 != null && { s3: se_S3Destination(input.s3, context) }),
|
|
1449
1445
|
};
|
|
1450
1446
|
};
|
|
1451
|
-
const
|
|
1447
|
+
const se_S3Destination = (input, context) => {
|
|
1452
1448
|
return {
|
|
1453
1449
|
...(input.bucketName != null && { bucketName: input.bucketName }),
|
|
1454
1450
|
...(input.prefix != null && { prefix: input.prefix }),
|
|
1455
1451
|
};
|
|
1456
1452
|
};
|
|
1457
|
-
const
|
|
1453
|
+
const se_S3Source = (input, context) => {
|
|
1458
1454
|
return {
|
|
1459
1455
|
...(input.bucketName != null && { bucketName: input.bucketName }),
|
|
1460
1456
|
...(input.key != null && { key: input.key }),
|
|
1461
1457
|
...(input.version != null && { version: input.version }),
|
|
1462
1458
|
};
|
|
1463
1459
|
};
|
|
1464
|
-
const
|
|
1460
|
+
const se_SignatureValidityPeriod = (input, context) => {
|
|
1465
1461
|
return {
|
|
1466
1462
|
...(input.type != null && { type: input.type }),
|
|
1467
1463
|
...(input.value != null && { value: input.value }),
|
|
1468
1464
|
};
|
|
1469
1465
|
};
|
|
1470
|
-
const
|
|
1466
|
+
const se_SigningConfigurationOverrides = (input, context) => {
|
|
1471
1467
|
return {
|
|
1472
1468
|
...(input.encryptionAlgorithm != null && { encryptionAlgorithm: input.encryptionAlgorithm }),
|
|
1473
1469
|
...(input.hashAlgorithm != null && { hashAlgorithm: input.hashAlgorithm }),
|
|
1474
1470
|
};
|
|
1475
1471
|
};
|
|
1476
|
-
const
|
|
1472
|
+
const se_SigningMaterial = (input, context) => {
|
|
1477
1473
|
return {
|
|
1478
1474
|
...(input.certificateArn != null && { certificateArn: input.certificateArn }),
|
|
1479
1475
|
};
|
|
1480
1476
|
};
|
|
1481
|
-
const
|
|
1477
|
+
const se_SigningParameters = (input, context) => {
|
|
1482
1478
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1483
1479
|
if (value === null) {
|
|
1484
1480
|
return acc;
|
|
@@ -1487,20 +1483,20 @@ const serializeAws_restJson1SigningParameters = (input, context) => {
|
|
|
1487
1483
|
return acc;
|
|
1488
1484
|
}, {});
|
|
1489
1485
|
};
|
|
1490
|
-
const
|
|
1486
|
+
const se_SigningPlatformOverrides = (input, context) => {
|
|
1491
1487
|
return {
|
|
1492
1488
|
...(input.signingConfiguration != null && {
|
|
1493
|
-
signingConfiguration:
|
|
1489
|
+
signingConfiguration: se_SigningConfigurationOverrides(input.signingConfiguration, context),
|
|
1494
1490
|
}),
|
|
1495
1491
|
...(input.signingImageFormat != null && { signingImageFormat: input.signingImageFormat }),
|
|
1496
1492
|
};
|
|
1497
1493
|
};
|
|
1498
|
-
const
|
|
1494
|
+
const se_Source = (input, context) => {
|
|
1499
1495
|
return {
|
|
1500
|
-
...(input.s3 != null && { s3:
|
|
1496
|
+
...(input.s3 != null && { s3: se_S3Source(input.s3, context) }),
|
|
1501
1497
|
};
|
|
1502
1498
|
};
|
|
1503
|
-
const
|
|
1499
|
+
const se_TagMap = (input, context) => {
|
|
1504
1500
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1505
1501
|
if (value === null) {
|
|
1506
1502
|
return acc;
|
|
@@ -1509,15 +1505,13 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
1509
1505
|
return acc;
|
|
1510
1506
|
}, {});
|
|
1511
1507
|
};
|
|
1512
|
-
const
|
|
1508
|
+
const de_EncryptionAlgorithmOptions = (output, context) => {
|
|
1513
1509
|
return {
|
|
1514
|
-
allowedValues: output.allowedValues != null
|
|
1515
|
-
? deserializeAws_restJson1EncryptionAlgorithms(output.allowedValues, context)
|
|
1516
|
-
: undefined,
|
|
1510
|
+
allowedValues: output.allowedValues != null ? de_EncryptionAlgorithms(output.allowedValues, context) : undefined,
|
|
1517
1511
|
defaultValue: (0, smithy_client_1.expectString)(output.defaultValue),
|
|
1518
1512
|
};
|
|
1519
1513
|
};
|
|
1520
|
-
const
|
|
1514
|
+
const de_EncryptionAlgorithms = (output, context) => {
|
|
1521
1515
|
const retVal = (output || [])
|
|
1522
1516
|
.filter((e) => e != null)
|
|
1523
1517
|
.map((entry) => {
|
|
@@ -1528,13 +1522,13 @@ const deserializeAws_restJson1EncryptionAlgorithms = (output, context) => {
|
|
|
1528
1522
|
});
|
|
1529
1523
|
return retVal;
|
|
1530
1524
|
};
|
|
1531
|
-
const
|
|
1525
|
+
const de_HashAlgorithmOptions = (output, context) => {
|
|
1532
1526
|
return {
|
|
1533
|
-
allowedValues: output.allowedValues != null ?
|
|
1527
|
+
allowedValues: output.allowedValues != null ? de_HashAlgorithms(output.allowedValues, context) : undefined,
|
|
1534
1528
|
defaultValue: (0, smithy_client_1.expectString)(output.defaultValue),
|
|
1535
1529
|
};
|
|
1536
1530
|
};
|
|
1537
|
-
const
|
|
1531
|
+
const de_HashAlgorithms = (output, context) => {
|
|
1538
1532
|
const retVal = (output || [])
|
|
1539
1533
|
.filter((e) => e != null)
|
|
1540
1534
|
.map((entry) => {
|
|
@@ -1545,7 +1539,7 @@ const deserializeAws_restJson1HashAlgorithms = (output, context) => {
|
|
|
1545
1539
|
});
|
|
1546
1540
|
return retVal;
|
|
1547
1541
|
};
|
|
1548
|
-
const
|
|
1542
|
+
const de_ImageFormats = (output, context) => {
|
|
1549
1543
|
const retVal = (output || [])
|
|
1550
1544
|
.filter((e) => e != null)
|
|
1551
1545
|
.map((entry) => {
|
|
@@ -1556,7 +1550,7 @@ const deserializeAws_restJson1ImageFormats = (output, context) => {
|
|
|
1556
1550
|
});
|
|
1557
1551
|
return retVal;
|
|
1558
1552
|
};
|
|
1559
|
-
const
|
|
1553
|
+
const de_Permission = (output, context) => {
|
|
1560
1554
|
return {
|
|
1561
1555
|
action: (0, smithy_client_1.expectString)(output.action),
|
|
1562
1556
|
principal: (0, smithy_client_1.expectString)(output.principal),
|
|
@@ -1564,66 +1558,62 @@ const deserializeAws_restJson1Permission = (output, context) => {
|
|
|
1564
1558
|
statementId: (0, smithy_client_1.expectString)(output.statementId),
|
|
1565
1559
|
};
|
|
1566
1560
|
};
|
|
1567
|
-
const
|
|
1561
|
+
const de_Permissions = (output, context) => {
|
|
1568
1562
|
const retVal = (output || [])
|
|
1569
1563
|
.filter((e) => e != null)
|
|
1570
1564
|
.map((entry) => {
|
|
1571
1565
|
if (entry === null) {
|
|
1572
1566
|
return null;
|
|
1573
1567
|
}
|
|
1574
|
-
return
|
|
1568
|
+
return de_Permission(entry, context);
|
|
1575
1569
|
});
|
|
1576
1570
|
return retVal;
|
|
1577
1571
|
};
|
|
1578
|
-
const
|
|
1572
|
+
const de_S3SignedObject = (output, context) => {
|
|
1579
1573
|
return {
|
|
1580
1574
|
bucketName: (0, smithy_client_1.expectString)(output.bucketName),
|
|
1581
1575
|
key: (0, smithy_client_1.expectString)(output.key),
|
|
1582
1576
|
};
|
|
1583
1577
|
};
|
|
1584
|
-
const
|
|
1578
|
+
const de_S3Source = (output, context) => {
|
|
1585
1579
|
return {
|
|
1586
1580
|
bucketName: (0, smithy_client_1.expectString)(output.bucketName),
|
|
1587
1581
|
key: (0, smithy_client_1.expectString)(output.key),
|
|
1588
1582
|
version: (0, smithy_client_1.expectString)(output.version),
|
|
1589
1583
|
};
|
|
1590
1584
|
};
|
|
1591
|
-
const
|
|
1585
|
+
const de_SignatureValidityPeriod = (output, context) => {
|
|
1592
1586
|
return {
|
|
1593
1587
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
1594
1588
|
value: (0, smithy_client_1.expectInt32)(output.value),
|
|
1595
1589
|
};
|
|
1596
1590
|
};
|
|
1597
|
-
const
|
|
1591
|
+
const de_SignedObject = (output, context) => {
|
|
1598
1592
|
return {
|
|
1599
|
-
s3: output.s3 != null ?
|
|
1593
|
+
s3: output.s3 != null ? de_S3SignedObject(output.s3, context) : undefined,
|
|
1600
1594
|
};
|
|
1601
1595
|
};
|
|
1602
|
-
const
|
|
1596
|
+
const de_SigningConfiguration = (output, context) => {
|
|
1603
1597
|
return {
|
|
1604
1598
|
encryptionAlgorithmOptions: output.encryptionAlgorithmOptions != null
|
|
1605
|
-
?
|
|
1606
|
-
: undefined,
|
|
1607
|
-
hashAlgorithmOptions: output.hashAlgorithmOptions != null
|
|
1608
|
-
? deserializeAws_restJson1HashAlgorithmOptions(output.hashAlgorithmOptions, context)
|
|
1599
|
+
? de_EncryptionAlgorithmOptions(output.encryptionAlgorithmOptions, context)
|
|
1609
1600
|
: undefined,
|
|
1601
|
+
hashAlgorithmOptions: output.hashAlgorithmOptions != null ? de_HashAlgorithmOptions(output.hashAlgorithmOptions, context) : undefined,
|
|
1610
1602
|
};
|
|
1611
1603
|
};
|
|
1612
|
-
const
|
|
1604
|
+
const de_SigningConfigurationOverrides = (output, context) => {
|
|
1613
1605
|
return {
|
|
1614
1606
|
encryptionAlgorithm: (0, smithy_client_1.expectString)(output.encryptionAlgorithm),
|
|
1615
1607
|
hashAlgorithm: (0, smithy_client_1.expectString)(output.hashAlgorithm),
|
|
1616
1608
|
};
|
|
1617
1609
|
};
|
|
1618
|
-
const
|
|
1610
|
+
const de_SigningImageFormat = (output, context) => {
|
|
1619
1611
|
return {
|
|
1620
1612
|
defaultFormat: (0, smithy_client_1.expectString)(output.defaultFormat),
|
|
1621
|
-
supportedFormats: output.supportedFormats != null
|
|
1622
|
-
? deserializeAws_restJson1ImageFormats(output.supportedFormats, context)
|
|
1623
|
-
: undefined,
|
|
1613
|
+
supportedFormats: output.supportedFormats != null ? de_ImageFormats(output.supportedFormats, context) : undefined,
|
|
1624
1614
|
};
|
|
1625
1615
|
};
|
|
1626
|
-
const
|
|
1616
|
+
const de_SigningJob = (output, context) => {
|
|
1627
1617
|
return {
|
|
1628
1618
|
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
1629
1619
|
isRevoked: (0, smithy_client_1.expectBoolean)(output.isRevoked),
|
|
@@ -1637,38 +1627,36 @@ const deserializeAws_restJson1SigningJob = (output, context) => {
|
|
|
1637
1627
|
signatureExpiresAt: output.signatureExpiresAt != null
|
|
1638
1628
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.signatureExpiresAt)))
|
|
1639
1629
|
: undefined,
|
|
1640
|
-
signedObject: output.signedObject != null ?
|
|
1641
|
-
signingMaterial: output.signingMaterial != null
|
|
1642
|
-
|
|
1643
|
-
: undefined,
|
|
1644
|
-
source: output.source != null ? deserializeAws_restJson1Source(output.source, context) : undefined,
|
|
1630
|
+
signedObject: output.signedObject != null ? de_SignedObject(output.signedObject, context) : undefined,
|
|
1631
|
+
signingMaterial: output.signingMaterial != null ? de_SigningMaterial(output.signingMaterial, context) : undefined,
|
|
1632
|
+
source: output.source != null ? de_Source(output.source, context) : undefined,
|
|
1645
1633
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
1646
1634
|
};
|
|
1647
1635
|
};
|
|
1648
|
-
const
|
|
1636
|
+
const de_SigningJobRevocationRecord = (output, context) => {
|
|
1649
1637
|
return {
|
|
1650
1638
|
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
1651
1639
|
revokedAt: output.revokedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.revokedAt))) : undefined,
|
|
1652
1640
|
revokedBy: (0, smithy_client_1.expectString)(output.revokedBy),
|
|
1653
1641
|
};
|
|
1654
1642
|
};
|
|
1655
|
-
const
|
|
1643
|
+
const de_SigningJobs = (output, context) => {
|
|
1656
1644
|
const retVal = (output || [])
|
|
1657
1645
|
.filter((e) => e != null)
|
|
1658
1646
|
.map((entry) => {
|
|
1659
1647
|
if (entry === null) {
|
|
1660
1648
|
return null;
|
|
1661
1649
|
}
|
|
1662
|
-
return
|
|
1650
|
+
return de_SigningJob(entry, context);
|
|
1663
1651
|
});
|
|
1664
1652
|
return retVal;
|
|
1665
1653
|
};
|
|
1666
|
-
const
|
|
1654
|
+
const de_SigningMaterial = (output, context) => {
|
|
1667
1655
|
return {
|
|
1668
1656
|
certificateArn: (0, smithy_client_1.expectString)(output.certificateArn),
|
|
1669
1657
|
};
|
|
1670
1658
|
};
|
|
1671
|
-
const
|
|
1659
|
+
const de_SigningParameters = (output, context) => {
|
|
1672
1660
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1673
1661
|
if (value === null) {
|
|
1674
1662
|
return acc;
|
|
@@ -1677,7 +1665,7 @@ const deserializeAws_restJson1SigningParameters = (output, context) => {
|
|
|
1677
1665
|
return acc;
|
|
1678
1666
|
}, {});
|
|
1679
1667
|
};
|
|
1680
|
-
const
|
|
1668
|
+
const de_SigningPlatform = (output, context) => {
|
|
1681
1669
|
return {
|
|
1682
1670
|
category: (0, smithy_client_1.expectString)(output.category),
|
|
1683
1671
|
displayName: (0, smithy_client_1.expectString)(output.displayName),
|
|
@@ -1685,35 +1673,31 @@ const deserializeAws_restJson1SigningPlatform = (output, context) => {
|
|
|
1685
1673
|
partner: (0, smithy_client_1.expectString)(output.partner),
|
|
1686
1674
|
platformId: (0, smithy_client_1.expectString)(output.platformId),
|
|
1687
1675
|
revocationSupported: (0, smithy_client_1.expectBoolean)(output.revocationSupported),
|
|
1688
|
-
signingConfiguration: output.signingConfiguration != null
|
|
1689
|
-
|
|
1690
|
-
: undefined,
|
|
1691
|
-
signingImageFormat: output.signingImageFormat != null
|
|
1692
|
-
? deserializeAws_restJson1SigningImageFormat(output.signingImageFormat, context)
|
|
1693
|
-
: undefined,
|
|
1676
|
+
signingConfiguration: output.signingConfiguration != null ? de_SigningConfiguration(output.signingConfiguration, context) : undefined,
|
|
1677
|
+
signingImageFormat: output.signingImageFormat != null ? de_SigningImageFormat(output.signingImageFormat, context) : undefined,
|
|
1694
1678
|
target: (0, smithy_client_1.expectString)(output.target),
|
|
1695
1679
|
};
|
|
1696
1680
|
};
|
|
1697
|
-
const
|
|
1681
|
+
const de_SigningPlatformOverrides = (output, context) => {
|
|
1698
1682
|
return {
|
|
1699
1683
|
signingConfiguration: output.signingConfiguration != null
|
|
1700
|
-
?
|
|
1684
|
+
? de_SigningConfigurationOverrides(output.signingConfiguration, context)
|
|
1701
1685
|
: undefined,
|
|
1702
1686
|
signingImageFormat: (0, smithy_client_1.expectString)(output.signingImageFormat),
|
|
1703
1687
|
};
|
|
1704
1688
|
};
|
|
1705
|
-
const
|
|
1689
|
+
const de_SigningPlatforms = (output, context) => {
|
|
1706
1690
|
const retVal = (output || [])
|
|
1707
1691
|
.filter((e) => e != null)
|
|
1708
1692
|
.map((entry) => {
|
|
1709
1693
|
if (entry === null) {
|
|
1710
1694
|
return null;
|
|
1711
1695
|
}
|
|
1712
|
-
return
|
|
1696
|
+
return de_SigningPlatform(entry, context);
|
|
1713
1697
|
});
|
|
1714
1698
|
return retVal;
|
|
1715
1699
|
};
|
|
1716
|
-
const
|
|
1700
|
+
const de_SigningProfile = (output, context) => {
|
|
1717
1701
|
return {
|
|
1718
1702
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1719
1703
|
platformDisplayName: (0, smithy_client_1.expectString)(output.platformDisplayName),
|
|
@@ -1722,19 +1706,15 @@ const deserializeAws_restJson1SigningProfile = (output, context) => {
|
|
|
1722
1706
|
profileVersion: (0, smithy_client_1.expectString)(output.profileVersion),
|
|
1723
1707
|
profileVersionArn: (0, smithy_client_1.expectString)(output.profileVersionArn),
|
|
1724
1708
|
signatureValidityPeriod: output.signatureValidityPeriod != null
|
|
1725
|
-
?
|
|
1726
|
-
: undefined,
|
|
1727
|
-
signingMaterial: output.signingMaterial != null
|
|
1728
|
-
? deserializeAws_restJson1SigningMaterial(output.signingMaterial, context)
|
|
1729
|
-
: undefined,
|
|
1730
|
-
signingParameters: output.signingParameters != null
|
|
1731
|
-
? deserializeAws_restJson1SigningParameters(output.signingParameters, context)
|
|
1709
|
+
? de_SignatureValidityPeriod(output.signatureValidityPeriod, context)
|
|
1732
1710
|
: undefined,
|
|
1711
|
+
signingMaterial: output.signingMaterial != null ? de_SigningMaterial(output.signingMaterial, context) : undefined,
|
|
1712
|
+
signingParameters: output.signingParameters != null ? de_SigningParameters(output.signingParameters, context) : undefined,
|
|
1733
1713
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
1734
|
-
tags: output.tags != null ?
|
|
1714
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
1735
1715
|
};
|
|
1736
1716
|
};
|
|
1737
|
-
const
|
|
1717
|
+
const de_SigningProfileRevocationRecord = (output, context) => {
|
|
1738
1718
|
return {
|
|
1739
1719
|
revocationEffectiveFrom: output.revocationEffectiveFrom != null
|
|
1740
1720
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.revocationEffectiveFrom)))
|
|
@@ -1743,23 +1723,23 @@ const deserializeAws_restJson1SigningProfileRevocationRecord = (output, context)
|
|
|
1743
1723
|
revokedBy: (0, smithy_client_1.expectString)(output.revokedBy),
|
|
1744
1724
|
};
|
|
1745
1725
|
};
|
|
1746
|
-
const
|
|
1726
|
+
const de_SigningProfiles = (output, context) => {
|
|
1747
1727
|
const retVal = (output || [])
|
|
1748
1728
|
.filter((e) => e != null)
|
|
1749
1729
|
.map((entry) => {
|
|
1750
1730
|
if (entry === null) {
|
|
1751
1731
|
return null;
|
|
1752
1732
|
}
|
|
1753
|
-
return
|
|
1733
|
+
return de_SigningProfile(entry, context);
|
|
1754
1734
|
});
|
|
1755
1735
|
return retVal;
|
|
1756
1736
|
};
|
|
1757
|
-
const
|
|
1737
|
+
const de_Source = (output, context) => {
|
|
1758
1738
|
return {
|
|
1759
|
-
s3: output.s3 != null ?
|
|
1739
|
+
s3: output.s3 != null ? de_S3Source(output.s3, context) : undefined,
|
|
1760
1740
|
};
|
|
1761
1741
|
};
|
|
1762
|
-
const
|
|
1742
|
+
const de_TagMap = (output, context) => {
|
|
1763
1743
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1764
1744
|
if (value === null) {
|
|
1765
1745
|
return acc;
|