Skip to content

Commit 19035b2

Browse files
committed
chore: define headers while declaring
1 parent a121ebe commit 19035b2

File tree

223 files changed

+26641
-19974
lines changed

Some content is hidden

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

223 files changed

+26641
-19974
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;
@@ -242,8 +245,9 @@ export const serializeAws_restJson1_1DeleteArchiveRuleCommand = async (
242245
input: DeleteArchiveRuleCommandInput,
243246
context: __SerdeContext
244247
): Promise<__HttpRequest> => {
245-
const headers: any = {};
246-
headers["Content-Type"] = "";
248+
const headers: any = {
249+
"Content-Type": ""
250+
};
247251
let resolvedPath = "/analyzer/{analyzerName}/archive-rule/{ruleName}";
248252
if (input.analyzerName !== undefined) {
249253
const labelValue: string = input.analyzerName;
@@ -293,8 +297,9 @@ export const serializeAws_restJson1_1GetAnalyzedResourceCommand = async (
293297
input: GetAnalyzedResourceCommandInput,
294298
context: __SerdeContext
295299
): Promise<__HttpRequest> => {
296-
const headers: any = {};
297-
headers["Content-Type"] = "";
300+
const headers: any = {
301+
"Content-Type": ""
302+
};
298303
let resolvedPath = "/analyzed-resource";
299304
const query: any = {};
300305
if (input.analyzerArn !== undefined) {
@@ -321,8 +326,9 @@ export const serializeAws_restJson1_1GetAnalyzerCommand = async (
321326
input: GetAnalyzerCommandInput,
322327
context: __SerdeContext
323328
): Promise<__HttpRequest> => {
324-
const headers: any = {};
325-
headers["Content-Type"] = "";
329+
const headers: any = {
330+
"Content-Type": ""
331+
};
326332
let resolvedPath = "/analyzer/{analyzerName}";
327333
if (input.analyzerName !== undefined) {
328334
const labelValue: string = input.analyzerName;
@@ -355,8 +361,9 @@ export const serializeAws_restJson1_1GetArchiveRuleCommand = async (
355361
input: GetArchiveRuleCommandInput,
356362
context: __SerdeContext
357363
): Promise<__HttpRequest> => {
358-
const headers: any = {};
359-
headers["Content-Type"] = "";
364+
const headers: any = {
365+
"Content-Type": ""
366+
};
360367
let resolvedPath = "/analyzer/{analyzerName}/archive-rule/{ruleName}";
361368
if (input.analyzerName !== undefined) {
362369
const labelValue: string = input.analyzerName;
@@ -401,8 +408,9 @@ export const serializeAws_restJson1_1GetFindingCommand = async (
401408
input: GetFindingCommandInput,
402409
context: __SerdeContext
403410
): Promise<__HttpRequest> => {
404-
const headers: any = {};
405-
headers["Content-Type"] = "";
411+
const headers: any = {
412+
"Content-Type": ""
413+
};
406414
let resolvedPath = "/finding/{id}";
407415
if (input.id !== undefined) {
408416
const labelValue: string = input.id;
@@ -438,8 +446,9 @@ export const serializeAws_restJson1_1ListAnalyzedResourcesCommand = async (
438446
input: ListAnalyzedResourcesCommandInput,
439447
context: __SerdeContext
440448
): Promise<__HttpRequest> => {
441-
const headers: any = {};
442-
headers["Content-Type"] = "application/json";
449+
const headers: any = {
450+
"Content-Type": "application/json"
451+
};
443452
let resolvedPath = "/analyzed-resource";
444453
let body: any;
445454
const bodyParams: any = {};
@@ -472,8 +481,9 @@ export const serializeAws_restJson1_1ListAnalyzersCommand = async (
472481
input: ListAnalyzersCommandInput,
473482
context: __SerdeContext
474483
): Promise<__HttpRequest> => {
475-
const headers: any = {};
476-
headers["Content-Type"] = "";
484+
const headers: any = {
485+
"Content-Type": ""
486+
};
477487
let resolvedPath = "/analyzer";
478488
const query: any = {};
479489
if (input.maxResults !== undefined) {
@@ -503,8 +513,9 @@ export const serializeAws_restJson1_1ListArchiveRulesCommand = async (
503513
input: ListArchiveRulesCommandInput,
504514
context: __SerdeContext
505515
): Promise<__HttpRequest> => {
506-
const headers: any = {};
507-
headers["Content-Type"] = "";
516+
const headers: any = {
517+
"Content-Type": ""
518+
};
508519
let resolvedPath = "/analyzer/{analyzerName}/archive-rule";
509520
if (input.analyzerName !== undefined) {
510521
const labelValue: string = input.analyzerName;
@@ -545,8 +556,9 @@ export const serializeAws_restJson1_1ListFindingsCommand = async (
545556
input: ListFindingsCommandInput,
546557
context: __SerdeContext
547558
): Promise<__HttpRequest> => {
548-
const headers: any = {};
549-
headers["Content-Type"] = "application/json";
559+
const headers: any = {
560+
"Content-Type": "application/json"
561+
};
550562
let resolvedPath = "/finding";
551563
let body: any;
552564
const bodyParams: any = {};
@@ -588,8 +600,9 @@ export const serializeAws_restJson1_1ListTagsForResourceCommand = async (
588600
input: ListTagsForResourceCommandInput,
589601
context: __SerdeContext
590602
): Promise<__HttpRequest> => {
591-
const headers: any = {};
592-
headers["Content-Type"] = "";
603+
const headers: any = {
604+
"Content-Type": ""
605+
};
593606
let resolvedPath = "/tags/{resourceArn}";
594607
if (input.resourceArn !== undefined) {
595608
const labelValue: string = input.resourceArn;
@@ -622,8 +635,9 @@ export const serializeAws_restJson1_1StartResourceScanCommand = async (
622635
input: StartResourceScanCommandInput,
623636
context: __SerdeContext
624637
): Promise<__HttpRequest> => {
625-
const headers: any = {};
626-
headers["Content-Type"] = "application/json";
638+
const headers: any = {
639+
"Content-Type": "application/json"
640+
};
627641
let resolvedPath = "/resource/scan";
628642
let body: any;
629643
const bodyParams: any = {};
@@ -650,8 +664,9 @@ export const serializeAws_restJson1_1TagResourceCommand = async (
650664
input: TagResourceCommandInput,
651665
context: __SerdeContext
652666
): Promise<__HttpRequest> => {
653-
const headers: any = {};
654-
headers["Content-Type"] = "application/json";
667+
const headers: any = {
668+
"Content-Type": "application/json"
669+
};
655670
let resolvedPath = "/tags/{resourceArn}";
656671
if (input.resourceArn !== undefined) {
657672
const labelValue: string = input.resourceArn;
@@ -689,8 +704,9 @@ export const serializeAws_restJson1_1UntagResourceCommand = async (
689704
input: UntagResourceCommandInput,
690705
context: __SerdeContext
691706
): Promise<__HttpRequest> => {
692-
const headers: any = {};
693-
headers["Content-Type"] = "";
707+
const headers: any = {
708+
"Content-Type": ""
709+
};
694710
let resolvedPath = "/tags/{resourceArn}";
695711
if (input.resourceArn !== undefined) {
696712
const labelValue: string = input.resourceArn;
@@ -728,8 +744,9 @@ export const serializeAws_restJson1_1UpdateArchiveRuleCommand = async (
728744
input: UpdateArchiveRuleCommandInput,
729745
context: __SerdeContext
730746
): Promise<__HttpRequest> => {
731-
const headers: any = {};
732-
headers["Content-Type"] = "application/json";
747+
const headers: any = {
748+
"Content-Type": "application/json"
749+
};
733750
let resolvedPath = "/analyzer/{analyzerName}/archive-rule/{ruleName}";
734751
if (input.analyzerName !== undefined) {
735752
const labelValue: string = input.analyzerName;
@@ -788,8 +805,9 @@ export const serializeAws_restJson1_1UpdateFindingsCommand = async (
788805
input: UpdateFindingsCommandInput,
789806
context: __SerdeContext
790807
): Promise<__HttpRequest> => {
791-
const headers: any = {};
792-
headers["Content-Type"] = "application/json";
808+
const headers: any = {
809+
"Content-Type": "application/json"
810+
};
793811
let resolvedPath = "/finding";
794812
let body: any;
795813
const bodyParams: any = {};

0 commit comments

Comments
 (0)