Skip to content

Commit

Permalink
fix: remove body for GET/HEAD request in http binding
Browse files Browse the repository at this point in the history
fixes: aws#1633
  • Loading branch information
AllanZhengYP committed Nov 18, 2020
1 parent 2cb016f commit 3c72736
Show file tree
Hide file tree
Showing 88 changed files with 1,106 additions and 82 deletions.
7 changes: 7 additions & 0 deletions clients/client-accessanalyzer/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ export const serializeAws_restJson1GetAnalyzedResourceCommand = async (
...(input.resourceArn !== undefined && { resourceArn: input.resourceArn }),
};
let body: any;
body = undefined;
const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
protocol,
Expand Down Expand Up @@ -246,6 +247,7 @@ export const serializeAws_restJson1GetAnalyzerCommand = async (
throw new Error("No value provided for input HTTP label: analyzerName.");
}
let body: any;
body = undefined;
const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
protocol,
Expand Down Expand Up @@ -285,6 +287,7 @@ export const serializeAws_restJson1GetArchiveRuleCommand = async (
throw new Error("No value provided for input HTTP label: ruleName.");
}
let body: any;
body = undefined;
const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
protocol,
Expand Down Expand Up @@ -318,6 +321,7 @@ export const serializeAws_restJson1GetFindingCommand = async (
...(input.analyzerArn !== undefined && { analyzerArn: input.analyzerArn }),
};
let body: any;
body = undefined;
const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
protocol,
Expand Down Expand Up @@ -372,6 +376,7 @@ export const serializeAws_restJson1ListAnalyzersCommand = async (
...(input.type !== undefined && { type: input.type }),
};
let body: any;
body = undefined;
const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
protocol,
Expand Down Expand Up @@ -407,6 +412,7 @@ export const serializeAws_restJson1ListArchiveRulesCommand = async (
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
};
let body: any;
body = undefined;
const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
protocol,
Expand Down Expand Up @@ -466,6 +472,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (
throw new Error("No value provided for input HTTP label: resourceArn.");
}
let body: any;
body = undefined;
const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
protocol,
Expand Down
15 changes: 15 additions & 0 deletions clients/client-amplify/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ export const serializeAws_restJson1GetAppCommand = async (
throw new Error("No value provided for input HTTP label: appId.");
}
let body: any;
body = undefined;
const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
protocol,
Expand Down Expand Up @@ -669,6 +670,7 @@ export const serializeAws_restJson1GetArtifactUrlCommand = async (
throw new Error("No value provided for input HTTP label: artifactId.");
}
let body: any;
body = undefined;
const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
protocol,
Expand Down Expand Up @@ -708,6 +710,7 @@ export const serializeAws_restJson1GetBackendEnvironmentCommand = async (
throw new Error("No value provided for input HTTP label: environmentName.");
}
let body: any;
body = undefined;
const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
protocol,
Expand Down Expand Up @@ -747,6 +750,7 @@ export const serializeAws_restJson1GetBranchCommand = async (
throw new Error("No value provided for input HTTP label: branchName.");
}
let body: any;
body = undefined;
const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
protocol,
Expand Down Expand Up @@ -786,6 +790,7 @@ export const serializeAws_restJson1GetDomainAssociationCommand = async (
throw new Error("No value provided for input HTTP label: domainName.");
}
let body: any;
body = undefined;
const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
protocol,
Expand Down Expand Up @@ -834,6 +839,7 @@ export const serializeAws_restJson1GetJobCommand = async (
throw new Error("No value provided for input HTTP label: jobId.");
}
let body: any;
body = undefined;
const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
protocol,
Expand Down Expand Up @@ -864,6 +870,7 @@ export const serializeAws_restJson1GetWebhookCommand = async (
throw new Error("No value provided for input HTTP label: webhookId.");
}
let body: any;
body = undefined;
const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
protocol,
Expand All @@ -889,6 +896,7 @@ export const serializeAws_restJson1ListAppsCommand = async (
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
};
let body: any;
body = undefined;
const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
protocol,
Expand Down Expand Up @@ -942,6 +950,7 @@ export const serializeAws_restJson1ListArtifactsCommand = async (
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
};
let body: any;
body = undefined;
const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
protocol,
Expand Down Expand Up @@ -978,6 +987,7 @@ export const serializeAws_restJson1ListBackendEnvironmentsCommand = async (
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
};
let body: any;
body = undefined;
const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
protocol,
Expand Down Expand Up @@ -1013,6 +1023,7 @@ export const serializeAws_restJson1ListBranchesCommand = async (
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
};
let body: any;
body = undefined;
const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
protocol,
Expand Down Expand Up @@ -1048,6 +1059,7 @@ export const serializeAws_restJson1ListDomainAssociationsCommand = async (
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
};
let body: any;
body = undefined;
const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
protocol,
Expand Down Expand Up @@ -1092,6 +1104,7 @@ export const serializeAws_restJson1ListJobsCommand = async (
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
};
let body: any;
body = undefined;
const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
protocol,
Expand Down Expand Up @@ -1123,6 +1136,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (
throw new Error("No value provided for input HTTP label: resourceArn.");
}
let body: any;
body = undefined;
const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
protocol,
Expand Down Expand Up @@ -1157,6 +1171,7 @@ export const serializeAws_restJson1ListWebhooksCommand = async (
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
};
let body: any;
body = undefined;
const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
protocol,
Expand Down
Loading

0 comments on commit 3c72736

Please sign in to comment.