@@ -158,13 +158,9 @@ export async function serializeAws_json1_1CreateCertificateAuthorityCommand(
158
158
headers [ "Content-Type" ] = "application/x-amz-json-1.1" ;
159
159
headers [ "X-Amz-Target" ] = "ACMPrivateCA.CreateCertificateAuthority" ;
160
160
let body : any = { } ;
161
- const wrappedBody : any = {
162
- CreateCertificateAuthorityRequest : serializeAws_json1_1CreateCertificateAuthorityRequest (
163
- input ,
164
- context
165
- )
166
- } ;
167
- body = JSON . stringify ( wrappedBody ) ;
161
+ body = JSON . stringify (
162
+ serializeAws_json1_1CreateCertificateAuthorityRequest ( input , context )
163
+ ) ;
168
164
return new __HttpRequest ( {
169
165
...context . endpoint ,
170
166
protocol : "https" ,
@@ -184,13 +180,12 @@ export async function serializeAws_json1_1CreateCertificateAuthorityAuditReportC
184
180
headers [ "X-Amz-Target" ] =
185
181
"ACMPrivateCA.CreateCertificateAuthorityAuditReport" ;
186
182
let body : any = { } ;
187
- const wrappedBody : any = {
188
- CreateCertificateAuthorityAuditReportRequest : serializeAws_json1_1CreateCertificateAuthorityAuditReportRequest (
183
+ body = JSON . stringify (
184
+ serializeAws_json1_1CreateCertificateAuthorityAuditReportRequest (
189
185
input ,
190
186
context
191
187
)
192
- } ;
193
- body = JSON . stringify ( wrappedBody ) ;
188
+ ) ;
194
189
return new __HttpRequest ( {
195
190
...context . endpoint ,
196
191
protocol : "https" ,
@@ -209,13 +204,9 @@ export async function serializeAws_json1_1CreatePermissionCommand(
209
204
headers [ "Content-Type" ] = "application/x-amz-json-1.1" ;
210
205
headers [ "X-Amz-Target" ] = "ACMPrivateCA.CreatePermission" ;
211
206
let body : any = { } ;
212
- const wrappedBody : any = {
213
- CreatePermissionRequest : serializeAws_json1_1CreatePermissionRequest (
214
- input ,
215
- context
216
- )
217
- } ;
218
- body = JSON . stringify ( wrappedBody ) ;
207
+ body = JSON . stringify (
208
+ serializeAws_json1_1CreatePermissionRequest ( input , context )
209
+ ) ;
219
210
return new __HttpRequest ( {
220
211
...context . endpoint ,
221
212
protocol : "https" ,
@@ -234,13 +225,9 @@ export async function serializeAws_json1_1DeleteCertificateAuthorityCommand(
234
225
headers [ "Content-Type" ] = "application/x-amz-json-1.1" ;
235
226
headers [ "X-Amz-Target" ] = "ACMPrivateCA.DeleteCertificateAuthority" ;
236
227
let body : any = { } ;
237
- const wrappedBody : any = {
238
- DeleteCertificateAuthorityRequest : serializeAws_json1_1DeleteCertificateAuthorityRequest (
239
- input ,
240
- context
241
- )
242
- } ;
243
- body = JSON . stringify ( wrappedBody ) ;
228
+ body = JSON . stringify (
229
+ serializeAws_json1_1DeleteCertificateAuthorityRequest ( input , context )
230
+ ) ;
244
231
return new __HttpRequest ( {
245
232
...context . endpoint ,
246
233
protocol : "https" ,
@@ -259,13 +246,9 @@ export async function serializeAws_json1_1DeletePermissionCommand(
259
246
headers [ "Content-Type" ] = "application/x-amz-json-1.1" ;
260
247
headers [ "X-Amz-Target" ] = "ACMPrivateCA.DeletePermission" ;
261
248
let body : any = { } ;
262
- const wrappedBody : any = {
263
- DeletePermissionRequest : serializeAws_json1_1DeletePermissionRequest (
264
- input ,
265
- context
266
- )
267
- } ;
268
- body = JSON . stringify ( wrappedBody ) ;
249
+ body = JSON . stringify (
250
+ serializeAws_json1_1DeletePermissionRequest ( input , context )
251
+ ) ;
269
252
return new __HttpRequest ( {
270
253
...context . endpoint ,
271
254
protocol : "https" ,
@@ -284,13 +267,9 @@ export async function serializeAws_json1_1DescribeCertificateAuthorityCommand(
284
267
headers [ "Content-Type" ] = "application/x-amz-json-1.1" ;
285
268
headers [ "X-Amz-Target" ] = "ACMPrivateCA.DescribeCertificateAuthority" ;
286
269
let body : any = { } ;
287
- const wrappedBody : any = {
288
- DescribeCertificateAuthorityRequest : serializeAws_json1_1DescribeCertificateAuthorityRequest (
289
- input ,
290
- context
291
- )
292
- } ;
293
- body = JSON . stringify ( wrappedBody ) ;
270
+ body = JSON . stringify (
271
+ serializeAws_json1_1DescribeCertificateAuthorityRequest ( input , context )
272
+ ) ;
294
273
return new __HttpRequest ( {
295
274
...context . endpoint ,
296
275
protocol : "https" ,
@@ -310,13 +289,12 @@ export async function serializeAws_json1_1DescribeCertificateAuthorityAuditRepor
310
289
headers [ "X-Amz-Target" ] =
311
290
"ACMPrivateCA.DescribeCertificateAuthorityAuditReport" ;
312
291
let body : any = { } ;
313
- const wrappedBody : any = {
314
- DescribeCertificateAuthorityAuditReportRequest : serializeAws_json1_1DescribeCertificateAuthorityAuditReportRequest (
292
+ body = JSON . stringify (
293
+ serializeAws_json1_1DescribeCertificateAuthorityAuditReportRequest (
315
294
input ,
316
295
context
317
296
)
318
- } ;
319
- body = JSON . stringify ( wrappedBody ) ;
297
+ ) ;
320
298
return new __HttpRequest ( {
321
299
...context . endpoint ,
322
300
protocol : "https" ,
@@ -335,13 +313,9 @@ export async function serializeAws_json1_1GetCertificateCommand(
335
313
headers [ "Content-Type" ] = "application/x-amz-json-1.1" ;
336
314
headers [ "X-Amz-Target" ] = "ACMPrivateCA.GetCertificate" ;
337
315
let body : any = { } ;
338
- const wrappedBody : any = {
339
- GetCertificateRequest : serializeAws_json1_1GetCertificateRequest (
340
- input ,
341
- context
342
- )
343
- } ;
344
- body = JSON . stringify ( wrappedBody ) ;
316
+ body = JSON . stringify (
317
+ serializeAws_json1_1GetCertificateRequest ( input , context )
318
+ ) ;
345
319
return new __HttpRequest ( {
346
320
...context . endpoint ,
347
321
protocol : "https" ,
@@ -360,13 +334,12 @@ export async function serializeAws_json1_1GetCertificateAuthorityCertificateComm
360
334
headers [ "Content-Type" ] = "application/x-amz-json-1.1" ;
361
335
headers [ "X-Amz-Target" ] = "ACMPrivateCA.GetCertificateAuthorityCertificate" ;
362
336
let body : any = { } ;
363
- const wrappedBody : any = {
364
- GetCertificateAuthorityCertificateRequest : serializeAws_json1_1GetCertificateAuthorityCertificateRequest (
337
+ body = JSON . stringify (
338
+ serializeAws_json1_1GetCertificateAuthorityCertificateRequest (
365
339
input ,
366
340
context
367
341
)
368
- } ;
369
- body = JSON . stringify ( wrappedBody ) ;
342
+ ) ;
370
343
return new __HttpRequest ( {
371
344
...context . endpoint ,
372
345
protocol : "https" ,
@@ -385,13 +358,9 @@ export async function serializeAws_json1_1GetCertificateAuthorityCsrCommand(
385
358
headers [ "Content-Type" ] = "application/x-amz-json-1.1" ;
386
359
headers [ "X-Amz-Target" ] = "ACMPrivateCA.GetCertificateAuthorityCsr" ;
387
360
let body : any = { } ;
388
- const wrappedBody : any = {
389
- GetCertificateAuthorityCsrRequest : serializeAws_json1_1GetCertificateAuthorityCsrRequest (
390
- input ,
391
- context
392
- )
393
- } ;
394
- body = JSON . stringify ( wrappedBody ) ;
361
+ body = JSON . stringify (
362
+ serializeAws_json1_1GetCertificateAuthorityCsrRequest ( input , context )
363
+ ) ;
395
364
return new __HttpRequest ( {
396
365
...context . endpoint ,
397
366
protocol : "https" ,
@@ -411,13 +380,12 @@ export async function serializeAws_json1_1ImportCertificateAuthorityCertificateC
411
380
headers [ "X-Amz-Target" ] =
412
381
"ACMPrivateCA.ImportCertificateAuthorityCertificate" ;
413
382
let body : any = { } ;
414
- const wrappedBody : any = {
415
- ImportCertificateAuthorityCertificateRequest : serializeAws_json1_1ImportCertificateAuthorityCertificateRequest (
383
+ body = JSON . stringify (
384
+ serializeAws_json1_1ImportCertificateAuthorityCertificateRequest (
416
385
input ,
417
386
context
418
387
)
419
- } ;
420
- body = JSON . stringify ( wrappedBody ) ;
388
+ ) ;
421
389
return new __HttpRequest ( {
422
390
...context . endpoint ,
423
391
protocol : "https" ,
@@ -436,13 +404,9 @@ export async function serializeAws_json1_1IssueCertificateCommand(
436
404
headers [ "Content-Type" ] = "application/x-amz-json-1.1" ;
437
405
headers [ "X-Amz-Target" ] = "ACMPrivateCA.IssueCertificate" ;
438
406
let body : any = { } ;
439
- const wrappedBody : any = {
440
- IssueCertificateRequest : serializeAws_json1_1IssueCertificateRequest (
441
- input ,
442
- context
443
- )
444
- } ;
445
- body = JSON . stringify ( wrappedBody ) ;
407
+ body = JSON . stringify (
408
+ serializeAws_json1_1IssueCertificateRequest ( input , context )
409
+ ) ;
446
410
return new __HttpRequest ( {
447
411
...context . endpoint ,
448
412
protocol : "https" ,
@@ -461,13 +425,9 @@ export async function serializeAws_json1_1ListCertificateAuthoritiesCommand(
461
425
headers [ "Content-Type" ] = "application/x-amz-json-1.1" ;
462
426
headers [ "X-Amz-Target" ] = "ACMPrivateCA.ListCertificateAuthorities" ;
463
427
let body : any = { } ;
464
- const wrappedBody : any = {
465
- ListCertificateAuthoritiesRequest : serializeAws_json1_1ListCertificateAuthoritiesRequest (
466
- input ,
467
- context
468
- )
469
- } ;
470
- body = JSON . stringify ( wrappedBody ) ;
428
+ body = JSON . stringify (
429
+ serializeAws_json1_1ListCertificateAuthoritiesRequest ( input , context )
430
+ ) ;
471
431
return new __HttpRequest ( {
472
432
...context . endpoint ,
473
433
protocol : "https" ,
@@ -486,13 +446,9 @@ export async function serializeAws_json1_1ListPermissionsCommand(
486
446
headers [ "Content-Type" ] = "application/x-amz-json-1.1" ;
487
447
headers [ "X-Amz-Target" ] = "ACMPrivateCA.ListPermissions" ;
488
448
let body : any = { } ;
489
- const wrappedBody : any = {
490
- ListPermissionsRequest : serializeAws_json1_1ListPermissionsRequest (
491
- input ,
492
- context
493
- )
494
- } ;
495
- body = JSON . stringify ( wrappedBody ) ;
449
+ body = JSON . stringify (
450
+ serializeAws_json1_1ListPermissionsRequest ( input , context )
451
+ ) ;
496
452
return new __HttpRequest ( {
497
453
...context . endpoint ,
498
454
protocol : "https" ,
@@ -511,10 +467,7 @@ export async function serializeAws_json1_1ListTagsCommand(
511
467
headers [ "Content-Type" ] = "application/x-amz-json-1.1" ;
512
468
headers [ "X-Amz-Target" ] = "ACMPrivateCA.ListTags" ;
513
469
let body : any = { } ;
514
- const wrappedBody : any = {
515
- ListTagsRequest : serializeAws_json1_1ListTagsRequest ( input , context )
516
- } ;
517
- body = JSON . stringify ( wrappedBody ) ;
470
+ body = JSON . stringify ( serializeAws_json1_1ListTagsRequest ( input , context ) ) ;
518
471
return new __HttpRequest ( {
519
472
...context . endpoint ,
520
473
protocol : "https" ,
@@ -533,13 +486,9 @@ export async function serializeAws_json1_1RestoreCertificateAuthorityCommand(
533
486
headers [ "Content-Type" ] = "application/x-amz-json-1.1" ;
534
487
headers [ "X-Amz-Target" ] = "ACMPrivateCA.RestoreCertificateAuthority" ;
535
488
let body : any = { } ;
536
- const wrappedBody : any = {
537
- RestoreCertificateAuthorityRequest : serializeAws_json1_1RestoreCertificateAuthorityRequest (
538
- input ,
539
- context
540
- )
541
- } ;
542
- body = JSON . stringify ( wrappedBody ) ;
489
+ body = JSON . stringify (
490
+ serializeAws_json1_1RestoreCertificateAuthorityRequest ( input , context )
491
+ ) ;
543
492
return new __HttpRequest ( {
544
493
...context . endpoint ,
545
494
protocol : "https" ,
@@ -558,13 +507,9 @@ export async function serializeAws_json1_1RevokeCertificateCommand(
558
507
headers [ "Content-Type" ] = "application/x-amz-json-1.1" ;
559
508
headers [ "X-Amz-Target" ] = "ACMPrivateCA.RevokeCertificate" ;
560
509
let body : any = { } ;
561
- const wrappedBody : any = {
562
- RevokeCertificateRequest : serializeAws_json1_1RevokeCertificateRequest (
563
- input ,
564
- context
565
- )
566
- } ;
567
- body = JSON . stringify ( wrappedBody ) ;
510
+ body = JSON . stringify (
511
+ serializeAws_json1_1RevokeCertificateRequest ( input , context )
512
+ ) ;
568
513
return new __HttpRequest ( {
569
514
...context . endpoint ,
570
515
protocol : "https" ,
@@ -583,13 +528,9 @@ export async function serializeAws_json1_1TagCertificateAuthorityCommand(
583
528
headers [ "Content-Type" ] = "application/x-amz-json-1.1" ;
584
529
headers [ "X-Amz-Target" ] = "ACMPrivateCA.TagCertificateAuthority" ;
585
530
let body : any = { } ;
586
- const wrappedBody : any = {
587
- TagCertificateAuthorityRequest : serializeAws_json1_1TagCertificateAuthorityRequest (
588
- input ,
589
- context
590
- )
591
- } ;
592
- body = JSON . stringify ( wrappedBody ) ;
531
+ body = JSON . stringify (
532
+ serializeAws_json1_1TagCertificateAuthorityRequest ( input , context )
533
+ ) ;
593
534
return new __HttpRequest ( {
594
535
...context . endpoint ,
595
536
protocol : "https" ,
@@ -608,13 +549,9 @@ export async function serializeAws_json1_1UntagCertificateAuthorityCommand(
608
549
headers [ "Content-Type" ] = "application/x-amz-json-1.1" ;
609
550
headers [ "X-Amz-Target" ] = "ACMPrivateCA.UntagCertificateAuthority" ;
610
551
let body : any = { } ;
611
- const wrappedBody : any = {
612
- UntagCertificateAuthorityRequest : serializeAws_json1_1UntagCertificateAuthorityRequest (
613
- input ,
614
- context
615
- )
616
- } ;
617
- body = JSON . stringify ( wrappedBody ) ;
552
+ body = JSON . stringify (
553
+ serializeAws_json1_1UntagCertificateAuthorityRequest ( input , context )
554
+ ) ;
618
555
return new __HttpRequest ( {
619
556
...context . endpoint ,
620
557
protocol : "https" ,
@@ -633,13 +570,9 @@ export async function serializeAws_json1_1UpdateCertificateAuthorityCommand(
633
570
headers [ "Content-Type" ] = "application/x-amz-json-1.1" ;
634
571
headers [ "X-Amz-Target" ] = "ACMPrivateCA.UpdateCertificateAuthority" ;
635
572
let body : any = { } ;
636
- const wrappedBody : any = {
637
- UpdateCertificateAuthorityRequest : serializeAws_json1_1UpdateCertificateAuthorityRequest (
638
- input ,
639
- context
640
- )
641
- } ;
642
- body = JSON . stringify ( wrappedBody ) ;
573
+ body = JSON . stringify (
574
+ serializeAws_json1_1UpdateCertificateAuthorityRequest ( input , context )
575
+ ) ;
643
576
return new __HttpRequest ( {
644
577
...context . endpoint ,
645
578
protocol : "https" ,
0 commit comments