@aws-sdk/client-acm 3.310.0 → 3.315.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/protocols/Aws_json1_1.js +154 -641
- package/dist-es/protocols/Aws_json1_1.js +155 -642
- package/package.json +6 -6
|
@@ -6,151 +6,106 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
6
6
|
const ACMServiceException_1 = require("../models/ACMServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const se_AddTagsToCertificateCommand = async (input, context) => {
|
|
9
|
-
const headers =
|
|
10
|
-
"content-type": "application/x-amz-json-1.1",
|
|
11
|
-
"x-amz-target": "CertificateManager.AddTagsToCertificate",
|
|
12
|
-
};
|
|
9
|
+
const headers = sharedHeaders("AddTagsToCertificate");
|
|
13
10
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
15
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
13
|
};
|
|
17
14
|
exports.se_AddTagsToCertificateCommand = se_AddTagsToCertificateCommand;
|
|
18
15
|
const se_DeleteCertificateCommand = async (input, context) => {
|
|
19
|
-
const headers =
|
|
20
|
-
"content-type": "application/x-amz-json-1.1",
|
|
21
|
-
"x-amz-target": "CertificateManager.DeleteCertificate",
|
|
22
|
-
};
|
|
16
|
+
const headers = sharedHeaders("DeleteCertificate");
|
|
23
17
|
let body;
|
|
24
|
-
body = JSON.stringify(
|
|
18
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
25
19
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
20
|
};
|
|
27
21
|
exports.se_DeleteCertificateCommand = se_DeleteCertificateCommand;
|
|
28
22
|
const se_DescribeCertificateCommand = async (input, context) => {
|
|
29
|
-
const headers =
|
|
30
|
-
"content-type": "application/x-amz-json-1.1",
|
|
31
|
-
"x-amz-target": "CertificateManager.DescribeCertificate",
|
|
32
|
-
};
|
|
23
|
+
const headers = sharedHeaders("DescribeCertificate");
|
|
33
24
|
let body;
|
|
34
|
-
body = JSON.stringify(
|
|
25
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
35
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
27
|
};
|
|
37
28
|
exports.se_DescribeCertificateCommand = se_DescribeCertificateCommand;
|
|
38
29
|
const se_ExportCertificateCommand = async (input, context) => {
|
|
39
|
-
const headers =
|
|
40
|
-
"content-type": "application/x-amz-json-1.1",
|
|
41
|
-
"x-amz-target": "CertificateManager.ExportCertificate",
|
|
42
|
-
};
|
|
30
|
+
const headers = sharedHeaders("ExportCertificate");
|
|
43
31
|
let body;
|
|
44
32
|
body = JSON.stringify(se_ExportCertificateRequest(input, context));
|
|
45
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
34
|
};
|
|
47
35
|
exports.se_ExportCertificateCommand = se_ExportCertificateCommand;
|
|
48
36
|
const se_GetAccountConfigurationCommand = async (input, context) => {
|
|
49
|
-
const headers =
|
|
50
|
-
"content-type": "application/x-amz-json-1.1",
|
|
51
|
-
"x-amz-target": "CertificateManager.GetAccountConfiguration",
|
|
52
|
-
};
|
|
37
|
+
const headers = sharedHeaders("GetAccountConfiguration");
|
|
53
38
|
const body = "{}";
|
|
54
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
55
40
|
};
|
|
56
41
|
exports.se_GetAccountConfigurationCommand = se_GetAccountConfigurationCommand;
|
|
57
42
|
const se_GetCertificateCommand = async (input, context) => {
|
|
58
|
-
const headers =
|
|
59
|
-
"content-type": "application/x-amz-json-1.1",
|
|
60
|
-
"x-amz-target": "CertificateManager.GetCertificate",
|
|
61
|
-
};
|
|
43
|
+
const headers = sharedHeaders("GetCertificate");
|
|
62
44
|
let body;
|
|
63
|
-
body = JSON.stringify(
|
|
45
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
64
46
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
47
|
};
|
|
66
48
|
exports.se_GetCertificateCommand = se_GetCertificateCommand;
|
|
67
49
|
const se_ImportCertificateCommand = async (input, context) => {
|
|
68
|
-
const headers =
|
|
69
|
-
"content-type": "application/x-amz-json-1.1",
|
|
70
|
-
"x-amz-target": "CertificateManager.ImportCertificate",
|
|
71
|
-
};
|
|
50
|
+
const headers = sharedHeaders("ImportCertificate");
|
|
72
51
|
let body;
|
|
73
52
|
body = JSON.stringify(se_ImportCertificateRequest(input, context));
|
|
74
53
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
75
54
|
};
|
|
76
55
|
exports.se_ImportCertificateCommand = se_ImportCertificateCommand;
|
|
77
56
|
const se_ListCertificatesCommand = async (input, context) => {
|
|
78
|
-
const headers =
|
|
79
|
-
"content-type": "application/x-amz-json-1.1",
|
|
80
|
-
"x-amz-target": "CertificateManager.ListCertificates",
|
|
81
|
-
};
|
|
57
|
+
const headers = sharedHeaders("ListCertificates");
|
|
82
58
|
let body;
|
|
83
|
-
body = JSON.stringify(
|
|
59
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
84
60
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
61
|
};
|
|
86
62
|
exports.se_ListCertificatesCommand = se_ListCertificatesCommand;
|
|
87
63
|
const se_ListTagsForCertificateCommand = async (input, context) => {
|
|
88
|
-
const headers =
|
|
89
|
-
"content-type": "application/x-amz-json-1.1",
|
|
90
|
-
"x-amz-target": "CertificateManager.ListTagsForCertificate",
|
|
91
|
-
};
|
|
64
|
+
const headers = sharedHeaders("ListTagsForCertificate");
|
|
92
65
|
let body;
|
|
93
|
-
body = JSON.stringify(
|
|
66
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
94
67
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
68
|
};
|
|
96
69
|
exports.se_ListTagsForCertificateCommand = se_ListTagsForCertificateCommand;
|
|
97
70
|
const se_PutAccountConfigurationCommand = async (input, context) => {
|
|
98
|
-
const headers =
|
|
99
|
-
"content-type": "application/x-amz-json-1.1",
|
|
100
|
-
"x-amz-target": "CertificateManager.PutAccountConfiguration",
|
|
101
|
-
};
|
|
71
|
+
const headers = sharedHeaders("PutAccountConfiguration");
|
|
102
72
|
let body;
|
|
103
|
-
body = JSON.stringify(
|
|
73
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
104
74
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
105
75
|
};
|
|
106
76
|
exports.se_PutAccountConfigurationCommand = se_PutAccountConfigurationCommand;
|
|
107
77
|
const se_RemoveTagsFromCertificateCommand = async (input, context) => {
|
|
108
|
-
const headers =
|
|
109
|
-
"content-type": "application/x-amz-json-1.1",
|
|
110
|
-
"x-amz-target": "CertificateManager.RemoveTagsFromCertificate",
|
|
111
|
-
};
|
|
78
|
+
const headers = sharedHeaders("RemoveTagsFromCertificate");
|
|
112
79
|
let body;
|
|
113
|
-
body = JSON.stringify(
|
|
80
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
114
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
115
82
|
};
|
|
116
83
|
exports.se_RemoveTagsFromCertificateCommand = se_RemoveTagsFromCertificateCommand;
|
|
117
84
|
const se_RenewCertificateCommand = async (input, context) => {
|
|
118
|
-
const headers =
|
|
119
|
-
"content-type": "application/x-amz-json-1.1",
|
|
120
|
-
"x-amz-target": "CertificateManager.RenewCertificate",
|
|
121
|
-
};
|
|
85
|
+
const headers = sharedHeaders("RenewCertificate");
|
|
122
86
|
let body;
|
|
123
|
-
body = JSON.stringify(
|
|
87
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
124
88
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
89
|
};
|
|
126
90
|
exports.se_RenewCertificateCommand = se_RenewCertificateCommand;
|
|
127
91
|
const se_RequestCertificateCommand = async (input, context) => {
|
|
128
|
-
const headers =
|
|
129
|
-
"content-type": "application/x-amz-json-1.1",
|
|
130
|
-
"x-amz-target": "CertificateManager.RequestCertificate",
|
|
131
|
-
};
|
|
92
|
+
const headers = sharedHeaders("RequestCertificate");
|
|
132
93
|
let body;
|
|
133
|
-
body = JSON.stringify(
|
|
94
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
134
95
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
135
96
|
};
|
|
136
97
|
exports.se_RequestCertificateCommand = se_RequestCertificateCommand;
|
|
137
98
|
const se_ResendValidationEmailCommand = async (input, context) => {
|
|
138
|
-
const headers =
|
|
139
|
-
"content-type": "application/x-amz-json-1.1",
|
|
140
|
-
"x-amz-target": "CertificateManager.ResendValidationEmail",
|
|
141
|
-
};
|
|
99
|
+
const headers = sharedHeaders("ResendValidationEmail");
|
|
142
100
|
let body;
|
|
143
|
-
body = JSON.stringify(
|
|
101
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
144
102
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
145
103
|
};
|
|
146
104
|
exports.se_ResendValidationEmailCommand = se_ResendValidationEmailCommand;
|
|
147
105
|
const se_UpdateCertificateOptionsCommand = async (input, context) => {
|
|
148
|
-
const headers =
|
|
149
|
-
"content-type": "application/x-amz-json-1.1",
|
|
150
|
-
"x-amz-target": "CertificateManager.UpdateCertificateOptions",
|
|
151
|
-
};
|
|
106
|
+
const headers = sharedHeaders("UpdateCertificateOptions");
|
|
152
107
|
let body;
|
|
153
|
-
body = JSON.stringify(
|
|
108
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
154
109
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
110
|
};
|
|
156
111
|
exports.se_UpdateCertificateOptionsCommand = se_UpdateCertificateOptionsCommand;
|
|
@@ -162,7 +117,7 @@ const de_AddTagsToCertificateCommand = async (output, context) => {
|
|
|
162
117
|
const response = {
|
|
163
118
|
$metadata: deserializeMetadata(output),
|
|
164
119
|
};
|
|
165
|
-
return
|
|
120
|
+
return response;
|
|
166
121
|
};
|
|
167
122
|
exports.de_AddTagsToCertificateCommand = de_AddTagsToCertificateCommand;
|
|
168
123
|
const de_AddTagsToCertificateCommandError = async (output, context) => {
|
|
@@ -195,10 +150,9 @@ const de_AddTagsToCertificateCommandError = async (output, context) => {
|
|
|
195
150
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
196
151
|
default:
|
|
197
152
|
const parsedBody = parsedOutput.body;
|
|
198
|
-
|
|
153
|
+
return throwDefaultError({
|
|
199
154
|
output,
|
|
200
155
|
parsedBody,
|
|
201
|
-
exceptionCtor: ACMServiceException_1.ACMServiceException,
|
|
202
156
|
errorCode,
|
|
203
157
|
});
|
|
204
158
|
}
|
|
@@ -211,7 +165,7 @@ const de_DeleteCertificateCommand = async (output, context) => {
|
|
|
211
165
|
const response = {
|
|
212
166
|
$metadata: deserializeMetadata(output),
|
|
213
167
|
};
|
|
214
|
-
return
|
|
168
|
+
return response;
|
|
215
169
|
};
|
|
216
170
|
exports.de_DeleteCertificateCommand = de_DeleteCertificateCommand;
|
|
217
171
|
const de_DeleteCertificateCommandError = async (output, context) => {
|
|
@@ -241,10 +195,9 @@ const de_DeleteCertificateCommandError = async (output, context) => {
|
|
|
241
195
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
242
196
|
default:
|
|
243
197
|
const parsedBody = parsedOutput.body;
|
|
244
|
-
|
|
198
|
+
return throwDefaultError({
|
|
245
199
|
output,
|
|
246
200
|
parsedBody,
|
|
247
|
-
exceptionCtor: ACMServiceException_1.ACMServiceException,
|
|
248
201
|
errorCode,
|
|
249
202
|
});
|
|
250
203
|
}
|
|
@@ -260,7 +213,7 @@ const de_DescribeCertificateCommand = async (output, context) => {
|
|
|
260
213
|
$metadata: deserializeMetadata(output),
|
|
261
214
|
...contents,
|
|
262
215
|
};
|
|
263
|
-
return
|
|
216
|
+
return response;
|
|
264
217
|
};
|
|
265
218
|
exports.de_DescribeCertificateCommand = de_DescribeCertificateCommand;
|
|
266
219
|
const de_DescribeCertificateCommandError = async (output, context) => {
|
|
@@ -278,10 +231,9 @@ const de_DescribeCertificateCommandError = async (output, context) => {
|
|
|
278
231
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
279
232
|
default:
|
|
280
233
|
const parsedBody = parsedOutput.body;
|
|
281
|
-
|
|
234
|
+
return throwDefaultError({
|
|
282
235
|
output,
|
|
283
236
|
parsedBody,
|
|
284
|
-
exceptionCtor: ACMServiceException_1.ACMServiceException,
|
|
285
237
|
errorCode,
|
|
286
238
|
});
|
|
287
239
|
}
|
|
@@ -292,12 +244,12 @@ const de_ExportCertificateCommand = async (output, context) => {
|
|
|
292
244
|
}
|
|
293
245
|
const data = await parseBody(output.body, context);
|
|
294
246
|
let contents = {};
|
|
295
|
-
contents =
|
|
247
|
+
contents = (0, smithy_client_1._json)(data);
|
|
296
248
|
const response = {
|
|
297
249
|
$metadata: deserializeMetadata(output),
|
|
298
250
|
...contents,
|
|
299
251
|
};
|
|
300
|
-
return
|
|
252
|
+
return response;
|
|
301
253
|
};
|
|
302
254
|
exports.de_ExportCertificateCommand = de_ExportCertificateCommand;
|
|
303
255
|
const de_ExportCertificateCommandError = async (output, context) => {
|
|
@@ -318,10 +270,9 @@ const de_ExportCertificateCommandError = async (output, context) => {
|
|
|
318
270
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
319
271
|
default:
|
|
320
272
|
const parsedBody = parsedOutput.body;
|
|
321
|
-
|
|
273
|
+
return throwDefaultError({
|
|
322
274
|
output,
|
|
323
275
|
parsedBody,
|
|
324
|
-
exceptionCtor: ACMServiceException_1.ACMServiceException,
|
|
325
276
|
errorCode,
|
|
326
277
|
});
|
|
327
278
|
}
|
|
@@ -332,12 +283,12 @@ const de_GetAccountConfigurationCommand = async (output, context) => {
|
|
|
332
283
|
}
|
|
333
284
|
const data = await parseBody(output.body, context);
|
|
334
285
|
let contents = {};
|
|
335
|
-
contents =
|
|
286
|
+
contents = (0, smithy_client_1._json)(data);
|
|
336
287
|
const response = {
|
|
337
288
|
$metadata: deserializeMetadata(output),
|
|
338
289
|
...contents,
|
|
339
290
|
};
|
|
340
|
-
return
|
|
291
|
+
return response;
|
|
341
292
|
};
|
|
342
293
|
exports.de_GetAccountConfigurationCommand = de_GetAccountConfigurationCommand;
|
|
343
294
|
const de_GetAccountConfigurationCommandError = async (output, context) => {
|
|
@@ -355,10 +306,9 @@ const de_GetAccountConfigurationCommandError = async (output, context) => {
|
|
|
355
306
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
356
307
|
default:
|
|
357
308
|
const parsedBody = parsedOutput.body;
|
|
358
|
-
|
|
309
|
+
return throwDefaultError({
|
|
359
310
|
output,
|
|
360
311
|
parsedBody,
|
|
361
|
-
exceptionCtor: ACMServiceException_1.ACMServiceException,
|
|
362
312
|
errorCode,
|
|
363
313
|
});
|
|
364
314
|
}
|
|
@@ -369,12 +319,12 @@ const de_GetCertificateCommand = async (output, context) => {
|
|
|
369
319
|
}
|
|
370
320
|
const data = await parseBody(output.body, context);
|
|
371
321
|
let contents = {};
|
|
372
|
-
contents =
|
|
322
|
+
contents = (0, smithy_client_1._json)(data);
|
|
373
323
|
const response = {
|
|
374
324
|
$metadata: deserializeMetadata(output),
|
|
375
325
|
...contents,
|
|
376
326
|
};
|
|
377
|
-
return
|
|
327
|
+
return response;
|
|
378
328
|
};
|
|
379
329
|
exports.de_GetCertificateCommand = de_GetCertificateCommand;
|
|
380
330
|
const de_GetCertificateCommandError = async (output, context) => {
|
|
@@ -395,10 +345,9 @@ const de_GetCertificateCommandError = async (output, context) => {
|
|
|
395
345
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
396
346
|
default:
|
|
397
347
|
const parsedBody = parsedOutput.body;
|
|
398
|
-
|
|
348
|
+
return throwDefaultError({
|
|
399
349
|
output,
|
|
400
350
|
parsedBody,
|
|
401
|
-
exceptionCtor: ACMServiceException_1.ACMServiceException,
|
|
402
351
|
errorCode,
|
|
403
352
|
});
|
|
404
353
|
}
|
|
@@ -409,12 +358,12 @@ const de_ImportCertificateCommand = async (output, context) => {
|
|
|
409
358
|
}
|
|
410
359
|
const data = await parseBody(output.body, context);
|
|
411
360
|
let contents = {};
|
|
412
|
-
contents =
|
|
361
|
+
contents = (0, smithy_client_1._json)(data);
|
|
413
362
|
const response = {
|
|
414
363
|
$metadata: deserializeMetadata(output),
|
|
415
364
|
...contents,
|
|
416
365
|
};
|
|
417
|
-
return
|
|
366
|
+
return response;
|
|
418
367
|
};
|
|
419
368
|
exports.de_ImportCertificateCommand = de_ImportCertificateCommand;
|
|
420
369
|
const de_ImportCertificateCommandError = async (output, context) => {
|
|
@@ -447,10 +396,9 @@ const de_ImportCertificateCommandError = async (output, context) => {
|
|
|
447
396
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
448
397
|
default:
|
|
449
398
|
const parsedBody = parsedOutput.body;
|
|
450
|
-
|
|
399
|
+
return throwDefaultError({
|
|
451
400
|
output,
|
|
452
401
|
parsedBody,
|
|
453
|
-
exceptionCtor: ACMServiceException_1.ACMServiceException,
|
|
454
402
|
errorCode,
|
|
455
403
|
});
|
|
456
404
|
}
|
|
@@ -466,7 +414,7 @@ const de_ListCertificatesCommand = async (output, context) => {
|
|
|
466
414
|
$metadata: deserializeMetadata(output),
|
|
467
415
|
...contents,
|
|
468
416
|
};
|
|
469
|
-
return
|
|
417
|
+
return response;
|
|
470
418
|
};
|
|
471
419
|
exports.de_ListCertificatesCommand = de_ListCertificatesCommand;
|
|
472
420
|
const de_ListCertificatesCommandError = async (output, context) => {
|
|
@@ -484,10 +432,9 @@ const de_ListCertificatesCommandError = async (output, context) => {
|
|
|
484
432
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
485
433
|
default:
|
|
486
434
|
const parsedBody = parsedOutput.body;
|
|
487
|
-
|
|
435
|
+
return throwDefaultError({
|
|
488
436
|
output,
|
|
489
437
|
parsedBody,
|
|
490
|
-
exceptionCtor: ACMServiceException_1.ACMServiceException,
|
|
491
438
|
errorCode,
|
|
492
439
|
});
|
|
493
440
|
}
|
|
@@ -498,12 +445,12 @@ const de_ListTagsForCertificateCommand = async (output, context) => {
|
|
|
498
445
|
}
|
|
499
446
|
const data = await parseBody(output.body, context);
|
|
500
447
|
let contents = {};
|
|
501
|
-
contents =
|
|
448
|
+
contents = (0, smithy_client_1._json)(data);
|
|
502
449
|
const response = {
|
|
503
450
|
$metadata: deserializeMetadata(output),
|
|
504
451
|
...contents,
|
|
505
452
|
};
|
|
506
|
-
return
|
|
453
|
+
return response;
|
|
507
454
|
};
|
|
508
455
|
exports.de_ListTagsForCertificateCommand = de_ListTagsForCertificateCommand;
|
|
509
456
|
const de_ListTagsForCertificateCommandError = async (output, context) => {
|
|
@@ -521,10 +468,9 @@ const de_ListTagsForCertificateCommandError = async (output, context) => {
|
|
|
521
468
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
522
469
|
default:
|
|
523
470
|
const parsedBody = parsedOutput.body;
|
|
524
|
-
|
|
471
|
+
return throwDefaultError({
|
|
525
472
|
output,
|
|
526
473
|
parsedBody,
|
|
527
|
-
exceptionCtor: ACMServiceException_1.ACMServiceException,
|
|
528
474
|
errorCode,
|
|
529
475
|
});
|
|
530
476
|
}
|
|
@@ -537,7 +483,7 @@ const de_PutAccountConfigurationCommand = async (output, context) => {
|
|
|
537
483
|
const response = {
|
|
538
484
|
$metadata: deserializeMetadata(output),
|
|
539
485
|
};
|
|
540
|
-
return
|
|
486
|
+
return response;
|
|
541
487
|
};
|
|
542
488
|
exports.de_PutAccountConfigurationCommand = de_PutAccountConfigurationCommand;
|
|
543
489
|
const de_PutAccountConfigurationCommandError = async (output, context) => {
|
|
@@ -561,10 +507,9 @@ const de_PutAccountConfigurationCommandError = async (output, context) => {
|
|
|
561
507
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
562
508
|
default:
|
|
563
509
|
const parsedBody = parsedOutput.body;
|
|
564
|
-
|
|
510
|
+
return throwDefaultError({
|
|
565
511
|
output,
|
|
566
512
|
parsedBody,
|
|
567
|
-
exceptionCtor: ACMServiceException_1.ACMServiceException,
|
|
568
513
|
errorCode,
|
|
569
514
|
});
|
|
570
515
|
}
|
|
@@ -577,7 +522,7 @@ const de_RemoveTagsFromCertificateCommand = async (output, context) => {
|
|
|
577
522
|
const response = {
|
|
578
523
|
$metadata: deserializeMetadata(output),
|
|
579
524
|
};
|
|
580
|
-
return
|
|
525
|
+
return response;
|
|
581
526
|
};
|
|
582
527
|
exports.de_RemoveTagsFromCertificateCommand = de_RemoveTagsFromCertificateCommand;
|
|
583
528
|
const de_RemoveTagsFromCertificateCommandError = async (output, context) => {
|
|
@@ -607,10 +552,9 @@ const de_RemoveTagsFromCertificateCommandError = async (output, context) => {
|
|
|
607
552
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
608
553
|
default:
|
|
609
554
|
const parsedBody = parsedOutput.body;
|
|
610
|
-
|
|
555
|
+
return throwDefaultError({
|
|
611
556
|
output,
|
|
612
557
|
parsedBody,
|
|
613
|
-
exceptionCtor: ACMServiceException_1.ACMServiceException,
|
|
614
558
|
errorCode,
|
|
615
559
|
});
|
|
616
560
|
}
|
|
@@ -623,7 +567,7 @@ const de_RenewCertificateCommand = async (output, context) => {
|
|
|
623
567
|
const response = {
|
|
624
568
|
$metadata: deserializeMetadata(output),
|
|
625
569
|
};
|
|
626
|
-
return
|
|
570
|
+
return response;
|
|
627
571
|
};
|
|
628
572
|
exports.de_RenewCertificateCommand = de_RenewCertificateCommand;
|
|
629
573
|
const de_RenewCertificateCommandError = async (output, context) => {
|
|
@@ -641,10 +585,9 @@ const de_RenewCertificateCommandError = async (output, context) => {
|
|
|
641
585
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
642
586
|
default:
|
|
643
587
|
const parsedBody = parsedOutput.body;
|
|
644
|
-
|
|
588
|
+
return throwDefaultError({
|
|
645
589
|
output,
|
|
646
590
|
parsedBody,
|
|
647
|
-
exceptionCtor: ACMServiceException_1.ACMServiceException,
|
|
648
591
|
errorCode,
|
|
649
592
|
});
|
|
650
593
|
}
|
|
@@ -655,12 +598,12 @@ const de_RequestCertificateCommand = async (output, context) => {
|
|
|
655
598
|
}
|
|
656
599
|
const data = await parseBody(output.body, context);
|
|
657
600
|
let contents = {};
|
|
658
|
-
contents =
|
|
601
|
+
contents = (0, smithy_client_1._json)(data);
|
|
659
602
|
const response = {
|
|
660
603
|
$metadata: deserializeMetadata(output),
|
|
661
604
|
...contents,
|
|
662
605
|
};
|
|
663
|
-
return
|
|
606
|
+
return response;
|
|
664
607
|
};
|
|
665
608
|
exports.de_RequestCertificateCommand = de_RequestCertificateCommand;
|
|
666
609
|
const de_RequestCertificateCommandError = async (output, context) => {
|
|
@@ -693,10 +636,9 @@ const de_RequestCertificateCommandError = async (output, context) => {
|
|
|
693
636
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
694
637
|
default:
|
|
695
638
|
const parsedBody = parsedOutput.body;
|
|
696
|
-
|
|
639
|
+
return throwDefaultError({
|
|
697
640
|
output,
|
|
698
641
|
parsedBody,
|
|
699
|
-
exceptionCtor: ACMServiceException_1.ACMServiceException,
|
|
700
642
|
errorCode,
|
|
701
643
|
});
|
|
702
644
|
}
|
|
@@ -709,7 +651,7 @@ const de_ResendValidationEmailCommand = async (output, context) => {
|
|
|
709
651
|
const response = {
|
|
710
652
|
$metadata: deserializeMetadata(output),
|
|
711
653
|
};
|
|
712
|
-
return
|
|
654
|
+
return response;
|
|
713
655
|
};
|
|
714
656
|
exports.de_ResendValidationEmailCommand = de_ResendValidationEmailCommand;
|
|
715
657
|
const de_ResendValidationEmailCommandError = async (output, context) => {
|
|
@@ -733,10 +675,9 @@ const de_ResendValidationEmailCommandError = async (output, context) => {
|
|
|
733
675
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
734
676
|
default:
|
|
735
677
|
const parsedBody = parsedOutput.body;
|
|
736
|
-
|
|
678
|
+
return throwDefaultError({
|
|
737
679
|
output,
|
|
738
680
|
parsedBody,
|
|
739
|
-
exceptionCtor: ACMServiceException_1.ACMServiceException,
|
|
740
681
|
errorCode,
|
|
741
682
|
});
|
|
742
683
|
}
|
|
@@ -749,7 +690,7 @@ const de_UpdateCertificateOptionsCommand = async (output, context) => {
|
|
|
749
690
|
const response = {
|
|
750
691
|
$metadata: deserializeMetadata(output),
|
|
751
692
|
};
|
|
752
|
-
return
|
|
693
|
+
return response;
|
|
753
694
|
};
|
|
754
695
|
exports.de_UpdateCertificateOptionsCommand = de_UpdateCertificateOptionsCommand;
|
|
755
696
|
const de_UpdateCertificateOptionsCommandError = async (output, context) => {
|
|
@@ -773,17 +714,16 @@ const de_UpdateCertificateOptionsCommandError = async (output, context) => {
|
|
|
773
714
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
774
715
|
default:
|
|
775
716
|
const parsedBody = parsedOutput.body;
|
|
776
|
-
|
|
717
|
+
return throwDefaultError({
|
|
777
718
|
output,
|
|
778
719
|
parsedBody,
|
|
779
|
-
exceptionCtor: ACMServiceException_1.ACMServiceException,
|
|
780
720
|
errorCode,
|
|
781
721
|
});
|
|
782
722
|
}
|
|
783
723
|
};
|
|
784
724
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
785
725
|
const body = parsedOutput.body;
|
|
786
|
-
const deserialized =
|
|
726
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
787
727
|
const exception = new models_0_1.AccessDeniedException({
|
|
788
728
|
$metadata: deserializeMetadata(parsedOutput),
|
|
789
729
|
...deserialized,
|
|
@@ -792,7 +732,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
792
732
|
};
|
|
793
733
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
794
734
|
const body = parsedOutput.body;
|
|
795
|
-
const deserialized =
|
|
735
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
796
736
|
const exception = new models_0_1.ConflictException({
|
|
797
737
|
$metadata: deserializeMetadata(parsedOutput),
|
|
798
738
|
...deserialized,
|
|
@@ -801,7 +741,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
801
741
|
};
|
|
802
742
|
const de_InvalidArgsExceptionRes = async (parsedOutput, context) => {
|
|
803
743
|
const body = parsedOutput.body;
|
|
804
|
-
const deserialized =
|
|
744
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
805
745
|
const exception = new models_0_1.InvalidArgsException({
|
|
806
746
|
$metadata: deserializeMetadata(parsedOutput),
|
|
807
747
|
...deserialized,
|
|
@@ -810,7 +750,7 @@ const de_InvalidArgsExceptionRes = async (parsedOutput, context) => {
|
|
|
810
750
|
};
|
|
811
751
|
const de_InvalidArnExceptionRes = async (parsedOutput, context) => {
|
|
812
752
|
const body = parsedOutput.body;
|
|
813
|
-
const deserialized =
|
|
753
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
814
754
|
const exception = new models_0_1.InvalidArnException({
|
|
815
755
|
$metadata: deserializeMetadata(parsedOutput),
|
|
816
756
|
...deserialized,
|
|
@@ -819,7 +759,7 @@ const de_InvalidArnExceptionRes = async (parsedOutput, context) => {
|
|
|
819
759
|
};
|
|
820
760
|
const de_InvalidDomainValidationOptionsExceptionRes = async (parsedOutput, context) => {
|
|
821
761
|
const body = parsedOutput.body;
|
|
822
|
-
const deserialized =
|
|
762
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
823
763
|
const exception = new models_0_1.InvalidDomainValidationOptionsException({
|
|
824
764
|
$metadata: deserializeMetadata(parsedOutput),
|
|
825
765
|
...deserialized,
|
|
@@ -828,7 +768,7 @@ const de_InvalidDomainValidationOptionsExceptionRes = async (parsedOutput, conte
|
|
|
828
768
|
};
|
|
829
769
|
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
830
770
|
const body = parsedOutput.body;
|
|
831
|
-
const deserialized =
|
|
771
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
832
772
|
const exception = new models_0_1.InvalidParameterException({
|
|
833
773
|
$metadata: deserializeMetadata(parsedOutput),
|
|
834
774
|
...deserialized,
|
|
@@ -837,7 +777,7 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
|
837
777
|
};
|
|
838
778
|
const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
839
779
|
const body = parsedOutput.body;
|
|
840
|
-
const deserialized =
|
|
780
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
841
781
|
const exception = new models_0_1.InvalidStateException({
|
|
842
782
|
$metadata: deserializeMetadata(parsedOutput),
|
|
843
783
|
...deserialized,
|
|
@@ -846,7 +786,7 @@ const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
|
846
786
|
};
|
|
847
787
|
const de_InvalidTagExceptionRes = async (parsedOutput, context) => {
|
|
848
788
|
const body = parsedOutput.body;
|
|
849
|
-
const deserialized =
|
|
789
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
850
790
|
const exception = new models_0_1.InvalidTagException({
|
|
851
791
|
$metadata: deserializeMetadata(parsedOutput),
|
|
852
792
|
...deserialized,
|
|
@@ -855,7 +795,7 @@ const de_InvalidTagExceptionRes = async (parsedOutput, context) => {
|
|
|
855
795
|
};
|
|
856
796
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
857
797
|
const body = parsedOutput.body;
|
|
858
|
-
const deserialized =
|
|
798
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
859
799
|
const exception = new models_0_1.LimitExceededException({
|
|
860
800
|
$metadata: deserializeMetadata(parsedOutput),
|
|
861
801
|
...deserialized,
|
|
@@ -864,7 +804,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
864
804
|
};
|
|
865
805
|
const de_RequestInProgressExceptionRes = async (parsedOutput, context) => {
|
|
866
806
|
const body = parsedOutput.body;
|
|
867
|
-
const deserialized =
|
|
807
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
868
808
|
const exception = new models_0_1.RequestInProgressException({
|
|
869
809
|
$metadata: deserializeMetadata(parsedOutput),
|
|
870
810
|
...deserialized,
|
|
@@ -873,7 +813,7 @@ const de_RequestInProgressExceptionRes = async (parsedOutput, context) => {
|
|
|
873
813
|
};
|
|
874
814
|
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
875
815
|
const body = parsedOutput.body;
|
|
876
|
-
const deserialized =
|
|
816
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
877
817
|
const exception = new models_0_1.ResourceInUseException({
|
|
878
818
|
$metadata: deserializeMetadata(parsedOutput),
|
|
879
819
|
...deserialized,
|
|
@@ -882,7 +822,7 @@ const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
|
882
822
|
};
|
|
883
823
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
884
824
|
const body = parsedOutput.body;
|
|
885
|
-
const deserialized =
|
|
825
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
886
826
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
887
827
|
$metadata: deserializeMetadata(parsedOutput),
|
|
888
828
|
...deserialized,
|
|
@@ -891,7 +831,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
891
831
|
};
|
|
892
832
|
const de_TagPolicyExceptionRes = async (parsedOutput, context) => {
|
|
893
833
|
const body = parsedOutput.body;
|
|
894
|
-
const deserialized =
|
|
834
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
895
835
|
const exception = new models_0_1.TagPolicyException({
|
|
896
836
|
$metadata: deserializeMetadata(parsedOutput),
|
|
897
837
|
...deserialized,
|
|
@@ -900,7 +840,7 @@ const de_TagPolicyExceptionRes = async (parsedOutput, context) => {
|
|
|
900
840
|
};
|
|
901
841
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
902
842
|
const body = parsedOutput.body;
|
|
903
|
-
const deserialized =
|
|
843
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
904
844
|
const exception = new models_0_1.ThrottlingException({
|
|
905
845
|
$metadata: deserializeMetadata(parsedOutput),
|
|
906
846
|
...deserialized,
|
|
@@ -909,7 +849,7 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
909
849
|
};
|
|
910
850
|
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
911
851
|
const body = parsedOutput.body;
|
|
912
|
-
const deserialized =
|
|
852
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
913
853
|
const exception = new models_0_1.TooManyTagsException({
|
|
914
854
|
$metadata: deserializeMetadata(parsedOutput),
|
|
915
855
|
...deserialized,
|
|
@@ -918,540 +858,106 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
|
918
858
|
};
|
|
919
859
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
920
860
|
const body = parsedOutput.body;
|
|
921
|
-
const deserialized =
|
|
861
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
922
862
|
const exception = new models_0_1.ValidationException({
|
|
923
863
|
$metadata: deserializeMetadata(parsedOutput),
|
|
924
864
|
...deserialized,
|
|
925
865
|
});
|
|
926
866
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
927
867
|
};
|
|
928
|
-
const se_AddTagsToCertificateRequest = (input, context) => {
|
|
929
|
-
return {
|
|
930
|
-
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
931
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
932
|
-
};
|
|
933
|
-
};
|
|
934
|
-
const se_CertificateOptions = (input, context) => {
|
|
935
|
-
return {
|
|
936
|
-
...(input.CertificateTransparencyLoggingPreference != null && {
|
|
937
|
-
CertificateTransparencyLoggingPreference: input.CertificateTransparencyLoggingPreference,
|
|
938
|
-
}),
|
|
939
|
-
};
|
|
940
|
-
};
|
|
941
|
-
const se_CertificateStatuses = (input, context) => {
|
|
942
|
-
return input
|
|
943
|
-
.filter((e) => e != null)
|
|
944
|
-
.map((entry) => {
|
|
945
|
-
return entry;
|
|
946
|
-
});
|
|
947
|
-
};
|
|
948
|
-
const se_DeleteCertificateRequest = (input, context) => {
|
|
949
|
-
return {
|
|
950
|
-
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
951
|
-
};
|
|
952
|
-
};
|
|
953
|
-
const se_DescribeCertificateRequest = (input, context) => {
|
|
954
|
-
return {
|
|
955
|
-
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
956
|
-
};
|
|
957
|
-
};
|
|
958
|
-
const se_DomainList = (input, context) => {
|
|
959
|
-
return input
|
|
960
|
-
.filter((e) => e != null)
|
|
961
|
-
.map((entry) => {
|
|
962
|
-
return entry;
|
|
963
|
-
});
|
|
964
|
-
};
|
|
965
|
-
const se_DomainValidationOption = (input, context) => {
|
|
966
|
-
return {
|
|
967
|
-
...(input.DomainName != null && { DomainName: input.DomainName }),
|
|
968
|
-
...(input.ValidationDomain != null && { ValidationDomain: input.ValidationDomain }),
|
|
969
|
-
};
|
|
970
|
-
};
|
|
971
|
-
const se_DomainValidationOptionList = (input, context) => {
|
|
972
|
-
return input
|
|
973
|
-
.filter((e) => e != null)
|
|
974
|
-
.map((entry) => {
|
|
975
|
-
return se_DomainValidationOption(entry, context);
|
|
976
|
-
});
|
|
977
|
-
};
|
|
978
|
-
const se_ExpiryEventsConfiguration = (input, context) => {
|
|
979
|
-
return {
|
|
980
|
-
...(input.DaysBeforeExpiry != null && { DaysBeforeExpiry: input.DaysBeforeExpiry }),
|
|
981
|
-
};
|
|
982
|
-
};
|
|
983
868
|
const se_ExportCertificateRequest = (input, context) => {
|
|
984
|
-
return {
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
};
|
|
988
|
-
};
|
|
989
|
-
const se_ExtendedKeyUsageFilterList = (input, context) => {
|
|
990
|
-
return input
|
|
991
|
-
.filter((e) => e != null)
|
|
992
|
-
.map((entry) => {
|
|
993
|
-
return entry;
|
|
869
|
+
return (0, smithy_client_1.take)(input, {
|
|
870
|
+
CertificateArn: [],
|
|
871
|
+
Passphrase: context.base64Encoder,
|
|
994
872
|
});
|
|
995
873
|
};
|
|
996
|
-
const se_Filters = (input, context) => {
|
|
997
|
-
return {
|
|
998
|
-
...(input.extendedKeyUsage != null && {
|
|
999
|
-
extendedKeyUsage: se_ExtendedKeyUsageFilterList(input.extendedKeyUsage, context),
|
|
1000
|
-
}),
|
|
1001
|
-
...(input.keyTypes != null && { keyTypes: se_KeyAlgorithmList(input.keyTypes, context) }),
|
|
1002
|
-
...(input.keyUsage != null && { keyUsage: se_KeyUsageFilterList(input.keyUsage, context) }),
|
|
1003
|
-
};
|
|
1004
|
-
};
|
|
1005
|
-
const se_GetCertificateRequest = (input, context) => {
|
|
1006
|
-
return {
|
|
1007
|
-
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
1008
|
-
};
|
|
1009
|
-
};
|
|
1010
874
|
const se_ImportCertificateRequest = (input, context) => {
|
|
1011
|
-
return {
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
};
|
|
1018
|
-
};
|
|
1019
|
-
const se_KeyAlgorithmList = (input, context) => {
|
|
1020
|
-
return input
|
|
1021
|
-
.filter((e) => e != null)
|
|
1022
|
-
.map((entry) => {
|
|
1023
|
-
return entry;
|
|
1024
|
-
});
|
|
1025
|
-
};
|
|
1026
|
-
const se_KeyUsageFilterList = (input, context) => {
|
|
1027
|
-
return input
|
|
1028
|
-
.filter((e) => e != null)
|
|
1029
|
-
.map((entry) => {
|
|
1030
|
-
return entry;
|
|
875
|
+
return (0, smithy_client_1.take)(input, {
|
|
876
|
+
Certificate: context.base64Encoder,
|
|
877
|
+
CertificateArn: [],
|
|
878
|
+
CertificateChain: context.base64Encoder,
|
|
879
|
+
PrivateKey: context.base64Encoder,
|
|
880
|
+
Tags: smithy_client_1._json,
|
|
1031
881
|
});
|
|
1032
882
|
};
|
|
1033
|
-
const se_ListCertificatesRequest = (input, context) => {
|
|
1034
|
-
return {
|
|
1035
|
-
...(input.CertificateStatuses != null && {
|
|
1036
|
-
CertificateStatuses: se_CertificateStatuses(input.CertificateStatuses, context),
|
|
1037
|
-
}),
|
|
1038
|
-
...(input.Includes != null && { Includes: se_Filters(input.Includes, context) }),
|
|
1039
|
-
...(input.MaxItems != null && { MaxItems: input.MaxItems }),
|
|
1040
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1041
|
-
...(input.SortBy != null && { SortBy: input.SortBy }),
|
|
1042
|
-
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
1043
|
-
};
|
|
1044
|
-
};
|
|
1045
|
-
const se_ListTagsForCertificateRequest = (input, context) => {
|
|
1046
|
-
return {
|
|
1047
|
-
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
1048
|
-
};
|
|
1049
|
-
};
|
|
1050
|
-
const se_PutAccountConfigurationRequest = (input, context) => {
|
|
1051
|
-
return {
|
|
1052
|
-
...(input.ExpiryEvents != null && { ExpiryEvents: se_ExpiryEventsConfiguration(input.ExpiryEvents, context) }),
|
|
1053
|
-
...(input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }),
|
|
1054
|
-
};
|
|
1055
|
-
};
|
|
1056
|
-
const se_RemoveTagsFromCertificateRequest = (input, context) => {
|
|
1057
|
-
return {
|
|
1058
|
-
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
1059
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1060
|
-
};
|
|
1061
|
-
};
|
|
1062
|
-
const se_RenewCertificateRequest = (input, context) => {
|
|
1063
|
-
return {
|
|
1064
|
-
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
1065
|
-
};
|
|
1066
|
-
};
|
|
1067
|
-
const se_RequestCertificateRequest = (input, context) => {
|
|
1068
|
-
return {
|
|
1069
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1070
|
-
...(input.DomainName != null && { DomainName: input.DomainName }),
|
|
1071
|
-
...(input.DomainValidationOptions != null && {
|
|
1072
|
-
DomainValidationOptions: se_DomainValidationOptionList(input.DomainValidationOptions, context),
|
|
1073
|
-
}),
|
|
1074
|
-
...(input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }),
|
|
1075
|
-
...(input.KeyAlgorithm != null && { KeyAlgorithm: input.KeyAlgorithm }),
|
|
1076
|
-
...(input.Options != null && { Options: se_CertificateOptions(input.Options, context) }),
|
|
1077
|
-
...(input.SubjectAlternativeNames != null && {
|
|
1078
|
-
SubjectAlternativeNames: se_DomainList(input.SubjectAlternativeNames, context),
|
|
1079
|
-
}),
|
|
1080
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1081
|
-
...(input.ValidationMethod != null && { ValidationMethod: input.ValidationMethod }),
|
|
1082
|
-
};
|
|
1083
|
-
};
|
|
1084
|
-
const se_ResendValidationEmailRequest = (input, context) => {
|
|
1085
|
-
return {
|
|
1086
|
-
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
1087
|
-
...(input.Domain != null && { Domain: input.Domain }),
|
|
1088
|
-
...(input.ValidationDomain != null && { ValidationDomain: input.ValidationDomain }),
|
|
1089
|
-
};
|
|
1090
|
-
};
|
|
1091
|
-
const se_Tag = (input, context) => {
|
|
1092
|
-
return {
|
|
1093
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1094
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1095
|
-
};
|
|
1096
|
-
};
|
|
1097
|
-
const se_TagList = (input, context) => {
|
|
1098
|
-
return input
|
|
1099
|
-
.filter((e) => e != null)
|
|
1100
|
-
.map((entry) => {
|
|
1101
|
-
return se_Tag(entry, context);
|
|
1102
|
-
});
|
|
1103
|
-
};
|
|
1104
|
-
const se_UpdateCertificateOptionsRequest = (input, context) => {
|
|
1105
|
-
return {
|
|
1106
|
-
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
1107
|
-
...(input.Options != null && { Options: se_CertificateOptions(input.Options, context) }),
|
|
1108
|
-
};
|
|
1109
|
-
};
|
|
1110
|
-
const de_AccessDeniedException = (output, context) => {
|
|
1111
|
-
return {
|
|
1112
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1113
|
-
};
|
|
1114
|
-
};
|
|
1115
883
|
const de_CertificateDetail = (output, context) => {
|
|
1116
|
-
return {
|
|
1117
|
-
CertificateArn:
|
|
1118
|
-
CertificateAuthorityArn:
|
|
1119
|
-
CreatedAt:
|
|
1120
|
-
DomainName:
|
|
1121
|
-
DomainValidationOptions:
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1145
|
-
};
|
|
1146
|
-
};
|
|
1147
|
-
const de_CertificateOptions = (output, context) => {
|
|
1148
|
-
return {
|
|
1149
|
-
CertificateTransparencyLoggingPreference: (0, smithy_client_1.expectString)(output.CertificateTransparencyLoggingPreference),
|
|
1150
|
-
};
|
|
884
|
+
return (0, smithy_client_1.take)(output, {
|
|
885
|
+
CertificateArn: smithy_client_1.expectString,
|
|
886
|
+
CertificateAuthorityArn: smithy_client_1.expectString,
|
|
887
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
888
|
+
DomainName: smithy_client_1.expectString,
|
|
889
|
+
DomainValidationOptions: smithy_client_1._json,
|
|
890
|
+
ExtendedKeyUsages: smithy_client_1._json,
|
|
891
|
+
FailureReason: smithy_client_1.expectString,
|
|
892
|
+
ImportedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
893
|
+
InUseBy: smithy_client_1._json,
|
|
894
|
+
IssuedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
895
|
+
Issuer: smithy_client_1.expectString,
|
|
896
|
+
KeyAlgorithm: smithy_client_1.expectString,
|
|
897
|
+
KeyUsages: smithy_client_1._json,
|
|
898
|
+
NotAfter: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
899
|
+
NotBefore: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
900
|
+
Options: smithy_client_1._json,
|
|
901
|
+
RenewalEligibility: smithy_client_1.expectString,
|
|
902
|
+
RenewalSummary: (_) => de_RenewalSummary(_, context),
|
|
903
|
+
RevocationReason: smithy_client_1.expectString,
|
|
904
|
+
RevokedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
905
|
+
Serial: smithy_client_1.expectString,
|
|
906
|
+
SignatureAlgorithm: smithy_client_1.expectString,
|
|
907
|
+
Status: smithy_client_1.expectString,
|
|
908
|
+
Subject: smithy_client_1.expectString,
|
|
909
|
+
SubjectAlternativeNames: smithy_client_1._json,
|
|
910
|
+
Type: smithy_client_1.expectString,
|
|
911
|
+
});
|
|
1151
912
|
};
|
|
1152
913
|
const de_CertificateSummary = (output, context) => {
|
|
1153
|
-
return {
|
|
1154
|
-
CertificateArn:
|
|
1155
|
-
CreatedAt:
|
|
1156
|
-
DomainName:
|
|
1157
|
-
Exported:
|
|
1158
|
-
ExtendedKeyUsages:
|
|
1159
|
-
HasAdditionalSubjectAlternativeNames:
|
|
1160
|
-
ImportedAt:
|
|
1161
|
-
InUse:
|
|
1162
|
-
IssuedAt:
|
|
1163
|
-
KeyAlgorithm:
|
|
1164
|
-
KeyUsages:
|
|
1165
|
-
NotAfter:
|
|
1166
|
-
NotBefore:
|
|
1167
|
-
RenewalEligibility:
|
|
1168
|
-
RevokedAt:
|
|
1169
|
-
Status:
|
|
1170
|
-
SubjectAlternativeNameSummaries:
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1174
|
-
};
|
|
914
|
+
return (0, smithy_client_1.take)(output, {
|
|
915
|
+
CertificateArn: smithy_client_1.expectString,
|
|
916
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
917
|
+
DomainName: smithy_client_1.expectString,
|
|
918
|
+
Exported: smithy_client_1.expectBoolean,
|
|
919
|
+
ExtendedKeyUsages: smithy_client_1._json,
|
|
920
|
+
HasAdditionalSubjectAlternativeNames: smithy_client_1.expectBoolean,
|
|
921
|
+
ImportedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
922
|
+
InUse: smithy_client_1.expectBoolean,
|
|
923
|
+
IssuedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
924
|
+
KeyAlgorithm: smithy_client_1.expectString,
|
|
925
|
+
KeyUsages: smithy_client_1._json,
|
|
926
|
+
NotAfter: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
927
|
+
NotBefore: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
928
|
+
RenewalEligibility: smithy_client_1.expectString,
|
|
929
|
+
RevokedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
930
|
+
Status: smithy_client_1.expectString,
|
|
931
|
+
SubjectAlternativeNameSummaries: smithy_client_1._json,
|
|
932
|
+
Type: smithy_client_1.expectString,
|
|
933
|
+
});
|
|
1175
934
|
};
|
|
1176
935
|
const de_CertificateSummaryList = (output, context) => {
|
|
1177
936
|
const retVal = (output || [])
|
|
1178
937
|
.filter((e) => e != null)
|
|
1179
938
|
.map((entry) => {
|
|
1180
|
-
if (entry === null) {
|
|
1181
|
-
return null;
|
|
1182
|
-
}
|
|
1183
939
|
return de_CertificateSummary(entry, context);
|
|
1184
940
|
});
|
|
1185
941
|
return retVal;
|
|
1186
942
|
};
|
|
1187
|
-
const de_ConflictException = (output, context) => {
|
|
1188
|
-
return {
|
|
1189
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1190
|
-
};
|
|
1191
|
-
};
|
|
1192
943
|
const de_DescribeCertificateResponse = (output, context) => {
|
|
1193
|
-
return {
|
|
1194
|
-
Certificate:
|
|
1195
|
-
};
|
|
1196
|
-
};
|
|
1197
|
-
const de_DomainList = (output, context) => {
|
|
1198
|
-
const retVal = (output || [])
|
|
1199
|
-
.filter((e) => e != null)
|
|
1200
|
-
.map((entry) => {
|
|
1201
|
-
if (entry === null) {
|
|
1202
|
-
return null;
|
|
1203
|
-
}
|
|
1204
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1205
|
-
});
|
|
1206
|
-
return retVal;
|
|
1207
|
-
};
|
|
1208
|
-
const de_DomainValidation = (output, context) => {
|
|
1209
|
-
return {
|
|
1210
|
-
DomainName: (0, smithy_client_1.expectString)(output.DomainName),
|
|
1211
|
-
ResourceRecord: output.ResourceRecord != null ? de_ResourceRecord(output.ResourceRecord, context) : undefined,
|
|
1212
|
-
ValidationDomain: (0, smithy_client_1.expectString)(output.ValidationDomain),
|
|
1213
|
-
ValidationEmails: output.ValidationEmails != null ? de_ValidationEmailList(output.ValidationEmails, context) : undefined,
|
|
1214
|
-
ValidationMethod: (0, smithy_client_1.expectString)(output.ValidationMethod),
|
|
1215
|
-
ValidationStatus: (0, smithy_client_1.expectString)(output.ValidationStatus),
|
|
1216
|
-
};
|
|
1217
|
-
};
|
|
1218
|
-
const de_DomainValidationList = (output, context) => {
|
|
1219
|
-
const retVal = (output || [])
|
|
1220
|
-
.filter((e) => e != null)
|
|
1221
|
-
.map((entry) => {
|
|
1222
|
-
if (entry === null) {
|
|
1223
|
-
return null;
|
|
1224
|
-
}
|
|
1225
|
-
return de_DomainValidation(entry, context);
|
|
1226
|
-
});
|
|
1227
|
-
return retVal;
|
|
1228
|
-
};
|
|
1229
|
-
const de_ExpiryEventsConfiguration = (output, context) => {
|
|
1230
|
-
return {
|
|
1231
|
-
DaysBeforeExpiry: (0, smithy_client_1.expectInt32)(output.DaysBeforeExpiry),
|
|
1232
|
-
};
|
|
1233
|
-
};
|
|
1234
|
-
const de_ExportCertificateResponse = (output, context) => {
|
|
1235
|
-
return {
|
|
1236
|
-
Certificate: (0, smithy_client_1.expectString)(output.Certificate),
|
|
1237
|
-
CertificateChain: (0, smithy_client_1.expectString)(output.CertificateChain),
|
|
1238
|
-
PrivateKey: (0, smithy_client_1.expectString)(output.PrivateKey),
|
|
1239
|
-
};
|
|
1240
|
-
};
|
|
1241
|
-
const de_ExtendedKeyUsage = (output, context) => {
|
|
1242
|
-
return {
|
|
1243
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1244
|
-
OID: (0, smithy_client_1.expectString)(output.OID),
|
|
1245
|
-
};
|
|
1246
|
-
};
|
|
1247
|
-
const de_ExtendedKeyUsageList = (output, context) => {
|
|
1248
|
-
const retVal = (output || [])
|
|
1249
|
-
.filter((e) => e != null)
|
|
1250
|
-
.map((entry) => {
|
|
1251
|
-
if (entry === null) {
|
|
1252
|
-
return null;
|
|
1253
|
-
}
|
|
1254
|
-
return de_ExtendedKeyUsage(entry, context);
|
|
1255
|
-
});
|
|
1256
|
-
return retVal;
|
|
1257
|
-
};
|
|
1258
|
-
const de_ExtendedKeyUsageNames = (output, context) => {
|
|
1259
|
-
const retVal = (output || [])
|
|
1260
|
-
.filter((e) => e != null)
|
|
1261
|
-
.map((entry) => {
|
|
1262
|
-
if (entry === null) {
|
|
1263
|
-
return null;
|
|
1264
|
-
}
|
|
1265
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1266
|
-
});
|
|
1267
|
-
return retVal;
|
|
1268
|
-
};
|
|
1269
|
-
const de_GetAccountConfigurationResponse = (output, context) => {
|
|
1270
|
-
return {
|
|
1271
|
-
ExpiryEvents: output.ExpiryEvents != null ? de_ExpiryEventsConfiguration(output.ExpiryEvents, context) : undefined,
|
|
1272
|
-
};
|
|
1273
|
-
};
|
|
1274
|
-
const de_GetCertificateResponse = (output, context) => {
|
|
1275
|
-
return {
|
|
1276
|
-
Certificate: (0, smithy_client_1.expectString)(output.Certificate),
|
|
1277
|
-
CertificateChain: (0, smithy_client_1.expectString)(output.CertificateChain),
|
|
1278
|
-
};
|
|
1279
|
-
};
|
|
1280
|
-
const de_ImportCertificateResponse = (output, context) => {
|
|
1281
|
-
return {
|
|
1282
|
-
CertificateArn: (0, smithy_client_1.expectString)(output.CertificateArn),
|
|
1283
|
-
};
|
|
1284
|
-
};
|
|
1285
|
-
const de_InUseList = (output, context) => {
|
|
1286
|
-
const retVal = (output || [])
|
|
1287
|
-
.filter((e) => e != null)
|
|
1288
|
-
.map((entry) => {
|
|
1289
|
-
if (entry === null) {
|
|
1290
|
-
return null;
|
|
1291
|
-
}
|
|
1292
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1293
|
-
});
|
|
1294
|
-
return retVal;
|
|
1295
|
-
};
|
|
1296
|
-
const de_InvalidArgsException = (output, context) => {
|
|
1297
|
-
return {
|
|
1298
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1299
|
-
};
|
|
1300
|
-
};
|
|
1301
|
-
const de_InvalidArnException = (output, context) => {
|
|
1302
|
-
return {
|
|
1303
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1304
|
-
};
|
|
1305
|
-
};
|
|
1306
|
-
const de_InvalidDomainValidationOptionsException = (output, context) => {
|
|
1307
|
-
return {
|
|
1308
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1309
|
-
};
|
|
1310
|
-
};
|
|
1311
|
-
const de_InvalidParameterException = (output, context) => {
|
|
1312
|
-
return {
|
|
1313
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1314
|
-
};
|
|
1315
|
-
};
|
|
1316
|
-
const de_InvalidStateException = (output, context) => {
|
|
1317
|
-
return {
|
|
1318
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1319
|
-
};
|
|
1320
|
-
};
|
|
1321
|
-
const de_InvalidTagException = (output, context) => {
|
|
1322
|
-
return {
|
|
1323
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1324
|
-
};
|
|
1325
|
-
};
|
|
1326
|
-
const de_KeyUsage = (output, context) => {
|
|
1327
|
-
return {
|
|
1328
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1329
|
-
};
|
|
1330
|
-
};
|
|
1331
|
-
const de_KeyUsageList = (output, context) => {
|
|
1332
|
-
const retVal = (output || [])
|
|
1333
|
-
.filter((e) => e != null)
|
|
1334
|
-
.map((entry) => {
|
|
1335
|
-
if (entry === null) {
|
|
1336
|
-
return null;
|
|
1337
|
-
}
|
|
1338
|
-
return de_KeyUsage(entry, context);
|
|
1339
|
-
});
|
|
1340
|
-
return retVal;
|
|
1341
|
-
};
|
|
1342
|
-
const de_KeyUsageNames = (output, context) => {
|
|
1343
|
-
const retVal = (output || [])
|
|
1344
|
-
.filter((e) => e != null)
|
|
1345
|
-
.map((entry) => {
|
|
1346
|
-
if (entry === null) {
|
|
1347
|
-
return null;
|
|
1348
|
-
}
|
|
1349
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
944
|
+
return (0, smithy_client_1.take)(output, {
|
|
945
|
+
Certificate: (_) => de_CertificateDetail(_, context),
|
|
1350
946
|
});
|
|
1351
|
-
return retVal;
|
|
1352
|
-
};
|
|
1353
|
-
const de_LimitExceededException = (output, context) => {
|
|
1354
|
-
return {
|
|
1355
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1356
|
-
};
|
|
1357
947
|
};
|
|
1358
948
|
const de_ListCertificatesResponse = (output, context) => {
|
|
1359
|
-
return {
|
|
1360
|
-
CertificateSummaryList:
|
|
1361
|
-
|
|
1362
|
-
: undefined,
|
|
1363
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1364
|
-
};
|
|
1365
|
-
};
|
|
1366
|
-
const de_ListTagsForCertificateResponse = (output, context) => {
|
|
1367
|
-
return {
|
|
1368
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
1369
|
-
};
|
|
1370
|
-
};
|
|
1371
|
-
const de_RenewalSummary = (output, context) => {
|
|
1372
|
-
return {
|
|
1373
|
-
DomainValidationOptions: output.DomainValidationOptions != null
|
|
1374
|
-
? de_DomainValidationList(output.DomainValidationOptions, context)
|
|
1375
|
-
: undefined,
|
|
1376
|
-
RenewalStatus: (0, smithy_client_1.expectString)(output.RenewalStatus),
|
|
1377
|
-
RenewalStatusReason: (0, smithy_client_1.expectString)(output.RenewalStatusReason),
|
|
1378
|
-
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
1379
|
-
};
|
|
1380
|
-
};
|
|
1381
|
-
const de_RequestCertificateResponse = (output, context) => {
|
|
1382
|
-
return {
|
|
1383
|
-
CertificateArn: (0, smithy_client_1.expectString)(output.CertificateArn),
|
|
1384
|
-
};
|
|
1385
|
-
};
|
|
1386
|
-
const de_RequestInProgressException = (output, context) => {
|
|
1387
|
-
return {
|
|
1388
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1389
|
-
};
|
|
1390
|
-
};
|
|
1391
|
-
const de_ResourceInUseException = (output, context) => {
|
|
1392
|
-
return {
|
|
1393
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1394
|
-
};
|
|
1395
|
-
};
|
|
1396
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
1397
|
-
return {
|
|
1398
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1399
|
-
};
|
|
1400
|
-
};
|
|
1401
|
-
const de_ResourceRecord = (output, context) => {
|
|
1402
|
-
return {
|
|
1403
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1404
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1405
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1406
|
-
};
|
|
1407
|
-
};
|
|
1408
|
-
const de_Tag = (output, context) => {
|
|
1409
|
-
return {
|
|
1410
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
1411
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1412
|
-
};
|
|
1413
|
-
};
|
|
1414
|
-
const de_TagList = (output, context) => {
|
|
1415
|
-
const retVal = (output || [])
|
|
1416
|
-
.filter((e) => e != null)
|
|
1417
|
-
.map((entry) => {
|
|
1418
|
-
if (entry === null) {
|
|
1419
|
-
return null;
|
|
1420
|
-
}
|
|
1421
|
-
return de_Tag(entry, context);
|
|
949
|
+
return (0, smithy_client_1.take)(output, {
|
|
950
|
+
CertificateSummaryList: (_) => de_CertificateSummaryList(_, context),
|
|
951
|
+
NextToken: smithy_client_1.expectString,
|
|
1422
952
|
});
|
|
1423
|
-
return retVal;
|
|
1424
|
-
};
|
|
1425
|
-
const de_TagPolicyException = (output, context) => {
|
|
1426
|
-
return {
|
|
1427
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1428
|
-
};
|
|
1429
|
-
};
|
|
1430
|
-
const de_ThrottlingException = (output, context) => {
|
|
1431
|
-
return {
|
|
1432
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1433
|
-
};
|
|
1434
|
-
};
|
|
1435
|
-
const de_TooManyTagsException = (output, context) => {
|
|
1436
|
-
return {
|
|
1437
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1438
|
-
};
|
|
1439
953
|
};
|
|
1440
|
-
const
|
|
1441
|
-
|
|
1442
|
-
.
|
|
1443
|
-
.
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
}
|
|
1447
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
954
|
+
const de_RenewalSummary = (output, context) => {
|
|
955
|
+
return (0, smithy_client_1.take)(output, {
|
|
956
|
+
DomainValidationOptions: smithy_client_1._json,
|
|
957
|
+
RenewalStatus: smithy_client_1.expectString,
|
|
958
|
+
RenewalStatusReason: smithy_client_1.expectString,
|
|
959
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1448
960
|
});
|
|
1449
|
-
return retVal;
|
|
1450
|
-
};
|
|
1451
|
-
const de_ValidationException = (output, context) => {
|
|
1452
|
-
return {
|
|
1453
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1454
|
-
};
|
|
1455
961
|
};
|
|
1456
962
|
const deserializeMetadata = (output) => ({
|
|
1457
963
|
httpStatusCode: output.statusCode,
|
|
@@ -1466,6 +972,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1466
972
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1467
973
|
};
|
|
1468
974
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
975
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(ACMServiceException_1.ACMServiceException);
|
|
1469
976
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1470
977
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1471
978
|
const contents = {
|
|
@@ -1484,6 +991,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
1484
991
|
}
|
|
1485
992
|
return new protocol_http_1.HttpRequest(contents);
|
|
1486
993
|
};
|
|
994
|
+
function sharedHeaders(operation) {
|
|
995
|
+
return {
|
|
996
|
+
"content-type": "application/x-amz-json-1.1",
|
|
997
|
+
"x-amz-target": `CertificateManager.${operation}`,
|
|
998
|
+
};
|
|
999
|
+
}
|
|
1487
1000
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1488
1001
|
if (encoded.length) {
|
|
1489
1002
|
return JSON.parse(encoded);
|