Skip to content

Commit f29397e

Browse files
committed
chore: codegen to define headers at declaration
1 parent 80a0a57 commit f29397e

File tree

127 files changed

+18057
-14091
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+18057
-14091
lines changed

clients/client-acm-pca/protocols/Aws_json1_1.ts

Lines changed: 80 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,10 @@ export async function serializeAws_json1_1CreateCertificateAuthorityCommand(
155155
input: CreateCertificateAuthorityCommandInput,
156156
context: __SerdeContext
157157
): Promise<__HttpRequest> {
158-
const headers: __HeaderBag = {};
159-
headers["Content-Type"] = "application/x-amz-json-1.1";
160-
headers["X-Amz-Target"] = "ACMPrivateCA.CreateCertificateAuthority";
158+
const headers: __HeaderBag = {
159+
"Content-Type": "application/x-amz-json-1.1",
160+
"X-Amz-Target": "ACMPrivateCA.CreateCertificateAuthority"
161+
};
161162
let body: any;
162163
body = JSON.stringify(
163164
serializeAws_json1_1CreateCertificateAuthorityRequest(input, context)
@@ -169,10 +170,10 @@ export async function serializeAws_json1_1CreateCertificateAuthorityAuditReportC
169170
input: CreateCertificateAuthorityAuditReportCommandInput,
170171
context: __SerdeContext
171172
): Promise<__HttpRequest> {
172-
const headers: __HeaderBag = {};
173-
headers["Content-Type"] = "application/x-amz-json-1.1";
174-
headers["X-Amz-Target"] =
175-
"ACMPrivateCA.CreateCertificateAuthorityAuditReport";
173+
const headers: __HeaderBag = {
174+
"Content-Type": "application/x-amz-json-1.1",
175+
"X-Amz-Target": "ACMPrivateCA.CreateCertificateAuthorityAuditReport"
176+
};
176177
let body: any;
177178
body = JSON.stringify(
178179
serializeAws_json1_1CreateCertificateAuthorityAuditReportRequest(
@@ -187,9 +188,10 @@ export async function serializeAws_json1_1CreatePermissionCommand(
187188
input: CreatePermissionCommandInput,
188189
context: __SerdeContext
189190
): Promise<__HttpRequest> {
190-
const headers: __HeaderBag = {};
191-
headers["Content-Type"] = "application/x-amz-json-1.1";
192-
headers["X-Amz-Target"] = "ACMPrivateCA.CreatePermission";
191+
const headers: __HeaderBag = {
192+
"Content-Type": "application/x-amz-json-1.1",
193+
"X-Amz-Target": "ACMPrivateCA.CreatePermission"
194+
};
193195
let body: any;
194196
body = JSON.stringify(
195197
serializeAws_json1_1CreatePermissionRequest(input, context)
@@ -201,9 +203,10 @@ export async function serializeAws_json1_1DeleteCertificateAuthorityCommand(
201203
input: DeleteCertificateAuthorityCommandInput,
202204
context: __SerdeContext
203205
): Promise<__HttpRequest> {
204-
const headers: __HeaderBag = {};
205-
headers["Content-Type"] = "application/x-amz-json-1.1";
206-
headers["X-Amz-Target"] = "ACMPrivateCA.DeleteCertificateAuthority";
206+
const headers: __HeaderBag = {
207+
"Content-Type": "application/x-amz-json-1.1",
208+
"X-Amz-Target": "ACMPrivateCA.DeleteCertificateAuthority"
209+
};
207210
let body: any;
208211
body = JSON.stringify(
209212
serializeAws_json1_1DeleteCertificateAuthorityRequest(input, context)
@@ -215,9 +218,10 @@ export async function serializeAws_json1_1DeletePermissionCommand(
215218
input: DeletePermissionCommandInput,
216219
context: __SerdeContext
217220
): Promise<__HttpRequest> {
218-
const headers: __HeaderBag = {};
219-
headers["Content-Type"] = "application/x-amz-json-1.1";
220-
headers["X-Amz-Target"] = "ACMPrivateCA.DeletePermission";
221+
const headers: __HeaderBag = {
222+
"Content-Type": "application/x-amz-json-1.1",
223+
"X-Amz-Target": "ACMPrivateCA.DeletePermission"
224+
};
221225
let body: any;
222226
body = JSON.stringify(
223227
serializeAws_json1_1DeletePermissionRequest(input, context)
@@ -229,9 +233,10 @@ export async function serializeAws_json1_1DescribeCertificateAuthorityCommand(
229233
input: DescribeCertificateAuthorityCommandInput,
230234
context: __SerdeContext
231235
): Promise<__HttpRequest> {
232-
const headers: __HeaderBag = {};
233-
headers["Content-Type"] = "application/x-amz-json-1.1";
234-
headers["X-Amz-Target"] = "ACMPrivateCA.DescribeCertificateAuthority";
236+
const headers: __HeaderBag = {
237+
"Content-Type": "application/x-amz-json-1.1",
238+
"X-Amz-Target": "ACMPrivateCA.DescribeCertificateAuthority"
239+
};
235240
let body: any;
236241
body = JSON.stringify(
237242
serializeAws_json1_1DescribeCertificateAuthorityRequest(input, context)
@@ -243,10 +248,10 @@ export async function serializeAws_json1_1DescribeCertificateAuthorityAuditRepor
243248
input: DescribeCertificateAuthorityAuditReportCommandInput,
244249
context: __SerdeContext
245250
): Promise<__HttpRequest> {
246-
const headers: __HeaderBag = {};
247-
headers["Content-Type"] = "application/x-amz-json-1.1";
248-
headers["X-Amz-Target"] =
249-
"ACMPrivateCA.DescribeCertificateAuthorityAuditReport";
251+
const headers: __HeaderBag = {
252+
"Content-Type": "application/x-amz-json-1.1",
253+
"X-Amz-Target": "ACMPrivateCA.DescribeCertificateAuthorityAuditReport"
254+
};
250255
let body: any;
251256
body = JSON.stringify(
252257
serializeAws_json1_1DescribeCertificateAuthorityAuditReportRequest(
@@ -261,9 +266,10 @@ export async function serializeAws_json1_1GetCertificateCommand(
261266
input: GetCertificateCommandInput,
262267
context: __SerdeContext
263268
): Promise<__HttpRequest> {
264-
const headers: __HeaderBag = {};
265-
headers["Content-Type"] = "application/x-amz-json-1.1";
266-
headers["X-Amz-Target"] = "ACMPrivateCA.GetCertificate";
269+
const headers: __HeaderBag = {
270+
"Content-Type": "application/x-amz-json-1.1",
271+
"X-Amz-Target": "ACMPrivateCA.GetCertificate"
272+
};
267273
let body: any;
268274
body = JSON.stringify(
269275
serializeAws_json1_1GetCertificateRequest(input, context)
@@ -275,9 +281,10 @@ export async function serializeAws_json1_1GetCertificateAuthorityCertificateComm
275281
input: GetCertificateAuthorityCertificateCommandInput,
276282
context: __SerdeContext
277283
): Promise<__HttpRequest> {
278-
const headers: __HeaderBag = {};
279-
headers["Content-Type"] = "application/x-amz-json-1.1";
280-
headers["X-Amz-Target"] = "ACMPrivateCA.GetCertificateAuthorityCertificate";
284+
const headers: __HeaderBag = {
285+
"Content-Type": "application/x-amz-json-1.1",
286+
"X-Amz-Target": "ACMPrivateCA.GetCertificateAuthorityCertificate"
287+
};
281288
let body: any;
282289
body = JSON.stringify(
283290
serializeAws_json1_1GetCertificateAuthorityCertificateRequest(
@@ -292,9 +299,10 @@ export async function serializeAws_json1_1GetCertificateAuthorityCsrCommand(
292299
input: GetCertificateAuthorityCsrCommandInput,
293300
context: __SerdeContext
294301
): Promise<__HttpRequest> {
295-
const headers: __HeaderBag = {};
296-
headers["Content-Type"] = "application/x-amz-json-1.1";
297-
headers["X-Amz-Target"] = "ACMPrivateCA.GetCertificateAuthorityCsr";
302+
const headers: __HeaderBag = {
303+
"Content-Type": "application/x-amz-json-1.1",
304+
"X-Amz-Target": "ACMPrivateCA.GetCertificateAuthorityCsr"
305+
};
298306
let body: any;
299307
body = JSON.stringify(
300308
serializeAws_json1_1GetCertificateAuthorityCsrRequest(input, context)
@@ -306,10 +314,10 @@ export async function serializeAws_json1_1ImportCertificateAuthorityCertificateC
306314
input: ImportCertificateAuthorityCertificateCommandInput,
307315
context: __SerdeContext
308316
): Promise<__HttpRequest> {
309-
const headers: __HeaderBag = {};
310-
headers["Content-Type"] = "application/x-amz-json-1.1";
311-
headers["X-Amz-Target"] =
312-
"ACMPrivateCA.ImportCertificateAuthorityCertificate";
317+
const headers: __HeaderBag = {
318+
"Content-Type": "application/x-amz-json-1.1",
319+
"X-Amz-Target": "ACMPrivateCA.ImportCertificateAuthorityCertificate"
320+
};
313321
let body: any;
314322
body = JSON.stringify(
315323
serializeAws_json1_1ImportCertificateAuthorityCertificateRequest(
@@ -324,9 +332,10 @@ export async function serializeAws_json1_1IssueCertificateCommand(
324332
input: IssueCertificateCommandInput,
325333
context: __SerdeContext
326334
): Promise<__HttpRequest> {
327-
const headers: __HeaderBag = {};
328-
headers["Content-Type"] = "application/x-amz-json-1.1";
329-
headers["X-Amz-Target"] = "ACMPrivateCA.IssueCertificate";
335+
const headers: __HeaderBag = {
336+
"Content-Type": "application/x-amz-json-1.1",
337+
"X-Amz-Target": "ACMPrivateCA.IssueCertificate"
338+
};
330339
let body: any;
331340
body = JSON.stringify(
332341
serializeAws_json1_1IssueCertificateRequest(input, context)
@@ -338,9 +347,10 @@ export async function serializeAws_json1_1ListCertificateAuthoritiesCommand(
338347
input: ListCertificateAuthoritiesCommandInput,
339348
context: __SerdeContext
340349
): Promise<__HttpRequest> {
341-
const headers: __HeaderBag = {};
342-
headers["Content-Type"] = "application/x-amz-json-1.1";
343-
headers["X-Amz-Target"] = "ACMPrivateCA.ListCertificateAuthorities";
350+
const headers: __HeaderBag = {
351+
"Content-Type": "application/x-amz-json-1.1",
352+
"X-Amz-Target": "ACMPrivateCA.ListCertificateAuthorities"
353+
};
344354
let body: any;
345355
body = JSON.stringify(
346356
serializeAws_json1_1ListCertificateAuthoritiesRequest(input, context)
@@ -352,9 +362,10 @@ export async function serializeAws_json1_1ListPermissionsCommand(
352362
input: ListPermissionsCommandInput,
353363
context: __SerdeContext
354364
): Promise<__HttpRequest> {
355-
const headers: __HeaderBag = {};
356-
headers["Content-Type"] = "application/x-amz-json-1.1";
357-
headers["X-Amz-Target"] = "ACMPrivateCA.ListPermissions";
365+
const headers: __HeaderBag = {
366+
"Content-Type": "application/x-amz-json-1.1",
367+
"X-Amz-Target": "ACMPrivateCA.ListPermissions"
368+
};
358369
let body: any;
359370
body = JSON.stringify(
360371
serializeAws_json1_1ListPermissionsRequest(input, context)
@@ -366,9 +377,10 @@ export async function serializeAws_json1_1ListTagsCommand(
366377
input: ListTagsCommandInput,
367378
context: __SerdeContext
368379
): Promise<__HttpRequest> {
369-
const headers: __HeaderBag = {};
370-
headers["Content-Type"] = "application/x-amz-json-1.1";
371-
headers["X-Amz-Target"] = "ACMPrivateCA.ListTags";
380+
const headers: __HeaderBag = {
381+
"Content-Type": "application/x-amz-json-1.1",
382+
"X-Amz-Target": "ACMPrivateCA.ListTags"
383+
};
372384
let body: any;
373385
body = JSON.stringify(serializeAws_json1_1ListTagsRequest(input, context));
374386
return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -378,9 +390,10 @@ export async function serializeAws_json1_1RestoreCertificateAuthorityCommand(
378390
input: RestoreCertificateAuthorityCommandInput,
379391
context: __SerdeContext
380392
): Promise<__HttpRequest> {
381-
const headers: __HeaderBag = {};
382-
headers["Content-Type"] = "application/x-amz-json-1.1";
383-
headers["X-Amz-Target"] = "ACMPrivateCA.RestoreCertificateAuthority";
393+
const headers: __HeaderBag = {
394+
"Content-Type": "application/x-amz-json-1.1",
395+
"X-Amz-Target": "ACMPrivateCA.RestoreCertificateAuthority"
396+
};
384397
let body: any;
385398
body = JSON.stringify(
386399
serializeAws_json1_1RestoreCertificateAuthorityRequest(input, context)
@@ -392,9 +405,10 @@ export async function serializeAws_json1_1RevokeCertificateCommand(
392405
input: RevokeCertificateCommandInput,
393406
context: __SerdeContext
394407
): Promise<__HttpRequest> {
395-
const headers: __HeaderBag = {};
396-
headers["Content-Type"] = "application/x-amz-json-1.1";
397-
headers["X-Amz-Target"] = "ACMPrivateCA.RevokeCertificate";
408+
const headers: __HeaderBag = {
409+
"Content-Type": "application/x-amz-json-1.1",
410+
"X-Amz-Target": "ACMPrivateCA.RevokeCertificate"
411+
};
398412
let body: any;
399413
body = JSON.stringify(
400414
serializeAws_json1_1RevokeCertificateRequest(input, context)
@@ -406,9 +420,10 @@ export async function serializeAws_json1_1TagCertificateAuthorityCommand(
406420
input: TagCertificateAuthorityCommandInput,
407421
context: __SerdeContext
408422
): Promise<__HttpRequest> {
409-
const headers: __HeaderBag = {};
410-
headers["Content-Type"] = "application/x-amz-json-1.1";
411-
headers["X-Amz-Target"] = "ACMPrivateCA.TagCertificateAuthority";
423+
const headers: __HeaderBag = {
424+
"Content-Type": "application/x-amz-json-1.1",
425+
"X-Amz-Target": "ACMPrivateCA.TagCertificateAuthority"
426+
};
412427
let body: any;
413428
body = JSON.stringify(
414429
serializeAws_json1_1TagCertificateAuthorityRequest(input, context)
@@ -420,9 +435,10 @@ export async function serializeAws_json1_1UntagCertificateAuthorityCommand(
420435
input: UntagCertificateAuthorityCommandInput,
421436
context: __SerdeContext
422437
): Promise<__HttpRequest> {
423-
const headers: __HeaderBag = {};
424-
headers["Content-Type"] = "application/x-amz-json-1.1";
425-
headers["X-Amz-Target"] = "ACMPrivateCA.UntagCertificateAuthority";
438+
const headers: __HeaderBag = {
439+
"Content-Type": "application/x-amz-json-1.1",
440+
"X-Amz-Target": "ACMPrivateCA.UntagCertificateAuthority"
441+
};
426442
let body: any;
427443
body = JSON.stringify(
428444
serializeAws_json1_1UntagCertificateAuthorityRequest(input, context)
@@ -434,9 +450,10 @@ export async function serializeAws_json1_1UpdateCertificateAuthorityCommand(
434450
input: UpdateCertificateAuthorityCommandInput,
435451
context: __SerdeContext
436452
): Promise<__HttpRequest> {
437-
const headers: __HeaderBag = {};
438-
headers["Content-Type"] = "application/x-amz-json-1.1";
439-
headers["X-Amz-Target"] = "ACMPrivateCA.UpdateCertificateAuthority";
453+
const headers: __HeaderBag = {
454+
"Content-Type": "application/x-amz-json-1.1",
455+
"X-Amz-Target": "ACMPrivateCA.UpdateCertificateAuthority"
456+
};
440457
let body: any;
441458
body = JSON.stringify(
442459
serializeAws_json1_1UpdateCertificateAuthorityRequest(input, context)

0 commit comments

Comments
 (0)