Skip to content

Commit 1bd0678

Browse files
authored
chore: define headers while declaring (#1134)
1 parent 2665c30 commit 1bd0678

File tree

225 files changed

+26643
-19976
lines changed

Some content is hidden

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

225 files changed

+26643
-19976
lines changed

clients/client-accessanalyzer/protocols/Aws_restJson1_1.ts

Lines changed: 54 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,9 @@ export const serializeAws_restJson1_1CreateAnalyzerCommand = async (
109109
input: CreateAnalyzerCommandInput,
110110
context: __SerdeContext
111111
): Promise<__HttpRequest> => {
112-
const headers: any = {};
113-
headers["Content-Type"] = "application/json";
112+
const headers: any = {
113+
"Content-Type": "application/json"
114+
};
114115
let resolvedPath = "/analyzer";
115116
let body: any;
116117
const bodyParams: any = {};
@@ -152,8 +153,9 @@ export const serializeAws_restJson1_1CreateArchiveRuleCommand = async (
152153
input: CreateArchiveRuleCommandInput,
153154
context: __SerdeContext
154155
): Promise<__HttpRequest> => {
155-
const headers: any = {};
156-
headers["Content-Type"] = "application/json";
156+
const headers: any = {
157+
"Content-Type": "application/json"
158+
};
157159
let resolvedPath = "/analyzer/{analyzerName}/archive-rule";
158160
if (input.analyzerName !== undefined) {
159161
const labelValue: string = input.analyzerName;
@@ -203,8 +205,9 @@ export const serializeAws_restJson1_1DeleteAnalyzerCommand = async (
203205
input: DeleteAnalyzerCommandInput,
204206
context: __SerdeContext
205207
): Promise<__HttpRequest> => {
206-
const headers: any = {};
207-
headers["Content-Type"] = "";
208+
const headers: any = {
209+
"Content-Type": ""
210+
};
208211
let resolvedPath = "/analyzer/{analyzerName}";
209212
if (input.analyzerName !== undefined) {
210213
const labelValue: string = input.analyzerName;
@@ -241,8 +244,9 @@ export const serializeAws_restJson1_1DeleteArchiveRuleCommand = async (
241244
input: DeleteArchiveRuleCommandInput,
242245
context: __SerdeContext
243246
): Promise<__HttpRequest> => {
244-
const headers: any = {};
245-
headers["Content-Type"] = "";
247+
const headers: any = {
248+
"Content-Type": ""
249+
};
246250
let resolvedPath = "/analyzer/{analyzerName}/archive-rule/{ruleName}";
247251
if (input.analyzerName !== undefined) {
248252
const labelValue: string = input.analyzerName;
@@ -291,8 +295,9 @@ export const serializeAws_restJson1_1GetAnalyzedResourceCommand = async (
291295
input: GetAnalyzedResourceCommandInput,
292296
context: __SerdeContext
293297
): Promise<__HttpRequest> => {
294-
const headers: any = {};
295-
headers["Content-Type"] = "";
298+
const headers: any = {
299+
"Content-Type": ""
300+
};
296301
let resolvedPath = "/analyzed-resource";
297302
const query: any = {
298303
...(input.analyzerArn !== undefined && { analyzerArn: input.analyzerArn }),
@@ -316,8 +321,9 @@ export const serializeAws_restJson1_1GetAnalyzerCommand = async (
316321
input: GetAnalyzerCommandInput,
317322
context: __SerdeContext
318323
): Promise<__HttpRequest> => {
319-
const headers: any = {};
320-
headers["Content-Type"] = "";
324+
const headers: any = {
325+
"Content-Type": ""
326+
};
321327
let resolvedPath = "/analyzer/{analyzerName}";
322328
if (input.analyzerName !== undefined) {
323329
const labelValue: string = input.analyzerName;
@@ -350,8 +356,9 @@ export const serializeAws_restJson1_1GetArchiveRuleCommand = async (
350356
input: GetArchiveRuleCommandInput,
351357
context: __SerdeContext
352358
): Promise<__HttpRequest> => {
353-
const headers: any = {};
354-
headers["Content-Type"] = "";
359+
const headers: any = {
360+
"Content-Type": ""
361+
};
355362
let resolvedPath = "/analyzer/{analyzerName}/archive-rule/{ruleName}";
356363
if (input.analyzerName !== undefined) {
357364
const labelValue: string = input.analyzerName;
@@ -396,8 +403,9 @@ export const serializeAws_restJson1_1GetFindingCommand = async (
396403
input: GetFindingCommandInput,
397404
context: __SerdeContext
398405
): Promise<__HttpRequest> => {
399-
const headers: any = {};
400-
headers["Content-Type"] = "";
406+
const headers: any = {
407+
"Content-Type": ""
408+
};
401409
let resolvedPath = "/finding/{id}";
402410
if (input.id !== undefined) {
403411
const labelValue: string = input.id;
@@ -432,8 +440,9 @@ export const serializeAws_restJson1_1ListAnalyzedResourcesCommand = async (
432440
input: ListAnalyzedResourcesCommandInput,
433441
context: __SerdeContext
434442
): Promise<__HttpRequest> => {
435-
const headers: any = {};
436-
headers["Content-Type"] = "application/json";
443+
const headers: any = {
444+
"Content-Type": "application/json"
445+
};
437446
let resolvedPath = "/analyzed-resource";
438447
let body: any;
439448
const bodyParams: any = {};
@@ -466,8 +475,9 @@ export const serializeAws_restJson1_1ListAnalyzersCommand = async (
466475
input: ListAnalyzersCommandInput,
467476
context: __SerdeContext
468477
): Promise<__HttpRequest> => {
469-
const headers: any = {};
470-
headers["Content-Type"] = "";
478+
const headers: any = {
479+
"Content-Type": ""
480+
};
471481
let resolvedPath = "/analyzer";
472482
const query: any = {
473483
...(input.maxResults !== undefined && {
@@ -494,8 +504,9 @@ export const serializeAws_restJson1_1ListArchiveRulesCommand = async (
494504
input: ListArchiveRulesCommandInput,
495505
context: __SerdeContext
496506
): Promise<__HttpRequest> => {
497-
const headers: any = {};
498-
headers["Content-Type"] = "";
507+
const headers: any = {
508+
"Content-Type": ""
509+
};
499510
let resolvedPath = "/analyzer/{analyzerName}/archive-rule";
500511
if (input.analyzerName !== undefined) {
501512
const labelValue: string = input.analyzerName;
@@ -535,8 +546,9 @@ export const serializeAws_restJson1_1ListFindingsCommand = async (
535546
input: ListFindingsCommandInput,
536547
context: __SerdeContext
537548
): Promise<__HttpRequest> => {
538-
const headers: any = {};
539-
headers["Content-Type"] = "application/json";
549+
const headers: any = {
550+
"Content-Type": "application/json"
551+
};
540552
let resolvedPath = "/finding";
541553
let body: any;
542554
const bodyParams: any = {};
@@ -578,8 +590,9 @@ export const serializeAws_restJson1_1ListTagsForResourceCommand = async (
578590
input: ListTagsForResourceCommandInput,
579591
context: __SerdeContext
580592
): Promise<__HttpRequest> => {
581-
const headers: any = {};
582-
headers["Content-Type"] = "";
593+
const headers: any = {
594+
"Content-Type": ""
595+
};
583596
let resolvedPath = "/tags/{resourceArn}";
584597
if (input.resourceArn !== undefined) {
585598
const labelValue: string = input.resourceArn;
@@ -612,8 +625,9 @@ export const serializeAws_restJson1_1StartResourceScanCommand = async (
612625
input: StartResourceScanCommandInput,
613626
context: __SerdeContext
614627
): Promise<__HttpRequest> => {
615-
const headers: any = {};
616-
headers["Content-Type"] = "application/json";
628+
const headers: any = {
629+
"Content-Type": "application/json"
630+
};
617631
let resolvedPath = "/resource/scan";
618632
let body: any;
619633
const bodyParams: any = {};
@@ -640,8 +654,9 @@ export const serializeAws_restJson1_1TagResourceCommand = async (
640654
input: TagResourceCommandInput,
641655
context: __SerdeContext
642656
): Promise<__HttpRequest> => {
643-
const headers: any = {};
644-
headers["Content-Type"] = "application/json";
657+
const headers: any = {
658+
"Content-Type": "application/json"
659+
};
645660
let resolvedPath = "/tags/{resourceArn}";
646661
if (input.resourceArn !== undefined) {
647662
const labelValue: string = input.resourceArn;
@@ -679,8 +694,9 @@ export const serializeAws_restJson1_1UntagResourceCommand = async (
679694
input: UntagResourceCommandInput,
680695
context: __SerdeContext
681696
): Promise<__HttpRequest> => {
682-
const headers: any = {};
683-
headers["Content-Type"] = "";
697+
const headers: any = {
698+
"Content-Type": ""
699+
};
684700
let resolvedPath = "/tags/{resourceArn}";
685701
if (input.resourceArn !== undefined) {
686702
const labelValue: string = input.resourceArn;
@@ -719,8 +735,9 @@ export const serializeAws_restJson1_1UpdateArchiveRuleCommand = async (
719735
input: UpdateArchiveRuleCommandInput,
720736
context: __SerdeContext
721737
): Promise<__HttpRequest> => {
722-
const headers: any = {};
723-
headers["Content-Type"] = "application/json";
738+
const headers: any = {
739+
"Content-Type": "application/json"
740+
};
724741
let resolvedPath = "/analyzer/{analyzerName}/archive-rule/{ruleName}";
725742
if (input.analyzerName !== undefined) {
726743
const labelValue: string = input.analyzerName;
@@ -779,8 +796,9 @@ export const serializeAws_restJson1_1UpdateFindingsCommand = async (
779796
input: UpdateFindingsCommandInput,
780797
context: __SerdeContext
781798
): Promise<__HttpRequest> => {
782-
const headers: any = {};
783-
headers["Content-Type"] = "application/json";
799+
const headers: any = {
800+
"Content-Type": "application/json"
801+
};
784802
let resolvedPath = "/finding";
785803
let body: any;
786804
const bodyParams: any = {};

0 commit comments

Comments
 (0)