diff --git a/clients/client-accessanalyzer/protocols/Aws_restJson1_1.ts b/clients/client-accessanalyzer/protocols/Aws_restJson1_1.ts
index d3569ac186f0..7421ad672f5a 100644
--- a/clients/client-accessanalyzer/protocols/Aws_restJson1_1.ts
+++ b/clients/client-accessanalyzer/protocols/Aws_restJson1_1.ts
@@ -136,13 +136,15 @@ export async function serializeAws_restJson1_1CreateAnalyzerCommand(
bodyParams["type"] = input.type;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -185,13 +187,15 @@ export async function serializeAws_restJson1_1CreateArchiveRuleCommand(
bodyParams["ruleName"] = input.ruleName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -221,14 +225,16 @@ export async function serializeAws_restJson1_1DeleteAnalyzerCommand(
query["clientToken"] = input.clientToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -270,14 +276,16 @@ export async function serializeAws_restJson1_1DeleteArchiveRuleCommand(
query["clientToken"] = input.clientToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -296,14 +304,16 @@ export async function serializeAws_restJson1_1GetAnalyzedResourceCommand(
query["resourceArn"] = input.resourceArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -329,13 +339,15 @@ export async function serializeAws_restJson1_1GetAnalyzerCommand(
throw new Error("No value provided for input HTTP label: analyzerName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -373,13 +385,15 @@ export async function serializeAws_restJson1_1GetArchiveRuleCommand(
throw new Error("No value provided for input HTTP label: ruleName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -407,14 +421,16 @@ export async function serializeAws_restJson1_1GetFindingCommand(
query["analyzerArn"] = input.analyzerArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -440,13 +456,15 @@ export async function serializeAws_restJson1_1ListAnalyzedResourcesCommand(
bodyParams["resourceType"] = input.resourceType;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -468,14 +486,16 @@ export async function serializeAws_restJson1_1ListAnalyzersCommand(
query["type"] = input.type;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -508,14 +528,16 @@ export async function serializeAws_restJson1_1ListArchiveRulesCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -550,13 +572,15 @@ export async function serializeAws_restJson1_1ListFindingsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -582,13 +606,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: resourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -608,13 +634,15 @@ export async function serializeAws_restJson1_1StartResourceScanCommand(
bodyParams["resourceArn"] = input.resourceArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -645,13 +673,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagsMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -681,14 +711,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.tagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -740,13 +772,15 @@ export async function serializeAws_restJson1_1UpdateArchiveRuleCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -781,13 +815,15 @@ export async function serializeAws_restJson1_1UpdateFindingsCommand(
bodyParams["status"] = input.status;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-acm-pca/protocols/Aws_json1_1.ts b/clients/client-acm-pca/protocols/Aws_json1_1.ts
index e2db711b084a..4db978005606 100644
--- a/clients/client-acm-pca/protocols/Aws_json1_1.ts
+++ b/clients/client-acm-pca/protocols/Aws_json1_1.ts
@@ -4105,19 +4105,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-acm/protocols/Aws_json1_1.ts b/clients/client-acm/protocols/Aws_json1_1.ts
index 5d2380438bea..4950d33d2887 100644
--- a/clients/client-acm/protocols/Aws_json1_1.ts
+++ b/clients/client-acm/protocols/Aws_json1_1.ts
@@ -2782,19 +2782,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-alexa-for-business/protocols/Aws_json1_1.ts b/clients/client-alexa-for-business/protocols/Aws_json1_1.ts
index 8487abab1779..33835f8026d9 100644
--- a/clients/client-alexa-for-business/protocols/Aws_json1_1.ts
+++ b/clients/client-alexa-for-business/protocols/Aws_json1_1.ts
@@ -14187,19 +14187,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-amplify/protocols/Aws_restJson1_1.ts b/clients/client-amplify/protocols/Aws_restJson1_1.ts
index 996f009dbc70..17d596d2c65e 100644
--- a/clients/client-amplify/protocols/Aws_restJson1_1.ts
+++ b/clients/client-amplify/protocols/Aws_restJson1_1.ts
@@ -263,13 +263,15 @@ export async function serializeAws_restJson1_1CreateAppCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -304,13 +306,15 @@ export async function serializeAws_restJson1_1CreateBackendEnvironmentCommand(
bodyParams["stackName"] = input.stackName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -389,13 +393,15 @@ export async function serializeAws_restJson1_1CreateBranchCommand(
bodyParams["ttl"] = input.ttl;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -439,13 +445,15 @@ export async function serializeAws_restJson1_1CreateDeploymentCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -483,13 +491,15 @@ export async function serializeAws_restJson1_1CreateDomainAssociationCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -521,13 +531,15 @@ export async function serializeAws_restJson1_1CreateWebhookCommand(
bodyParams["description"] = input.description;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -551,13 +563,15 @@ export async function serializeAws_restJson1_1DeleteAppCommand(
throw new Error("No value provided for input HTTP label: appId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -595,13 +609,15 @@ export async function serializeAws_restJson1_1DeleteBackendEnvironmentCommand(
throw new Error("No value provided for input HTTP label: environmentName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -637,13 +653,15 @@ export async function serializeAws_restJson1_1DeleteBranchCommand(
throw new Error("No value provided for input HTTP label: branchName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -679,13 +697,15 @@ export async function serializeAws_restJson1_1DeleteDomainAssociationCommand(
throw new Error("No value provided for input HTTP label: domainName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -733,13 +753,15 @@ export async function serializeAws_restJson1_1DeleteJobCommand(
throw new Error("No value provided for input HTTP label: jobId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -763,13 +785,15 @@ export async function serializeAws_restJson1_1DeleteWebhookCommand(
throw new Error("No value provided for input HTTP label: webhookId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -804,13 +828,15 @@ export async function serializeAws_restJson1_1GenerateAccessLogsCommand(
bodyParams["startTime"] = Math.round(input.startTime.getTime() / 1000);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -834,13 +860,15 @@ export async function serializeAws_restJson1_1GetAppCommand(
throw new Error("No value provided for input HTTP label: appId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -864,13 +892,15 @@ export async function serializeAws_restJson1_1GetArtifactUrlCommand(
throw new Error("No value provided for input HTTP label: artifactId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -908,13 +938,15 @@ export async function serializeAws_restJson1_1GetBackendEnvironmentCommand(
throw new Error("No value provided for input HTTP label: environmentName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -950,13 +982,15 @@ export async function serializeAws_restJson1_1GetBranchCommand(
throw new Error("No value provided for input HTTP label: branchName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -992,13 +1026,15 @@ export async function serializeAws_restJson1_1GetDomainAssociationCommand(
throw new Error("No value provided for input HTTP label: domainName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1046,13 +1082,15 @@ export async function serializeAws_restJson1_1GetJobCommand(
throw new Error("No value provided for input HTTP label: jobId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1076,13 +1114,15 @@ export async function serializeAws_restJson1_1GetWebhookCommand(
throw new Error("No value provided for input HTTP label: webhookId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1101,14 +1141,16 @@ export async function serializeAws_restJson1_1ListAppsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1164,14 +1206,16 @@ export async function serializeAws_restJson1_1ListArtifactsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1207,14 +1251,16 @@ export async function serializeAws_restJson1_1ListBackendEnvironmentsCommand(
bodyParams["environmentName"] = input.environmentName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1245,14 +1291,16 @@ export async function serializeAws_restJson1_1ListBranchesCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1283,14 +1331,16 @@ export async function serializeAws_restJson1_1ListDomainAssociationsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1333,14 +1383,16 @@ export async function serializeAws_restJson1_1ListJobsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1366,13 +1418,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: resourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1403,14 +1457,16 @@ export async function serializeAws_restJson1_1ListWebhooksCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1454,13 +1510,15 @@ export async function serializeAws_restJson1_1StartDeploymentCommand(
bodyParams["sourceUrl"] = input.sourceUrl;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1516,13 +1574,15 @@ export async function serializeAws_restJson1_1StartJobCommand(
bodyParams["jobType"] = input.jobType;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1570,13 +1630,15 @@ export async function serializeAws_restJson1_1StopJobCommand(
throw new Error("No value provided for input HTTP label: jobId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1607,13 +1669,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1643,14 +1707,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.tagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1742,13 +1808,15 @@ export async function serializeAws_restJson1_1UpdateAppCommand(
bodyParams["repository"] = input.repository;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1833,13 +1901,15 @@ export async function serializeAws_restJson1_1UpdateBranchCommand(
bodyParams["ttl"] = input.ttl;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1886,13 +1956,15 @@ export async function serializeAws_restJson1_1UpdateDomainAssociationCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1924,13 +1996,15 @@ export async function serializeAws_restJson1_1UpdateWebhookCommand(
bodyParams["description"] = input.description;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-api-gateway/protocols/Aws_restJson1_1.ts b/clients/client-api-gateway/protocols/Aws_restJson1_1.ts
index f61c861b5374..58add935b64f 100644
--- a/clients/client-api-gateway/protocols/Aws_restJson1_1.ts
+++ b/clients/client-api-gateway/protocols/Aws_restJson1_1.ts
@@ -590,13 +590,15 @@ export async function serializeAws_restJson1_1CreateApiKeyCommand(
bodyParams["value"] = input.value;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -666,13 +668,15 @@ export async function serializeAws_restJson1_1CreateAuthorizerCommand(
bodyParams["type"] = input.type;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -722,13 +726,15 @@ export async function serializeAws_restJson1_1CreateBasePathMappingCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -801,13 +807,15 @@ export async function serializeAws_restJson1_1CreateDeploymentCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -857,13 +865,15 @@ export async function serializeAws_restJson1_1CreateDocumentationPartCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -913,13 +923,15 @@ export async function serializeAws_restJson1_1CreateDocumentationVersionCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -989,13 +1001,15 @@ export async function serializeAws_restJson1_1CreateDomainNameCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1045,13 +1059,15 @@ export async function serializeAws_restJson1_1CreateModelCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1098,13 +1114,15 @@ export async function serializeAws_restJson1_1CreateRequestValidatorCommand(
bodyParams["validateRequestParameters"] = input.validateRequestParameters;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1160,13 +1178,15 @@ export async function serializeAws_restJson1_1CreateResourceCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1233,13 +1253,15 @@ export async function serializeAws_restJson1_1CreateRestApiCommand(
bodyParams["version"] = input.version;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1319,13 +1341,15 @@ export async function serializeAws_restJson1_1CreateStageCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1381,13 +1405,15 @@ export async function serializeAws_restJson1_1CreateUsagePlanCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1436,13 +1462,15 @@ export async function serializeAws_restJson1_1CreateUsagePlanKeyCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1486,13 +1514,15 @@ export async function serializeAws_restJson1_1CreateVpcLinkCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1533,13 +1563,15 @@ export async function serializeAws_restJson1_1DeleteApiKeyCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1594,13 +1626,15 @@ export async function serializeAws_restJson1_1DeleteAuthorizerCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1653,13 +1687,15 @@ export async function serializeAws_restJson1_1DeleteBasePathMappingCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1704,13 +1740,15 @@ export async function serializeAws_restJson1_1DeleteClientCertificateCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1765,13 +1803,15 @@ export async function serializeAws_restJson1_1DeleteDeploymentCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1829,13 +1869,15 @@ export async function serializeAws_restJson1_1DeleteDocumentationPartCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1893,13 +1935,15 @@ export async function serializeAws_restJson1_1DeleteDocumentationVersionCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1940,13 +1984,15 @@ export async function serializeAws_restJson1_1DeleteDomainNameCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2001,13 +2047,15 @@ export async function serializeAws_restJson1_1DeleteGatewayResponseCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2073,13 +2121,15 @@ export async function serializeAws_restJson1_1DeleteIntegrationCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2157,13 +2207,15 @@ export async function serializeAws_restJson1_1DeleteIntegrationResponseCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2229,13 +2281,15 @@ export async function serializeAws_restJson1_1DeleteMethodCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2313,13 +2367,15 @@ export async function serializeAws_restJson1_1DeleteMethodResponseCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2372,13 +2428,15 @@ export async function serializeAws_restJson1_1DeleteModelCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2436,13 +2494,15 @@ export async function serializeAws_restJson1_1DeleteRequestValidatorCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2495,13 +2555,15 @@ export async function serializeAws_restJson1_1DeleteResourceCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2542,13 +2604,15 @@ export async function serializeAws_restJson1_1DeleteRestApiCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2601,13 +2665,15 @@ export async function serializeAws_restJson1_1DeleteStageCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2650,13 +2716,15 @@ export async function serializeAws_restJson1_1DeleteUsagePlanCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2711,13 +2779,15 @@ export async function serializeAws_restJson1_1DeleteUsagePlanKeyCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2758,13 +2828,15 @@ export async function serializeAws_restJson1_1DeleteVpcLinkCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2818,13 +2890,15 @@ export async function serializeAws_restJson1_1FlushStageAuthorizersCacheCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2877,13 +2951,15 @@ export async function serializeAws_restJson1_1FlushStageCacheCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2921,13 +2997,15 @@ export async function serializeAws_restJson1_1GenerateClientCertificateCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2956,13 +3034,15 @@ export async function serializeAws_restJson1_1GetAccountCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3007,14 +3087,16 @@ export async function serializeAws_restJson1_1GetApiKeyCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3059,14 +3141,16 @@ export async function serializeAws_restJson1_1GetApiKeysCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3121,13 +3205,15 @@ export async function serializeAws_restJson1_1GetAuthorizerCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3175,14 +3261,16 @@ export async function serializeAws_restJson1_1GetAuthorizersCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3235,13 +3323,15 @@ export async function serializeAws_restJson1_1GetBasePathMappingCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3289,14 +3379,16 @@ export async function serializeAws_restJson1_1GetBasePathMappingsCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3341,13 +3433,15 @@ export async function serializeAws_restJson1_1GetClientCertificateCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3383,14 +3477,16 @@ export async function serializeAws_restJson1_1GetClientCertificatesCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3449,14 +3545,16 @@ export async function serializeAws_restJson1_1GetDeploymentCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3504,14 +3602,16 @@ export async function serializeAws_restJson1_1GetDeploymentsCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3569,13 +3669,15 @@ export async function serializeAws_restJson1_1GetDocumentationPartCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3635,14 +3737,16 @@ export async function serializeAws_restJson1_1GetDocumentationPartsCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3700,13 +3804,15 @@ export async function serializeAws_restJson1_1GetDocumentationVersionCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3754,14 +3860,16 @@ export async function serializeAws_restJson1_1GetDocumentationVersionsCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3802,13 +3910,15 @@ export async function serializeAws_restJson1_1GetDomainNameCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3844,14 +3954,16 @@ export async function serializeAws_restJson1_1GetDomainNamesCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3911,13 +4023,15 @@ export async function serializeAws_restJson1_1GetExportCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3972,13 +4086,15 @@ export async function serializeAws_restJson1_1GetGatewayResponseCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4026,14 +4142,16 @@ export async function serializeAws_restJson1_1GetGatewayResponsesCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4099,13 +4217,15 @@ export async function serializeAws_restJson1_1GetIntegrationCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4183,13 +4303,15 @@ export async function serializeAws_restJson1_1GetIntegrationResponseCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4255,13 +4377,15 @@ export async function serializeAws_restJson1_1GetMethodCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4339,13 +4463,15 @@ export async function serializeAws_restJson1_1GetMethodResponseCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4402,14 +4528,16 @@ export async function serializeAws_restJson1_1GetModelCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4463,13 +4591,15 @@ export async function serializeAws_restJson1_1GetModelTemplateCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4517,14 +4647,16 @@ export async function serializeAws_restJson1_1GetModelsCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4582,13 +4714,15 @@ export async function serializeAws_restJson1_1GetRequestValidatorCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4636,14 +4770,16 @@ export async function serializeAws_restJson1_1GetRequestValidatorsCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4700,14 +4836,16 @@ export async function serializeAws_restJson1_1GetResourceCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4758,14 +4896,16 @@ export async function serializeAws_restJson1_1GetResourcesCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4806,13 +4946,15 @@ export async function serializeAws_restJson1_1GetRestApiCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4848,14 +4990,16 @@ export async function serializeAws_restJson1_1GetRestApisCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4911,13 +5055,15 @@ export async function serializeAws_restJson1_1GetSdkCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4958,13 +5104,15 @@ export async function serializeAws_restJson1_1GetSdkTypeCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5000,14 +5148,16 @@ export async function serializeAws_restJson1_1GetSdkTypesCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -5060,13 +5210,15 @@ export async function serializeAws_restJson1_1GetStageCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5111,14 +5263,16 @@ export async function serializeAws_restJson1_1GetStagesCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -5168,14 +5322,16 @@ export async function serializeAws_restJson1_1GetTagsCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -5234,14 +5390,16 @@ export async function serializeAws_restJson1_1GetUsageCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -5284,13 +5442,15 @@ export async function serializeAws_restJson1_1GetUsagePlanCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5345,13 +5505,15 @@ export async function serializeAws_restJson1_1GetUsagePlanKeyCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5404,14 +5566,16 @@ export async function serializeAws_restJson1_1GetUsagePlanKeysCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -5450,14 +5614,16 @@ export async function serializeAws_restJson1_1GetUsagePlansCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -5498,13 +5664,15 @@ export async function serializeAws_restJson1_1GetVpcLinkCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5540,14 +5708,16 @@ export async function serializeAws_restJson1_1GetVpcLinksCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -5585,14 +5755,16 @@ export async function serializeAws_restJson1_1ImportApiKeysCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -5640,14 +5812,16 @@ export async function serializeAws_restJson1_1ImportDocumentationPartsCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -5688,14 +5862,16 @@ export async function serializeAws_restJson1_1ImportRestApiCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -5769,13 +5945,15 @@ export async function serializeAws_restJson1_1PutGatewayResponseCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5893,13 +6071,15 @@ export async function serializeAws_restJson1_1PutIntegrationCommand(
bodyParams["uri"] = input.uri;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5999,13 +6179,15 @@ export async function serializeAws_restJson1_1PutIntegrationResponseCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6106,13 +6288,15 @@ export async function serializeAws_restJson1_1PutMethodCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6204,13 +6388,15 @@ export async function serializeAws_restJson1_1PutMethodResponseCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6264,14 +6450,16 @@ export async function serializeAws_restJson1_1PutRestApiCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -6320,13 +6508,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6398,13 +6588,15 @@ export async function serializeAws_restJson1_1TestInvokeAuthorizerCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6482,13 +6674,15 @@ export async function serializeAws_restJson1_1TestInvokeMethodCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6535,14 +6729,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -6579,13 +6775,15 @@ export async function serializeAws_restJson1_1UpdateAccountCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6634,13 +6832,15 @@ export async function serializeAws_restJson1_1UpdateApiKeyCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6703,13 +6903,15 @@ export async function serializeAws_restJson1_1UpdateAuthorizerCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6770,13 +6972,15 @@ export async function serializeAws_restJson1_1UpdateBasePathMappingCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6829,13 +7033,15 @@ export async function serializeAws_restJson1_1UpdateClientCertificateCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6898,13 +7104,15 @@ export async function serializeAws_restJson1_1UpdateDeploymentCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6970,13 +7178,15 @@ export async function serializeAws_restJson1_1UpdateDocumentationPartCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7042,13 +7252,15 @@ export async function serializeAws_restJson1_1UpdateDocumentationVersionCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7097,13 +7309,15 @@ export async function serializeAws_restJson1_1UpdateDomainNameCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7166,13 +7380,15 @@ export async function serializeAws_restJson1_1UpdateGatewayResponseCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7246,13 +7462,15 @@ export async function serializeAws_restJson1_1UpdateIntegrationCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7338,13 +7556,15 @@ export async function serializeAws_restJson1_1UpdateIntegrationResponseCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7418,13 +7638,15 @@ export async function serializeAws_restJson1_1UpdateMethodCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7510,13 +7732,15 @@ export async function serializeAws_restJson1_1UpdateMethodResponseCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7577,13 +7801,15 @@ export async function serializeAws_restJson1_1UpdateModelCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7649,13 +7875,15 @@ export async function serializeAws_restJson1_1UpdateRequestValidatorCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7716,13 +7944,15 @@ export async function serializeAws_restJson1_1UpdateResourceCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7771,13 +8001,15 @@ export async function serializeAws_restJson1_1UpdateRestApiCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7838,13 +8070,15 @@ export async function serializeAws_restJson1_1UpdateStageCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7907,13 +8141,15 @@ export async function serializeAws_restJson1_1UpdateUsageCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7964,13 +8200,15 @@ export async function serializeAws_restJson1_1UpdateUsagePlanCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -8019,13 +8257,15 @@ export async function serializeAws_restJson1_1UpdateVpcLinkCommand(
bodyParams["title"] = input.title;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-apigatewaymanagementapi/protocols/Aws_restJson1_1.ts b/clients/client-apigatewaymanagementapi/protocols/Aws_restJson1_1.ts
index 6dd2510666a8..89df39db7707 100644
--- a/clients/client-apigatewaymanagementapi/protocols/Aws_restJson1_1.ts
+++ b/clients/client-apigatewaymanagementapi/protocols/Aws_restJson1_1.ts
@@ -54,13 +54,15 @@ export async function serializeAws_restJson1_1DeleteConnectionCommand(
throw new Error("No value provided for input HTTP label: ConnectionId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -86,13 +88,15 @@ export async function serializeAws_restJson1_1GetConnectionCommand(
throw new Error("No value provided for input HTTP label: ConnectionId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -121,13 +125,15 @@ export async function serializeAws_restJson1_1PostToConnectionCommand(
if (input.Data !== undefined) {
body = input.Data;
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-apigatewayv2/protocols/Aws_restJson1_1.ts b/clients/client-apigatewayv2/protocols/Aws_restJson1_1.ts
index 1fe83660c020..4ff9a8db311b 100644
--- a/clients/client-apigatewayv2/protocols/Aws_restJson1_1.ts
+++ b/clients/client-apigatewayv2/protocols/Aws_restJson1_1.ts
@@ -338,13 +338,15 @@ export async function serializeAws_restJson1_1CreateApiCommand(
bodyParams["version"] = input.Version;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -379,13 +381,15 @@ export async function serializeAws_restJson1_1CreateApiMappingCommand(
bodyParams["stage"] = input.Stage;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -443,13 +447,15 @@ export async function serializeAws_restJson1_1CreateAuthorizerCommand(
bodyParams["name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -481,13 +487,15 @@ export async function serializeAws_restJson1_1CreateDeploymentCommand(
bodyParams["stageName"] = input.StageName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -515,13 +523,15 @@ export async function serializeAws_restJson1_1CreateDomainNameCommand(
bodyParams["tags"] = serializeAws_restJson1_1Tags(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -598,13 +608,15 @@ export async function serializeAws_restJson1_1CreateIntegrationCommand(
bodyParams["timeoutInMillis"] = input.TimeoutInMillis;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -669,13 +681,15 @@ export async function serializeAws_restJson1_1CreateIntegrationResponseCommand(
input.TemplateSelectionExpression;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -713,13 +727,15 @@ export async function serializeAws_restJson1_1CreateModelCommand(
bodyParams["schema"] = input.Schema;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -790,13 +806,15 @@ export async function serializeAws_restJson1_1CreateRouteCommand(
bodyParams["target"] = input.Target;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -852,13 +870,15 @@ export async function serializeAws_restJson1_1CreateRouteResponseCommand(
bodyParams["routeResponseKey"] = input.RouteResponseKey;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -926,13 +946,15 @@ export async function serializeAws_restJson1_1CreateStageCommand(
bodyParams["tags"] = serializeAws_restJson1_1Tags(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -956,13 +978,15 @@ export async function serializeAws_restJson1_1DeleteApiCommand(
throw new Error("No value provided for input HTTP label: ApiId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1000,13 +1024,15 @@ export async function serializeAws_restJson1_1DeleteApiMappingCommand(
throw new Error("No value provided for input HTTP label: DomainName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1044,13 +1070,15 @@ export async function serializeAws_restJson1_1DeleteAuthorizerCommand(
throw new Error("No value provided for input HTTP label: AuthorizerId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1074,13 +1102,15 @@ export async function serializeAws_restJson1_1DeleteCorsConfigurationCommand(
throw new Error("No value provided for input HTTP label: ApiId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1118,13 +1148,15 @@ export async function serializeAws_restJson1_1DeleteDeploymentCommand(
throw new Error("No value provided for input HTTP label: DeploymentId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1148,13 +1180,15 @@ export async function serializeAws_restJson1_1DeleteDomainNameCommand(
throw new Error("No value provided for input HTTP label: DomainName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1192,13 +1226,15 @@ export async function serializeAws_restJson1_1DeleteIntegrationCommand(
throw new Error("No value provided for input HTTP label: IntegrationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1253,13 +1289,15 @@ export async function serializeAws_restJson1_1DeleteIntegrationResponseCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1295,13 +1333,15 @@ export async function serializeAws_restJson1_1DeleteModelCommand(
throw new Error("No value provided for input HTTP label: ModelId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1337,13 +1377,15 @@ export async function serializeAws_restJson1_1DeleteRouteCommand(
throw new Error("No value provided for input HTTP label: RouteId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1394,13 +1436,15 @@ export async function serializeAws_restJson1_1DeleteRouteResponseCommand(
throw new Error("No value provided for input HTTP label: RouteResponseId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1449,13 +1493,15 @@ export async function serializeAws_restJson1_1DeleteRouteSettingsCommand(
throw new Error("No value provided for input HTTP label: StageName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1491,13 +1537,15 @@ export async function serializeAws_restJson1_1DeleteStageCommand(
throw new Error("No value provided for input HTTP label: StageName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1521,13 +1569,15 @@ export async function serializeAws_restJson1_1GetApiCommand(
throw new Error("No value provided for input HTTP label: ApiId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1565,13 +1615,15 @@ export async function serializeAws_restJson1_1GetApiMappingCommand(
throw new Error("No value provided for input HTTP label: DomainName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1602,14 +1654,16 @@ export async function serializeAws_restJson1_1GetApiMappingsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1628,14 +1682,16 @@ export async function serializeAws_restJson1_1GetApisCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1673,13 +1729,15 @@ export async function serializeAws_restJson1_1GetAuthorizerCommand(
throw new Error("No value provided for input HTTP label: AuthorizerId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1710,14 +1768,16 @@ export async function serializeAws_restJson1_1GetAuthorizersCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1755,13 +1815,15 @@ export async function serializeAws_restJson1_1GetDeploymentCommand(
throw new Error("No value provided for input HTTP label: DeploymentId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1792,14 +1854,16 @@ export async function serializeAws_restJson1_1GetDeploymentsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1823,13 +1887,15 @@ export async function serializeAws_restJson1_1GetDomainNameCommand(
throw new Error("No value provided for input HTTP label: DomainName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1848,14 +1914,16 @@ export async function serializeAws_restJson1_1GetDomainNamesCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1893,13 +1961,15 @@ export async function serializeAws_restJson1_1GetIntegrationCommand(
throw new Error("No value provided for input HTTP label: IntegrationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1954,13 +2024,15 @@ export async function serializeAws_restJson1_1GetIntegrationResponseCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2006,14 +2078,16 @@ export async function serializeAws_restJson1_1GetIntegrationResponsesCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2044,14 +2118,16 @@ export async function serializeAws_restJson1_1GetIntegrationsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2087,13 +2163,15 @@ export async function serializeAws_restJson1_1GetModelCommand(
throw new Error("No value provided for input HTTP label: ModelId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2129,13 +2207,15 @@ export async function serializeAws_restJson1_1GetModelTemplateCommand(
throw new Error("No value provided for input HTTP label: ModelId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2166,14 +2246,16 @@ export async function serializeAws_restJson1_1GetModelsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2209,13 +2291,15 @@ export async function serializeAws_restJson1_1GetRouteCommand(
throw new Error("No value provided for input HTTP label: RouteId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2266,13 +2350,15 @@ export async function serializeAws_restJson1_1GetRouteResponseCommand(
throw new Error("No value provided for input HTTP label: RouteResponseId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2315,14 +2401,16 @@ export async function serializeAws_restJson1_1GetRouteResponsesCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2353,14 +2441,16 @@ export async function serializeAws_restJson1_1GetRoutesCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2396,13 +2486,15 @@ export async function serializeAws_restJson1_1GetStageCommand(
throw new Error("No value provided for input HTTP label: StageName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2433,14 +2525,16 @@ export async function serializeAws_restJson1_1GetStagesCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2466,13 +2560,15 @@ export async function serializeAws_restJson1_1GetTagsCommand(
throw new Error("No value provided for input HTTP label: ResourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2496,14 +2592,16 @@ export async function serializeAws_restJson1_1ImportApiCommand(
bodyParams["body"] = input.Body;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2539,14 +2637,16 @@ export async function serializeAws_restJson1_1ReimportApiCommand(
bodyParams["body"] = input.Body;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2577,13 +2677,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["tags"] = serializeAws_restJson1_1Tags(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2613,14 +2715,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.TagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2679,13 +2783,15 @@ export async function serializeAws_restJson1_1UpdateApiCommand(
bodyParams["version"] = input.Version;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2734,13 +2840,15 @@ export async function serializeAws_restJson1_1UpdateApiMappingCommand(
bodyParams["stage"] = input.Stage;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2812,13 +2920,15 @@ export async function serializeAws_restJson1_1UpdateAuthorizerCommand(
bodyParams["name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2861,13 +2971,15 @@ export async function serializeAws_restJson1_1UpdateDeploymentCommand(
bodyParams["description"] = input.Description;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2901,13 +3013,15 @@ export async function serializeAws_restJson1_1UpdateDomainNameCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2998,13 +3112,15 @@ export async function serializeAws_restJson1_1UpdateIntegrationCommand(
bodyParams["timeoutInMillis"] = input.TimeoutInMillis;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3085,13 +3201,15 @@ export async function serializeAws_restJson1_1UpdateIntegrationResponseCommand(
input.TemplateSelectionExpression;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3141,13 +3259,15 @@ export async function serializeAws_restJson1_1UpdateModelCommand(
bodyParams["schema"] = input.Schema;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3230,13 +3350,15 @@ export async function serializeAws_restJson1_1UpdateRouteCommand(
bodyParams["target"] = input.Target;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3307,13 +3429,15 @@ export async function serializeAws_restJson1_1UpdateRouteResponseCommand(
bodyParams["routeResponseKey"] = input.RouteResponseKey;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3387,13 +3511,15 @@ export async function serializeAws_restJson1_1UpdateStageCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-app-mesh/protocols/Aws_restJson1_1.ts b/clients/client-app-mesh/protocols/Aws_restJson1_1.ts
index 6859e56ead65..7dcc7e235d36 100644
--- a/clients/client-app-mesh/protocols/Aws_restJson1_1.ts
+++ b/clients/client-app-mesh/protocols/Aws_restJson1_1.ts
@@ -221,13 +221,15 @@ export async function serializeAws_restJson1_1CreateMeshCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagList(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -285,13 +287,15 @@ export async function serializeAws_restJson1_1CreateRouteCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagList(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -335,13 +339,15 @@ export async function serializeAws_restJson1_1CreateVirtualNodeCommand(
bodyParams["virtualNodeName"] = input.virtualNodeName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -385,13 +391,15 @@ export async function serializeAws_restJson1_1CreateVirtualRouterCommand(
bodyParams["virtualRouterName"] = input.virtualRouterName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -435,13 +443,15 @@ export async function serializeAws_restJson1_1CreateVirtualServiceCommand(
bodyParams["virtualServiceName"] = input.virtualServiceName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -465,13 +475,15 @@ export async function serializeAws_restJson1_1DeleteMeshCommand(
throw new Error("No value provided for input HTTP label: meshName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -524,13 +536,15 @@ export async function serializeAws_restJson1_1DeleteRouteCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -569,13 +583,15 @@ export async function serializeAws_restJson1_1DeleteVirtualNodeCommand(
throw new Error("No value provided for input HTTP label: virtualNodeName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -616,13 +632,15 @@ export async function serializeAws_restJson1_1DeleteVirtualRouterCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -663,13 +681,15 @@ export async function serializeAws_restJson1_1DeleteVirtualServiceCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -693,13 +713,15 @@ export async function serializeAws_restJson1_1DescribeMeshCommand(
throw new Error("No value provided for input HTTP label: meshName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -752,13 +774,15 @@ export async function serializeAws_restJson1_1DescribeRouteCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -797,13 +821,15 @@ export async function serializeAws_restJson1_1DescribeVirtualNodeCommand(
throw new Error("No value provided for input HTTP label: virtualNodeName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -844,13 +870,15 @@ export async function serializeAws_restJson1_1DescribeVirtualRouterCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -891,13 +919,15 @@ export async function serializeAws_restJson1_1DescribeVirtualServiceCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -916,14 +946,16 @@ export async function serializeAws_restJson1_1ListMeshesCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -971,14 +1003,16 @@ export async function serializeAws_restJson1_1ListRoutesCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1000,14 +1034,16 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
query["resourceArn"] = input.resourceArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1038,14 +1074,16 @@ export async function serializeAws_restJson1_1ListVirtualNodesCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1076,14 +1114,16 @@ export async function serializeAws_restJson1_1ListVirtualRoutersCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1114,14 +1154,16 @@ export async function serializeAws_restJson1_1ListVirtualServicesCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1142,14 +1184,16 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagList(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1173,14 +1217,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1215,13 +1261,15 @@ export async function serializeAws_restJson1_1UpdateMeshCommand(
bodyParams["spec"] = serializeAws_restJson1_1MeshSpec(input.spec, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1285,13 +1333,15 @@ export async function serializeAws_restJson1_1UpdateRouteCommand(
bodyParams["spec"] = serializeAws_restJson1_1RouteSpec(input.spec, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1344,13 +1394,15 @@ export async function serializeAws_restJson1_1UpdateVirtualNodeCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1405,13 +1457,15 @@ export async function serializeAws_restJson1_1UpdateVirtualRouterCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1466,13 +1520,15 @@ export async function serializeAws_restJson1_1UpdateVirtualServiceCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-appconfig/protocols/Aws_restJson1_1.ts b/clients/client-appconfig/protocols/Aws_restJson1_1.ts
index 3f2436fa3053..24676f43f6a4 100644
--- a/clients/client-appconfig/protocols/Aws_restJson1_1.ts
+++ b/clients/client-appconfig/protocols/Aws_restJson1_1.ts
@@ -162,13 +162,15 @@ export async function serializeAws_restJson1_1CreateApplicationCommand(
bodyParams["Tags"] = serializeAws_restJson1_1TagMap(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -217,13 +219,15 @@ export async function serializeAws_restJson1_1CreateConfigurationProfileCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -262,13 +266,15 @@ export async function serializeAws_restJson1_1CreateDeploymentStrategyCommand(
bodyParams["Tags"] = serializeAws_restJson1_1TagMap(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -311,13 +317,15 @@ export async function serializeAws_restJson1_1CreateEnvironmentCommand(
bodyParams["Tags"] = serializeAws_restJson1_1TagMap(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -343,13 +351,15 @@ export async function serializeAws_restJson1_1DeleteApplicationCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -392,13 +402,15 @@ export async function serializeAws_restJson1_1DeleteConfigurationProfileCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -426,13 +438,15 @@ export async function serializeAws_restJson1_1DeleteDeploymentStrategyCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -473,13 +487,15 @@ export async function serializeAws_restJson1_1DeleteEnvironmentCommand(
throw new Error("No value provided for input HTTP label: EnvironmentId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -505,13 +521,15 @@ export async function serializeAws_restJson1_1GetApplicationCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -573,14 +591,16 @@ export async function serializeAws_restJson1_1GetConfigurationCommand(
query["client_id"] = input.ClientId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -623,13 +643,15 @@ export async function serializeAws_restJson1_1GetConfigurationProfileCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -686,13 +708,15 @@ export async function serializeAws_restJson1_1GetDeploymentCommand(
throw new Error("No value provided for input HTTP label: EnvironmentId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -720,13 +744,15 @@ export async function serializeAws_restJson1_1GetDeploymentStrategyCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -767,13 +793,15 @@ export async function serializeAws_restJson1_1GetEnvironmentCommand(
throw new Error("No value provided for input HTTP label: EnvironmentId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -792,14 +820,16 @@ export async function serializeAws_restJson1_1ListApplicationsCommand(
query["next_token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -832,14 +862,16 @@ export async function serializeAws_restJson1_1ListConfigurationProfilesCommand(
query["next_token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -858,14 +890,16 @@ export async function serializeAws_restJson1_1ListDeploymentStrategiesCommand(
query["next_token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -913,14 +947,16 @@ export async function serializeAws_restJson1_1ListDeploymentsCommand(
query["next_token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -953,14 +989,16 @@ export async function serializeAws_restJson1_1ListEnvironmentsCommand(
query["next_token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -986,13 +1024,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: ResourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1050,13 +1090,15 @@ export async function serializeAws_restJson1_1StartDeploymentCommand(
bodyParams["Tags"] = serializeAws_restJson1_1TagMap(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1113,13 +1155,15 @@ export async function serializeAws_restJson1_1StopDeploymentCommand(
throw new Error("No value provided for input HTTP label: EnvironmentId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1150,13 +1194,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["Tags"] = serializeAws_restJson1_1TagMap(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1186,14 +1232,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.TagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1227,13 +1275,15 @@ export async function serializeAws_restJson1_1UpdateApplicationCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1293,13 +1343,15 @@ export async function serializeAws_restJson1_1UpdateConfigurationProfileCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1345,13 +1397,15 @@ export async function serializeAws_restJson1_1UpdateDeploymentStrategyCommand(
bodyParams["GrowthType"] = input.GrowthType;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1406,13 +1460,15 @@ export async function serializeAws_restJson1_1UpdateEnvironmentCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1459,14 +1515,16 @@ export async function serializeAws_restJson1_1ValidateConfigurationCommand(
query["configuration_version"] = input.ConfigurationVersion;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
diff --git a/clients/client-application-auto-scaling/protocols/Aws_json1_1.ts b/clients/client-application-auto-scaling/protocols/Aws_json1_1.ts
index a433d8dbbb7e..58fd55b41c28 100644
--- a/clients/client-application-auto-scaling/protocols/Aws_json1_1.ts
+++ b/clients/client-application-auto-scaling/protocols/Aws_json1_1.ts
@@ -2702,19 +2702,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-application-discovery-service/protocols/Aws_json1_1.ts b/clients/client-application-discovery-service/protocols/Aws_json1_1.ts
index 0384d65d3d3b..9805ae862d33 100644
--- a/clients/client-application-discovery-service/protocols/Aws_json1_1.ts
+++ b/clients/client-application-discovery-service/protocols/Aws_json1_1.ts
@@ -5511,19 +5511,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-application-insights/protocols/Aws_json1_1.ts b/clients/client-application-insights/protocols/Aws_json1_1.ts
index f0d610b668db..3ee728e3dcdf 100644
--- a/clients/client-application-insights/protocols/Aws_json1_1.ts
+++ b/clients/client-application-insights/protocols/Aws_json1_1.ts
@@ -4509,19 +4509,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-appstream/protocols/Aws_json1_1.ts b/clients/client-appstream/protocols/Aws_json1_1.ts
index c083b75018cb..30124788fbd3 100644
--- a/clients/client-appstream/protocols/Aws_json1_1.ts
+++ b/clients/client-appstream/protocols/Aws_json1_1.ts
@@ -8649,19 +8649,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-appsync/protocols/Aws_restJson1_1.ts b/clients/client-appsync/protocols/Aws_restJson1_1.ts
index fa5a0b46c3b5..6e91e302ce91 100644
--- a/clients/client-appsync/protocols/Aws_restJson1_1.ts
+++ b/clients/client-appsync/protocols/Aws_restJson1_1.ts
@@ -252,13 +252,15 @@ export async function serializeAws_restJson1_1CreateApiCacheCommand(
bodyParams["type"] = input.type;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -290,13 +292,15 @@ export async function serializeAws_restJson1_1CreateApiKeyCommand(
bodyParams["expires"] = input.expires;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -370,13 +374,15 @@ export async function serializeAws_restJson1_1CreateDataSourceCommand(
bodyParams["type"] = input.type;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -420,13 +426,15 @@ export async function serializeAws_restJson1_1CreateFunctionCommand(
bodyParams["responseMappingTemplate"] = input.responseMappingTemplate;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -477,13 +485,15 @@ export async function serializeAws_restJson1_1CreateGraphqlApiCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -554,13 +564,15 @@ export async function serializeAws_restJson1_1CreateResolverCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -592,13 +604,15 @@ export async function serializeAws_restJson1_1CreateTypeCommand(
bodyParams["format"] = input.format;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -622,13 +636,15 @@ export async function serializeAws_restJson1_1DeleteApiCacheCommand(
throw new Error("No value provided for input HTTP label: apiId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -664,13 +680,15 @@ export async function serializeAws_restJson1_1DeleteApiKeyCommand(
throw new Error("No value provided for input HTTP label: id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -706,13 +724,15 @@ export async function serializeAws_restJson1_1DeleteDataSourceCommand(
throw new Error("No value provided for input HTTP label: name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -748,13 +768,15 @@ export async function serializeAws_restJson1_1DeleteFunctionCommand(
throw new Error("No value provided for input HTTP label: functionId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -778,13 +800,15 @@ export async function serializeAws_restJson1_1DeleteGraphqlApiCommand(
throw new Error("No value provided for input HTTP label: apiId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -832,13 +856,15 @@ export async function serializeAws_restJson1_1DeleteResolverCommand(
throw new Error("No value provided for input HTTP label: typeName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -874,13 +900,15 @@ export async function serializeAws_restJson1_1DeleteTypeCommand(
throw new Error("No value provided for input HTTP label: typeName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -904,13 +932,15 @@ export async function serializeAws_restJson1_1FlushApiCacheCommand(
throw new Error("No value provided for input HTTP label: apiId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -934,13 +964,15 @@ export async function serializeAws_restJson1_1GetApiCacheCommand(
throw new Error("No value provided for input HTTP label: apiId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -976,13 +1008,15 @@ export async function serializeAws_restJson1_1GetDataSourceCommand(
throw new Error("No value provided for input HTTP label: name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1018,13 +1052,15 @@ export async function serializeAws_restJson1_1GetFunctionCommand(
throw new Error("No value provided for input HTTP label: functionId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1048,13 +1084,15 @@ export async function serializeAws_restJson1_1GetGraphqlApiCommand(
throw new Error("No value provided for input HTTP label: apiId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1085,14 +1123,16 @@ export async function serializeAws_restJson1_1GetIntrospectionSchemaCommand(
query["includeDirectives"] = input.includeDirectives.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1140,13 +1180,15 @@ export async function serializeAws_restJson1_1GetResolverCommand(
throw new Error("No value provided for input HTTP label: typeName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1170,13 +1212,15 @@ export async function serializeAws_restJson1_1GetSchemaCreationStatusCommand(
throw new Error("No value provided for input HTTP label: apiId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1216,14 +1260,16 @@ export async function serializeAws_restJson1_1GetTypeCommand(
query["format"] = input.format;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1254,14 +1300,16 @@ export async function serializeAws_restJson1_1ListApiKeysCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1292,14 +1340,16 @@ export async function serializeAws_restJson1_1ListDataSourcesCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1330,14 +1380,16 @@ export async function serializeAws_restJson1_1ListFunctionsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1356,14 +1408,16 @@ export async function serializeAws_restJson1_1ListGraphqlApisCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1406,14 +1460,16 @@ export async function serializeAws_restJson1_1ListResolversCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1456,14 +1512,16 @@ export async function serializeAws_restJson1_1ListResolversByFunctionCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1489,13 +1547,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: resourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1529,14 +1589,16 @@ export async function serializeAws_restJson1_1ListTypesCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1565,13 +1627,15 @@ export async function serializeAws_restJson1_1StartSchemaCreationCommand(
bodyParams["definition"] = context.base64Encoder(input.definition);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1602,13 +1666,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1638,14 +1704,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.tagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1680,13 +1748,15 @@ export async function serializeAws_restJson1_1UpdateApiCacheCommand(
bodyParams["type"] = input.type;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1730,13 +1800,15 @@ export async function serializeAws_restJson1_1UpdateApiKeyCommand(
bodyParams["expires"] = input.expires;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1819,13 +1891,15 @@ export async function serializeAws_restJson1_1UpdateDataSourceCommand(
bodyParams["type"] = input.type;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1881,13 +1955,15 @@ export async function serializeAws_restJson1_1UpdateFunctionCommand(
bodyParams["responseMappingTemplate"] = input.responseMappingTemplate;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1947,13 +2023,15 @@ export async function serializeAws_restJson1_1UpdateGraphqlApiCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2033,13 +2111,15 @@ export async function serializeAws_restJson1_1UpdateResolverCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2083,13 +2163,15 @@ export async function serializeAws_restJson1_1UpdateTypeCommand(
bodyParams["format"] = input.format;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-athena/protocols/Aws_json1_1.ts b/clients/client-athena/protocols/Aws_json1_1.ts
index 7399a472d406..bf8b5a6b8b48 100644
--- a/clients/client-athena/protocols/Aws_json1_1.ts
+++ b/clients/client-athena/protocols/Aws_json1_1.ts
@@ -3462,19 +3462,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-auto-scaling-plans/protocols/Aws_json1_1.ts b/clients/client-auto-scaling-plans/protocols/Aws_json1_1.ts
index 87f768d81eff..81eedd353ed0 100644
--- a/clients/client-auto-scaling-plans/protocols/Aws_json1_1.ts
+++ b/clients/client-auto-scaling-plans/protocols/Aws_json1_1.ts
@@ -2066,19 +2066,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-auto-scaling/protocols/Aws_query.ts b/clients/client-auto-scaling/protocols/Aws_query.ts
index 8a5aa2be96dd..04804c9c2b3a 100644
--- a/clients/client-auto-scaling/protocols/Aws_query.ts
+++ b/clients/client-auto-scaling/protocols/Aws_query.ts
@@ -10182,19 +10182,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-backup/protocols/Aws_restJson1_1.ts b/clients/client-backup/protocols/Aws_restJson1_1.ts
index 14bb7d214e4c..63c6e9552b49 100644
--- a/clients/client-backup/protocols/Aws_restJson1_1.ts
+++ b/clients/client-backup/protocols/Aws_restJson1_1.ts
@@ -253,13 +253,15 @@ export async function serializeAws_restJson1_1CreateBackupPlanCommand(
bodyParams["CreatorRequestId"] = input.CreatorRequestId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -296,13 +298,15 @@ export async function serializeAws_restJson1_1CreateBackupSelectionCommand(
bodyParams["CreatorRequestId"] = input.CreatorRequestId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -342,13 +346,15 @@ export async function serializeAws_restJson1_1CreateBackupVaultCommand(
bodyParams["EncryptionKeyArn"] = input.EncryptionKeyArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -374,13 +380,15 @@ export async function serializeAws_restJson1_1DeleteBackupPlanCommand(
throw new Error("No value provided for input HTTP label: BackupPlanId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -420,13 +428,15 @@ export async function serializeAws_restJson1_1DeleteBackupSelectionCommand(
throw new Error("No value provided for input HTTP label: SelectionId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -452,13 +462,15 @@ export async function serializeAws_restJson1_1DeleteBackupVaultCommand(
throw new Error("No value provided for input HTTP label: BackupVaultName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -484,13 +496,15 @@ export async function serializeAws_restJson1_1DeleteBackupVaultAccessPolicyComma
throw new Error("No value provided for input HTTP label: BackupVaultName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -517,13 +531,15 @@ export async function serializeAws_restJson1_1DeleteBackupVaultNotificationsComm
throw new Error("No value provided for input HTTP label: BackupVaultName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -566,13 +582,15 @@ export async function serializeAws_restJson1_1DeleteRecoveryPointCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -598,13 +616,15 @@ export async function serializeAws_restJson1_1DescribeBackupJobCommand(
throw new Error("No value provided for input HTTP label: BackupJobId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -630,13 +650,15 @@ export async function serializeAws_restJson1_1DescribeBackupVaultCommand(
throw new Error("No value provided for input HTTP label: BackupVaultName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -660,13 +682,15 @@ export async function serializeAws_restJson1_1DescribeCopyJobCommand(
throw new Error("No value provided for input HTTP label: CopyJobId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -692,13 +716,15 @@ export async function serializeAws_restJson1_1DescribeProtectedResourceCommand(
throw new Error("No value provided for input HTTP label: ResourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -741,13 +767,15 @@ export async function serializeAws_restJson1_1DescribeRecoveryPointCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -773,13 +801,15 @@ export async function serializeAws_restJson1_1DescribeRestoreJobCommand(
throw new Error("No value provided for input HTTP label: RestoreJobId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -805,13 +835,15 @@ export async function serializeAws_restJson1_1ExportBackupPlanTemplateCommand(
throw new Error("No value provided for input HTTP label: BackupPlanId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -841,14 +873,16 @@ export async function serializeAws_restJson1_1GetBackupPlanCommand(
query["versionId"] = input.VersionId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -865,13 +899,15 @@ export async function serializeAws_restJson1_1GetBackupPlanFromJSONCommand(
bodyParams["BackupPlanTemplateJson"] = input.BackupPlanTemplateJson;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -899,13 +935,15 @@ export async function serializeAws_restJson1_1GetBackupPlanFromTemplateCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -945,13 +983,15 @@ export async function serializeAws_restJson1_1GetBackupSelectionCommand(
throw new Error("No value provided for input HTTP label: SelectionId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -977,13 +1017,15 @@ export async function serializeAws_restJson1_1GetBackupVaultAccessPolicyCommand(
throw new Error("No value provided for input HTTP label: BackupVaultName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1010,13 +1052,15 @@ export async function serializeAws_restJson1_1GetBackupVaultNotificationsCommand
throw new Error("No value provided for input HTTP label: BackupVaultName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1059,13 +1103,15 @@ export async function serializeAws_restJson1_1GetRecoveryPointRestoreMetadataCom
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1078,13 +1124,15 @@ export async function serializeAws_restJson1_1GetSupportedResourceTypesCommand(
let resolvedPath = "/supported-resource-types";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1125,14 +1173,16 @@ export async function serializeAws_restJson1_1ListBackupJobsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1151,14 +1201,16 @@ export async function serializeAws_restJson1_1ListBackupPlanTemplatesCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1191,14 +1243,16 @@ export async function serializeAws_restJson1_1ListBackupPlanVersionsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1220,14 +1274,16 @@ export async function serializeAws_restJson1_1ListBackupPlansCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1260,14 +1316,16 @@ export async function serializeAws_restJson1_1ListBackupSelectionsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1286,14 +1344,16 @@ export async function serializeAws_restJson1_1ListBackupVaultsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1334,14 +1394,16 @@ export async function serializeAws_restJson1_1ListCopyJobsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1360,14 +1422,16 @@ export async function serializeAws_restJson1_1ListProtectedResourcesCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1419,14 +1483,16 @@ export async function serializeAws_restJson1_1ListRecoveryPointsByBackupVaultCom
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1459,14 +1525,16 @@ export async function serializeAws_restJson1_1ListRecoveryPointsByResourceComman
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1485,14 +1553,16 @@ export async function serializeAws_restJson1_1ListRestoreJobsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1525,14 +1595,16 @@ export async function serializeAws_restJson1_1ListTagsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1563,13 +1635,15 @@ export async function serializeAws_restJson1_1PutBackupVaultAccessPolicyCommand(
bodyParams["Policy"] = input.Policy;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1607,13 +1681,15 @@ export async function serializeAws_restJson1_1PutBackupVaultNotificationsCommand
bodyParams["SNSTopicArn"] = input.SNSTopicArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1657,13 +1733,15 @@ export async function serializeAws_restJson1_1StartBackupJobCommand(
bodyParams["StartWindowMinutes"] = input.StartWindowMinutes;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1698,13 +1776,15 @@ export async function serializeAws_restJson1_1StartCopyJobCommand(
bodyParams["SourceBackupVaultName"] = input.SourceBackupVaultName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1736,13 +1816,15 @@ export async function serializeAws_restJson1_1StartRestoreJobCommand(
bodyParams["ResourceType"] = input.ResourceType;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1768,13 +1850,15 @@ export async function serializeAws_restJson1_1StopBackupJobCommand(
throw new Error("No value provided for input HTTP label: BackupJobId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1805,13 +1889,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["Tags"] = serializeAws_restJson1_1Tags(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1845,13 +1931,15 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1885,13 +1973,15 @@ export async function serializeAws_restJson1_1UpdateBackupPlanCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1942,13 +2032,15 @@ export async function serializeAws_restJson1_1UpdateRecoveryPointLifecycleComman
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-batch/protocols/Aws_restJson1_1.ts b/clients/client-batch/protocols/Aws_restJson1_1.ts
index f63b584cb1bc..790bd207e399 100644
--- a/clients/client-batch/protocols/Aws_restJson1_1.ts
+++ b/clients/client-batch/protocols/Aws_restJson1_1.ts
@@ -131,13 +131,15 @@ export async function serializeAws_restJson1_1CancelJobCommand(
bodyParams["reason"] = input.reason;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -169,13 +171,15 @@ export async function serializeAws_restJson1_1CreateComputeEnvironmentCommand(
bodyParams["type"] = input.type;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -206,13 +210,15 @@ export async function serializeAws_restJson1_1CreateJobQueueCommand(
bodyParams["state"] = input.state;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -229,13 +235,15 @@ export async function serializeAws_restJson1_1DeleteComputeEnvironmentCommand(
bodyParams["computeEnvironment"] = input.computeEnvironment;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -252,13 +260,15 @@ export async function serializeAws_restJson1_1DeleteJobQueueCommand(
bodyParams["jobQueue"] = input.jobQueue;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -275,13 +285,15 @@ export async function serializeAws_restJson1_1DeregisterJobDefinitionCommand(
bodyParams["jobDefinition"] = input.jobDefinition;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -307,13 +319,15 @@ export async function serializeAws_restJson1_1DescribeComputeEnvironmentsCommand
bodyParams["nextToken"] = input.nextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -345,13 +359,15 @@ export async function serializeAws_restJson1_1DescribeJobDefinitionsCommand(
bodyParams["status"] = input.status;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -377,13 +393,15 @@ export async function serializeAws_restJson1_1DescribeJobQueuesCommand(
bodyParams["nextToken"] = input.nextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -403,13 +421,15 @@ export async function serializeAws_restJson1_1DescribeJobsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -441,13 +461,15 @@ export async function serializeAws_restJson1_1ListJobsCommand(
bodyParams["nextToken"] = input.nextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -499,13 +521,15 @@ export async function serializeAws_restJson1_1RegisterJobDefinitionCommand(
bodyParams["type"] = input.type;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -572,13 +596,15 @@ export async function serializeAws_restJson1_1SubmitJobCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -598,13 +624,15 @@ export async function serializeAws_restJson1_1TerminateJobCommand(
bodyParams["reason"] = input.reason;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -635,13 +663,15 @@ export async function serializeAws_restJson1_1UpdateComputeEnvironmentCommand(
bodyParams["state"] = input.state;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -672,13 +702,15 @@ export async function serializeAws_restJson1_1UpdateJobQueueCommand(
bodyParams["state"] = input.state;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-budgets/protocols/Aws_json1_1.ts b/clients/client-budgets/protocols/Aws_json1_1.ts
index 43267ad7faff..7335473c4aee 100644
--- a/clients/client-budgets/protocols/Aws_json1_1.ts
+++ b/clients/client-budgets/protocols/Aws_json1_1.ts
@@ -3258,19 +3258,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-chime/protocols/Aws_restJson1_1.ts b/clients/client-chime/protocols/Aws_restJson1_1.ts
index a61602ccf287..7e47626c4b15 100644
--- a/clients/client-chime/protocols/Aws_restJson1_1.ts
+++ b/clients/client-chime/protocols/Aws_restJson1_1.ts
@@ -486,14 +486,16 @@ export async function serializeAws_restJson1_1AssociatePhoneNumberWithUserComman
bodyParams["E164PhoneNumber"] = input.E164PhoneNumber;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -537,14 +539,16 @@ export async function serializeAws_restJson1_1AssociatePhoneNumbersWithVoiceConn
bodyParams["ForceAssociate"] = input.ForceAssociate;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -588,14 +592,16 @@ export async function serializeAws_restJson1_1AssociatePhoneNumbersWithVoiceConn
bodyParams["ForceAssociate"] = input.ForceAssociate;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -632,14 +638,16 @@ export async function serializeAws_restJson1_1AssociateSigninDelegateGroupsWithA
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -676,14 +684,16 @@ export async function serializeAws_restJson1_1BatchCreateAttendeeCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -732,14 +742,16 @@ export async function serializeAws_restJson1_1BatchCreateRoomMembershipCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -762,14 +774,16 @@ export async function serializeAws_restJson1_1BatchDeletePhoneNumberCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -804,14 +818,16 @@ export async function serializeAws_restJson1_1BatchSuspendUserCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -846,14 +862,16 @@ export async function serializeAws_restJson1_1BatchUnsuspendUserCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -878,14 +896,16 @@ export async function serializeAws_restJson1_1BatchUpdatePhoneNumberCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -919,13 +939,15 @@ export async function serializeAws_restJson1_1BatchUpdateUserCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -942,13 +964,15 @@ export async function serializeAws_restJson1_1CreateAccountCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -977,13 +1001,15 @@ export async function serializeAws_restJson1_1CreateAttendeeCommand(
bodyParams["ExternalUserId"] = input.ExternalUserId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1015,13 +1041,15 @@ export async function serializeAws_restJson1_1CreateBotCommand(
bodyParams["Domain"] = input.Domain;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1055,13 +1083,15 @@ export async function serializeAws_restJson1_1CreateMeetingCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1086,13 +1116,15 @@ export async function serializeAws_restJson1_1CreatePhoneNumberOrderCommand(
bodyParams["ProductType"] = input.ProductType;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1127,13 +1159,15 @@ export async function serializeAws_restJson1_1CreateRoomCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1177,13 +1211,15 @@ export async function serializeAws_restJson1_1CreateRoomMembershipCommand(
bodyParams["Role"] = input.Role;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1221,14 +1257,16 @@ export async function serializeAws_restJson1_1CreateUserCommand(
bodyParams["Username"] = input.Username;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1251,13 +1289,15 @@ export async function serializeAws_restJson1_1CreateVoiceConnectorCommand(
bodyParams["RequireEncryption"] = input.RequireEncryption;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1282,13 +1322,15 @@ export async function serializeAws_restJson1_1CreateVoiceConnectorGroupCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1312,13 +1354,15 @@ export async function serializeAws_restJson1_1DeleteAccountCommand(
throw new Error("No value provided for input HTTP label: AccountId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1354,13 +1398,15 @@ export async function serializeAws_restJson1_1DeleteAttendeeCommand(
throw new Error("No value provided for input HTTP label: MeetingId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1396,13 +1442,15 @@ export async function serializeAws_restJson1_1DeleteEventsConfigurationCommand(
throw new Error("No value provided for input HTTP label: BotId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1426,13 +1474,15 @@ export async function serializeAws_restJson1_1DeleteMeetingCommand(
throw new Error("No value provided for input HTTP label: MeetingId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1458,13 +1508,15 @@ export async function serializeAws_restJson1_1DeletePhoneNumberCommand(
throw new Error("No value provided for input HTTP label: PhoneNumberId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1500,13 +1552,15 @@ export async function serializeAws_restJson1_1DeleteRoomCommand(
throw new Error("No value provided for input HTTP label: RoomId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1555,13 +1609,15 @@ export async function serializeAws_restJson1_1DeleteRoomMembershipCommand(
throw new Error("No value provided for input HTTP label: RoomId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1589,13 +1645,15 @@ export async function serializeAws_restJson1_1DeleteVoiceConnectorCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1623,13 +1681,15 @@ export async function serializeAws_restJson1_1DeleteVoiceConnectorGroupCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1657,13 +1717,15 @@ export async function serializeAws_restJson1_1DeleteVoiceConnectorOriginationCom
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1692,13 +1754,15 @@ export async function serializeAws_restJson1_1DeleteVoiceConnectorStreamingConfi
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1726,13 +1790,15 @@ export async function serializeAws_restJson1_1DeleteVoiceConnectorTerminationCom
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1772,14 +1838,16 @@ export async function serializeAws_restJson1_1DeleteVoiceConnectorTerminationCre
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1818,14 +1886,16 @@ export async function serializeAws_restJson1_1DisassociatePhoneNumberFromUserCom
operation: "disassociate-phone-number"
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1866,14 +1936,16 @@ export async function serializeAws_restJson1_1DisassociatePhoneNumbersFromVoiceC
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1914,14 +1986,16 @@ export async function serializeAws_restJson1_1DisassociatePhoneNumbersFromVoiceC
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1956,14 +2030,16 @@ export async function serializeAws_restJson1_1DisassociateSigninDelegateGroupsFr
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1987,13 +2063,15 @@ export async function serializeAws_restJson1_1GetAccountCommand(
throw new Error("No value provided for input HTTP label: AccountId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2017,13 +2095,15 @@ export async function serializeAws_restJson1_1GetAccountSettingsCommand(
throw new Error("No value provided for input HTTP label: AccountId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2059,13 +2139,15 @@ export async function serializeAws_restJson1_1GetAttendeeCommand(
throw new Error("No value provided for input HTTP label: MeetingId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2101,13 +2183,15 @@ export async function serializeAws_restJson1_1GetBotCommand(
throw new Error("No value provided for input HTTP label: BotId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2143,13 +2227,15 @@ export async function serializeAws_restJson1_1GetEventsConfigurationCommand(
throw new Error("No value provided for input HTTP label: BotId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2162,13 +2248,15 @@ export async function serializeAws_restJson1_1GetGlobalSettingsCommand(
let resolvedPath = "/settings";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2192,13 +2280,15 @@ export async function serializeAws_restJson1_1GetMeetingCommand(
throw new Error("No value provided for input HTTP label: MeetingId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2224,13 +2314,15 @@ export async function serializeAws_restJson1_1GetPhoneNumberCommand(
throw new Error("No value provided for input HTTP label: PhoneNumberId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2258,13 +2350,15 @@ export async function serializeAws_restJson1_1GetPhoneNumberOrderCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2277,13 +2371,15 @@ export async function serializeAws_restJson1_1GetPhoneNumberSettingsCommand(
let resolvedPath = "/settings/phone-number";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2319,13 +2415,15 @@ export async function serializeAws_restJson1_1GetRoomCommand(
throw new Error("No value provided for input HTTP label: RoomId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2361,13 +2459,15 @@ export async function serializeAws_restJson1_1GetUserCommand(
throw new Error("No value provided for input HTTP label: UserId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2403,13 +2503,15 @@ export async function serializeAws_restJson1_1GetUserSettingsCommand(
throw new Error("No value provided for input HTTP label: UserId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2437,13 +2539,15 @@ export async function serializeAws_restJson1_1GetVoiceConnectorCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2471,13 +2575,15 @@ export async function serializeAws_restJson1_1GetVoiceConnectorGroupCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2506,13 +2612,15 @@ export async function serializeAws_restJson1_1GetVoiceConnectorLoggingConfigurat
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2540,13 +2648,15 @@ export async function serializeAws_restJson1_1GetVoiceConnectorOriginationComman
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2575,13 +2685,15 @@ export async function serializeAws_restJson1_1GetVoiceConnectorStreamingConfigur
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2609,13 +2721,15 @@ export async function serializeAws_restJson1_1GetVoiceConnectorTerminationComman
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2643,13 +2757,15 @@ export async function serializeAws_restJson1_1GetVoiceConnectorTerminationHealth
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2687,14 +2803,16 @@ export async function serializeAws_restJson1_1InviteUsersCommand(
bodyParams["UserType"] = input.UserType;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2719,14 +2837,16 @@ export async function serializeAws_restJson1_1ListAccountsCommand(
query["user-email"] = input.UserEmail;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2757,14 +2877,16 @@ export async function serializeAws_restJson1_1ListAttendeesCommand(
query["next-token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2795,14 +2917,16 @@ export async function serializeAws_restJson1_1ListBotsCommand(
query["next-token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2821,14 +2945,16 @@ export async function serializeAws_restJson1_1ListMeetingsCommand(
query["next-token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2847,14 +2973,16 @@ export async function serializeAws_restJson1_1ListPhoneNumberOrdersCommand(
query["next-token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2885,14 +3013,16 @@ export async function serializeAws_restJson1_1ListPhoneNumbersCommand(
query["status"] = input.Status;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2935,14 +3065,16 @@ export async function serializeAws_restJson1_1ListRoomMembershipsCommand(
query["next-token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2976,14 +3108,16 @@ export async function serializeAws_restJson1_1ListRoomsCommand(
query["next-token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3020,14 +3154,16 @@ export async function serializeAws_restJson1_1ListUsersCommand(
query["user-type"] = input.UserType;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3046,14 +3182,16 @@ export async function serializeAws_restJson1_1ListVoiceConnectorGroupsCommand(
query["next-token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3082,13 +3220,15 @@ export async function serializeAws_restJson1_1ListVoiceConnectorTerminationCrede
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3107,14 +3247,16 @@ export async function serializeAws_restJson1_1ListVoiceConnectorsCommand(
query["next-token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3153,14 +3295,16 @@ export async function serializeAws_restJson1_1LogoutUserCommand(
operation: "logout"
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3205,13 +3349,15 @@ export async function serializeAws_restJson1_1PutEventsConfigurationCommand(
input.OutboundEventsHTTPSEndpoint;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3250,13 +3396,15 @@ export async function serializeAws_restJson1_1PutVoiceConnectorLoggingConfigurat
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3292,13 +3440,15 @@ export async function serializeAws_restJson1_1PutVoiceConnectorOriginationComman
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3337,13 +3487,15 @@ export async function serializeAws_restJson1_1PutVoiceConnectorStreamingConfigur
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3379,13 +3531,15 @@ export async function serializeAws_restJson1_1PutVoiceConnectorTerminationComman
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3425,14 +3579,16 @@ export async function serializeAws_restJson1_1PutVoiceConnectorTerminationCreden
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3471,14 +3627,16 @@ export async function serializeAws_restJson1_1RegenerateSecurityTokenCommand(
operation: "regenerate-security-token"
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3517,14 +3675,16 @@ export async function serializeAws_restJson1_1ResetPersonalPINCommand(
operation: "reset-personal-pin"
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3553,14 +3713,16 @@ export async function serializeAws_restJson1_1RestorePhoneNumberCommand(
operation: "restore"
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3596,14 +3758,16 @@ export async function serializeAws_restJson1_1SearchAvailablePhoneNumbersCommand
query["toll-free-prefix"] = input.TollFreePrefix;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3632,13 +3796,15 @@ export async function serializeAws_restJson1_1UpdateAccountCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3670,13 +3836,15 @@ export async function serializeAws_restJson1_1UpdateAccountSettingsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3717,13 +3885,15 @@ export async function serializeAws_restJson1_1UpdateBotCommand(
bodyParams["Disabled"] = input.Disabled;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3753,13 +3923,15 @@ export async function serializeAws_restJson1_1UpdateGlobalSettingsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3793,13 +3965,15 @@ export async function serializeAws_restJson1_1UpdatePhoneNumberCommand(
bodyParams["ProductType"] = input.ProductType;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3816,13 +3990,15 @@ export async function serializeAws_restJson1_1UpdatePhoneNumberSettingsCommand(
bodyParams["CallingName"] = input.CallingName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3863,13 +4039,15 @@ export async function serializeAws_restJson1_1UpdateRoomCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3923,13 +4101,15 @@ export async function serializeAws_restJson1_1UpdateRoomMembershipCommand(
bodyParams["Role"] = input.Role;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3981,13 +4161,15 @@ export async function serializeAws_restJson1_1UpdateUserCommand(
bodyParams["UserType"] = input.UserType;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4031,13 +4213,15 @@ export async function serializeAws_restJson1_1UpdateUserSettingsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4073,13 +4257,15 @@ export async function serializeAws_restJson1_1UpdateVoiceConnectorCommand(
bodyParams["RequireEncryption"] = input.RequireEncryption;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4120,13 +4306,15 @@ export async function serializeAws_restJson1_1UpdateVoiceConnectorGroupCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-cloud9/protocols/Aws_json1_1.ts b/clients/client-cloud9/protocols/Aws_json1_1.ts
index 8eb08e2c0c3d..eaa8491e2f0b 100644
--- a/clients/client-cloud9/protocols/Aws_json1_1.ts
+++ b/clients/client-cloud9/protocols/Aws_json1_1.ts
@@ -2304,19 +2304,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-clouddirectory/protocols/Aws_restJson1_1.ts b/clients/client-clouddirectory/protocols/Aws_restJson1_1.ts
index 80bf8ec8eb3e..e3bc87e8149f 100644
--- a/clients/client-clouddirectory/protocols/Aws_restJson1_1.ts
+++ b/clients/client-clouddirectory/protocols/Aws_restJson1_1.ts
@@ -439,13 +439,15 @@ export async function serializeAws_restJson1_1AddFacetToObjectCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -465,13 +467,15 @@ export async function serializeAws_restJson1_1ApplySchemaCommand(
bodyParams["PublishedSchemaArn"] = input.PublishedSchemaArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -503,13 +507,15 @@ export async function serializeAws_restJson1_1AttachObjectCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -538,13 +544,15 @@ export async function serializeAws_restJson1_1AttachPolicyCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -573,13 +581,15 @@ export async function serializeAws_restJson1_1AttachToIndexCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -628,13 +638,15 @@ export async function serializeAws_restJson1_1AttachTypedLinkCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -660,13 +672,15 @@ export async function serializeAws_restJson1_1BatchReadCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -689,13 +703,15 @@ export async function serializeAws_restJson1_1BatchWriteCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -715,13 +731,15 @@ export async function serializeAws_restJson1_1CreateDirectoryCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -753,13 +771,15 @@ export async function serializeAws_restJson1_1CreateFacetCommand(
bodyParams["ObjectType"] = input.ObjectType;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -796,13 +816,15 @@ export async function serializeAws_restJson1_1CreateIndexCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -842,13 +864,15 @@ export async function serializeAws_restJson1_1CreateObjectCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -865,13 +889,15 @@ export async function serializeAws_restJson1_1CreateSchemaCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -894,13 +920,15 @@ export async function serializeAws_restJson1_1CreateTypedLinkFacetCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -915,13 +943,15 @@ export async function serializeAws_restJson1_1DeleteDirectoryCommand(
}
let resolvedPath = "/amazonclouddirectory/2017-01-11/directory";
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -941,13 +971,15 @@ export async function serializeAws_restJson1_1DeleteFacetCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -970,13 +1002,15 @@ export async function serializeAws_restJson1_1DeleteObjectCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -991,13 +1025,15 @@ export async function serializeAws_restJson1_1DeleteSchemaCommand(
}
let resolvedPath = "/amazonclouddirectory/2017-01-11/schema";
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1017,13 +1053,15 @@ export async function serializeAws_restJson1_1DeleteTypedLinkFacetCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1052,13 +1090,15 @@ export async function serializeAws_restJson1_1DetachFromIndexCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1084,13 +1124,15 @@ export async function serializeAws_restJson1_1DetachObjectCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1119,13 +1161,15 @@ export async function serializeAws_restJson1_1DetachPolicyCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1150,13 +1194,15 @@ export async function serializeAws_restJson1_1DetachTypedLinkCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1171,13 +1217,15 @@ export async function serializeAws_restJson1_1DisableDirectoryCommand(
}
let resolvedPath = "/amazonclouddirectory/2017-01-11/directory/disable";
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1192,13 +1240,15 @@ export async function serializeAws_restJson1_1EnableDirectoryCommand(
}
let resolvedPath = "/amazonclouddirectory/2017-01-11/directory/enable";
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1215,13 +1265,15 @@ export async function serializeAws_restJson1_1GetAppliedSchemaVersionCommand(
bodyParams["SchemaArn"] = input.SchemaArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1236,13 +1288,15 @@ export async function serializeAws_restJson1_1GetDirectoryCommand(
}
let resolvedPath = "/amazonclouddirectory/2017-01-11/directory/get";
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1262,13 +1316,15 @@ export async function serializeAws_restJson1_1GetFacetCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1303,13 +1359,15 @@ export async function serializeAws_restJson1_1GetLinkAttributesCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1347,13 +1405,15 @@ export async function serializeAws_restJson1_1GetObjectAttributesCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1379,13 +1439,15 @@ export async function serializeAws_restJson1_1GetObjectInformationCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1400,13 +1462,15 @@ export async function serializeAws_restJson1_1GetSchemaAsJsonCommand(
}
let resolvedPath = "/amazonclouddirectory/2017-01-11/schema/json";
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1426,13 +1490,15 @@ export async function serializeAws_restJson1_1GetTypedLinkFacetInformationComman
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1458,13 +1524,15 @@ export async function serializeAws_restJson1_1ListAppliedSchemaArnsCommand(
bodyParams["SchemaArn"] = input.SchemaArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1496,13 +1564,15 @@ export async function serializeAws_restJson1_1ListAttachedIndicesCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1522,13 +1592,15 @@ export async function serializeAws_restJson1_1ListDevelopmentSchemaArnsCommand(
bodyParams["NextToken"] = input.NextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1551,13 +1623,15 @@ export async function serializeAws_restJson1_1ListDirectoriesCommand(
bodyParams["state"] = input.state;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1583,13 +1657,15 @@ export async function serializeAws_restJson1_1ListFacetAttributesCommand(
bodyParams["NextToken"] = input.NextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1612,13 +1688,15 @@ export async function serializeAws_restJson1_1ListFacetNamesCommand(
bodyParams["NextToken"] = input.NextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1666,13 +1744,15 @@ export async function serializeAws_restJson1_1ListIncomingTypedLinksCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1712,13 +1792,15 @@ export async function serializeAws_restJson1_1ListIndexCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1741,13 +1823,15 @@ export async function serializeAws_restJson1_1ListManagedSchemaArnsCommand(
bodyParams["SchemaArn"] = input.SchemaArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1785,13 +1869,15 @@ export async function serializeAws_restJson1_1ListObjectAttributesCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1823,13 +1909,15 @@ export async function serializeAws_restJson1_1ListObjectChildrenCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1858,13 +1946,15 @@ export async function serializeAws_restJson1_1ListObjectParentPathsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1900,13 +1990,15 @@ export async function serializeAws_restJson1_1ListObjectParentsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1938,13 +2030,15 @@ export async function serializeAws_restJson1_1ListObjectPoliciesCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1992,13 +2086,15 @@ export async function serializeAws_restJson1_1ListOutgoingTypedLinksCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2030,13 +2126,15 @@ export async function serializeAws_restJson1_1ListPolicyAttachmentsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2059,13 +2157,15 @@ export async function serializeAws_restJson1_1ListPublishedSchemaArnsCommand(
bodyParams["SchemaArn"] = input.SchemaArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2088,13 +2188,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
bodyParams["ResourceArn"] = input.ResourceArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2121,13 +2223,15 @@ export async function serializeAws_restJson1_1ListTypedLinkFacetAttributesComman
bodyParams["NextToken"] = input.NextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2150,13 +2254,15 @@ export async function serializeAws_restJson1_1ListTypedLinkFacetNamesCommand(
bodyParams["NextToken"] = input.NextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2185,13 +2291,15 @@ export async function serializeAws_restJson1_1LookupPolicyCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2217,13 +2325,15 @@ export async function serializeAws_restJson1_1PublishSchemaCommand(
bodyParams["Version"] = input.Version;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2243,13 +2353,15 @@ export async function serializeAws_restJson1_1PutSchemaFromJsonCommand(
bodyParams["Document"] = input.Document;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2278,13 +2390,15 @@ export async function serializeAws_restJson1_1RemoveFacetFromObjectCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2304,13 +2418,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["Tags"] = serializeAws_restJson1_1TagList(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2333,13 +2449,15 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2370,13 +2488,15 @@ export async function serializeAws_restJson1_1UpdateFacetCommand(
bodyParams["ObjectType"] = input.ObjectType;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2410,13 +2530,15 @@ export async function serializeAws_restJson1_1UpdateLinkAttributesCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2447,13 +2569,15 @@ export async function serializeAws_restJson1_1UpdateObjectAttributesCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2473,13 +2597,15 @@ export async function serializeAws_restJson1_1UpdateSchemaCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2515,13 +2641,15 @@ export async function serializeAws_restJson1_1UpdateTypedLinkFacetCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2544,13 +2672,15 @@ export async function serializeAws_restJson1_1UpgradeAppliedSchemaCommand(
bodyParams["PublishedSchemaArn"] = input.PublishedSchemaArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2576,13 +2706,15 @@ export async function serializeAws_restJson1_1UpgradePublishedSchemaCommand(
bodyParams["PublishedSchemaArn"] = input.PublishedSchemaArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-cloudformation/protocols/Aws_query.ts b/clients/client-cloudformation/protocols/Aws_query.ts
index 5962fdf5cc01..380c0aaa87ed 100644
--- a/clients/client-cloudformation/protocols/Aws_query.ts
+++ b/clients/client-cloudformation/protocols/Aws_query.ts
@@ -11678,19 +11678,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-cloudfront/protocols/Aws_restXml.ts b/clients/client-cloudfront/protocols/Aws_restXml.ts
index 40395ece71c8..ce34323c029c 100644
--- a/clients/client-cloudfront/protocols/Aws_restXml.ts
+++ b/clients/client-cloudfront/protocols/Aws_restXml.ts
@@ -386,13 +386,15 @@ export async function serializeAws_restXmlCreateCloudFrontOriginAccessIdentityCo
);
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -417,13 +419,15 @@ export async function serializeAws_restXmlCreateDistributionCommand(
);
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -451,14 +455,16 @@ export async function serializeAws_restXmlCreateDistributionWithTagsCommand(
);
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -483,13 +489,15 @@ export async function serializeAws_restXmlCreateFieldLevelEncryptionConfigComman
);
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -514,13 +522,15 @@ export async function serializeAws_restXmlCreateFieldLevelEncryptionProfileComma
);
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -559,13 +569,15 @@ export async function serializeAws_restXmlCreateInvalidationCommand(
);
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -590,13 +602,15 @@ export async function serializeAws_restXmlCreatePublicKeyCommand(
);
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -621,13 +635,15 @@ export async function serializeAws_restXmlCreateStreamingDistributionCommand(
);
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -655,14 +671,16 @@ export async function serializeAws_restXmlCreateStreamingDistributionWithTagsCom
);
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -689,13 +707,15 @@ export async function serializeAws_restXmlDeleteCloudFrontOriginAccessIdentityCo
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -722,13 +742,15 @@ export async function serializeAws_restXmlDeleteDistributionCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -755,13 +777,15 @@ export async function serializeAws_restXmlDeleteFieldLevelEncryptionConfigComman
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -788,13 +812,15 @@ export async function serializeAws_restXmlDeleteFieldLevelEncryptionProfileComma
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -821,13 +847,15 @@ export async function serializeAws_restXmlDeletePublicKeyCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -854,13 +882,15 @@ export async function serializeAws_restXmlDeleteStreamingDistributionCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -884,13 +914,15 @@ export async function serializeAws_restXmlGetCloudFrontOriginAccessIdentityComma
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -915,13 +947,15 @@ export async function serializeAws_restXmlGetCloudFrontOriginAccessIdentityConfi
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -945,13 +979,15 @@ export async function serializeAws_restXmlGetDistributionCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -975,13 +1011,15 @@ export async function serializeAws_restXmlGetDistributionConfigCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1005,13 +1043,15 @@ export async function serializeAws_restXmlGetFieldLevelEncryptionCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1035,13 +1075,15 @@ export async function serializeAws_restXmlGetFieldLevelEncryptionConfigCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1065,13 +1107,15 @@ export async function serializeAws_restXmlGetFieldLevelEncryptionProfileCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1095,13 +1139,15 @@ export async function serializeAws_restXmlGetFieldLevelEncryptionProfileConfigCo
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1140,13 +1186,15 @@ export async function serializeAws_restXmlGetInvalidationCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1170,13 +1218,15 @@ export async function serializeAws_restXmlGetPublicKeyCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1200,13 +1250,15 @@ export async function serializeAws_restXmlGetPublicKeyConfigCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1230,13 +1282,15 @@ export async function serializeAws_restXmlGetStreamingDistributionCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1260,13 +1314,15 @@ export async function serializeAws_restXmlGetStreamingDistributionConfigCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1285,14 +1341,16 @@ export async function serializeAws_restXmlListCloudFrontOriginAccessIdentitiesCo
query["MaxItems"] = input.MaxItems;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1311,14 +1369,16 @@ export async function serializeAws_restXmlListDistributionsCommand(
query["MaxItems"] = input.MaxItems;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1349,14 +1409,16 @@ export async function serializeAws_restXmlListDistributionsByWebACLIdCommand(
query["MaxItems"] = input.MaxItems;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1375,14 +1437,16 @@ export async function serializeAws_restXmlListFieldLevelEncryptionConfigsCommand
query["MaxItems"] = input.MaxItems;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1401,14 +1465,16 @@ export async function serializeAws_restXmlListFieldLevelEncryptionProfilesComman
query["MaxItems"] = input.MaxItems;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1441,14 +1507,16 @@ export async function serializeAws_restXmlListInvalidationsCommand(
query["MaxItems"] = input.MaxItems;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1467,14 +1535,16 @@ export async function serializeAws_restXmlListPublicKeysCommand(
query["MaxItems"] = input.MaxItems;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1493,14 +1563,16 @@ export async function serializeAws_restXmlListStreamingDistributionsCommand(
query["MaxItems"] = input.MaxItems;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1516,14 +1588,16 @@ export async function serializeAws_restXmlListTagsForResourceCommand(
query["Resource"] = input.Resource;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1551,14 +1625,16 @@ export async function serializeAws_restXmlTagResourceCommand(
);
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1586,14 +1662,16 @@ export async function serializeAws_restXmlUntagResourceCommand(
);
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1634,13 +1712,15 @@ export async function serializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCo
);
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1680,13 +1760,15 @@ export async function serializeAws_restXmlUpdateDistributionCommand(
);
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1726,13 +1808,15 @@ export async function serializeAws_restXmlUpdateFieldLevelEncryptionConfigComman
);
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1772,13 +1856,15 @@ export async function serializeAws_restXmlUpdateFieldLevelEncryptionProfileComma
);
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1818,13 +1904,15 @@ export async function serializeAws_restXmlUpdatePublicKeyCommand(
);
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1864,13 +1952,15 @@ export async function serializeAws_restXmlUpdateStreamingDistributionCommand(
);
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-cloudhsm-v2/protocols/Aws_json1_1.ts b/clients/client-cloudhsm-v2/protocols/Aws_json1_1.ts
index ddb98fdc9b49..a90df212576b 100644
--- a/clients/client-cloudhsm-v2/protocols/Aws_json1_1.ts
+++ b/clients/client-cloudhsm-v2/protocols/Aws_json1_1.ts
@@ -2713,19 +2713,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-cloudhsm/protocols/Aws_json1_1.ts b/clients/client-cloudhsm/protocols/Aws_json1_1.ts
index 419c8a0ab30f..891c7c429ac8 100644
--- a/clients/client-cloudhsm/protocols/Aws_json1_1.ts
+++ b/clients/client-cloudhsm/protocols/Aws_json1_1.ts
@@ -3071,19 +3071,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-cloudsearch-domain/protocols/Aws_restJson1_1.ts b/clients/client-cloudsearch-domain/protocols/Aws_restJson1_1.ts
index 62deff581650..f72b0c2be861 100644
--- a/clients/client-cloudsearch-domain/protocols/Aws_restJson1_1.ts
+++ b/clients/client-cloudsearch-domain/protocols/Aws_restJson1_1.ts
@@ -93,14 +93,16 @@ export async function serializeAws_restJson1_1SearchCommand(
query["stats"] = input.stats;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -125,14 +127,16 @@ export async function serializeAws_restJson1_1SuggestCommand(
query["suggester"] = input.suggester;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -153,14 +157,16 @@ export async function serializeAws_restJson1_1UploadDocumentsCommand(
if (input.documents !== undefined) {
body = input.documents;
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
diff --git a/clients/client-cloudsearch/protocols/Aws_query.ts b/clients/client-cloudsearch/protocols/Aws_query.ts
index eef804bd2548..970f6daeedc8 100644
--- a/clients/client-cloudsearch/protocols/Aws_query.ts
+++ b/clients/client-cloudsearch/protocols/Aws_query.ts
@@ -6279,19 +6279,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-cloudtrail/protocols/Aws_json1_1.ts b/clients/client-cloudtrail/protocols/Aws_json1_1.ts
index 13d89a3a2005..db35d728d4ab 100644
--- a/clients/client-cloudtrail/protocols/Aws_json1_1.ts
+++ b/clients/client-cloudtrail/protocols/Aws_json1_1.ts
@@ -5793,19 +5793,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-cloudwatch-events/protocols/Aws_json1_1.ts b/clients/client-cloudwatch-events/protocols/Aws_json1_1.ts
index 18aad8d14cba..a062a1f59c53 100644
--- a/clients/client-cloudwatch-events/protocols/Aws_json1_1.ts
+++ b/clients/client-cloudwatch-events/protocols/Aws_json1_1.ts
@@ -5553,19 +5553,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-cloudwatch-logs/protocols/Aws_json1_1.ts b/clients/client-cloudwatch-logs/protocols/Aws_json1_1.ts
index 9363066f40e0..e5db55d5b42f 100644
--- a/clients/client-cloudwatch-logs/protocols/Aws_json1_1.ts
+++ b/clients/client-cloudwatch-logs/protocols/Aws_json1_1.ts
@@ -6571,19 +6571,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-cloudwatch/protocols/Aws_query.ts b/clients/client-cloudwatch/protocols/Aws_query.ts
index 97cd9b698049..4ee8efe37ddf 100644
--- a/clients/client-cloudwatch/protocols/Aws_query.ts
+++ b/clients/client-cloudwatch/protocols/Aws_query.ts
@@ -6491,19 +6491,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-codebuild/protocols/Aws_json1_1.ts b/clients/client-codebuild/protocols/Aws_json1_1.ts
index 70987011f937..a03fb595fcd4 100644
--- a/clients/client-codebuild/protocols/Aws_json1_1.ts
+++ b/clients/client-codebuild/protocols/Aws_json1_1.ts
@@ -6732,19 +6732,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-codecommit/protocols/Aws_json1_1.ts b/clients/client-codecommit/protocols/Aws_json1_1.ts
index 7b3ccc713c39..99ad5ebd4634 100644
--- a/clients/client-codecommit/protocols/Aws_json1_1.ts
+++ b/clients/client-codecommit/protocols/Aws_json1_1.ts
@@ -28105,19 +28105,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-codedeploy/protocols/Aws_json1_1.ts b/clients/client-codedeploy/protocols/Aws_json1_1.ts
index 9b44fae83cfd..1cdc3ae20cdd 100644
--- a/clients/client-codedeploy/protocols/Aws_json1_1.ts
+++ b/clients/client-codedeploy/protocols/Aws_json1_1.ts
@@ -14968,19 +14968,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-codeguru-reviewer/protocols/Aws_restJson1_1.ts b/clients/client-codeguru-reviewer/protocols/Aws_restJson1_1.ts
index 43bbe5a3999e..0a17202ba3a7 100644
--- a/clients/client-codeguru-reviewer/protocols/Aws_restJson1_1.ts
+++ b/clients/client-codeguru-reviewer/protocols/Aws_restJson1_1.ts
@@ -64,13 +64,15 @@ export async function serializeAws_restJson1_1AssociateRepositoryCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -96,13 +98,15 @@ export async function serializeAws_restJson1_1DescribeRepositoryAssociationComma
throw new Error("No value provided for input HTTP label: AssociationArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -128,13 +132,15 @@ export async function serializeAws_restJson1_1DisassociateRepositoryCommand(
throw new Error("No value provided for input HTTP label: AssociationArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -165,14 +171,16 @@ export async function serializeAws_restJson1_1ListRepositoryAssociationsCommand(
query["State"] = (input.States || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
diff --git a/clients/client-codeguruprofiler/protocols/Aws_restJson1_1.ts b/clients/client-codeguruprofiler/protocols/Aws_restJson1_1.ts
index adcc2658b5e6..e1afcdb16e5f 100644
--- a/clients/client-codeguruprofiler/protocols/Aws_restJson1_1.ts
+++ b/clients/client-codeguruprofiler/protocols/Aws_restJson1_1.ts
@@ -93,13 +93,15 @@ export async function serializeAws_restJson1_1ConfigureAgentCommand(
bodyParams["fleetInstanceId"] = input.fleetInstanceId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -128,14 +130,16 @@ export async function serializeAws_restJson1_1CreateProfilingGroupCommand(
bodyParams["profilingGroupName"] = input.profilingGroupName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -163,13 +167,15 @@ export async function serializeAws_restJson1_1DeleteProfilingGroupCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -197,13 +203,15 @@ export async function serializeAws_restJson1_1DescribeProfilingGroupCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -225,14 +233,16 @@ export async function serializeAws_restJson1_1ListProfilingGroupsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -270,13 +280,15 @@ export async function serializeAws_restJson1_1UpdateProfilingGroupCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -324,14 +336,16 @@ export async function serializeAws_restJson1_1GetProfileCommand(
).toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -382,14 +396,16 @@ export async function serializeAws_restJson1_1ListProfileTimesCommand(
).toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -427,14 +443,16 @@ export async function serializeAws_restJson1_1PostAgentProfileCommand(
if (input.agentProfile !== undefined) {
body = input.agentProfile;
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
diff --git a/clients/client-codepipeline/protocols/Aws_json1_1.ts b/clients/client-codepipeline/protocols/Aws_json1_1.ts
index 523a99cce436..1442dbfe4d24 100644
--- a/clients/client-codepipeline/protocols/Aws_json1_1.ts
+++ b/clients/client-codepipeline/protocols/Aws_json1_1.ts
@@ -8847,19 +8847,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-codestar-connections/protocols/Aws_json1_0.ts b/clients/client-codestar-connections/protocols/Aws_json1_0.ts
index f6d83f3a5e92..0da88833a6ec 100644
--- a/clients/client-codestar-connections/protocols/Aws_json1_0.ts
+++ b/clients/client-codestar-connections/protocols/Aws_json1_0.ts
@@ -573,19 +573,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-codestar-notifications/protocols/Aws_restJson1_1.ts b/clients/client-codestar-notifications/protocols/Aws_restJson1_1.ts
index 0f41921512c1..3a7a41c3328c 100644
--- a/clients/client-codestar-notifications/protocols/Aws_restJson1_1.ts
+++ b/clients/client-codestar-notifications/protocols/Aws_restJson1_1.ts
@@ -123,13 +123,15 @@ export async function serializeAws_restJson1_1CreateNotificationRuleCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -146,13 +148,15 @@ export async function serializeAws_restJson1_1DeleteNotificationRuleCommand(
bodyParams["Arn"] = input.Arn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -172,13 +176,15 @@ export async function serializeAws_restJson1_1DeleteTargetCommand(
bodyParams["TargetAddress"] = input.TargetAddress;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -195,13 +201,15 @@ export async function serializeAws_restJson1_1DescribeNotificationRuleCommand(
bodyParams["Arn"] = input.Arn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -227,13 +235,15 @@ export async function serializeAws_restJson1_1ListEventTypesCommand(
bodyParams["NextToken"] = input.NextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -261,13 +271,15 @@ export async function serializeAws_restJson1_1ListNotificationRulesCommand(
bodyParams["NextToken"] = input.NextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -284,13 +296,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
bodyParams["Arn"] = input.Arn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -316,13 +330,15 @@ export async function serializeAws_restJson1_1ListTargetsCommand(
bodyParams["NextToken"] = input.NextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -348,13 +364,15 @@ export async function serializeAws_restJson1_1SubscribeCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -374,13 +392,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["Tags"] = serializeAws_restJson1_1Tags(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -400,13 +420,15 @@ export async function serializeAws_restJson1_1UnsubscribeCommand(
bodyParams["TargetAddress"] = input.TargetAddress;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -429,13 +451,15 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -473,13 +497,15 @@ export async function serializeAws_restJson1_1UpdateNotificationRuleCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-codestar/protocols/Aws_json1_1.ts b/clients/client-codestar/protocols/Aws_json1_1.ts
index 5ec1bb111dc6..7deb960872b1 100644
--- a/clients/client-codestar/protocols/Aws_json1_1.ts
+++ b/clients/client-codestar/protocols/Aws_json1_1.ts
@@ -3510,19 +3510,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-cognito-identity-provider/protocols/Aws_json1_1.ts b/clients/client-cognito-identity-provider/protocols/Aws_json1_1.ts
index 6713a5683053..472f317ae8d2 100644
--- a/clients/client-cognito-identity-provider/protocols/Aws_json1_1.ts
+++ b/clients/client-cognito-identity-provider/protocols/Aws_json1_1.ts
@@ -24200,19 +24200,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-cognito-identity/protocols/Aws_json1_1.ts b/clients/client-cognito-identity/protocols/Aws_json1_1.ts
index c802eb1b3c3e..b51aa6b997f4 100644
--- a/clients/client-cognito-identity/protocols/Aws_json1_1.ts
+++ b/clients/client-cognito-identity/protocols/Aws_json1_1.ts
@@ -4532,19 +4532,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-cognito-sync/protocols/Aws_restJson1_1.ts b/clients/client-cognito-sync/protocols/Aws_restJson1_1.ts
index 94d66b18f66a..d3dcf26e151a 100644
--- a/clients/client-cognito-sync/protocols/Aws_restJson1_1.ts
+++ b/clients/client-cognito-sync/protocols/Aws_restJson1_1.ts
@@ -126,13 +126,15 @@ export async function serializeAws_restJson1_1BulkPublishCommand(
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -185,13 +187,15 @@ export async function serializeAws_restJson1_1DeleteDatasetCommand(
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -244,13 +248,15 @@ export async function serializeAws_restJson1_1DescribeDatasetCommand(
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -276,13 +282,15 @@ export async function serializeAws_restJson1_1DescribeIdentityPoolUsageCommand(
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -320,13 +328,15 @@ export async function serializeAws_restJson1_1DescribeIdentityUsageCommand(
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -352,13 +362,15 @@ export async function serializeAws_restJson1_1GetBulkPublishDetailsCommand(
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -384,13 +396,15 @@ export async function serializeAws_restJson1_1GetCognitoEventsCommand(
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -416,13 +430,15 @@ export async function serializeAws_restJson1_1GetIdentityPoolConfigurationComman
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -468,14 +484,16 @@ export async function serializeAws_restJson1_1ListDatasetsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -494,14 +512,16 @@ export async function serializeAws_restJson1_1ListIdentityPoolUsageCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -567,14 +587,16 @@ export async function serializeAws_restJson1_1ListRecordsCommand(
query["syncSessionToken"] = input.SyncSessionToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -621,13 +643,15 @@ export async function serializeAws_restJson1_1RegisterDeviceCommand(
bodyParams["Token"] = input.Token;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -661,13 +685,15 @@ export async function serializeAws_restJson1_1SetCognitoEventsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -707,13 +733,15 @@ export async function serializeAws_restJson1_1SetIdentityPoolConfigurationComman
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -778,13 +806,15 @@ export async function serializeAws_restJson1_1SubscribeToDatasetCommand(
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -849,13 +879,15 @@ export async function serializeAws_restJson1_1UnsubscribeFromDatasetCommand(
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -925,13 +957,15 @@ export async function serializeAws_restJson1_1UpdateRecordsCommand(
bodyParams["SyncSessionToken"] = input.SyncSessionToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-comprehend/protocols/Aws_json1_1.ts b/clients/client-comprehend/protocols/Aws_json1_1.ts
index 73fccfeabcee..a3665f60c08c 100644
--- a/clients/client-comprehend/protocols/Aws_json1_1.ts
+++ b/clients/client-comprehend/protocols/Aws_json1_1.ts
@@ -10876,19 +10876,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-comprehendmedical/protocols/Aws_json1_1.ts b/clients/client-comprehendmedical/protocols/Aws_json1_1.ts
index 7cda45654a25..7ca2935cf6ca 100644
--- a/clients/client-comprehendmedical/protocols/Aws_json1_1.ts
+++ b/clients/client-comprehendmedical/protocols/Aws_json1_1.ts
@@ -3139,19 +3139,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-compute-optimizer/protocols/Aws_json1_0.ts b/clients/client-compute-optimizer/protocols/Aws_json1_0.ts
index 67cc6a60aa08..13a969a9df30 100644
--- a/clients/client-compute-optimizer/protocols/Aws_json1_0.ts
+++ b/clients/client-compute-optimizer/protocols/Aws_json1_0.ts
@@ -2140,19 +2140,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-config-service/protocols/Aws_json1_1.ts b/clients/client-config-service/protocols/Aws_json1_1.ts
index 08543d8fc111..d613da1a3d2b 100644
--- a/clients/client-config-service/protocols/Aws_json1_1.ts
+++ b/clients/client-config-service/protocols/Aws_json1_1.ts
@@ -17071,19 +17071,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-connect/protocols/Aws_restJson1_1.ts b/clients/client-connect/protocols/Aws_restJson1_1.ts
index 5a06bbfcc8fd..4775a4a34bf3 100644
--- a/clients/client-connect/protocols/Aws_restJson1_1.ts
+++ b/clients/client-connect/protocols/Aws_restJson1_1.ts
@@ -233,13 +233,15 @@ export async function serializeAws_restJson1_1CreateUserCommand(
bodyParams["Username"] = input.Username;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -275,13 +277,15 @@ export async function serializeAws_restJson1_1DeleteUserCommand(
throw new Error("No value provided for input HTTP label: UserId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -317,13 +321,15 @@ export async function serializeAws_restJson1_1DescribeUserCommand(
throw new Error("No value provided for input HTTP label: UserId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -363,13 +369,15 @@ export async function serializeAws_restJson1_1DescribeUserHierarchyGroupCommand(
throw new Error("No value provided for input HTTP label: InstanceId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -393,13 +401,15 @@ export async function serializeAws_restJson1_1DescribeUserHierarchyStructureComm
throw new Error("No value provided for input HTTP label: InstanceId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -439,13 +449,15 @@ export async function serializeAws_restJson1_1GetContactAttributesCommand(
throw new Error("No value provided for input HTTP label: InstanceId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -495,13 +507,15 @@ export async function serializeAws_restJson1_1GetCurrentMetricDataCommand(
bodyParams["NextToken"] = input.NextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -525,13 +539,15 @@ export async function serializeAws_restJson1_1GetFederationTokenCommand(
throw new Error("No value provided for input HTTP label: InstanceId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -587,13 +603,15 @@ export async function serializeAws_restJson1_1GetMetricDataCommand(
bodyParams["StartTime"] = Math.round(input.StartTime.getTime() / 1000);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -629,14 +647,16 @@ export async function serializeAws_restJson1_1ListContactFlowsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -667,14 +687,16 @@ export async function serializeAws_restJson1_1ListHoursOfOperationsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -715,14 +737,16 @@ export async function serializeAws_restJson1_1ListPhoneNumbersCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -756,14 +780,16 @@ export async function serializeAws_restJson1_1ListQueuesCommand(
query["queueTypes"] = (input.QueueTypes || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -794,14 +820,16 @@ export async function serializeAws_restJson1_1ListRoutingProfilesCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -832,14 +860,16 @@ export async function serializeAws_restJson1_1ListSecurityProfilesCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -865,13 +895,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: resourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -902,14 +934,16 @@ export async function serializeAws_restJson1_1ListUserHierarchyGroupsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -940,14 +974,16 @@ export async function serializeAws_restJson1_1ListUsersCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -993,13 +1029,15 @@ export async function serializeAws_restJson1_1StartChatContactCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1040,13 +1078,15 @@ export async function serializeAws_restJson1_1StartOutboundVoiceContactCommand(
bodyParams["SourcePhoneNumber"] = input.SourcePhoneNumber;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1066,13 +1106,15 @@ export async function serializeAws_restJson1_1StopContactCommand(
bodyParams["InstanceId"] = input.InstanceId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1103,13 +1145,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1139,14 +1183,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.tagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1172,13 +1218,15 @@ export async function serializeAws_restJson1_1UpdateContactAttributesCommand(
bodyParams["InstanceId"] = input.InstanceId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1219,13 +1267,15 @@ export async function serializeAws_restJson1_1UpdateUserHierarchyCommand(
bodyParams["HierarchyGroupId"] = input.HierarchyGroupId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1269,13 +1319,15 @@ export async function serializeAws_restJson1_1UpdateUserIdentityInfoCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1319,13 +1371,15 @@ export async function serializeAws_restJson1_1UpdateUserPhoneConfigCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1366,13 +1420,15 @@ export async function serializeAws_restJson1_1UpdateUserRoutingProfileCommand(
bodyParams["RoutingProfileId"] = input.RoutingProfileId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1418,13 +1474,15 @@ export async function serializeAws_restJson1_1UpdateUserSecurityProfilesCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-connectparticipant/protocols/Aws_restJson1_1.ts b/clients/client-connectparticipant/protocols/Aws_restJson1_1.ts
index 486b1703bcce..5e25445ebd67 100644
--- a/clients/client-connectparticipant/protocols/Aws_restJson1_1.ts
+++ b/clients/client-connectparticipant/protocols/Aws_restJson1_1.ts
@@ -61,13 +61,15 @@ export async function serializeAws_restJson1_1CreateParticipantConnectionCommand
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -90,13 +92,15 @@ export async function serializeAws_restJson1_1DisconnectParticipantCommand(
bodyParams["ClientToken"] = input.ClientToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -134,13 +138,15 @@ export async function serializeAws_restJson1_1GetTranscriptCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -169,13 +175,15 @@ export async function serializeAws_restJson1_1SendEventCommand(
bodyParams["ContentType"] = input.ContentType;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -204,13 +212,15 @@ export async function serializeAws_restJson1_1SendMessageCommand(
bodyParams["ContentType"] = input.ContentType;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-cost-and-usage-report-service/protocols/Aws_json1_1.ts b/clients/client-cost-and-usage-report-service/protocols/Aws_json1_1.ts
index cfa9b2513441..ab0d2f9c8b76 100644
--- a/clients/client-cost-and-usage-report-service/protocols/Aws_json1_1.ts
+++ b/clients/client-cost-and-usage-report-service/protocols/Aws_json1_1.ts
@@ -859,19 +859,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-cost-explorer/protocols/Aws_json1_1.ts b/clients/client-cost-explorer/protocols/Aws_json1_1.ts
index 49012959aa18..a7be17edbf4a 100644
--- a/clients/client-cost-explorer/protocols/Aws_json1_1.ts
+++ b/clients/client-cost-explorer/protocols/Aws_json1_1.ts
@@ -6041,19 +6041,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-data-pipeline/protocols/Aws_json1_1.ts b/clients/client-data-pipeline/protocols/Aws_json1_1.ts
index 8c331cfca3e2..6072b5df4993 100644
--- a/clients/client-data-pipeline/protocols/Aws_json1_1.ts
+++ b/clients/client-data-pipeline/protocols/Aws_json1_1.ts
@@ -3593,19 +3593,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-database-migration-service/protocols/Aws_json1_1.ts b/clients/client-database-migration-service/protocols/Aws_json1_1.ts
index 9bbe5821321f..947cc668606e 100644
--- a/clients/client-database-migration-service/protocols/Aws_json1_1.ts
+++ b/clients/client-database-migration-service/protocols/Aws_json1_1.ts
@@ -9950,19 +9950,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-dataexchange/protocols/Aws_restJson1_1.ts b/clients/client-dataexchange/protocols/Aws_restJson1_1.ts
index 12bd17cae829..1597b3a0bb5b 100644
--- a/clients/client-dataexchange/protocols/Aws_restJson1_1.ts
+++ b/clients/client-dataexchange/protocols/Aws_restJson1_1.ts
@@ -152,13 +152,15 @@ export async function serializeAws_restJson1_1CancelJobCommand(
throw new Error("No value provided for input HTTP label: JobId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -187,13 +189,15 @@ export async function serializeAws_restJson1_1CreateDataSetCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -216,13 +220,15 @@ export async function serializeAws_restJson1_1CreateJobCommand(
bodyParams["Type"] = input.Type;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -257,13 +263,15 @@ export async function serializeAws_restJson1_1CreateRevisionCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -312,13 +320,15 @@ export async function serializeAws_restJson1_1DeleteAssetCommand(
throw new Error("No value provided for input HTTP label: RevisionId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -342,13 +352,15 @@ export async function serializeAws_restJson1_1DeleteDataSetCommand(
throw new Error("No value provided for input HTTP label: DataSetId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -384,13 +396,15 @@ export async function serializeAws_restJson1_1DeleteRevisionCommand(
throw new Error("No value provided for input HTTP label: RevisionId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -439,13 +453,15 @@ export async function serializeAws_restJson1_1GetAssetCommand(
throw new Error("No value provided for input HTTP label: RevisionId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -469,13 +485,15 @@ export async function serializeAws_restJson1_1GetDataSetCommand(
throw new Error("No value provided for input HTTP label: DataSetId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -499,13 +517,15 @@ export async function serializeAws_restJson1_1GetJobCommand(
throw new Error("No value provided for input HTTP label: JobId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -541,13 +561,15 @@ export async function serializeAws_restJson1_1GetRevisionCommand(
throw new Error("No value provided for input HTTP label: RevisionId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -578,14 +600,16 @@ export async function serializeAws_restJson1_1ListDataSetRevisionsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -607,14 +631,16 @@ export async function serializeAws_restJson1_1ListDataSetsCommand(
query["origin"] = input.Origin;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -639,14 +665,16 @@ export async function serializeAws_restJson1_1ListJobsCommand(
query["revisionId"] = input.RevisionId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -689,14 +717,16 @@ export async function serializeAws_restJson1_1ListRevisionAssetsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -722,13 +752,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: ResourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -752,13 +784,15 @@ export async function serializeAws_restJson1_1StartJobCommand(
throw new Error("No value provided for input HTTP label: JobId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -792,13 +826,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -828,14 +864,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.TagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -889,13 +927,15 @@ export async function serializeAws_restJson1_1UpdateAssetCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -927,13 +967,15 @@ export async function serializeAws_restJson1_1UpdateDataSetCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -977,13 +1019,15 @@ export async function serializeAws_restJson1_1UpdateRevisionCommand(
bodyParams["Finalized"] = input.Finalized;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-datasync/protocols/Aws_json1_1.ts b/clients/client-datasync/protocols/Aws_json1_1.ts
index 3a4032404843..024c5275df52 100644
--- a/clients/client-datasync/protocols/Aws_json1_1.ts
+++ b/clients/client-datasync/protocols/Aws_json1_1.ts
@@ -4417,19 +4417,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-dax/protocols/Aws_json1_1.ts b/clients/client-dax/protocols/Aws_json1_1.ts
index 8b07bae7ac01..97b237bb08e5 100644
--- a/clients/client-dax/protocols/Aws_json1_1.ts
+++ b/clients/client-dax/protocols/Aws_json1_1.ts
@@ -5129,19 +5129,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-detective/protocols/Aws_restJson1_1.ts b/clients/client-detective/protocols/Aws_restJson1_1.ts
index 0766c5268b84..abecf0c4d964 100644
--- a/clients/client-detective/protocols/Aws_restJson1_1.ts
+++ b/clients/client-detective/protocols/Aws_restJson1_1.ts
@@ -78,13 +78,15 @@ export async function serializeAws_restJson1_1AcceptInvitationCommand(
bodyParams["GraphArn"] = input.GraphArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -97,13 +99,15 @@ export async function serializeAws_restJson1_1CreateGraphCommand(
let resolvedPath = "/graph";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -129,13 +133,15 @@ export async function serializeAws_restJson1_1CreateMembersCommand(
bodyParams["Message"] = input.Message;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -152,13 +158,15 @@ export async function serializeAws_restJson1_1DeleteGraphCommand(
bodyParams["GraphArn"] = input.GraphArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -181,13 +189,15 @@ export async function serializeAws_restJson1_1DeleteMembersCommand(
bodyParams["GraphArn"] = input.GraphArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -204,13 +214,15 @@ export async function serializeAws_restJson1_1DisassociateMembershipCommand(
bodyParams["GraphArn"] = input.GraphArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -233,13 +245,15 @@ export async function serializeAws_restJson1_1GetMembersCommand(
bodyParams["GraphArn"] = input.GraphArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -259,13 +273,15 @@ export async function serializeAws_restJson1_1ListGraphsCommand(
bodyParams["NextToken"] = input.NextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -285,13 +301,15 @@ export async function serializeAws_restJson1_1ListInvitationsCommand(
bodyParams["NextToken"] = input.NextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -314,13 +332,15 @@ export async function serializeAws_restJson1_1ListMembersCommand(
bodyParams["NextToken"] = input.NextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -337,13 +357,15 @@ export async function serializeAws_restJson1_1RejectInvitationCommand(
bodyParams["GraphArn"] = input.GraphArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-device-farm/protocols/Aws_json1_1.ts b/clients/client-device-farm/protocols/Aws_json1_1.ts
index b2b63368631d..0ddd93c6d1db 100644
--- a/clients/client-device-farm/protocols/Aws_json1_1.ts
+++ b/clients/client-device-farm/protocols/Aws_json1_1.ts
@@ -14209,19 +14209,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-direct-connect/protocols/Aws_json1_1.ts b/clients/client-direct-connect/protocols/Aws_json1_1.ts
index c34c733405e7..2d9830aef3b4 100644
--- a/clients/client-direct-connect/protocols/Aws_json1_1.ts
+++ b/clients/client-direct-connect/protocols/Aws_json1_1.ts
@@ -8240,19 +8240,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-directory-service/protocols/Aws_json1_1.ts b/clients/client-directory-service/protocols/Aws_json1_1.ts
index 646c9cda8fa2..c0767a36b808 100644
--- a/clients/client-directory-service/protocols/Aws_json1_1.ts
+++ b/clients/client-directory-service/protocols/Aws_json1_1.ts
@@ -11817,19 +11817,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-dlm/protocols/Aws_restJson1_1.ts b/clients/client-dlm/protocols/Aws_restJson1_1.ts
index 9df60fbbfa5b..25d536004fcd 100644
--- a/clients/client-dlm/protocols/Aws_restJson1_1.ts
+++ b/clients/client-dlm/protocols/Aws_restJson1_1.ts
@@ -91,13 +91,15 @@ export async function serializeAws_restJson1_1CreateLifecyclePolicyCommand(
bodyParams["Tags"] = serializeAws_restJson1_1TagMap(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -121,13 +123,15 @@ export async function serializeAws_restJson1_1DeleteLifecyclePolicyCommand(
throw new Error("No value provided for input HTTP label: PolicyId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -155,14 +159,16 @@ export async function serializeAws_restJson1_1GetLifecyclePoliciesCommand(
query["targetTags"] = (input.TargetTags || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -186,13 +192,15 @@ export async function serializeAws_restJson1_1GetLifecyclePolicyCommand(
throw new Error("No value provided for input HTTP label: PolicyId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -218,13 +226,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: ResourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -255,13 +265,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["Tags"] = serializeAws_restJson1_1TagMap(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -291,14 +303,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.TagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -339,13 +353,15 @@ export async function serializeAws_restJson1_1UpdateLifecyclePolicyCommand(
bodyParams["State"] = input.State;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-docdb/protocols/Aws_query.ts b/clients/client-docdb/protocols/Aws_query.ts
index 62605928f33a..5b20bd7bdf42 100644
--- a/clients/client-docdb/protocols/Aws_query.ts
+++ b/clients/client-docdb/protocols/Aws_query.ts
@@ -10882,19 +10882,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-dynamodb-streams/protocols/Aws_json1_0.ts b/clients/client-dynamodb-streams/protocols/Aws_json1_0.ts
index c2ea94138f65..8b594f8493fb 100644
--- a/clients/client-dynamodb-streams/protocols/Aws_json1_0.ts
+++ b/clients/client-dynamodb-streams/protocols/Aws_json1_0.ts
@@ -1180,19 +1180,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-dynamodb/protocols/Aws_json1_0.ts b/clients/client-dynamodb/protocols/Aws_json1_0.ts
index fb9a1b3d1060..91aa24812405 100644
--- a/clients/client-dynamodb/protocols/Aws_json1_0.ts
+++ b/clients/client-dynamodb/protocols/Aws_json1_0.ts
@@ -11743,19 +11743,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-ebs/protocols/Aws_restJson1_1.ts b/clients/client-ebs/protocols/Aws_restJson1_1.ts
index 7130183d82ac..0fd01aa129d1 100644
--- a/clients/client-ebs/protocols/Aws_restJson1_1.ts
+++ b/clients/client-ebs/protocols/Aws_restJson1_1.ts
@@ -67,14 +67,16 @@ export async function serializeAws_restJson1_1GetSnapshotBlockCommand(
query["blockToken"] = input.BlockToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -115,14 +117,16 @@ export async function serializeAws_restJson1_1ListChangedBlocksCommand(
query["startingBlockIndex"] = input.StartingBlockIndex.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -156,14 +160,16 @@ export async function serializeAws_restJson1_1ListSnapshotBlocksCommand(
query["startingBlockIndex"] = input.StartingBlockIndex.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
diff --git a/clients/client-ec2-instance-connect/protocols/Aws_json1_1.ts b/clients/client-ec2-instance-connect/protocols/Aws_json1_1.ts
index b96050bde72b..d2c9694fe202 100644
--- a/clients/client-ec2-instance-connect/protocols/Aws_json1_1.ts
+++ b/clients/client-ec2-instance-connect/protocols/Aws_json1_1.ts
@@ -366,19 +366,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-ec2/protocols/Aws_ec2.ts b/clients/client-ec2/protocols/Aws_ec2.ts
index 5939e4f9de1a..691b221d0d94 100644
--- a/clients/client-ec2/protocols/Aws_ec2.ts
+++ b/clients/client-ec2/protocols/Aws_ec2.ts
@@ -78708,19 +78708,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-ecr/protocols/Aws_json1_1.ts b/clients/client-ecr/protocols/Aws_json1_1.ts
index 02c7b6460396..d23b7596ab6c 100644
--- a/clients/client-ecr/protocols/Aws_json1_1.ts
+++ b/clients/client-ecr/protocols/Aws_json1_1.ts
@@ -6326,19 +6326,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-ecs/protocols/Aws_json1_1.ts b/clients/client-ecs/protocols/Aws_json1_1.ts
index 4157a1a55a31..4540eed51108 100644
--- a/clients/client-ecs/protocols/Aws_json1_1.ts
+++ b/clients/client-ecs/protocols/Aws_json1_1.ts
@@ -13598,19 +13598,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-efs/protocols/Aws_restJson1_1.ts b/clients/client-efs/protocols/Aws_restJson1_1.ts
index 165783f3b793..21fbcddb5b5b 100644
--- a/clients/client-efs/protocols/Aws_restJson1_1.ts
+++ b/clients/client-efs/protocols/Aws_restJson1_1.ts
@@ -177,13 +177,15 @@ export async function serializeAws_restJson1_1CreateAccessPointCommand(
bodyParams["Tags"] = serializeAws_restJson1_1Tags(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -222,13 +224,15 @@ export async function serializeAws_restJson1_1CreateFileSystemCommand(
bodyParams["ThroughputMode"] = input.ThroughputMode;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -257,13 +261,15 @@ export async function serializeAws_restJson1_1CreateMountTargetCommand(
bodyParams["SubnetId"] = input.SubnetId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -294,13 +300,15 @@ export async function serializeAws_restJson1_1CreateTagsCommand(
bodyParams["Tags"] = serializeAws_restJson1_1Tags(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -326,13 +334,15 @@ export async function serializeAws_restJson1_1DeleteAccessPointCommand(
throw new Error("No value provided for input HTTP label: AccessPointId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -358,13 +368,15 @@ export async function serializeAws_restJson1_1DeleteFileSystemCommand(
throw new Error("No value provided for input HTTP label: FileSystemId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -390,13 +402,15 @@ export async function serializeAws_restJson1_1DeleteFileSystemPolicyCommand(
throw new Error("No value provided for input HTTP label: FileSystemId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -422,13 +436,15 @@ export async function serializeAws_restJson1_1DeleteMountTargetCommand(
throw new Error("No value provided for input HTTP label: MountTargetId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -462,13 +478,15 @@ export async function serializeAws_restJson1_1DeleteTagsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -493,14 +511,16 @@ export async function serializeAws_restJson1_1DescribeAccessPointsCommand(
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -526,13 +546,15 @@ export async function serializeAws_restJson1_1DescribeFileSystemPolicyCommand(
throw new Error("No value provided for input HTTP label: FileSystemId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -557,14 +579,16 @@ export async function serializeAws_restJson1_1DescribeFileSystemsCommand(
query["MaxItems"] = input.MaxItems.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -591,13 +615,15 @@ export async function serializeAws_restJson1_1DescribeLifecycleConfigurationComm
throw new Error("No value provided for input HTTP label: FileSystemId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -624,13 +650,15 @@ export async function serializeAws_restJson1_1DescribeMountTargetSecurityGroupsC
throw new Error("No value provided for input HTTP label: MountTargetId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -658,14 +686,16 @@ export async function serializeAws_restJson1_1DescribeMountTargetsCommand(
query["MountTargetId"] = input.MountTargetId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -698,14 +728,16 @@ export async function serializeAws_restJson1_1DescribeTagsCommand(
query["MaxItems"] = input.MaxItems.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -736,14 +768,16 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -778,13 +812,15 @@ export async function serializeAws_restJson1_1ModifyMountTargetSecurityGroupsCom
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -819,13 +855,15 @@ export async function serializeAws_restJson1_1PutFileSystemPolicyCommand(
bodyParams["Policy"] = input.Policy;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -860,13 +898,15 @@ export async function serializeAws_restJson1_1PutLifecycleConfigurationCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -895,13 +935,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["Tags"] = serializeAws_restJson1_1Tags(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -933,13 +975,15 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -974,13 +1018,15 @@ export async function serializeAws_restJson1_1UpdateFileSystemCommand(
bodyParams["ThroughputMode"] = input.ThroughputMode;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-eks/protocols/Aws_restJson1_1.ts b/clients/client-eks/protocols/Aws_restJson1_1.ts
index 5cef1ca3f0d7..ffb6e24c5ef4 100644
--- a/clients/client-eks/protocols/Aws_restJson1_1.ts
+++ b/clients/client-eks/protocols/Aws_restJson1_1.ts
@@ -173,13 +173,15 @@ export async function serializeAws_restJson1_1CreateClusterCommand(
bodyParams["version"] = input.version;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -234,13 +236,15 @@ export async function serializeAws_restJson1_1CreateFargateProfileCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -327,13 +331,15 @@ export async function serializeAws_restJson1_1CreateNodegroupCommand(
bodyParams["version"] = input.version;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -357,13 +363,15 @@ export async function serializeAws_restJson1_1DeleteClusterCommand(
throw new Error("No value provided for input HTTP label: name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -406,13 +414,15 @@ export async function serializeAws_restJson1_1DeleteFargateProfileCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -452,13 +462,15 @@ export async function serializeAws_restJson1_1DeleteNodegroupCommand(
throw new Error("No value provided for input HTTP label: nodegroupName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -482,13 +494,15 @@ export async function serializeAws_restJson1_1DescribeClusterCommand(
throw new Error("No value provided for input HTTP label: name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -531,13 +545,15 @@ export async function serializeAws_restJson1_1DescribeFargateProfileCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -577,13 +593,15 @@ export async function serializeAws_restJson1_1DescribeNodegroupCommand(
throw new Error("No value provided for input HTTP label: nodegroupName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -623,14 +641,16 @@ export async function serializeAws_restJson1_1DescribeUpdateCommand(
query["nodegroupName"] = input.nodegroupName;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -649,14 +669,16 @@ export async function serializeAws_restJson1_1ListClustersCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -689,14 +711,16 @@ export async function serializeAws_restJson1_1ListFargateProfilesCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -729,14 +753,16 @@ export async function serializeAws_restJson1_1ListNodegroupsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -762,13 +788,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: resourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -802,14 +830,16 @@ export async function serializeAws_restJson1_1ListUpdatesCommand(
query["nodegroupName"] = input.nodegroupName;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -840,13 +870,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -876,14 +908,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.tagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -927,13 +961,15 @@ export async function serializeAws_restJson1_1UpdateClusterConfigCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -968,13 +1004,15 @@ export async function serializeAws_restJson1_1UpdateClusterVersionCommand(
bodyParams["version"] = input.version;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1037,13 +1075,15 @@ export async function serializeAws_restJson1_1UpdateNodegroupConfigCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1101,13 +1141,15 @@ export async function serializeAws_restJson1_1UpdateNodegroupVersionCommand(
bodyParams["version"] = input.version;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-elastic-beanstalk/protocols/Aws_query.ts b/clients/client-elastic-beanstalk/protocols/Aws_query.ts
index d26f3e62b9c8..8da23f8925a0 100644
--- a/clients/client-elastic-beanstalk/protocols/Aws_query.ts
+++ b/clients/client-elastic-beanstalk/protocols/Aws_query.ts
@@ -9699,19 +9699,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-elastic-inference/protocols/Aws_restJson1_1.ts b/clients/client-elastic-inference/protocols/Aws_restJson1_1.ts
index e2bad5bf9a6a..811f630f5b95 100644
--- a/clients/client-elastic-inference/protocols/Aws_restJson1_1.ts
+++ b/clients/client-elastic-inference/protocols/Aws_restJson1_1.ts
@@ -52,13 +52,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: resourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -89,13 +91,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -125,14 +129,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.tagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
diff --git a/clients/client-elastic-load-balancing-v2/protocols/Aws_query.ts b/clients/client-elastic-load-balancing-v2/protocols/Aws_query.ts
index 295ba458692a..57dc5daf64ab 100644
--- a/clients/client-elastic-load-balancing-v2/protocols/Aws_query.ts
+++ b/clients/client-elastic-load-balancing-v2/protocols/Aws_query.ts
@@ -9753,19 +9753,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-elastic-load-balancing/protocols/Aws_query.ts b/clients/client-elastic-load-balancing/protocols/Aws_query.ts
index 87c8b54177b7..d0bda432293e 100644
--- a/clients/client-elastic-load-balancing/protocols/Aws_query.ts
+++ b/clients/client-elastic-load-balancing/protocols/Aws_query.ts
@@ -6673,19 +6673,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-elastic-transcoder/protocols/Aws_restJson1_1.ts b/clients/client-elastic-transcoder/protocols/Aws_restJson1_1.ts
index 20c50bc4da35..3641c268019e 100644
--- a/clients/client-elastic-transcoder/protocols/Aws_restJson1_1.ts
+++ b/clients/client-elastic-transcoder/protocols/Aws_restJson1_1.ts
@@ -141,13 +141,15 @@ export async function serializeAws_restJson1_1CancelJobCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -203,13 +205,15 @@ export async function serializeAws_restJson1_1CreateJobCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -258,13 +262,15 @@ export async function serializeAws_restJson1_1CreatePipelineCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -305,13 +311,15 @@ export async function serializeAws_restJson1_1CreatePresetCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -335,13 +343,15 @@ export async function serializeAws_restJson1_1DeletePipelineCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -365,13 +375,15 @@ export async function serializeAws_restJson1_1DeletePresetCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -402,14 +414,16 @@ export async function serializeAws_restJson1_1ListJobsByPipelineCommand(
query["PageToken"] = input.PageToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -440,14 +454,16 @@ export async function serializeAws_restJson1_1ListJobsByStatusCommand(
query["PageToken"] = input.PageToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -466,14 +482,16 @@ export async function serializeAws_restJson1_1ListPipelinesCommand(
query["PageToken"] = input.PageToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -492,14 +510,16 @@ export async function serializeAws_restJson1_1ListPresetsCommand(
query["PageToken"] = input.PageToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -523,13 +543,15 @@ export async function serializeAws_restJson1_1ReadJobCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -553,13 +575,15 @@ export async function serializeAws_restJson1_1ReadPipelineCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -583,13 +607,15 @@ export async function serializeAws_restJson1_1ReadPresetCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -618,13 +644,15 @@ export async function serializeAws_restJson1_1TestRoleCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -682,13 +710,15 @@ export async function serializeAws_restJson1_1UpdatePipelineCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -720,13 +750,15 @@ export async function serializeAws_restJson1_1UpdatePipelineNotificationsCommand
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -755,13 +787,15 @@ export async function serializeAws_restJson1_1UpdatePipelineStatusCommand(
bodyParams["Status"] = input.Status;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-elasticache/protocols/Aws_query.ts b/clients/client-elasticache/protocols/Aws_query.ts
index 8a7a136b70d7..228810d4e407 100644
--- a/clients/client-elasticache/protocols/Aws_query.ts
+++ b/clients/client-elasticache/protocols/Aws_query.ts
@@ -13869,19 +13869,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-elasticsearch-service/protocols/Aws_restJson1_1.ts b/clients/client-elasticsearch-service/protocols/Aws_restJson1_1.ts
index a2a41181f06c..df4431633f2a 100644
--- a/clients/client-elasticsearch-service/protocols/Aws_restJson1_1.ts
+++ b/clients/client-elasticsearch-service/protocols/Aws_restJson1_1.ts
@@ -176,13 +176,15 @@ export async function serializeAws_restJson1_1AddTagsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -199,13 +201,15 @@ export async function serializeAws_restJson1_1CancelElasticsearchServiceSoftware
bodyParams["DomainName"] = input.DomainName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -298,13 +302,15 @@ export async function serializeAws_restJson1_1CreateElasticsearchDomainCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -328,13 +334,15 @@ export async function serializeAws_restJson1_1DeleteElasticsearchDomainCommand(
throw new Error("No value provided for input HTTP label: DomainName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -347,13 +355,15 @@ export async function serializeAws_restJson1_1DeleteElasticsearchServiceRoleComm
let resolvedPath = "/2015-01-01/es/role";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -377,13 +387,15 @@ export async function serializeAws_restJson1_1DescribeElasticsearchDomainCommand
throw new Error("No value provided for input HTTP label: DomainName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -407,13 +419,15 @@ export async function serializeAws_restJson1_1DescribeElasticsearchDomainConfigC
throw new Error("No value provided for input HTTP label: DomainName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -433,13 +447,15 @@ export async function serializeAws_restJson1_1DescribeElasticsearchDomainsComman
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -486,14 +502,16 @@ export async function serializeAws_restJson1_1DescribeElasticsearchInstanceTypeL
query["domainName"] = input.DomainName;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -515,14 +533,16 @@ export async function serializeAws_restJson1_1DescribeReservedElasticsearchInsta
query["offeringId"] = input.ReservedElasticsearchInstanceOfferingId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -544,14 +564,16 @@ export async function serializeAws_restJson1_1DescribeReservedElasticsearchInsta
query["reservationId"] = input.ReservedElasticsearchInstanceId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -567,14 +589,16 @@ export async function serializeAws_restJson1_1GetCompatibleElasticsearchVersions
query["domainName"] = input.DomainName;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -605,14 +629,16 @@ export async function serializeAws_restJson1_1GetUpgradeHistoryCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -636,13 +662,15 @@ export async function serializeAws_restJson1_1GetUpgradeStatusCommand(
throw new Error("No value provided for input HTTP label: DomainName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -655,13 +683,15 @@ export async function serializeAws_restJson1_1ListDomainNamesCommand(
let resolvedPath = "/2015-01-01/domain";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -699,14 +729,16 @@ export async function serializeAws_restJson1_1ListElasticsearchInstanceTypesComm
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -725,14 +757,16 @@ export async function serializeAws_restJson1_1ListElasticsearchVersionsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -748,14 +782,16 @@ export async function serializeAws_restJson1_1ListTagsCommand(
query["arn"] = input.ARN;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -779,13 +815,15 @@ export async function serializeAws_restJson1_1PurchaseReservedElasticsearchInsta
input.ReservedElasticsearchInstanceOfferingId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -808,13 +846,15 @@ export async function serializeAws_restJson1_1RemoveTagsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -831,13 +871,15 @@ export async function serializeAws_restJson1_1StartElasticsearchServiceSoftwareU
bodyParams["DomainName"] = input.DomainName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -920,13 +962,15 @@ export async function serializeAws_restJson1_1UpdateElasticsearchDomainConfigCom
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -949,13 +993,15 @@ export async function serializeAws_restJson1_1UpgradeElasticsearchDomainCommand(
bodyParams["TargetVersion"] = input.TargetVersion;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-emr/protocols/Aws_json1_1.ts b/clients/client-emr/protocols/Aws_json1_1.ts
index bd36b305e967..26239882a5c1 100644
--- a/clients/client-emr/protocols/Aws_json1_1.ts
+++ b/clients/client-emr/protocols/Aws_json1_1.ts
@@ -7678,19 +7678,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-eventbridge/protocols/Aws_json1_1.ts b/clients/client-eventbridge/protocols/Aws_json1_1.ts
index 18aad8d14cba..a062a1f59c53 100644
--- a/clients/client-eventbridge/protocols/Aws_json1_1.ts
+++ b/clients/client-eventbridge/protocols/Aws_json1_1.ts
@@ -5553,19 +5553,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-firehose/protocols/Aws_json1_1.ts b/clients/client-firehose/protocols/Aws_json1_1.ts
index 9ee9806c47f5..bbe228f52ea9 100644
--- a/clients/client-firehose/protocols/Aws_json1_1.ts
+++ b/clients/client-firehose/protocols/Aws_json1_1.ts
@@ -4570,19 +4570,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-fms/protocols/Aws_json1_1.ts b/clients/client-fms/protocols/Aws_json1_1.ts
index ab551bded64a..3a29df03d8f9 100644
--- a/clients/client-fms/protocols/Aws_json1_1.ts
+++ b/clients/client-fms/protocols/Aws_json1_1.ts
@@ -3094,19 +3094,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-forecast/protocols/Aws_json1_1.ts b/clients/client-forecast/protocols/Aws_json1_1.ts
index 50c4214ce90b..dd77cc2ce816 100644
--- a/clients/client-forecast/protocols/Aws_json1_1.ts
+++ b/clients/client-forecast/protocols/Aws_json1_1.ts
@@ -5566,19 +5566,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-forecastquery/protocols/Aws_json1_1.ts b/clients/client-forecastquery/protocols/Aws_json1_1.ts
index bc2388d92291..22385ab364e8 100644
--- a/clients/client-forecastquery/protocols/Aws_json1_1.ts
+++ b/clients/client-forecastquery/protocols/Aws_json1_1.ts
@@ -439,19 +439,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-frauddetector/protocols/Aws_json1_1.ts b/clients/client-frauddetector/protocols/Aws_json1_1.ts
index 71885d983017..1bb2f8e3e66f 100644
--- a/clients/client-frauddetector/protocols/Aws_json1_1.ts
+++ b/clients/client-frauddetector/protocols/Aws_json1_1.ts
@@ -5767,19 +5767,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-fsx/protocols/Aws_json1_1.ts b/clients/client-fsx/protocols/Aws_json1_1.ts
index f9a688b32693..44f837d57bb2 100644
--- a/clients/client-fsx/protocols/Aws_json1_1.ts
+++ b/clients/client-fsx/protocols/Aws_json1_1.ts
@@ -4251,19 +4251,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-gamelift/protocols/Aws_json1_1.ts b/clients/client-gamelift/protocols/Aws_json1_1.ts
index b341c431541c..3c76d10c8e3b 100644
--- a/clients/client-gamelift/protocols/Aws_json1_1.ts
+++ b/clients/client-gamelift/protocols/Aws_json1_1.ts
@@ -14974,19 +14974,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-glacier/protocols/Aws_restJson1_1.ts b/clients/client-glacier/protocols/Aws_restJson1_1.ts
index 5eea945ee274..fff5e395727b 100644
--- a/clients/client-glacier/protocols/Aws_restJson1_1.ts
+++ b/clients/client-glacier/protocols/Aws_restJson1_1.ts
@@ -223,13 +223,15 @@ export async function serializeAws_restJson1_1AbortMultipartUploadCommand(
throw new Error("No value provided for input HTTP label: vaultName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -265,13 +267,15 @@ export async function serializeAws_restJson1_1AbortVaultLockCommand(
throw new Error("No value provided for input HTTP label: vaultName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -315,14 +319,16 @@ export async function serializeAws_restJson1_1AddTagsToVaultCommand(
bodyParams["Tags"] = serializeAws_restJson1_1TagMap(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -377,13 +383,15 @@ export async function serializeAws_restJson1_1CompleteMultipartUploadCommand(
throw new Error("No value provided for input HTTP label: vaultName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -431,13 +439,15 @@ export async function serializeAws_restJson1_1CompleteVaultLockCommand(
throw new Error("No value provided for input HTTP label: vaultName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -473,13 +483,15 @@ export async function serializeAws_restJson1_1CreateVaultCommand(
throw new Error("No value provided for input HTTP label: vaultName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -527,13 +539,15 @@ export async function serializeAws_restJson1_1DeleteArchiveCommand(
throw new Error("No value provided for input HTTP label: vaultName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -569,13 +583,15 @@ export async function serializeAws_restJson1_1DeleteVaultCommand(
throw new Error("No value provided for input HTTP label: vaultName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -611,13 +627,15 @@ export async function serializeAws_restJson1_1DeleteVaultAccessPolicyCommand(
throw new Error("No value provided for input HTTP label: vaultName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -654,13 +672,15 @@ export async function serializeAws_restJson1_1DeleteVaultNotificationsCommand(
throw new Error("No value provided for input HTTP label: vaultName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -708,13 +728,15 @@ export async function serializeAws_restJson1_1DescribeJobCommand(
throw new Error("No value provided for input HTTP label: vaultName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -750,13 +772,15 @@ export async function serializeAws_restJson1_1DescribeVaultCommand(
throw new Error("No value provided for input HTTP label: vaultName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -780,13 +804,15 @@ export async function serializeAws_restJson1_1GetDataRetrievalPolicyCommand(
throw new Error("No value provided for input HTTP label: accountId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -837,13 +863,15 @@ export async function serializeAws_restJson1_1GetJobOutputCommand(
throw new Error("No value provided for input HTTP label: vaultName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -879,13 +907,15 @@ export async function serializeAws_restJson1_1GetVaultAccessPolicyCommand(
throw new Error("No value provided for input HTTP label: vaultName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -921,13 +951,15 @@ export async function serializeAws_restJson1_1GetVaultLockCommand(
throw new Error("No value provided for input HTTP label: vaultName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -964,13 +996,15 @@ export async function serializeAws_restJson1_1GetVaultNotificationsCommand(
throw new Error("No value provided for input HTTP label: vaultName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1013,13 +1047,15 @@ export async function serializeAws_restJson1_1InitiateJobCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1061,13 +1097,15 @@ export async function serializeAws_restJson1_1InitiateMultipartUploadCommand(
throw new Error("No value provided for input HTTP label: vaultName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1110,13 +1148,15 @@ export async function serializeAws_restJson1_1InitiateVaultLockCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1165,14 +1205,16 @@ export async function serializeAws_restJson1_1ListJobsCommand(
query["statuscode"] = input.statuscode;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1215,14 +1257,16 @@ export async function serializeAws_restJson1_1ListMultipartUploadsCommand(
query["marker"] = input.marker;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1278,14 +1322,16 @@ export async function serializeAws_restJson1_1ListPartsCommand(
query["marker"] = input.marker;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1309,13 +1355,15 @@ export async function serializeAws_restJson1_1ListProvisionedCapacityCommand(
throw new Error("No value provided for input HTTP label: accountId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1351,13 +1399,15 @@ export async function serializeAws_restJson1_1ListTagsForVaultCommand(
throw new Error("No value provided for input HTTP label: vaultName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1388,14 +1438,16 @@ export async function serializeAws_restJson1_1ListVaultsCommand(
query["marker"] = input.marker;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1419,13 +1471,15 @@ export async function serializeAws_restJson1_1PurchaseProvisionedCapacityCommand
throw new Error("No value provided for input HTTP label: accountId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1472,14 +1526,16 @@ export async function serializeAws_restJson1_1RemoveTagsFromVaultCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1511,13 +1567,15 @@ export async function serializeAws_restJson1_1SetDataRetrievalPolicyCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1560,13 +1618,15 @@ export async function serializeAws_restJson1_1SetVaultAccessPolicyCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1613,13 +1673,15 @@ export async function serializeAws_restJson1_1SetVaultNotificationsCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1664,13 +1726,15 @@ export async function serializeAws_restJson1_1UploadArchiveCommand(
if (input.body !== undefined) {
body = input.body;
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1728,13 +1792,15 @@ export async function serializeAws_restJson1_1UploadMultipartPartCommand(
if (input.body !== undefined) {
body = input.body;
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-global-accelerator/protocols/Aws_json1_1.ts b/clients/client-global-accelerator/protocols/Aws_json1_1.ts
index db4ba19c3f24..6ba762c34f2c 100644
--- a/clients/client-global-accelerator/protocols/Aws_json1_1.ts
+++ b/clients/client-global-accelerator/protocols/Aws_json1_1.ts
@@ -3338,19 +3338,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-glue/protocols/Aws_json1_1.ts b/clients/client-glue/protocols/Aws_json1_1.ts
index 4e93f887fbdd..c0da02d068e3 100644
--- a/clients/client-glue/protocols/Aws_json1_1.ts
+++ b/clients/client-glue/protocols/Aws_json1_1.ts
@@ -25540,19 +25540,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-greengrass/protocols/Aws_restJson1_1.ts b/clients/client-greengrass/protocols/Aws_restJson1_1.ts
index 4a05631d869a..d40adf64b959 100644
--- a/clients/client-greengrass/protocols/Aws_restJson1_1.ts
+++ b/clients/client-greengrass/protocols/Aws_restJson1_1.ts
@@ -442,13 +442,15 @@ export async function serializeAws_restJson1_1AssociateRoleToGroupCommand(
bodyParams["RoleArn"] = input.RoleArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -465,13 +467,15 @@ export async function serializeAws_restJson1_1AssociateServiceRoleToAccountComma
bodyParams["RoleArn"] = input.RoleArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -502,13 +506,15 @@ export async function serializeAws_restJson1_1CreateConnectorDefinitionCommand(
bodyParams["tags"] = serializeAws_restJson1_1Tags(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -548,13 +554,15 @@ export async function serializeAws_restJson1_1CreateConnectorDefinitionVersionCo
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -585,13 +593,15 @@ export async function serializeAws_restJson1_1CreateCoreDefinitionCommand(
bodyParams["tags"] = serializeAws_restJson1_1Tags(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -630,13 +640,15 @@ export async function serializeAws_restJson1_1CreateCoreDefinitionVersionCommand
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -674,13 +686,15 @@ export async function serializeAws_restJson1_1CreateDeploymentCommand(
bodyParams["GroupVersionId"] = input.GroupVersionId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -711,13 +725,15 @@ export async function serializeAws_restJson1_1CreateDeviceDefinitionCommand(
bodyParams["tags"] = serializeAws_restJson1_1Tags(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -757,13 +773,15 @@ export async function serializeAws_restJson1_1CreateDeviceDefinitionVersionComma
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -794,13 +812,15 @@ export async function serializeAws_restJson1_1CreateFunctionDefinitionCommand(
bodyParams["tags"] = serializeAws_restJson1_1Tags(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -846,13 +866,15 @@ export async function serializeAws_restJson1_1CreateFunctionDefinitionVersionCom
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -881,13 +903,15 @@ export async function serializeAws_restJson1_1CreateGroupCommand(
bodyParams["tags"] = serializeAws_restJson1_1Tags(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -914,13 +938,15 @@ export async function serializeAws_restJson1_1CreateGroupCertificateAuthorityCom
throw new Error("No value provided for input HTTP label: GroupId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -974,13 +1000,15 @@ export async function serializeAws_restJson1_1CreateGroupVersionCommand(
input.SubscriptionDefinitionVersionArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1011,13 +1039,15 @@ export async function serializeAws_restJson1_1CreateLoggerDefinitionCommand(
bodyParams["tags"] = serializeAws_restJson1_1Tags(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1057,13 +1087,15 @@ export async function serializeAws_restJson1_1CreateLoggerDefinitionVersionComma
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1094,13 +1126,15 @@ export async function serializeAws_restJson1_1CreateResourceDefinitionCommand(
bodyParams["tags"] = serializeAws_restJson1_1Tags(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1140,13 +1174,15 @@ export async function serializeAws_restJson1_1CreateResourceDefinitionVersionCom
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1185,13 +1221,15 @@ export async function serializeAws_restJson1_1CreateSoftwareUpdateJobCommand(
input.UpdateTargetsOperatingSystem;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1222,13 +1260,15 @@ export async function serializeAws_restJson1_1CreateSubscriptionDefinitionComman
bodyParams["tags"] = serializeAws_restJson1_1Tags(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1268,13 +1308,15 @@ export async function serializeAws_restJson1_1CreateSubscriptionDefinitionVersio
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1303,13 +1345,15 @@ export async function serializeAws_restJson1_1DeleteConnectorDefinitionCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1337,13 +1381,15 @@ export async function serializeAws_restJson1_1DeleteCoreDefinitionCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1371,13 +1417,15 @@ export async function serializeAws_restJson1_1DeleteDeviceDefinitionCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1405,13 +1453,15 @@ export async function serializeAws_restJson1_1DeleteFunctionDefinitionCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1435,13 +1485,15 @@ export async function serializeAws_restJson1_1DeleteGroupCommand(
throw new Error("No value provided for input HTTP label: GroupId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1469,13 +1521,15 @@ export async function serializeAws_restJson1_1DeleteLoggerDefinitionCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1503,13 +1557,15 @@ export async function serializeAws_restJson1_1DeleteResourceDefinitionCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1538,13 +1594,15 @@ export async function serializeAws_restJson1_1DeleteSubscriptionDefinitionComman
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1568,13 +1626,15 @@ export async function serializeAws_restJson1_1DisassociateRoleFromGroupCommand(
throw new Error("No value provided for input HTTP label: GroupId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1587,13 +1647,15 @@ export async function serializeAws_restJson1_1DisassociateServiceRoleFromAccount
let resolvedPath = "/greengrass/servicerole";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1617,13 +1679,15 @@ export async function serializeAws_restJson1_1GetAssociatedRoleCommand(
throw new Error("No value provided for input HTTP label: GroupId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1651,13 +1715,15 @@ export async function serializeAws_restJson1_1GetBulkDeploymentStatusCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1681,13 +1747,15 @@ export async function serializeAws_restJson1_1GetConnectivityInfoCommand(
throw new Error("No value provided for input HTTP label: ThingName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1716,13 +1784,15 @@ export async function serializeAws_restJson1_1GetConnectorDefinitionCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1771,14 +1841,16 @@ export async function serializeAws_restJson1_1GetConnectorDefinitionVersionComma
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1806,13 +1878,15 @@ export async function serializeAws_restJson1_1GetCoreDefinitionCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1857,13 +1931,15 @@ export async function serializeAws_restJson1_1GetCoreDefinitionVersionCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1902,13 +1978,15 @@ export async function serializeAws_restJson1_1GetDeploymentStatusCommand(
throw new Error("No value provided for input HTTP label: GroupId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1936,13 +2014,15 @@ export async function serializeAws_restJson1_1GetDeviceDefinitionCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1991,14 +2071,16 @@ export async function serializeAws_restJson1_1GetDeviceDefinitionVersionCommand(
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2026,13 +2108,15 @@ export async function serializeAws_restJson1_1GetFunctionDefinitionCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2081,14 +2165,16 @@ export async function serializeAws_restJson1_1GetFunctionDefinitionVersionComman
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2112,13 +2198,15 @@ export async function serializeAws_restJson1_1GetGroupCommand(
throw new Error("No value provided for input HTTP label: GroupId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2159,13 +2247,15 @@ export async function serializeAws_restJson1_1GetGroupCertificateAuthorityComman
throw new Error("No value provided for input HTTP label: GroupId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2190,13 +2280,15 @@ export async function serializeAws_restJson1_1GetGroupCertificateConfigurationCo
throw new Error("No value provided for input HTTP label: GroupId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2234,13 +2326,15 @@ export async function serializeAws_restJson1_1GetGroupVersionCommand(
throw new Error("No value provided for input HTTP label: GroupVersionId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2268,13 +2362,15 @@ export async function serializeAws_restJson1_1GetLoggerDefinitionCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2323,14 +2419,16 @@ export async function serializeAws_restJson1_1GetLoggerDefinitionVersionCommand(
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2358,13 +2456,15 @@ export async function serializeAws_restJson1_1GetResourceDefinitionCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2409,13 +2509,15 @@ export async function serializeAws_restJson1_1GetResourceDefinitionVersionComman
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2428,13 +2530,15 @@ export async function serializeAws_restJson1_1GetServiceRoleForAccountCommand(
let resolvedPath = "/greengrass/servicerole";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2463,13 +2567,15 @@ export async function serializeAws_restJson1_1GetSubscriptionDefinitionCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2518,14 +2624,16 @@ export async function serializeAws_restJson1_1GetSubscriptionDefinitionVersionCo
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2561,14 +2669,16 @@ export async function serializeAws_restJson1_1ListBulkDeploymentDetailedReportsC
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2587,14 +2697,16 @@ export async function serializeAws_restJson1_1ListBulkDeploymentsCommand(
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2630,14 +2742,16 @@ export async function serializeAws_restJson1_1ListConnectorDefinitionVersionsCom
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2656,14 +2770,16 @@ export async function serializeAws_restJson1_1ListConnectorDefinitionsCommand(
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2698,14 +2814,16 @@ export async function serializeAws_restJson1_1ListCoreDefinitionVersionsCommand(
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2724,14 +2842,16 @@ export async function serializeAws_restJson1_1ListCoreDefinitionsCommand(
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2762,14 +2882,16 @@ export async function serializeAws_restJson1_1ListDeploymentsCommand(
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2805,14 +2927,16 @@ export async function serializeAws_restJson1_1ListDeviceDefinitionVersionsComman
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2831,14 +2955,16 @@ export async function serializeAws_restJson1_1ListDeviceDefinitionsCommand(
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2874,14 +3000,16 @@ export async function serializeAws_restJson1_1ListFunctionDefinitionVersionsComm
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2900,14 +3028,16 @@ export async function serializeAws_restJson1_1ListFunctionDefinitionsCommand(
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2931,13 +3061,15 @@ export async function serializeAws_restJson1_1ListGroupCertificateAuthoritiesCom
throw new Error("No value provided for input HTTP label: GroupId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2968,14 +3100,16 @@ export async function serializeAws_restJson1_1ListGroupVersionsCommand(
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2994,14 +3128,16 @@ export async function serializeAws_restJson1_1ListGroupsCommand(
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3037,14 +3173,16 @@ export async function serializeAws_restJson1_1ListLoggerDefinitionVersionsComman
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3063,14 +3201,16 @@ export async function serializeAws_restJson1_1ListLoggerDefinitionsCommand(
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3106,14 +3246,16 @@ export async function serializeAws_restJson1_1ListResourceDefinitionVersionsComm
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3132,14 +3274,16 @@ export async function serializeAws_restJson1_1ListResourceDefinitionsCommand(
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3175,14 +3319,16 @@ export async function serializeAws_restJson1_1ListSubscriptionDefinitionVersions
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3201,14 +3347,16 @@ export async function serializeAws_restJson1_1ListSubscriptionDefinitionsCommand
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3234,13 +3382,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: ResourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3272,13 +3422,15 @@ export async function serializeAws_restJson1_1ResetDeploymentsCommand(
bodyParams["Force"] = input.Force;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3304,13 +3456,15 @@ export async function serializeAws_restJson1_1StartBulkDeploymentCommand(
bodyParams["tags"] = serializeAws_restJson1_1Tags(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3338,13 +3492,15 @@ export async function serializeAws_restJson1_1StopBulkDeploymentCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3375,13 +3531,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["tags"] = serializeAws_restJson1_1Tags(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3411,14 +3569,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.TagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3452,13 +3612,15 @@ export async function serializeAws_restJson1_1UpdateConnectivityInfoCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3492,13 +3654,15 @@ export async function serializeAws_restJson1_1UpdateConnectorDefinitionCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3531,13 +3695,15 @@ export async function serializeAws_restJson1_1UpdateCoreDefinitionCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3570,13 +3736,15 @@ export async function serializeAws_restJson1_1UpdateDeviceDefinitionCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3609,13 +3777,15 @@ export async function serializeAws_restJson1_1UpdateFunctionDefinitionCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3644,13 +3814,15 @@ export async function serializeAws_restJson1_1UpdateGroupCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3681,13 +3853,15 @@ export async function serializeAws_restJson1_1UpdateGroupCertificateConfiguratio
input.CertificateExpiryInMilliseconds;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3720,13 +3894,15 @@ export async function serializeAws_restJson1_1UpdateLoggerDefinitionCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3759,13 +3935,15 @@ export async function serializeAws_restJson1_1UpdateResourceDefinitionCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3799,13 +3977,15 @@ export async function serializeAws_restJson1_1UpdateSubscriptionDefinitionComman
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-groundstation/protocols/Aws_restJson1_1.ts b/clients/client-groundstation/protocols/Aws_restJson1_1.ts
index a320b3f0c3fe..c820e9a2a0f0 100644
--- a/clients/client-groundstation/protocols/Aws_restJson1_1.ts
+++ b/clients/client-groundstation/protocols/Aws_restJson1_1.ts
@@ -164,13 +164,15 @@ export async function serializeAws_restJson1_1CancelContactCommand(
throw new Error("No value provided for input HTTP label: contactId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -196,13 +198,15 @@ export async function serializeAws_restJson1_1CreateConfigCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagsMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -225,13 +229,15 @@ export async function serializeAws_restJson1_1CreateDataflowEndpointGroupCommand
bodyParams["tags"] = serializeAws_restJson1_1TagsMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -272,13 +278,15 @@ export async function serializeAws_restJson1_1CreateMissionProfileCommand(
bodyParams["trackingConfigArn"] = input.trackingConfigArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -314,13 +322,15 @@ export async function serializeAws_restJson1_1DeleteConfigCommand(
throw new Error("No value provided for input HTTP label: configType.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -348,13 +358,15 @@ export async function serializeAws_restJson1_1DeleteDataflowEndpointGroupCommand
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -382,13 +394,15 @@ export async function serializeAws_restJson1_1DeleteMissionProfileCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -412,13 +426,15 @@ export async function serializeAws_restJson1_1DescribeContactCommand(
throw new Error("No value provided for input HTTP label: contactId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -454,13 +470,15 @@ export async function serializeAws_restJson1_1GetConfigCommand(
throw new Error("No value provided for input HTTP label: configType.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -488,13 +506,15 @@ export async function serializeAws_restJson1_1GetDataflowEndpointGroupCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -522,13 +542,15 @@ export async function serializeAws_restJson1_1GetMissionProfileCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -547,14 +569,16 @@ export async function serializeAws_restJson1_1ListConfigsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -595,13 +619,15 @@ export async function serializeAws_restJson1_1ListContactsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -620,14 +646,16 @@ export async function serializeAws_restJson1_1ListDataflowEndpointGroupsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -646,14 +674,16 @@ export async function serializeAws_restJson1_1ListMissionProfilesCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -685,13 +715,15 @@ export async function serializeAws_restJson1_1ReserveContactCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagsMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -738,13 +770,15 @@ export async function serializeAws_restJson1_1UpdateConfigCommand(
bodyParams["name"] = input.name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -798,13 +832,15 @@ export async function serializeAws_restJson1_1UpdateMissionProfileCommand(
bodyParams["trackingConfigArn"] = input.trackingConfigArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -824,13 +860,15 @@ export async function serializeAws_restJson1_1GetMinuteUsageCommand(
bodyParams["year"] = input.year;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -856,13 +894,15 @@ export async function serializeAws_restJson1_1GetSatelliteCommand(
throw new Error("No value provided for input HTTP label: satelliteId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -881,14 +921,16 @@ export async function serializeAws_restJson1_1ListGroundStationsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -907,14 +949,16 @@ export async function serializeAws_restJson1_1ListSatellitesCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -940,13 +984,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: resourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -977,13 +1023,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagsMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1013,14 +1061,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.tagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
diff --git a/clients/client-guardduty/protocols/Aws_restJson1_1.ts b/clients/client-guardduty/protocols/Aws_restJson1_1.ts
index 185a92e244f4..1d0862616574 100644
--- a/clients/client-guardduty/protocols/Aws_restJson1_1.ts
+++ b/clients/client-guardduty/protocols/Aws_restJson1_1.ts
@@ -285,13 +285,15 @@ export async function serializeAws_restJson1_1AcceptInvitationCommand(
bodyParams["masterId"] = input.MasterId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -323,13 +325,15 @@ export async function serializeAws_restJson1_1ArchiveFindingsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -358,13 +362,15 @@ export async function serializeAws_restJson1_1CreateDetectorCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -417,13 +423,15 @@ export async function serializeAws_restJson1_1CreateFilterCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -470,13 +478,15 @@ export async function serializeAws_restJson1_1CreateIPSetCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -508,13 +518,15 @@ export async function serializeAws_restJson1_1CreateMembersCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -557,13 +569,15 @@ export async function serializeAws_restJson1_1CreatePublishingDestinationCommand
bodyParams["destinationType"] = input.DestinationType;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -595,13 +609,15 @@ export async function serializeAws_restJson1_1CreateSampleFindingsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -648,13 +664,15 @@ export async function serializeAws_restJson1_1CreateThreatIntelSetCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -674,13 +692,15 @@ export async function serializeAws_restJson1_1DeclineInvitationsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -704,13 +724,15 @@ export async function serializeAws_restJson1_1DeleteDetectorCommand(
throw new Error("No value provided for input HTTP label: DetectorId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -746,13 +768,15 @@ export async function serializeAws_restJson1_1DeleteFilterCommand(
throw new Error("No value provided for input HTTP label: FilterName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -788,13 +812,15 @@ export async function serializeAws_restJson1_1DeleteIPSetCommand(
throw new Error("No value provided for input HTTP label: IpSetId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -814,13 +840,15 @@ export async function serializeAws_restJson1_1DeleteInvitationsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -852,13 +880,15 @@ export async function serializeAws_restJson1_1DeleteMembersCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -897,13 +927,15 @@ export async function serializeAws_restJson1_1DeletePublishingDestinationCommand
throw new Error("No value provided for input HTTP label: DetectorId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -943,13 +975,15 @@ export async function serializeAws_restJson1_1DeleteThreatIntelSetCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -988,13 +1022,15 @@ export async function serializeAws_restJson1_1DescribePublishingDestinationComma
throw new Error("No value provided for input HTTP label: DetectorId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1018,13 +1054,15 @@ export async function serializeAws_restJson1_1DisassociateFromMasterAccountComma
throw new Error("No value provided for input HTTP label: DetectorId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1056,13 +1094,15 @@ export async function serializeAws_restJson1_1DisassociateMembersCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1086,13 +1126,15 @@ export async function serializeAws_restJson1_1GetDetectorCommand(
throw new Error("No value provided for input HTTP label: DetectorId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1128,13 +1170,15 @@ export async function serializeAws_restJson1_1GetFilterCommand(
throw new Error("No value provided for input HTTP label: FilterName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1172,13 +1216,15 @@ export async function serializeAws_restJson1_1GetFindingsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1218,13 +1264,15 @@ export async function serializeAws_restJson1_1GetFindingsStatisticsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1260,13 +1308,15 @@ export async function serializeAws_restJson1_1GetIPSetCommand(
throw new Error("No value provided for input HTTP label: IpSetId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1279,13 +1329,15 @@ export async function serializeAws_restJson1_1GetInvitationsCountCommand(
let resolvedPath = "/invitation/count";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1309,13 +1361,15 @@ export async function serializeAws_restJson1_1GetMasterAccountCommand(
throw new Error("No value provided for input HTTP label: DetectorId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1347,13 +1401,15 @@ export async function serializeAws_restJson1_1GetMembersCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1393,13 +1449,15 @@ export async function serializeAws_restJson1_1GetThreatIntelSetCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1437,13 +1495,15 @@ export async function serializeAws_restJson1_1InviteMembersCommand(
bodyParams["message"] = input.Message;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1462,14 +1522,16 @@ export async function serializeAws_restJson1_1ListDetectorsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1500,14 +1562,16 @@ export async function serializeAws_restJson1_1ListFiltersCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1551,13 +1615,15 @@ export async function serializeAws_restJson1_1ListFindingsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1588,14 +1654,16 @@ export async function serializeAws_restJson1_1ListIPSetsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1614,14 +1682,16 @@ export async function serializeAws_restJson1_1ListInvitationsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1655,14 +1725,16 @@ export async function serializeAws_restJson1_1ListMembersCommand(
query["onlyAssociated"] = input.OnlyAssociated;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1693,14 +1765,16 @@ export async function serializeAws_restJson1_1ListPublishingDestinationsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1726,13 +1800,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: ResourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1763,14 +1839,16 @@ export async function serializeAws_restJson1_1ListThreatIntelSetsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1802,13 +1880,15 @@ export async function serializeAws_restJson1_1StartMonitoringMembersCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1840,13 +1920,15 @@ export async function serializeAws_restJson1_1StopMonitoringMembersCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1877,13 +1959,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1915,13 +1999,15 @@ export async function serializeAws_restJson1_1UnarchiveFindingsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1951,14 +2037,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.TagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1990,13 +2078,15 @@ export async function serializeAws_restJson1_1UpdateDetectorCommand(
bodyParams["findingPublishingFrequency"] = input.FindingPublishingFrequency;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2049,13 +2139,15 @@ export async function serializeAws_restJson1_1UpdateFilterCommand(
bodyParams["rank"] = input.Rank;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2093,13 +2185,15 @@ export async function serializeAws_restJson1_1UpdateFindingsFeedbackCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2146,13 +2240,15 @@ export async function serializeAws_restJson1_1UpdateIPSetCommand(
bodyParams["name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2201,13 +2297,15 @@ export async function serializeAws_restJson1_1UpdatePublishingDestinationCommand
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2258,13 +2356,15 @@ export async function serializeAws_restJson1_1UpdateThreatIntelSetCommand(
bodyParams["name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-health/protocols/Aws_json1_1.ts b/clients/client-health/protocols/Aws_json1_1.ts
index bdc369135327..8c5aaf4f4a24 100644
--- a/clients/client-health/protocols/Aws_json1_1.ts
+++ b/clients/client-health/protocols/Aws_json1_1.ts
@@ -2695,19 +2695,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-iam/protocols/Aws_query.ts b/clients/client-iam/protocols/Aws_query.ts
index 7f25084cc4ac..12ee3be9687e 100644
--- a/clients/client-iam/protocols/Aws_query.ts
+++ b/clients/client-iam/protocols/Aws_query.ts
@@ -23244,19 +23244,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-imagebuilder/protocols/Aws_restJson1_1.ts b/clients/client-imagebuilder/protocols/Aws_restJson1_1.ts
index d26c317403f5..b9dec191ece2 100644
--- a/clients/client-imagebuilder/protocols/Aws_restJson1_1.ts
+++ b/clients/client-imagebuilder/protocols/Aws_restJson1_1.ts
@@ -243,13 +243,15 @@ export async function serializeAws_restJson1_1CancelImageCreationCommand(
bodyParams["imageBuildVersionArn"] = input.imageBuildVersionArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -296,13 +298,15 @@ export async function serializeAws_restJson1_1CreateComponentCommand(
bodyParams["uri"] = input.uri;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -337,13 +341,15 @@ export async function serializeAws_restJson1_1CreateDistributionConfigurationCom
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -385,13 +391,15 @@ export async function serializeAws_restJson1_1CreateImageCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -448,13 +456,15 @@ export async function serializeAws_restJson1_1CreateImagePipelineCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -505,13 +515,15 @@ export async function serializeAws_restJson1_1CreateImageRecipeCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -573,13 +585,15 @@ export async function serializeAws_restJson1_1CreateInfrastructureConfigurationC
bodyParams["terminateInstanceOnFailure"] = input.terminateInstanceOnFailure;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -595,14 +609,16 @@ export async function serializeAws_restJson1_1DeleteComponentCommand(
query["componentBuildVersionArn"] = input.componentBuildVersionArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -618,14 +634,16 @@ export async function serializeAws_restJson1_1DeleteDistributionConfigurationCom
query["distributionConfigurationArn"] = input.distributionConfigurationArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -641,14 +659,16 @@ export async function serializeAws_restJson1_1DeleteImageCommand(
query["imageBuildVersionArn"] = input.imageBuildVersionArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -664,14 +684,16 @@ export async function serializeAws_restJson1_1DeleteImagePipelineCommand(
query["imagePipelineArn"] = input.imagePipelineArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -687,14 +709,16 @@ export async function serializeAws_restJson1_1DeleteImageRecipeCommand(
query["imageRecipeArn"] = input.imageRecipeArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -711,14 +735,16 @@ export async function serializeAws_restJson1_1DeleteInfrastructureConfigurationC
input.infrastructureConfigurationArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -734,14 +760,16 @@ export async function serializeAws_restJson1_1GetComponentCommand(
query["componentBuildVersionArn"] = input.componentBuildVersionArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -757,14 +785,16 @@ export async function serializeAws_restJson1_1GetComponentPolicyCommand(
query["componentArn"] = input.componentArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -780,14 +810,16 @@ export async function serializeAws_restJson1_1GetDistributionConfigurationComman
query["distributionConfigurationArn"] = input.distributionConfigurationArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -803,14 +835,16 @@ export async function serializeAws_restJson1_1GetImageCommand(
query["imageBuildVersionArn"] = input.imageBuildVersionArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -826,14 +860,16 @@ export async function serializeAws_restJson1_1GetImagePipelineCommand(
query["imagePipelineArn"] = input.imagePipelineArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -849,14 +885,16 @@ export async function serializeAws_restJson1_1GetImagePolicyCommand(
query["imageArn"] = input.imageArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -872,14 +910,16 @@ export async function serializeAws_restJson1_1GetImageRecipeCommand(
query["imageRecipeArn"] = input.imageRecipeArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -895,14 +935,16 @@ export async function serializeAws_restJson1_1GetImageRecipePolicyCommand(
query["imageRecipeArn"] = input.imageRecipeArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -919,14 +961,16 @@ export async function serializeAws_restJson1_1GetInfrastructureConfigurationComm
input.infrastructureConfigurationArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -979,13 +1023,15 @@ export async function serializeAws_restJson1_1ImportComponentCommand(
bodyParams["uri"] = input.uri;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1008,13 +1054,15 @@ export async function serializeAws_restJson1_1ListComponentBuildVersionsCommand(
bodyParams["nextToken"] = input.nextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1043,13 +1091,15 @@ export async function serializeAws_restJson1_1ListComponentsCommand(
bodyParams["owner"] = input.owner;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1075,13 +1125,15 @@ export async function serializeAws_restJson1_1ListDistributionConfigurationsComm
bodyParams["nextToken"] = input.nextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1110,13 +1162,15 @@ export async function serializeAws_restJson1_1ListImageBuildVersionsCommand(
bodyParams["nextToken"] = input.nextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1145,13 +1199,15 @@ export async function serializeAws_restJson1_1ListImagePipelineImagesCommand(
bodyParams["nextToken"] = input.nextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1177,13 +1233,15 @@ export async function serializeAws_restJson1_1ListImagePipelinesCommand(
bodyParams["nextToken"] = input.nextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1212,13 +1270,15 @@ export async function serializeAws_restJson1_1ListImageRecipesCommand(
bodyParams["owner"] = input.owner;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1247,13 +1307,15 @@ export async function serializeAws_restJson1_1ListImagesCommand(
bodyParams["owner"] = input.owner;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1279,13 +1341,15 @@ export async function serializeAws_restJson1_1ListInfrastructureConfigurationsCo
bodyParams["nextToken"] = input.nextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1311,13 +1375,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: resourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1337,13 +1403,15 @@ export async function serializeAws_restJson1_1PutComponentPolicyCommand(
bodyParams["policy"] = input.policy;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1363,13 +1431,15 @@ export async function serializeAws_restJson1_1PutImagePolicyCommand(
bodyParams["policy"] = input.policy;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1389,13 +1459,15 @@ export async function serializeAws_restJson1_1PutImageRecipePolicyCommand(
bodyParams["policy"] = input.policy;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1418,13 +1490,15 @@ export async function serializeAws_restJson1_1StartImagePipelineExecutionCommand
bodyParams["imagePipelineArn"] = input.imagePipelineArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1455,13 +1529,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1491,14 +1567,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.tagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1531,13 +1609,15 @@ export async function serializeAws_restJson1_1UpdateDistributionConfigurationCom
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1591,13 +1671,15 @@ export async function serializeAws_restJson1_1UpdateImagePipelineCommand(
bodyParams["status"] = input.status;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1657,13 +1739,15 @@ export async function serializeAws_restJson1_1UpdateInfrastructureConfigurationC
bodyParams["terminateInstanceOnFailure"] = input.terminateInstanceOnFailure;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-inspector/protocols/Aws_json1_1.ts b/clients/client-inspector/protocols/Aws_json1_1.ts
index b686d9f81763..2dbce3f915cd 100644
--- a/clients/client-inspector/protocols/Aws_json1_1.ts
+++ b/clients/client-inspector/protocols/Aws_json1_1.ts
@@ -7804,19 +7804,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-iot-1click-devices-service/protocols/Aws_restJson1_1.ts b/clients/client-iot-1click-devices-service/protocols/Aws_restJson1_1.ts
index 6eba82a36335..055653a743d7 100644
--- a/clients/client-iot-1click-devices-service/protocols/Aws_restJson1_1.ts
+++ b/clients/client-iot-1click-devices-service/protocols/Aws_restJson1_1.ts
@@ -99,13 +99,15 @@ export async function serializeAws_restJson1_1ClaimDevicesByClaimCodeCommand(
throw new Error("No value provided for input HTTP label: ClaimCode.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -129,13 +131,15 @@ export async function serializeAws_restJson1_1DescribeDeviceCommand(
throw new Error("No value provided for input HTTP label: DeviceId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -167,13 +171,15 @@ export async function serializeAws_restJson1_1FinalizeDeviceClaimCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -197,13 +203,15 @@ export async function serializeAws_restJson1_1GetDeviceMethodsCommand(
throw new Error("No value provided for input HTTP label: DeviceId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -227,13 +235,15 @@ export async function serializeAws_restJson1_1InitiateDeviceClaimCommand(
throw new Error("No value provided for input HTTP label: DeviceId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -268,13 +278,15 @@ export async function serializeAws_restJson1_1InvokeDeviceMethodCommand(
bodyParams["deviceMethodParameters"] = input.DeviceMethodParameters;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -315,14 +327,16 @@ export async function serializeAws_restJson1_1ListDeviceEventsCommand(
).toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -344,14 +358,16 @@ export async function serializeAws_restJson1_1ListDevicesCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -377,13 +393,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: ResourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -417,13 +435,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -447,13 +467,15 @@ export async function serializeAws_restJson1_1UnclaimDeviceCommand(
throw new Error("No value provided for input HTTP label: DeviceId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -483,14 +505,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.TagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -519,13 +543,15 @@ export async function serializeAws_restJson1_1UpdateDeviceStateCommand(
bodyParams["enabled"] = input.Enabled;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-iot-1click-projects/protocols/Aws_restJson1_1.ts b/clients/client-iot-1click-projects/protocols/Aws_restJson1_1.ts
index b058f2ac0610..8c7adb9b7068 100644
--- a/clients/client-iot-1click-projects/protocols/Aws_restJson1_1.ts
+++ b/clients/client-iot-1click-projects/protocols/Aws_restJson1_1.ts
@@ -148,13 +148,15 @@ export async function serializeAws_restJson1_1AssociateDeviceWithPlacementComman
bodyParams["deviceId"] = input.deviceId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -191,13 +193,15 @@ export async function serializeAws_restJson1_1CreatePlacementCommand(
bodyParams["placementName"] = input.placementName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -226,13 +230,15 @@ export async function serializeAws_restJson1_1CreateProjectCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -272,13 +278,15 @@ export async function serializeAws_restJson1_1DeletePlacementCommand(
throw new Error("No value provided for input HTTP label: projectName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -304,13 +312,15 @@ export async function serializeAws_restJson1_1DeleteProjectCommand(
throw new Error("No value provided for input HTTP label: projectName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -350,13 +360,15 @@ export async function serializeAws_restJson1_1DescribePlacementCommand(
throw new Error("No value provided for input HTTP label: projectName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -382,13 +394,15 @@ export async function serializeAws_restJson1_1DescribeProjectCommand(
throw new Error("No value provided for input HTTP label: projectName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -445,13 +459,15 @@ export async function serializeAws_restJson1_1DisassociateDeviceFromPlacementCom
throw new Error("No value provided for input HTTP label: projectName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -492,13 +508,15 @@ export async function serializeAws_restJson1_1GetDevicesInPlacementCommand(
throw new Error("No value provided for input HTTP label: projectName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -531,14 +549,16 @@ export async function serializeAws_restJson1_1ListPlacementsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -557,14 +577,16 @@ export async function serializeAws_restJson1_1ListProjectsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -590,13 +612,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: resourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -627,13 +651,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -663,14 +689,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.tagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -718,13 +746,15 @@ export async function serializeAws_restJson1_1UpdatePlacementCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -761,13 +791,15 @@ export async function serializeAws_restJson1_1UpdateProjectCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-iot-data-plane/protocols/Aws_restJson1_1.ts b/clients/client-iot-data-plane/protocols/Aws_restJson1_1.ts
index 3a9f8b46f63a..216bc75f0eab 100644
--- a/clients/client-iot-data-plane/protocols/Aws_restJson1_1.ts
+++ b/clients/client-iot-data-plane/protocols/Aws_restJson1_1.ts
@@ -61,13 +61,15 @@ export async function serializeAws_restJson1_1DeleteThingShadowCommand(
throw new Error("No value provided for input HTTP label: thingName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -91,13 +93,15 @@ export async function serializeAws_restJson1_1GetThingShadowCommand(
throw new Error("No value provided for input HTTP label: thingName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -128,14 +132,16 @@ export async function serializeAws_restJson1_1PublishCommand(
if (input.payload !== undefined) {
body = input.payload;
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -162,13 +168,15 @@ export async function serializeAws_restJson1_1UpdateThingShadowCommand(
if (input.payload !== undefined) {
body = input.payload;
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-iot-events-data/protocols/Aws_restJson1_1.ts b/clients/client-iot-events-data/protocols/Aws_restJson1_1.ts
index 2b1d598fbe7c..bfb0158c461d 100644
--- a/clients/client-iot-events-data/protocols/Aws_restJson1_1.ts
+++ b/clients/client-iot-events-data/protocols/Aws_restJson1_1.ts
@@ -65,13 +65,15 @@ export async function serializeAws_restJson1_1BatchPutMessageCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -91,13 +93,15 @@ export async function serializeAws_restJson1_1BatchUpdateDetectorCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -129,14 +133,16 @@ export async function serializeAws_restJson1_1DescribeDetectorCommand(
query["keyValue"] = input.keyValue;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -174,14 +180,16 @@ export async function serializeAws_restJson1_1ListDetectorsCommand(
query["stateName"] = input.stateName;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
diff --git a/clients/client-iot-events/protocols/Aws_restJson1_1.ts b/clients/client-iot-events/protocols/Aws_restJson1_1.ts
index 53ea086d7583..4d6e7a327220 100644
--- a/clients/client-iot-events/protocols/Aws_restJson1_1.ts
+++ b/clients/client-iot-events/protocols/Aws_restJson1_1.ts
@@ -154,13 +154,15 @@ export async function serializeAws_restJson1_1CreateDetectorModelCommand(
bodyParams["tags"] = serializeAws_restJson1_1Tags(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -189,13 +191,15 @@ export async function serializeAws_restJson1_1CreateInputCommand(
bodyParams["tags"] = serializeAws_restJson1_1Tags(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -223,13 +227,15 @@ export async function serializeAws_restJson1_1DeleteDetectorModelCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -253,13 +259,15 @@ export async function serializeAws_restJson1_1DeleteInputCommand(
throw new Error("No value provided for input HTTP label: inputName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -291,14 +299,16 @@ export async function serializeAws_restJson1_1DescribeDetectorModelCommand(
query["version"] = input.detectorModelVersion;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -322,13 +332,15 @@ export async function serializeAws_restJson1_1DescribeInputCommand(
throw new Error("No value provided for input HTTP label: inputName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -341,13 +353,15 @@ export async function serializeAws_restJson1_1DescribeLoggingOptionsCommand(
let resolvedPath = "/logging";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -382,14 +396,16 @@ export async function serializeAws_restJson1_1ListDetectorModelVersionsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -408,14 +424,16 @@ export async function serializeAws_restJson1_1ListDetectorModelsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -434,14 +452,16 @@ export async function serializeAws_restJson1_1ListInputsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -457,14 +477,16 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
query["resourceArn"] = input.resourceArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -484,13 +506,15 @@ export async function serializeAws_restJson1_1PutLoggingOptionsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -511,14 +535,16 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["tags"] = serializeAws_restJson1_1Tags(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -537,14 +563,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.tagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -591,13 +619,15 @@ export async function serializeAws_restJson1_1UpdateDetectorModelCommand(
bodyParams["roleArn"] = input.roleArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -632,13 +662,15 @@ export async function serializeAws_restJson1_1UpdateInputCommand(
bodyParams["inputDescription"] = input.inputDescription;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-iot-jobs-data-plane/protocols/Aws_restJson1_1.ts b/clients/client-iot-jobs-data-plane/protocols/Aws_restJson1_1.ts
index 10aaf8224bd3..5cf33b7c685e 100644
--- a/clients/client-iot-jobs-data-plane/protocols/Aws_restJson1_1.ts
+++ b/clients/client-iot-jobs-data-plane/protocols/Aws_restJson1_1.ts
@@ -80,14 +80,16 @@ export async function serializeAws_restJson1_1DescribeJobExecutionCommand(
query["includeJobDocument"] = input.includeJobDocument.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -111,13 +113,15 @@ export async function serializeAws_restJson1_1GetPendingJobExecutionsCommand(
throw new Error("No value provided for input HTTP label: thingName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -152,13 +156,15 @@ export async function serializeAws_restJson1_1StartNextPendingJobExecutionComman
bodyParams["stepTimeoutInMinutes"] = input.stepTimeoutInMinutes;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -220,13 +226,15 @@ export async function serializeAws_restJson1_1UpdateJobExecutionCommand(
bodyParams["stepTimeoutInMinutes"] = input.stepTimeoutInMinutes;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-iot/protocols/Aws_restJson1_1.ts b/clients/client-iot/protocols/Aws_restJson1_1.ts
index 69e5fb8e12c7..269220dd6b84 100644
--- a/clients/client-iot/protocols/Aws_restJson1_1.ts
+++ b/clients/client-iot/protocols/Aws_restJson1_1.ts
@@ -1035,13 +1035,15 @@ export async function serializeAws_restJson1_1ConfirmTopicRuleDestinationCommand
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1078,13 +1080,15 @@ export async function serializeAws_restJson1_1CreateTopicRuleCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1106,13 +1110,15 @@ export async function serializeAws_restJson1_1CreateTopicRuleDestinationCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1136,13 +1142,15 @@ export async function serializeAws_restJson1_1DeleteTopicRuleCommand(
throw new Error("No value provided for input HTTP label: ruleName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1169,13 +1177,15 @@ export async function serializeAws_restJson1_1DeleteTopicRuleDestinationCommand(
throw new Error("No value provided for input HTTP label: arn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1194,14 +1204,16 @@ export async function serializeAws_restJson1_1DeleteV2LoggingLevelCommand(
query["targetType"] = input.targetType;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1225,13 +1237,15 @@ export async function serializeAws_restJson1_1DisableTopicRuleCommand(
throw new Error("No value provided for input HTTP label: ruleName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1255,13 +1269,15 @@ export async function serializeAws_restJson1_1EnableTopicRuleCommand(
throw new Error("No value provided for input HTTP label: ruleName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1274,13 +1290,15 @@ export async function serializeAws_restJson1_1GetLoggingOptionsCommand(
let resolvedPath = "/loggingOptions";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1304,13 +1322,15 @@ export async function serializeAws_restJson1_1GetTopicRuleCommand(
throw new Error("No value provided for input HTTP label: ruleName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1337,13 +1357,15 @@ export async function serializeAws_restJson1_1GetTopicRuleDestinationCommand(
throw new Error("No value provided for input HTTP label: arn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1356,13 +1378,15 @@ export async function serializeAws_restJson1_1GetV2LoggingOptionsCommand(
let resolvedPath = "/v2LoggingOptions";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1381,14 +1405,16 @@ export async function serializeAws_restJson1_1ListTopicRuleDestinationsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1413,14 +1439,16 @@ export async function serializeAws_restJson1_1ListTopicRulesCommand(
query["topic"] = input.topic;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1442,14 +1470,16 @@ export async function serializeAws_restJson1_1ListV2LoggingLevelsCommand(
query["targetType"] = input.targetType;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1483,13 +1513,15 @@ export async function serializeAws_restJson1_1ReplaceTopicRuleCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1511,13 +1543,15 @@ export async function serializeAws_restJson1_1SetLoggingOptionsCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1540,13 +1574,15 @@ export async function serializeAws_restJson1_1SetV2LoggingLevelCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1569,13 +1605,15 @@ export async function serializeAws_restJson1_1SetV2LoggingOptionsCommand(
bodyParams["roleArn"] = input.roleArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1595,13 +1633,15 @@ export async function serializeAws_restJson1_1UpdateTopicRuleDestinationCommand(
bodyParams["status"] = input.status;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1631,14 +1671,16 @@ export async function serializeAws_restJson1_1AcceptCertificateTransferCommand(
query["setAsActive"] = input.setAsActive.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1667,13 +1709,15 @@ export async function serializeAws_restJson1_1AttachPolicyCommand(
bodyParams["target"] = input.target;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1700,13 +1744,15 @@ export async function serializeAws_restJson1_1AttachPrincipalPolicyCommand(
throw new Error("No value provided for input HTTP label: policyName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1732,13 +1778,15 @@ export async function serializeAws_restJson1_1CancelCertificateTransferCommand(
throw new Error("No value provided for input HTTP label: certificateId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1751,13 +1799,15 @@ export async function serializeAws_restJson1_1ClearDefaultAuthorizerCommand(
let resolvedPath = "/default-authorizer";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1803,13 +1853,15 @@ export async function serializeAws_restJson1_1CreateAuthorizerCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1830,14 +1882,16 @@ export async function serializeAws_restJson1_1CreateCertificateFromCsrCommand(
bodyParams["certificateSigningRequest"] = input.certificateSigningRequest;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1890,13 +1944,15 @@ export async function serializeAws_restJson1_1CreateDomainConfigurationCommand(
bodyParams["validationCertificateArn"] = input.validationCertificateArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1912,14 +1968,16 @@ export async function serializeAws_restJson1_1CreateKeysAndCertificateCommand(
query["setAsActive"] = input.setAsActive.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1948,13 +2006,15 @@ export async function serializeAws_restJson1_1CreatePolicyCommand(
bodyParams["policyDocument"] = input.policyDocument;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1987,14 +2047,16 @@ export async function serializeAws_restJson1_1CreatePolicyVersionCommand(
bodyParams["policyDocument"] = input.policyDocument;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2021,13 +2083,15 @@ export async function serializeAws_restJson1_1CreateProvisioningClaimCommand(
throw new Error("No value provided for input HTTP label: templateName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2059,13 +2123,15 @@ export async function serializeAws_restJson1_1CreateProvisioningTemplateCommand(
bodyParams["templateName"] = input.templateName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2100,14 +2166,16 @@ export async function serializeAws_restJson1_1CreateProvisioningTemplateVersionC
bodyParams["templateBody"] = input.templateBody;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2139,13 +2207,15 @@ export async function serializeAws_restJson1_1CreateRoleAliasCommand(
bodyParams["roleArn"] = input.roleArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2171,13 +2241,15 @@ export async function serializeAws_restJson1_1DeleteAuthorizerCommand(
throw new Error("No value provided for input HTTP label: authorizerName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2203,13 +2275,15 @@ export async function serializeAws_restJson1_1DeleteCACertificateCommand(
throw new Error("No value provided for input HTTP label: certificateId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2239,14 +2313,16 @@ export async function serializeAws_restJson1_1DeleteCertificateCommand(
query["forceDelete"] = input.forceDelete.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2274,13 +2350,15 @@ export async function serializeAws_restJson1_1DeleteDomainConfigurationCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2304,13 +2382,15 @@ export async function serializeAws_restJson1_1DeletePolicyCommand(
throw new Error("No value provided for input HTTP label: policyName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2348,13 +2428,15 @@ export async function serializeAws_restJson1_1DeletePolicyVersionCommand(
throw new Error("No value provided for input HTTP label: policyVersionId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2380,13 +2462,15 @@ export async function serializeAws_restJson1_1DeleteProvisioningTemplateCommand(
throw new Error("No value provided for input HTTP label: templateName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2425,13 +2509,15 @@ export async function serializeAws_restJson1_1DeleteProvisioningTemplateVersionC
throw new Error("No value provided for input HTTP label: versionId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2444,13 +2530,15 @@ export async function serializeAws_restJson1_1DeleteRegistrationCodeCommand(
let resolvedPath = "/registrationcode";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2474,13 +2562,15 @@ export async function serializeAws_restJson1_1DeleteRoleAliasCommand(
throw new Error("No value provided for input HTTP label: roleAlias.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2506,13 +2596,15 @@ export async function serializeAws_restJson1_1DescribeAuthorizerCommand(
throw new Error("No value provided for input HTTP label: authorizerName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2538,13 +2630,15 @@ export async function serializeAws_restJson1_1DescribeCACertificateCommand(
throw new Error("No value provided for input HTTP label: certificateId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2570,13 +2664,15 @@ export async function serializeAws_restJson1_1DescribeCertificateCommand(
throw new Error("No value provided for input HTTP label: certificateId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2589,13 +2685,15 @@ export async function serializeAws_restJson1_1DescribeDefaultAuthorizerCommand(
let resolvedPath = "/default-authorizer";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2623,13 +2721,15 @@ export async function serializeAws_restJson1_1DescribeDomainConfigurationCommand
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2645,14 +2745,16 @@ export async function serializeAws_restJson1_1DescribeEndpointCommand(
query["endpointType"] = input.endpointType;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2678,13 +2780,15 @@ export async function serializeAws_restJson1_1DescribeProvisioningTemplateComman
throw new Error("No value provided for input HTTP label: templateName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2723,13 +2827,15 @@ export async function serializeAws_restJson1_1DescribeProvisioningTemplateVersio
throw new Error("No value provided for input HTTP label: versionId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2753,13 +2859,15 @@ export async function serializeAws_restJson1_1DescribeRoleAliasCommand(
throw new Error("No value provided for input HTTP label: roleAlias.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2788,13 +2896,15 @@ export async function serializeAws_restJson1_1DetachPolicyCommand(
bodyParams["target"] = input.target;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2821,13 +2931,15 @@ export async function serializeAws_restJson1_1DetachPrincipalPolicyCommand(
throw new Error("No value provided for input HTTP label: policyName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2851,14 +2963,16 @@ export async function serializeAws_restJson1_1GetEffectivePoliciesCommand(
bodyParams["principal"] = input.principal;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2882,13 +2996,15 @@ export async function serializeAws_restJson1_1GetPolicyCommand(
throw new Error("No value provided for input HTTP label: policyName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2926,13 +3042,15 @@ export async function serializeAws_restJson1_1GetPolicyVersionCommand(
throw new Error("No value provided for input HTTP label: policyVersionId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2945,13 +3063,15 @@ export async function serializeAws_restJson1_1GetRegistrationCodeCommand(
let resolvedPath = "/registrationcode";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2985,14 +3105,16 @@ export async function serializeAws_restJson1_1ListAttachedPoliciesCommand(
query["recursive"] = input.recursive.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3017,14 +3139,16 @@ export async function serializeAws_restJson1_1ListAuthorizersCommand(
query["status"] = input.status;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3046,14 +3170,16 @@ export async function serializeAws_restJson1_1ListCACertificatesCommand(
query["pageSize"] = input.pageSize.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3075,14 +3201,16 @@ export async function serializeAws_restJson1_1ListCertificatesCommand(
query["pageSize"] = input.pageSize.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3118,14 +3246,16 @@ export async function serializeAws_restJson1_1ListCertificatesByCACommand(
query["pageSize"] = input.pageSize.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3147,14 +3277,16 @@ export async function serializeAws_restJson1_1ListDomainConfigurationsCommand(
query["serviceType"] = input.serviceType;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3176,14 +3308,16 @@ export async function serializeAws_restJson1_1ListOutgoingCertificatesCommand(
query["pageSize"] = input.pageSize.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3205,14 +3339,16 @@ export async function serializeAws_restJson1_1ListPoliciesCommand(
query["pageSize"] = input.pageSize.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3237,14 +3373,16 @@ export async function serializeAws_restJson1_1ListPolicyPrincipalsCommand(
query["pageSize"] = input.pageSize.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3268,13 +3406,15 @@ export async function serializeAws_restJson1_1ListPolicyVersionsCommand(
throw new Error("No value provided for input HTTP label: policyName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3299,14 +3439,16 @@ export async function serializeAws_restJson1_1ListPrincipalPoliciesCommand(
query["pageSize"] = input.pageSize.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3339,14 +3481,16 @@ export async function serializeAws_restJson1_1ListProvisioningTemplateVersionsCo
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3365,14 +3509,16 @@ export async function serializeAws_restJson1_1ListProvisioningTemplatesCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3394,14 +3540,16 @@ export async function serializeAws_restJson1_1ListRoleAliasesCommand(
query["pageSize"] = input.pageSize.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3432,14 +3580,16 @@ export async function serializeAws_restJson1_1ListTargetsForPolicyCommand(
query["pageSize"] = input.pageSize.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3474,14 +3624,16 @@ export async function serializeAws_restJson1_1RegisterCACertificateCommand(
bodyParams["verificationCertificate"] = input.verificationCertificate;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3508,14 +3660,16 @@ export async function serializeAws_restJson1_1RegisterCertificateCommand(
bodyParams["status"] = input.status;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3538,13 +3692,15 @@ export async function serializeAws_restJson1_1RegisterThingCommand(
bodyParams["templateBody"] = input.templateBody;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3575,13 +3731,15 @@ export async function serializeAws_restJson1_1RejectCertificateTransferCommand(
bodyParams["rejectReason"] = input.rejectReason;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3598,13 +3756,15 @@ export async function serializeAws_restJson1_1SetDefaultAuthorizerCommand(
bodyParams["authorizerName"] = input.authorizerName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3642,13 +3802,15 @@ export async function serializeAws_restJson1_1SetDefaultPolicyVersionCommand(
throw new Error("No value provided for input HTTP label: policyVersionId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3690,14 +3852,16 @@ export async function serializeAws_restJson1_1TestAuthorizationCommand(
bodyParams["principal"] = input.principal;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3749,13 +3913,15 @@ export async function serializeAws_restJson1_1TestInvokeAuthorizerCommand(
bodyParams["tokenSignature"] = input.tokenSignature;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3790,14 +3956,16 @@ export async function serializeAws_restJson1_1TransferCertificateCommand(
bodyParams["transferMessage"] = input.transferMessage;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3840,13 +4008,15 @@ export async function serializeAws_restJson1_1UpdateAuthorizerCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3892,14 +4062,16 @@ export async function serializeAws_restJson1_1UpdateCACertificateCommand(
bodyParams["removeAutoRegistration"] = input.removeAutoRegistration;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3929,14 +4101,16 @@ export async function serializeAws_restJson1_1UpdateCertificateCommand(
query["newStatus"] = input.newStatus;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3978,13 +4152,15 @@ export async function serializeAws_restJson1_1UpdateDomainConfigurationCommand(
bodyParams["removeAuthorizerConfig"] = input.removeAuthorizerConfig;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4024,13 +4200,15 @@ export async function serializeAws_restJson1_1UpdateProvisioningTemplateCommand(
bodyParams["provisioningRoleArn"] = input.provisioningRoleArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4062,13 +4240,15 @@ export async function serializeAws_restJson1_1UpdateRoleAliasCommand(
bodyParams["roleArn"] = input.roleArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4092,13 +4272,15 @@ export async function serializeAws_restJson1_1DescribeIndexCommand(
throw new Error("No value provided for input HTTP label: indexName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4124,13 +4306,15 @@ export async function serializeAws_restJson1_1GetCardinalityCommand(
bodyParams["queryVersion"] = input.queryVersion;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4143,13 +4327,15 @@ export async function serializeAws_restJson1_1GetIndexingConfigurationCommand(
let resolvedPath = "/indexing/config";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4181,13 +4367,15 @@ export async function serializeAws_restJson1_1GetPercentilesCommand(
bodyParams["queryVersion"] = input.queryVersion;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4213,13 +4401,15 @@ export async function serializeAws_restJson1_1GetStatisticsCommand(
bodyParams["queryVersion"] = input.queryVersion;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4238,14 +4428,16 @@ export async function serializeAws_restJson1_1ListIndicesCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4274,13 +4466,15 @@ export async function serializeAws_restJson1_1SearchIndexCommand(
bodyParams["queryVersion"] = input.queryVersion;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4310,13 +4504,15 @@ export async function serializeAws_restJson1_1UpdateIndexingConfigurationCommand
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4351,13 +4547,15 @@ export async function serializeAws_restJson1_1AssociateTargetsWithJobCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4393,14 +4591,16 @@ export async function serializeAws_restJson1_1CancelJobCommand(
bodyParams["reasonCode"] = input.reasonCode;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4451,14 +4651,16 @@ export async function serializeAws_restJson1_1CancelJobExecutionCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4533,13 +4735,15 @@ export async function serializeAws_restJson1_1CreateJobCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4567,14 +4771,16 @@ export async function serializeAws_restJson1_1DeleteJobCommand(
query["force"] = input.force.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4629,14 +4835,16 @@ export async function serializeAws_restJson1_1DeleteJobExecutionCommand(
query["force"] = input.force.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4660,13 +4868,15 @@ export async function serializeAws_restJson1_1DescribeJobCommand(
throw new Error("No value provided for input HTTP label: jobId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4706,14 +4916,16 @@ export async function serializeAws_restJson1_1DescribeJobExecutionCommand(
query["executionNumber"] = input.executionNumber.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4737,13 +4949,15 @@ export async function serializeAws_restJson1_1GetJobDocumentCommand(
throw new Error("No value provided for input HTTP label: jobId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4777,14 +4991,16 @@ export async function serializeAws_restJson1_1ListJobExecutionsForJobCommand(
query["status"] = input.status;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4818,14 +5034,16 @@ export async function serializeAws_restJson1_1ListJobExecutionsForThingCommand(
query["status"] = input.status;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4856,14 +5074,16 @@ export async function serializeAws_restJson1_1ListJobsCommand(
query["thingGroupName"] = input.thingGroupName;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4920,13 +5140,15 @@ export async function serializeAws_restJson1_1UpdateJobCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5008,13 +5230,15 @@ export async function serializeAws_restJson1_1CreateOTAUpdateCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5047,14 +5271,16 @@ export async function serializeAws_restJson1_1DeleteOTAUpdateCommand(
query["forceDeleteAWSJob"] = input.forceDeleteAWSJob.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -5080,13 +5306,15 @@ export async function serializeAws_restJson1_1GetOTAUpdateCommand(
throw new Error("No value provided for input HTTP label: otaUpdateId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5108,14 +5336,16 @@ export async function serializeAws_restJson1_1ListOTAUpdatesCommand(
query["otaUpdateStatus"] = input.otaUpdateStatus;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -5141,13 +5371,15 @@ export async function serializeAws_restJson1_1AddThingToBillingGroupCommand(
bodyParams["thingName"] = input.thingName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5176,13 +5408,15 @@ export async function serializeAws_restJson1_1AddThingToThingGroupCommand(
bodyParams["thingName"] = input.thingName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5209,13 +5443,15 @@ export async function serializeAws_restJson1_1AttachThingPrincipalCommand(
throw new Error("No value provided for input HTTP label: thingName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5256,13 +5492,15 @@ export async function serializeAws_restJson1_1CreateBillingGroupCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagList(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5310,13 +5548,15 @@ export async function serializeAws_restJson1_1CreateDynamicThingGroupCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5354,13 +5594,15 @@ export async function serializeAws_restJson1_1CreateThingCommand(
bodyParams["thingTypeName"] = input.thingTypeName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5402,13 +5644,15 @@ export async function serializeAws_restJson1_1CreateThingGroupCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5447,13 +5691,15 @@ export async function serializeAws_restJson1_1CreateThingTypeCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5485,14 +5731,16 @@ export async function serializeAws_restJson1_1DeleteBillingGroupCommand(
query["expectedVersion"] = input.expectedVersion.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -5522,14 +5770,16 @@ export async function serializeAws_restJson1_1DeleteDynamicThingGroupCommand(
query["expectedVersion"] = input.expectedVersion.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -5557,14 +5807,16 @@ export async function serializeAws_restJson1_1DeleteThingCommand(
query["expectedVersion"] = input.expectedVersion.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -5594,14 +5846,16 @@ export async function serializeAws_restJson1_1DeleteThingGroupCommand(
query["expectedVersion"] = input.expectedVersion.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -5627,13 +5881,15 @@ export async function serializeAws_restJson1_1DeleteThingTypeCommand(
throw new Error("No value provided for input HTTP label: thingTypeName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5664,13 +5920,15 @@ export async function serializeAws_restJson1_1DeprecateThingTypeCommand(
bodyParams["undoDeprecate"] = input.undoDeprecate;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5698,13 +5956,15 @@ export async function serializeAws_restJson1_1DescribeBillingGroupCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5717,13 +5977,15 @@ export async function serializeAws_restJson1_1DescribeEventConfigurationsCommand
let resolvedPath = "/event-configurations";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5747,13 +6009,15 @@ export async function serializeAws_restJson1_1DescribeThingCommand(
throw new Error("No value provided for input HTTP label: thingName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5779,13 +6043,15 @@ export async function serializeAws_restJson1_1DescribeThingGroupCommand(
throw new Error("No value provided for input HTTP label: thingGroupName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5809,13 +6075,15 @@ export async function serializeAws_restJson1_1DescribeThingRegistrationTaskComma
throw new Error("No value provided for input HTTP label: taskId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5841,13 +6109,15 @@ export async function serializeAws_restJson1_1DescribeThingTypeCommand(
throw new Error("No value provided for input HTTP label: thingTypeName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5874,13 +6144,15 @@ export async function serializeAws_restJson1_1DetachThingPrincipalCommand(
throw new Error("No value provided for input HTTP label: thingName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5902,14 +6174,16 @@ export async function serializeAws_restJson1_1ListBillingGroupsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -5931,14 +6205,16 @@ export async function serializeAws_restJson1_1ListPrincipalThingsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -5957,14 +6233,16 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
query["resourceArn"] = input.resourceArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -5992,14 +6270,16 @@ export async function serializeAws_restJson1_1ListThingGroupsCommand(
query["recursive"] = input.recursive.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -6030,14 +6310,16 @@ export async function serializeAws_restJson1_1ListThingGroupsForThingCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -6061,13 +6343,15 @@ export async function serializeAws_restJson1_1ListThingPrincipalsCommand(
throw new Error("No value provided for input HTTP label: thingName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6101,14 +6385,16 @@ export async function serializeAws_restJson1_1ListThingRegistrationTaskReportsCo
query["reportType"] = input.reportType;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -6130,14 +6416,16 @@ export async function serializeAws_restJson1_1ListThingRegistrationTasksCommand(
query["status"] = input.status;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -6159,14 +6447,16 @@ export async function serializeAws_restJson1_1ListThingTypesCommand(
query["thingTypeName"] = input.thingTypeName;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -6194,14 +6484,16 @@ export async function serializeAws_restJson1_1ListThingsCommand(
query["thingTypeName"] = input.thingTypeName;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -6236,14 +6528,16 @@ export async function serializeAws_restJson1_1ListThingsInBillingGroupCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -6279,14 +6573,16 @@ export async function serializeAws_restJson1_1ListThingsInThingGroupCommand(
query["recursive"] = input.recursive.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -6312,13 +6608,15 @@ export async function serializeAws_restJson1_1RemoveThingFromBillingGroupCommand
bodyParams["thingName"] = input.thingName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6344,13 +6642,15 @@ export async function serializeAws_restJson1_1RemoveThingFromThingGroupCommand(
bodyParams["thingName"] = input.thingName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6376,13 +6676,15 @@ export async function serializeAws_restJson1_1StartThingRegistrationTaskCommand(
bodyParams["templateBody"] = input.templateBody;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6406,13 +6708,15 @@ export async function serializeAws_restJson1_1StopThingRegistrationTaskCommand(
throw new Error("No value provided for input HTTP label: taskId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6432,13 +6736,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagList(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6461,13 +6767,15 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6508,13 +6816,15 @@ export async function serializeAws_restJson1_1UpdateBillingGroupCommand(
bodyParams["expectedVersion"] = input.expectedVersion;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6562,13 +6872,15 @@ export async function serializeAws_restJson1_1UpdateDynamicThingGroupCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6590,13 +6902,15 @@ export async function serializeAws_restJson1_1UpdateEventConfigurationsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6637,13 +6951,15 @@ export async function serializeAws_restJson1_1UpdateThingCommand(
bodyParams["thingTypeName"] = input.thingTypeName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6682,13 +6998,15 @@ export async function serializeAws_restJson1_1UpdateThingGroupCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6720,13 +7038,15 @@ export async function serializeAws_restJson1_1UpdateThingGroupsForThingCommand(
bodyParams["thingName"] = input.thingName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6758,14 +7078,16 @@ export async function serializeAws_restJson1_1AttachSecurityProfileCommand(
query["securityProfileTargetArn"] = input.securityProfileTargetArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -6789,13 +7111,15 @@ export async function serializeAws_restJson1_1CancelAuditMitigationActionsTaskCo
throw new Error("No value provided for input HTTP label: taskId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6819,13 +7143,15 @@ export async function serializeAws_restJson1_1CancelAuditTaskCommand(
throw new Error("No value provided for input HTTP label: taskId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6863,13 +7189,15 @@ export async function serializeAws_restJson1_1CreateMitigationActionCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagList(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6919,13 +7247,15 @@ export async function serializeAws_restJson1_1CreateScheduledAuditCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -6981,13 +7311,15 @@ export async function serializeAws_restJson1_1CreateSecurityProfileCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagList(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7003,14 +7335,16 @@ export async function serializeAws_restJson1_1DeleteAccountAuditConfigurationCom
query["deleteScheduledAudits"] = input.deleteScheduledAudits.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -7034,13 +7368,15 @@ export async function serializeAws_restJson1_1DeleteMitigationActionCommand(
throw new Error("No value provided for input HTTP label: actionName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7068,13 +7404,15 @@ export async function serializeAws_restJson1_1DeleteScheduledAuditCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7106,14 +7444,16 @@ export async function serializeAws_restJson1_1DeleteSecurityProfileCommand(
query["expectedVersion"] = input.expectedVersion.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -7126,13 +7466,15 @@ export async function serializeAws_restJson1_1DescribeAccountAuditConfigurationC
let resolvedPath = "/audit/configuration";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7156,13 +7498,15 @@ export async function serializeAws_restJson1_1DescribeAuditFindingCommand(
throw new Error("No value provided for input HTTP label: findingId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7186,13 +7530,15 @@ export async function serializeAws_restJson1_1DescribeAuditMitigationActionsTask
throw new Error("No value provided for input HTTP label: taskId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7216,13 +7562,15 @@ export async function serializeAws_restJson1_1DescribeAuditTaskCommand(
throw new Error("No value provided for input HTTP label: taskId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7246,13 +7594,15 @@ export async function serializeAws_restJson1_1DescribeMitigationActionCommand(
throw new Error("No value provided for input HTTP label: actionName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7280,13 +7630,15 @@ export async function serializeAws_restJson1_1DescribeScheduledAuditCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7314,13 +7666,15 @@ export async function serializeAws_restJson1_1DescribeSecurityProfileCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7352,14 +7706,16 @@ export async function serializeAws_restJson1_1DetachSecurityProfileCommand(
query["securityProfileTargetArn"] = input.securityProfileTargetArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -7384,14 +7740,16 @@ export async function serializeAws_restJson1_1ListActiveViolationsCommand(
query["thingName"] = input.thingName;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -7431,13 +7789,15 @@ export async function serializeAws_restJson1_1ListAuditFindingsCommand(
bodyParams["taskId"] = input.taskId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7465,14 +7825,16 @@ export async function serializeAws_restJson1_1ListAuditMitigationActionsExecutio
query["taskId"] = input.taskId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -7510,14 +7872,16 @@ export async function serializeAws_restJson1_1ListAuditMitigationActionsTasksCom
query["taskStatus"] = input.taskStatus;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -7552,14 +7916,16 @@ export async function serializeAws_restJson1_1ListAuditTasksCommand(
query["taskType"] = input.taskType;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -7581,14 +7947,16 @@ export async function serializeAws_restJson1_1ListMitigationActionsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -7607,14 +7975,16 @@ export async function serializeAws_restJson1_1ListScheduledAuditsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -7633,14 +8003,16 @@ export async function serializeAws_restJson1_1ListSecurityProfilesCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -7665,14 +8037,16 @@ export async function serializeAws_restJson1_1ListSecurityProfilesForTargetComma
query["securityProfileTargetArn"] = input.securityProfileTargetArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -7707,14 +8081,16 @@ export async function serializeAws_restJson1_1ListTargetsForSecurityProfileComma
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -7749,14 +8125,16 @@ export async function serializeAws_restJson1_1ListViolationEventsCommand(
query["thingName"] = input.thingName;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -7804,13 +8182,15 @@ export async function serializeAws_restJson1_1StartAuditMitigationActionsTaskCom
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7832,13 +8212,15 @@ export async function serializeAws_restJson1_1StartOnDemandAuditTaskCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7871,13 +8253,15 @@ export async function serializeAws_restJson1_1UpdateAccountAuditConfigurationCom
bodyParams["roleArn"] = input.roleArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7912,13 +8296,15 @@ export async function serializeAws_restJson1_1UpdateMitigationActionCommand(
bodyParams["roleArn"] = input.roleArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -7965,13 +8351,15 @@ export async function serializeAws_restJson1_1UpdateScheduledAuditCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -8038,14 +8426,16 @@ export async function serializeAws_restJson1_1UpdateSecurityProfileCommand(
bodyParams["securityProfileDescription"] = input.securityProfileDescription;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -8065,13 +8455,15 @@ export async function serializeAws_restJson1_1ValidateSecurityProfileBehaviorsCo
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -8112,13 +8504,15 @@ export async function serializeAws_restJson1_1CreateStreamCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagList(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -8142,13 +8536,15 @@ export async function serializeAws_restJson1_1DeleteStreamCommand(
throw new Error("No value provided for input HTTP label: streamId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -8172,13 +8568,15 @@ export async function serializeAws_restJson1_1DescribeStreamCommand(
throw new Error("No value provided for input HTTP label: streamId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -8200,14 +8598,16 @@ export async function serializeAws_restJson1_1ListStreamsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -8245,13 +8645,15 @@ export async function serializeAws_restJson1_1UpdateStreamCommand(
bodyParams["roleArn"] = input.roleArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-iotanalytics/protocols/Aws_restJson1_1.ts b/clients/client-iotanalytics/protocols/Aws_restJson1_1.ts
index 6a8498f24f83..327881679715 100644
--- a/clients/client-iotanalytics/protocols/Aws_restJson1_1.ts
+++ b/clients/client-iotanalytics/protocols/Aws_restJson1_1.ts
@@ -256,13 +256,15 @@ export async function serializeAws_restJson1_1CancelPipelineReprocessingCommand(
throw new Error("No value provided for input HTTP label: reprocessingId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -294,13 +296,15 @@ export async function serializeAws_restJson1_1CreateChannelCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagList(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -354,13 +358,15 @@ export async function serializeAws_restJson1_1CreateDatasetCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -386,13 +392,15 @@ export async function serializeAws_restJson1_1CreateDatasetContentCommand(
throw new Error("No value provided for input HTTP label: datasetName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -424,13 +432,15 @@ export async function serializeAws_restJson1_1CreateDatastoreCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagList(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -458,13 +468,15 @@ export async function serializeAws_restJson1_1CreatePipelineCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagList(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -490,13 +502,15 @@ export async function serializeAws_restJson1_1DeleteChannelCommand(
throw new Error("No value provided for input HTTP label: channelName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -522,13 +536,15 @@ export async function serializeAws_restJson1_1DeleteDatasetCommand(
throw new Error("No value provided for input HTTP label: datasetName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -558,14 +574,16 @@ export async function serializeAws_restJson1_1DeleteDatasetContentCommand(
query["versionId"] = input.versionId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -591,13 +609,15 @@ export async function serializeAws_restJson1_1DeleteDatastoreCommand(
throw new Error("No value provided for input HTTP label: datastoreName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -623,13 +643,15 @@ export async function serializeAws_restJson1_1DeletePipelineCommand(
throw new Error("No value provided for input HTTP label: pipelineName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -659,14 +681,16 @@ export async function serializeAws_restJson1_1DescribeChannelCommand(
query["includeStatistics"] = input.includeStatistics.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -692,13 +716,15 @@ export async function serializeAws_restJson1_1DescribeDatasetCommand(
throw new Error("No value provided for input HTTP label: datasetName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -728,14 +754,16 @@ export async function serializeAws_restJson1_1DescribeDatastoreCommand(
query["includeStatistics"] = input.includeStatistics.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -748,13 +776,15 @@ export async function serializeAws_restJson1_1DescribeLoggingOptionsCommand(
let resolvedPath = "/logging";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -780,13 +810,15 @@ export async function serializeAws_restJson1_1DescribePipelineCommand(
throw new Error("No value provided for input HTTP label: pipelineName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -816,14 +848,16 @@ export async function serializeAws_restJson1_1GetDatasetContentCommand(
query["versionId"] = input.versionId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -842,14 +876,16 @@ export async function serializeAws_restJson1_1ListChannelsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -892,14 +928,16 @@ export async function serializeAws_restJson1_1ListDatasetContentsCommand(
).toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -918,14 +956,16 @@ export async function serializeAws_restJson1_1ListDatasetsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -944,14 +984,16 @@ export async function serializeAws_restJson1_1ListDatastoresCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -970,14 +1012,16 @@ export async function serializeAws_restJson1_1ListPipelinesCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -993,14 +1037,16 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
query["resourceArn"] = input.resourceArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1020,13 +1066,15 @@ export async function serializeAws_restJson1_1PutLoggingOptionsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1052,13 +1100,15 @@ export async function serializeAws_restJson1_1RunPipelineActivityCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1098,14 +1148,16 @@ export async function serializeAws_restJson1_1SampleChannelDataCommand(
).toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1139,13 +1191,15 @@ export async function serializeAws_restJson1_1StartPipelineReprocessingCommand(
bodyParams["startTime"] = Math.round(input.startTime.getTime() / 1000);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1166,14 +1220,16 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagList(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1192,14 +1248,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.tagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1239,13 +1297,15 @@ export async function serializeAws_restJson1_1UpdateChannelCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1307,13 +1367,15 @@ export async function serializeAws_restJson1_1UpdateDatasetCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1353,13 +1415,15 @@ export async function serializeAws_restJson1_1UpdateDatastoreCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1395,13 +1459,15 @@ export async function serializeAws_restJson1_1UpdatePipelineCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1424,13 +1490,15 @@ export async function serializeAws_restJson1_1BatchPutMessageCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-iotsecuretunneling/protocols/Aws_json1_1.ts b/clients/client-iotsecuretunneling/protocols/Aws_json1_1.ts
index 49666b769331..87ac24875a1b 100644
--- a/clients/client-iotsecuretunneling/protocols/Aws_json1_1.ts
+++ b/clients/client-iotsecuretunneling/protocols/Aws_json1_1.ts
@@ -1159,19 +1159,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-iotthingsgraph/protocols/Aws_json1_1.ts b/clients/client-iotthingsgraph/protocols/Aws_json1_1.ts
index 823266cde2ab..adddb331c245 100644
--- a/clients/client-iotthingsgraph/protocols/Aws_json1_1.ts
+++ b/clients/client-iotthingsgraph/protocols/Aws_json1_1.ts
@@ -6264,19 +6264,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-kafka/protocols/Aws_restJson1_1.ts b/clients/client-kafka/protocols/Aws_restJson1_1.ts
index a00f42a22d4e..c2eee9a7d8fe 100644
--- a/clients/client-kafka/protocols/Aws_restJson1_1.ts
+++ b/clients/client-kafka/protocols/Aws_restJson1_1.ts
@@ -193,13 +193,15 @@ export async function serializeAws_restJson1_1CreateClusterCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -230,13 +232,15 @@ export async function serializeAws_restJson1_1CreateConfigurationCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -264,14 +268,16 @@ export async function serializeAws_restJson1_1DeleteClusterCommand(
query["currentVersion"] = input.CurrentVersion;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -295,13 +301,15 @@ export async function serializeAws_restJson1_1DescribeClusterCommand(
throw new Error("No value provided for input HTTP label: ClusterArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -329,13 +337,15 @@ export async function serializeAws_restJson1_1DescribeClusterOperationCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -359,13 +369,15 @@ export async function serializeAws_restJson1_1DescribeConfigurationCommand(
throw new Error("No value provided for input HTTP label: Arn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -401,13 +413,15 @@ export async function serializeAws_restJson1_1DescribeConfigurationRevisionComma
throw new Error("No value provided for input HTTP label: Revision.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -431,13 +445,15 @@ export async function serializeAws_restJson1_1GetBootstrapBrokersCommand(
throw new Error("No value provided for input HTTP label: ClusterArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -468,14 +484,16 @@ export async function serializeAws_restJson1_1ListClusterOperationsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -497,14 +515,16 @@ export async function serializeAws_restJson1_1ListClustersCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -535,14 +555,16 @@ export async function serializeAws_restJson1_1ListConfigurationRevisionsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -561,14 +583,16 @@ export async function serializeAws_restJson1_1ListConfigurationsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -599,14 +623,16 @@ export async function serializeAws_restJson1_1ListNodesCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -632,13 +658,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: ResourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -672,13 +700,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -708,14 +738,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.TagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -747,13 +779,15 @@ export async function serializeAws_restJson1_1UpdateBrokerCountCommand(
bodyParams["targetNumberOfBrokerNodes"] = input.TargetNumberOfBrokerNodes;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -790,13 +824,15 @@ export async function serializeAws_restJson1_1UpdateBrokerStorageCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -831,13 +867,15 @@ export async function serializeAws_restJson1_1UpdateClusterConfigurationCommand(
bodyParams["currentVersion"] = input.CurrentVersion;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -875,13 +913,15 @@ export async function serializeAws_restJson1_1UpdateMonitoringCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-kendra/protocols/Aws_json1_1.ts b/clients/client-kendra/protocols/Aws_json1_1.ts
index ccf4ecfe1fc8..1bd9d4297329 100644
--- a/clients/client-kendra/protocols/Aws_json1_1.ts
+++ b/clients/client-kendra/protocols/Aws_json1_1.ts
@@ -5821,19 +5821,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-kinesis-analytics-v2/protocols/Aws_json1_1.ts b/clients/client-kinesis-analytics-v2/protocols/Aws_json1_1.ts
index 096d295cb905..c34d163d79a1 100644
--- a/clients/client-kinesis-analytics-v2/protocols/Aws_json1_1.ts
+++ b/clients/client-kinesis-analytics-v2/protocols/Aws_json1_1.ts
@@ -7804,19 +7804,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-kinesis-analytics/protocols/Aws_json1_1.ts b/clients/client-kinesis-analytics/protocols/Aws_json1_1.ts
index 5bfe0cdc61f2..71e528ebb2ab 100644
--- a/clients/client-kinesis-analytics/protocols/Aws_json1_1.ts
+++ b/clients/client-kinesis-analytics/protocols/Aws_json1_1.ts
@@ -5268,19 +5268,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-kinesis-video-archived-media/protocols/Aws_restJson1_1.ts b/clients/client-kinesis-video-archived-media/protocols/Aws_restJson1_1.ts
index 87b1b0f64337..45040b3163f9 100644
--- a/clients/client-kinesis-video-archived-media/protocols/Aws_restJson1_1.ts
+++ b/clients/client-kinesis-video-archived-media/protocols/Aws_restJson1_1.ts
@@ -82,13 +82,15 @@ export async function serializeAws_restJson1_1GetDASHStreamingSessionURLCommand(
bodyParams["StreamName"] = input.StreamName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -135,13 +137,15 @@ export async function serializeAws_restJson1_1GetHLSStreamingSessionURLCommand(
bodyParams["StreamName"] = input.StreamName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -164,13 +168,15 @@ export async function serializeAws_restJson1_1GetMediaForFragmentListCommand(
bodyParams["StreamName"] = input.StreamName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -199,13 +205,15 @@ export async function serializeAws_restJson1_1ListFragmentsCommand(
bodyParams["StreamName"] = input.StreamName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-kinesis-video-media/protocols/Aws_restJson1_1.ts b/clients/client-kinesis-video-media/protocols/Aws_restJson1_1.ts
index e2d7f8da5e85..08100c995f0f 100644
--- a/clients/client-kinesis-video-media/protocols/Aws_restJson1_1.ts
+++ b/clients/client-kinesis-video-media/protocols/Aws_restJson1_1.ts
@@ -45,13 +45,15 @@ export async function serializeAws_restJson1_1GetMediaCommand(
bodyParams["StreamName"] = input.StreamName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-kinesis-video-signaling/protocols/Aws_restJson1_1.ts b/clients/client-kinesis-video-signaling/protocols/Aws_restJson1_1.ts
index d4ba0e1780fc..22133b56a9e7 100644
--- a/clients/client-kinesis-video-signaling/protocols/Aws_restJson1_1.ts
+++ b/clients/client-kinesis-video-signaling/protocols/Aws_restJson1_1.ts
@@ -49,13 +49,15 @@ export async function serializeAws_restJson1_1GetIceServerConfigCommand(
bodyParams["Username"] = input.Username;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -78,13 +80,15 @@ export async function serializeAws_restJson1_1SendAlexaOfferToMasterCommand(
bodyParams["SenderClientId"] = input.SenderClientId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-kinesis-video/protocols/Aws_restJson1_1.ts b/clients/client-kinesis-video/protocols/Aws_restJson1_1.ts
index 95b246df7c56..c2b974f2f7fa 100644
--- a/clients/client-kinesis-video/protocols/Aws_restJson1_1.ts
+++ b/clients/client-kinesis-video/protocols/Aws_restJson1_1.ts
@@ -140,13 +140,15 @@ export async function serializeAws_restJson1_1CreateSignalingChannelCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -181,13 +183,15 @@ export async function serializeAws_restJson1_1CreateStreamCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -207,13 +211,15 @@ export async function serializeAws_restJson1_1DeleteSignalingChannelCommand(
bodyParams["CurrentVersion"] = input.CurrentVersion;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -233,13 +239,15 @@ export async function serializeAws_restJson1_1DeleteStreamCommand(
bodyParams["StreamARN"] = input.StreamARN;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -259,13 +267,15 @@ export async function serializeAws_restJson1_1DescribeSignalingChannelCommand(
bodyParams["ChannelName"] = input.ChannelName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -285,13 +295,15 @@ export async function serializeAws_restJson1_1DescribeStreamCommand(
bodyParams["StreamName"] = input.StreamName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -314,13 +326,15 @@ export async function serializeAws_restJson1_1GetDataEndpointCommand(
bodyParams["StreamName"] = input.StreamName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -345,13 +359,15 @@ export async function serializeAws_restJson1_1GetSignalingChannelEndpointCommand
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -379,13 +395,15 @@ export async function serializeAws_restJson1_1ListSignalingChannelsCommand(
bodyParams["NextToken"] = input.NextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -413,13 +431,15 @@ export async function serializeAws_restJson1_1ListStreamsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -439,13 +459,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
bodyParams["ResourceARN"] = input.ResourceARN;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -468,13 +490,15 @@ export async function serializeAws_restJson1_1ListTagsForStreamCommand(
bodyParams["StreamName"] = input.StreamName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -494,13 +518,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["Tags"] = serializeAws_restJson1_1TagList(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -526,13 +552,15 @@ export async function serializeAws_restJson1_1TagStreamCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -555,13 +583,15 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -587,13 +617,15 @@ export async function serializeAws_restJson1_1UntagStreamCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -622,13 +654,15 @@ export async function serializeAws_restJson1_1UpdateDataRetentionCommand(
bodyParams["StreamName"] = input.StreamName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -656,13 +690,15 @@ export async function serializeAws_restJson1_1UpdateSignalingChannelCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -691,13 +727,15 @@ export async function serializeAws_restJson1_1UpdateStreamCommand(
bodyParams["StreamName"] = input.StreamName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-kinesis/protocols/Aws_json1_1.ts b/clients/client-kinesis/protocols/Aws_json1_1.ts
index 62a11b6f2262..004b8b62f636 100644
--- a/clients/client-kinesis/protocols/Aws_json1_1.ts
+++ b/clients/client-kinesis/protocols/Aws_json1_1.ts
@@ -5200,19 +5200,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-kms/protocols/Aws_json1_1.ts b/clients/client-kms/protocols/Aws_json1_1.ts
index de50a6ece9e5..90a4a24ded19 100644
--- a/clients/client-kms/protocols/Aws_json1_1.ts
+++ b/clients/client-kms/protocols/Aws_json1_1.ts
@@ -9457,19 +9457,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-lakeformation/protocols/Aws_json1_1.ts b/clients/client-lakeformation/protocols/Aws_json1_1.ts
index f5a084c24fb3..39659bf29931 100644
--- a/clients/client-lakeformation/protocols/Aws_json1_1.ts
+++ b/clients/client-lakeformation/protocols/Aws_json1_1.ts
@@ -2853,19 +2853,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-lambda/protocols/Aws_restJson1_1.ts b/clients/client-lambda/protocols/Aws_restJson1_1.ts
index b6d2f2883397..76e87a0495c2 100644
--- a/clients/client-lambda/protocols/Aws_restJson1_1.ts
+++ b/clients/client-lambda/protocols/Aws_restJson1_1.ts
@@ -319,14 +319,16 @@ export async function serializeAws_restJson1_1AddLayerVersionPermissionCommand(
bodyParams["StatementId"] = input.StatementId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -379,14 +381,16 @@ export async function serializeAws_restJson1_1AddPermissionCommand(
bodyParams["StatementId"] = input.StatementId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -431,13 +435,15 @@ export async function serializeAws_restJson1_1CreateAliasCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -493,13 +499,15 @@ export async function serializeAws_restJson1_1CreateEventSourceMappingCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -579,13 +587,15 @@ export async function serializeAws_restJson1_1CreateFunctionCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -623,13 +633,15 @@ export async function serializeAws_restJson1_1DeleteAliasCommand(
throw new Error("No value provided for input HTTP label: Name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -653,13 +665,15 @@ export async function serializeAws_restJson1_1DeleteEventSourceMappingCommand(
throw new Error("No value provided for input HTTP label: UUID.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -689,14 +703,16 @@ export async function serializeAws_restJson1_1DeleteFunctionCommand(
query["Qualifier"] = input.Qualifier;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -722,13 +738,15 @@ export async function serializeAws_restJson1_1DeleteFunctionConcurrencyCommand(
throw new Error("No value provided for input HTTP label: FunctionName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -758,14 +776,16 @@ export async function serializeAws_restJson1_1DeleteFunctionEventInvokeConfigCom
query["Qualifier"] = input.Qualifier;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -803,13 +823,15 @@ export async function serializeAws_restJson1_1DeleteLayerVersionCommand(
throw new Error("No value provided for input HTTP label: VersionNumber.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -840,14 +862,16 @@ export async function serializeAws_restJson1_1DeleteProvisionedConcurrencyConfig
query["Qualifier"] = input.Qualifier;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -860,13 +884,15 @@ export async function serializeAws_restJson1_1GetAccountSettingsCommand(
let resolvedPath = "/2016-08-19/account-settings";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -904,13 +930,15 @@ export async function serializeAws_restJson1_1GetAliasCommand(
throw new Error("No value provided for input HTTP label: Name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -934,13 +962,15 @@ export async function serializeAws_restJson1_1GetEventSourceMappingCommand(
throw new Error("No value provided for input HTTP label: UUID.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -970,14 +1000,16 @@ export async function serializeAws_restJson1_1GetFunctionCommand(
query["Qualifier"] = input.Qualifier;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1003,13 +1035,15 @@ export async function serializeAws_restJson1_1GetFunctionConcurrencyCommand(
throw new Error("No value provided for input HTTP label: FunctionName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1039,14 +1073,16 @@ export async function serializeAws_restJson1_1GetFunctionConfigurationCommand(
query["Qualifier"] = input.Qualifier;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1076,14 +1112,16 @@ export async function serializeAws_restJson1_1GetFunctionEventInvokeConfigComman
query["Qualifier"] = input.Qualifier;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1121,13 +1159,15 @@ export async function serializeAws_restJson1_1GetLayerVersionCommand(
throw new Error("No value provided for input HTTP label: VersionNumber.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1145,14 +1185,16 @@ export async function serializeAws_restJson1_1GetLayerVersionByArnCommand(
query["Arn"] = input.Arn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1191,13 +1233,15 @@ export async function serializeAws_restJson1_1GetLayerVersionPolicyCommand(
throw new Error("No value provided for input HTTP label: VersionNumber.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1227,14 +1271,16 @@ export async function serializeAws_restJson1_1GetPolicyCommand(
query["Qualifier"] = input.Qualifier;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1265,14 +1311,16 @@ export async function serializeAws_restJson1_1GetProvisionedConcurrencyConfigCom
query["Qualifier"] = input.Qualifier;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1314,14 +1362,16 @@ export async function serializeAws_restJson1_1InvokeCommand(
if (input.Payload !== undefined) {
body = input.Payload;
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1350,13 +1400,15 @@ export async function serializeAws_restJson1_1InvokeAsyncCommand(
if (input.InvokeArgs !== undefined) {
body = input.InvokeArgs;
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1392,14 +1444,16 @@ export async function serializeAws_restJson1_1ListAliasesCommand(
query["MaxItems"] = input.MaxItems.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1424,14 +1478,16 @@ export async function serializeAws_restJson1_1ListEventSourceMappingsCommand(
query["MaxItems"] = input.MaxItems.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1465,14 +1521,16 @@ export async function serializeAws_restJson1_1ListFunctionEventInvokeConfigsComm
query["MaxItems"] = input.MaxItems.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1497,14 +1555,16 @@ export async function serializeAws_restJson1_1ListFunctionsCommand(
query["MaxItems"] = input.MaxItems.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1538,14 +1598,16 @@ export async function serializeAws_restJson1_1ListLayerVersionsCommand(
query["MaxItems"] = input.MaxItems.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1567,14 +1629,16 @@ export async function serializeAws_restJson1_1ListLayersCommand(
query["MaxItems"] = input.MaxItems.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1610,14 +1674,16 @@ export async function serializeAws_restJson1_1ListProvisionedConcurrencyConfigsC
query["MaxItems"] = input.MaxItems.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1641,13 +1707,15 @@ export async function serializeAws_restJson1_1ListTagsCommand(
throw new Error("No value provided for input HTTP label: Resource.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1680,14 +1748,16 @@ export async function serializeAws_restJson1_1ListVersionsByFunctionCommand(
query["MaxItems"] = input.MaxItems.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1733,13 +1803,15 @@ export async function serializeAws_restJson1_1PublishLayerVersionCommand(
bodyParams["LicenseInfo"] = input.LicenseInfo;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1776,13 +1848,15 @@ export async function serializeAws_restJson1_1PublishVersionCommand(
bodyParams["RevisionId"] = input.RevisionId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1814,13 +1888,15 @@ export async function serializeAws_restJson1_1PutFunctionConcurrencyCommand(
input.ReservedConcurrentExecutions;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1864,14 +1940,16 @@ export async function serializeAws_restJson1_1PutFunctionEventInvokeConfigComman
bodyParams["MaximumRetryAttempts"] = input.MaximumRetryAttempts;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1908,14 +1986,16 @@ export async function serializeAws_restJson1_1PutProvisionedConcurrencyConfigCom
input.ProvisionedConcurrentExecutions;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1972,14 +2052,16 @@ export async function serializeAws_restJson1_1RemoveLayerVersionPermissionComman
query["RevisionId"] = input.RevisionId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2027,14 +2109,16 @@ export async function serializeAws_restJson1_1RemovePermissionCommand(
query["RevisionId"] = input.RevisionId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2063,13 +2147,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["Tags"] = serializeAws_restJson1_1Tags(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2097,14 +2183,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.TagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2161,13 +2249,15 @@ export async function serializeAws_restJson1_1UpdateAliasCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2224,13 +2314,15 @@ export async function serializeAws_restJson1_1UpdateEventSourceMappingCommand(
bodyParams["ParallelizationFactor"] = input.ParallelizationFactor;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2279,13 +2371,15 @@ export async function serializeAws_restJson1_1UpdateFunctionCodeCommand(
bodyParams["ZipFile"] = context.base64Encoder(input.ZipFile);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2367,13 +2461,15 @@ export async function serializeAws_restJson1_1UpdateFunctionConfigurationCommand
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2417,14 +2513,16 @@ export async function serializeAws_restJson1_1UpdateFunctionEventInvokeConfigCom
bodyParams["MaximumRetryAttempts"] = input.MaximumRetryAttempts;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
diff --git a/clients/client-lex-model-building-service/protocols/Aws_restJson1_1.ts b/clients/client-lex-model-building-service/protocols/Aws_restJson1_1.ts
index 4faa42f208a2..b1775a9de442 100644
--- a/clients/client-lex-model-building-service/protocols/Aws_restJson1_1.ts
+++ b/clients/client-lex-model-building-service/protocols/Aws_restJson1_1.ts
@@ -216,13 +216,15 @@ export async function serializeAws_restJson1_1CreateBotVersionCommand(
bodyParams["checksum"] = input.checksum;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -251,13 +253,15 @@ export async function serializeAws_restJson1_1CreateIntentVersionCommand(
bodyParams["checksum"] = input.checksum;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -286,13 +290,15 @@ export async function serializeAws_restJson1_1CreateSlotTypeVersionCommand(
bodyParams["checksum"] = input.checksum;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -316,13 +322,15 @@ export async function serializeAws_restJson1_1DeleteBotCommand(
throw new Error("No value provided for input HTTP label: name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -358,13 +366,15 @@ export async function serializeAws_restJson1_1DeleteBotAliasCommand(
throw new Error("No value provided for input HTTP label: name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -412,13 +422,15 @@ export async function serializeAws_restJson1_1DeleteBotChannelAssociationCommand
throw new Error("No value provided for input HTTP label: name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -454,13 +466,15 @@ export async function serializeAws_restJson1_1DeleteBotVersionCommand(
throw new Error("No value provided for input HTTP label: version.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -484,13 +498,15 @@ export async function serializeAws_restJson1_1DeleteIntentCommand(
throw new Error("No value provided for input HTTP label: name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -526,13 +542,15 @@ export async function serializeAws_restJson1_1DeleteIntentVersionCommand(
throw new Error("No value provided for input HTTP label: version.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -556,13 +574,15 @@ export async function serializeAws_restJson1_1DeleteSlotTypeCommand(
throw new Error("No value provided for input HTTP label: name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -598,13 +618,15 @@ export async function serializeAws_restJson1_1DeleteSlotTypeVersionCommand(
throw new Error("No value provided for input HTTP label: version.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -640,13 +662,15 @@ export async function serializeAws_restJson1_1DeleteUtterancesCommand(
throw new Error("No value provided for input HTTP label: userId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -684,13 +708,15 @@ export async function serializeAws_restJson1_1GetBotCommand(
throw new Error("No value provided for input HTTP label: versionOrAlias.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -726,13 +752,15 @@ export async function serializeAws_restJson1_1GetBotAliasCommand(
throw new Error("No value provided for input HTTP label: name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -766,14 +794,16 @@ export async function serializeAws_restJson1_1GetBotAliasesCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -821,13 +851,15 @@ export async function serializeAws_restJson1_1GetBotChannelAssociationCommand(
throw new Error("No value provided for input HTTP label: name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -873,14 +905,16 @@ export async function serializeAws_restJson1_1GetBotChannelAssociationsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -911,14 +945,16 @@ export async function serializeAws_restJson1_1GetBotVersionsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -940,14 +976,16 @@ export async function serializeAws_restJson1_1GetBotsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -971,13 +1009,15 @@ export async function serializeAws_restJson1_1GetBuiltinIntentCommand(
throw new Error("No value provided for input HTTP label: signature.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1002,14 +1042,16 @@ export async function serializeAws_restJson1_1GetBuiltinIntentsCommand(
query["signatureContains"] = input.signatureContains;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1034,14 +1076,16 @@ export async function serializeAws_restJson1_1GetBuiltinSlotTypesCommand(
query["signatureContains"] = input.signatureContains;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1066,14 +1110,16 @@ export async function serializeAws_restJson1_1GetExportCommand(
query["version"] = input.version;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1097,13 +1143,15 @@ export async function serializeAws_restJson1_1GetImportCommand(
throw new Error("No value provided for input HTTP label: importId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1139,13 +1187,15 @@ export async function serializeAws_restJson1_1GetIntentCommand(
throw new Error("No value provided for input HTTP label: version.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1176,14 +1226,16 @@ export async function serializeAws_restJson1_1GetIntentVersionsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1205,14 +1257,16 @@ export async function serializeAws_restJson1_1GetIntentsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1248,13 +1302,15 @@ export async function serializeAws_restJson1_1GetSlotTypeCommand(
throw new Error("No value provided for input HTTP label: version.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1285,14 +1341,16 @@ export async function serializeAws_restJson1_1GetSlotTypeVersionsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1314,14 +1372,16 @@ export async function serializeAws_restJson1_1GetSlotTypesCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1354,14 +1414,16 @@ export async function serializeAws_restJson1_1GetUtterancesViewCommand(
query["status_type"] = input.statusType;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1432,13 +1494,15 @@ export async function serializeAws_restJson1_1PutBotCommand(
bodyParams["voiceId"] = input.voiceId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1493,13 +1557,15 @@ export async function serializeAws_restJson1_1PutBotAliasCommand(
bodyParams["description"] = input.description;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1589,13 +1655,15 @@ export async function serializeAws_restJson1_1PutIntentCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1639,13 +1707,15 @@ export async function serializeAws_restJson1_1PutSlotTypeCommand(
bodyParams["valueSelectionStrategy"] = input.valueSelectionStrategy;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1668,13 +1738,15 @@ export async function serializeAws_restJson1_1StartImportCommand(
bodyParams["resourceType"] = input.resourceType;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-lex-runtime-service/protocols/Aws_restJson1_1.ts b/clients/client-lex-runtime-service/protocols/Aws_restJson1_1.ts
index 2e3d2eff198f..3602a57f512f 100644
--- a/clients/client-lex-runtime-service/protocols/Aws_restJson1_1.ts
+++ b/clients/client-lex-runtime-service/protocols/Aws_restJson1_1.ts
@@ -97,13 +97,15 @@ export async function serializeAws_restJson1_1DeleteSessionCommand(
throw new Error("No value provided for input HTTP label: userId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -155,14 +157,16 @@ export async function serializeAws_restJson1_1GetSessionCommand(
query["checkpointLabelFilter"] = input.checkpointLabelFilter;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -230,13 +234,15 @@ export async function serializeAws_restJson1_1PostContentCommand(
if (input.inputStream !== undefined) {
body = input.inputStream;
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -301,13 +307,15 @@ export async function serializeAws_restJson1_1PostTextCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -380,13 +388,15 @@ export async function serializeAws_restJson1_1PutSessionCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-license-manager/protocols/Aws_json1_1.ts b/clients/client-license-manager/protocols/Aws_json1_1.ts
index 1610ed4797f0..82179e4a37a7 100644
--- a/clients/client-license-manager/protocols/Aws_json1_1.ts
+++ b/clients/client-license-manager/protocols/Aws_json1_1.ts
@@ -4022,19 +4022,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-lightsail/protocols/Aws_json1_1.ts b/clients/client-lightsail/protocols/Aws_json1_1.ts
index 51ea9e851094..68b37db1d5a0 100644
--- a/clients/client-lightsail/protocols/Aws_json1_1.ts
+++ b/clients/client-lightsail/protocols/Aws_json1_1.ts
@@ -22610,19 +22610,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-machine-learning/protocols/Aws_json1_1.ts b/clients/client-machine-learning/protocols/Aws_json1_1.ts
index e3c8885e0b41..cd8bb2ad1bb1 100644
--- a/clients/client-machine-learning/protocols/Aws_json1_1.ts
+++ b/clients/client-machine-learning/protocols/Aws_json1_1.ts
@@ -5519,19 +5519,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-macie/protocols/Aws_json1_1.ts b/clients/client-macie/protocols/Aws_json1_1.ts
index da80d4f8dada..3a2f0d541b67 100644
--- a/clients/client-macie/protocols/Aws_json1_1.ts
+++ b/clients/client-macie/protocols/Aws_json1_1.ts
@@ -1370,19 +1370,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-managedblockchain/protocols/Aws_restJson1_1.ts b/clients/client-managedblockchain/protocols/Aws_restJson1_1.ts
index 42b4ebad2a77..177455890808 100644
--- a/clients/client-managedblockchain/protocols/Aws_restJson1_1.ts
+++ b/clients/client-managedblockchain/protocols/Aws_restJson1_1.ts
@@ -163,13 +163,15 @@ export async function serializeAws_restJson1_1CreateMemberCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -223,13 +225,15 @@ export async function serializeAws_restJson1_1CreateNetworkCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -279,13 +283,15 @@ export async function serializeAws_restJson1_1CreateNodeCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -329,13 +335,15 @@ export async function serializeAws_restJson1_1CreateProposalCommand(
bodyParams["MemberId"] = input.MemberId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -371,13 +379,15 @@ export async function serializeAws_restJson1_1DeleteMemberCommand(
throw new Error("No value provided for input HTTP label: NetworkId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -425,13 +435,15 @@ export async function serializeAws_restJson1_1DeleteNodeCommand(
throw new Error("No value provided for input HTTP label: NodeId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -467,13 +479,15 @@ export async function serializeAws_restJson1_1GetMemberCommand(
throw new Error("No value provided for input HTTP label: NetworkId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -497,13 +511,15 @@ export async function serializeAws_restJson1_1GetNetworkCommand(
throw new Error("No value provided for input HTTP label: NetworkId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -551,13 +567,15 @@ export async function serializeAws_restJson1_1GetNodeCommand(
throw new Error("No value provided for input HTTP label: NodeId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -593,13 +611,15 @@ export async function serializeAws_restJson1_1GetProposalCommand(
throw new Error("No value provided for input HTTP label: ProposalId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -618,14 +638,16 @@ export async function serializeAws_restJson1_1ListInvitationsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -665,14 +687,16 @@ export async function serializeAws_restJson1_1ListMembersCommand(
query["status"] = input.Status;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -700,14 +724,16 @@ export async function serializeAws_restJson1_1ListNetworksCommand(
query["status"] = input.Status;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -753,14 +779,16 @@ export async function serializeAws_restJson1_1ListNodesCommand(
query["status"] = input.Status;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -803,14 +831,16 @@ export async function serializeAws_restJson1_1ListProposalVotesCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -841,14 +871,16 @@ export async function serializeAws_restJson1_1ListProposalsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -874,13 +906,15 @@ export async function serializeAws_restJson1_1RejectInvitationCommand(
throw new Error("No value provided for input HTTP label: InvitationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -924,13 +958,15 @@ export async function serializeAws_restJson1_1VoteOnProposalCommand(
bodyParams["VoterMemberId"] = input.VoterMemberId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-marketplace-catalog/protocols/Aws_restJson1_1.ts b/clients/client-marketplace-catalog/protocols/Aws_restJson1_1.ts
index 48a9560be128..979597d8bab4 100644
--- a/clients/client-marketplace-catalog/protocols/Aws_restJson1_1.ts
+++ b/clients/client-marketplace-catalog/protocols/Aws_restJson1_1.ts
@@ -70,14 +70,16 @@ export async function serializeAws_restJson1_1CancelChangeSetCommand(
query["changeSetId"] = input.ChangeSetId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -96,14 +98,16 @@ export async function serializeAws_restJson1_1DescribeChangeSetCommand(
query["changeSetId"] = input.ChangeSetId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -122,14 +126,16 @@ export async function serializeAws_restJson1_1DescribeEntityCommand(
query["entityId"] = input.EntityId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -161,13 +167,15 @@ export async function serializeAws_restJson1_1ListChangeSetsCommand(
bodyParams["Sort"] = serializeAws_restJson1_1Sort(input.Sort, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -202,13 +210,15 @@ export async function serializeAws_restJson1_1ListEntitiesCommand(
bodyParams["Sort"] = serializeAws_restJson1_1Sort(input.Sort, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -237,13 +247,15 @@ export async function serializeAws_restJson1_1StartChangeSetCommand(
bodyParams["ClientRequestToken"] = input.ClientRequestToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-marketplace-commerce-analytics/protocols/Aws_json1_1.ts b/clients/client-marketplace-commerce-analytics/protocols/Aws_json1_1.ts
index daf76c9e98eb..882fb88527a1 100644
--- a/clients/client-marketplace-commerce-analytics/protocols/Aws_json1_1.ts
+++ b/clients/client-marketplace-commerce-analytics/protocols/Aws_json1_1.ts
@@ -355,19 +355,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-marketplace-entitlement-service/protocols/Aws_json1_1.ts b/clients/client-marketplace-entitlement-service/protocols/Aws_json1_1.ts
index 65e00a938a0a..1c5808604d48 100644
--- a/clients/client-marketplace-entitlement-service/protocols/Aws_json1_1.ts
+++ b/clients/client-marketplace-entitlement-service/protocols/Aws_json1_1.ts
@@ -384,19 +384,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-marketplace-metering/protocols/Aws_json1_1.ts b/clients/client-marketplace-metering/protocols/Aws_json1_1.ts
index abf66570280d..aa792c9fbea4 100644
--- a/clients/client-marketplace-metering/protocols/Aws_json1_1.ts
+++ b/clients/client-marketplace-metering/protocols/Aws_json1_1.ts
@@ -1383,19 +1383,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-mediaconnect/protocols/Aws_restJson1_1.ts b/clients/client-mediaconnect/protocols/Aws_restJson1_1.ts
index 7a85bc2bf8d1..ef9f2e206a10 100644
--- a/clients/client-mediaconnect/protocols/Aws_restJson1_1.ts
+++ b/clients/client-mediaconnect/protocols/Aws_restJson1_1.ts
@@ -133,13 +133,15 @@ export async function serializeAws_restJson1_1AddFlowOutputsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -179,13 +181,15 @@ export async function serializeAws_restJson1_1CreateFlowCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -209,13 +213,15 @@ export async function serializeAws_restJson1_1DeleteFlowCommand(
throw new Error("No value provided for input HTTP label: FlowArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -239,13 +245,15 @@ export async function serializeAws_restJson1_1DescribeFlowCommand(
throw new Error("No value provided for input HTTP label: FlowArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -279,13 +287,15 @@ export async function serializeAws_restJson1_1GrantFlowEntitlementsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -304,14 +314,16 @@ export async function serializeAws_restJson1_1ListEntitlementsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -330,14 +342,16 @@ export async function serializeAws_restJson1_1ListFlowsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -363,13 +377,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: ResourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -405,13 +421,15 @@ export async function serializeAws_restJson1_1RemoveFlowOutputCommand(
throw new Error("No value provided for input HTTP label: OutputArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -449,13 +467,15 @@ export async function serializeAws_restJson1_1RevokeFlowEntitlementCommand(
throw new Error("No value provided for input HTTP label: FlowArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -479,13 +499,15 @@ export async function serializeAws_restJson1_1StartFlowCommand(
throw new Error("No value provided for input HTTP label: FlowArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -509,13 +531,15 @@ export async function serializeAws_restJson1_1StopFlowCommand(
throw new Error("No value provided for input HTTP label: FlowArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -549,13 +573,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -585,14 +611,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.TagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -647,13 +675,15 @@ export async function serializeAws_restJson1_1UpdateFlowEntitlementCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -727,13 +757,15 @@ export async function serializeAws_restJson1_1UpdateFlowOutputCommand(
bodyParams["streamId"] = input.StreamId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -801,13 +833,15 @@ export async function serializeAws_restJson1_1UpdateFlowSourceCommand(
bodyParams["whitelistCidr"] = input.WhitelistCidr;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-mediaconvert/protocols/Aws_restJson1_1.ts b/clients/client-mediaconvert/protocols/Aws_restJson1_1.ts
index a70f535bea8d..069b61eb818a 100644
--- a/clients/client-mediaconvert/protocols/Aws_restJson1_1.ts
+++ b/clients/client-mediaconvert/protocols/Aws_restJson1_1.ts
@@ -265,13 +265,15 @@ export async function serializeAws_restJson1_1AssociateCertificateCommand(
bodyParams["arn"] = input.Arn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -295,13 +297,15 @@ export async function serializeAws_restJson1_1CancelJobCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -368,13 +372,15 @@ export async function serializeAws_restJson1_1CreateJobCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -426,13 +432,15 @@ export async function serializeAws_restJson1_1CreateJobTemplateCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -467,13 +475,15 @@ export async function serializeAws_restJson1_1CreatePresetCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -513,13 +523,15 @@ export async function serializeAws_restJson1_1CreateQueueCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -543,13 +555,15 @@ export async function serializeAws_restJson1_1DeleteJobTemplateCommand(
throw new Error("No value provided for input HTTP label: Name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -573,13 +587,15 @@ export async function serializeAws_restJson1_1DeletePresetCommand(
throw new Error("No value provided for input HTTP label: Name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -603,13 +619,15 @@ export async function serializeAws_restJson1_1DeleteQueueCommand(
throw new Error("No value provided for input HTTP label: Name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -632,13 +650,15 @@ export async function serializeAws_restJson1_1DescribeEndpointsCommand(
bodyParams["nextToken"] = input.NextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -662,13 +682,15 @@ export async function serializeAws_restJson1_1DisassociateCertificateCommand(
throw new Error("No value provided for input HTTP label: Arn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -692,13 +714,15 @@ export async function serializeAws_restJson1_1GetJobCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -722,13 +746,15 @@ export async function serializeAws_restJson1_1GetJobTemplateCommand(
throw new Error("No value provided for input HTTP label: Name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -752,13 +778,15 @@ export async function serializeAws_restJson1_1GetPresetCommand(
throw new Error("No value provided for input HTTP label: Name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -782,13 +810,15 @@ export async function serializeAws_restJson1_1GetQueueCommand(
throw new Error("No value provided for input HTTP label: Name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -816,14 +846,16 @@ export async function serializeAws_restJson1_1ListJobTemplatesCommand(
query["order"] = input.Order;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -851,14 +883,16 @@ export async function serializeAws_restJson1_1ListJobsCommand(
query["status"] = input.Status;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -886,14 +920,16 @@ export async function serializeAws_restJson1_1ListPresetsCommand(
query["order"] = input.Order;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -918,14 +954,16 @@ export async function serializeAws_restJson1_1ListQueuesCommand(
query["order"] = input.Order;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -949,13 +987,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: Arn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -978,13 +1018,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1016,13 +1058,15 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1077,13 +1121,15 @@ export async function serializeAws_restJson1_1UpdateJobTemplateCommand(
bodyParams["statusUpdateInterval"] = input.StatusUpdateInterval;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1121,13 +1167,15 @@ export async function serializeAws_restJson1_1UpdatePresetCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1167,13 +1215,15 @@ export async function serializeAws_restJson1_1UpdateQueueCommand(
bodyParams["status"] = input.Status;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-medialive/protocols/Aws_restJson1_1.ts b/clients/client-medialive/protocols/Aws_restJson1_1.ts
index 478431ad1af3..2d6ac6e75e97 100644
--- a/clients/client-medialive/protocols/Aws_restJson1_1.ts
+++ b/clients/client-medialive/protocols/Aws_restJson1_1.ts
@@ -410,13 +410,15 @@ export async function serializeAws_restJson1_1BatchUpdateScheduleCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -484,13 +486,15 @@ export async function serializeAws_restJson1_1CreateChannelCommand(
bodyParams["tags"] = serializeAws_restJson1_1Tags(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -558,13 +562,15 @@ export async function serializeAws_restJson1_1CreateInputCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -589,13 +595,15 @@ export async function serializeAws_restJson1_1CreateInputSecurityGroupCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -633,13 +641,15 @@ export async function serializeAws_restJson1_1CreateMultiplexCommand(
bodyParams["tags"] = serializeAws_restJson1_1Tags(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -684,13 +694,15 @@ export async function serializeAws_restJson1_1CreateMultiplexProgramCommand(
bodyParams["requestId"] = input.RequestId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -721,13 +733,15 @@ export async function serializeAws_restJson1_1CreateTagsCommand(
bodyParams["tags"] = serializeAws_restJson1_1Tags(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -751,13 +765,15 @@ export async function serializeAws_restJson1_1DeleteChannelCommand(
throw new Error("No value provided for input HTTP label: ChannelId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -781,13 +797,15 @@ export async function serializeAws_restJson1_1DeleteInputCommand(
throw new Error("No value provided for input HTTP label: InputId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -815,13 +833,15 @@ export async function serializeAws_restJson1_1DeleteInputSecurityGroupCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -847,13 +867,15 @@ export async function serializeAws_restJson1_1DeleteMultiplexCommand(
throw new Error("No value provided for input HTTP label: MultiplexId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -893,13 +915,15 @@ export async function serializeAws_restJson1_1DeleteMultiplexProgramCommand(
throw new Error("No value provided for input HTTP label: ProgramName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -925,13 +949,15 @@ export async function serializeAws_restJson1_1DeleteReservationCommand(
throw new Error("No value provided for input HTTP label: ReservationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -955,13 +981,15 @@ export async function serializeAws_restJson1_1DeleteScheduleCommand(
throw new Error("No value provided for input HTTP label: ChannelId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -991,14 +1019,16 @@ export async function serializeAws_restJson1_1DeleteTagsCommand(
query["tagKeys"] = (input.TagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1022,13 +1052,15 @@ export async function serializeAws_restJson1_1DescribeChannelCommand(
throw new Error("No value provided for input HTTP label: ChannelId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1052,13 +1084,15 @@ export async function serializeAws_restJson1_1DescribeInputCommand(
throw new Error("No value provided for input HTTP label: InputId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1086,13 +1120,15 @@ export async function serializeAws_restJson1_1DescribeInputSecurityGroupCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1118,13 +1154,15 @@ export async function serializeAws_restJson1_1DescribeMultiplexCommand(
throw new Error("No value provided for input HTTP label: MultiplexId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1164,13 +1202,15 @@ export async function serializeAws_restJson1_1DescribeMultiplexProgramCommand(
throw new Error("No value provided for input HTTP label: ProgramName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1194,13 +1234,15 @@ export async function serializeAws_restJson1_1DescribeOfferingCommand(
throw new Error("No value provided for input HTTP label: OfferingId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1226,13 +1268,15 @@ export async function serializeAws_restJson1_1DescribeReservationCommand(
throw new Error("No value provided for input HTTP label: ReservationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1263,14 +1307,16 @@ export async function serializeAws_restJson1_1DescribeScheduleCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1289,14 +1335,16 @@ export async function serializeAws_restJson1_1ListChannelsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1315,14 +1363,16 @@ export async function serializeAws_restJson1_1ListInputSecurityGroupsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1341,14 +1391,16 @@ export async function serializeAws_restJson1_1ListInputsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1381,14 +1433,16 @@ export async function serializeAws_restJson1_1ListMultiplexProgramsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1407,14 +1461,16 @@ export async function serializeAws_restJson1_1ListMultiplexesCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1463,14 +1519,16 @@ export async function serializeAws_restJson1_1ListOfferingsCommand(
query["videoQuality"] = input.VideoQuality;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1513,14 +1571,16 @@ export async function serializeAws_restJson1_1ListReservationsCommand(
query["videoQuality"] = input.VideoQuality;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1546,13 +1606,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: ResourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1596,13 +1658,15 @@ export async function serializeAws_restJson1_1PurchaseOfferingCommand(
bodyParams["tags"] = serializeAws_restJson1_1Tags(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1626,13 +1690,15 @@ export async function serializeAws_restJson1_1StartChannelCommand(
throw new Error("No value provided for input HTTP label: ChannelId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1658,13 +1724,15 @@ export async function serializeAws_restJson1_1StartMultiplexCommand(
throw new Error("No value provided for input HTTP label: MultiplexId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1688,13 +1756,15 @@ export async function serializeAws_restJson1_1StopChannelCommand(
throw new Error("No value provided for input HTTP label: ChannelId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1720,13 +1790,15 @@ export async function serializeAws_restJson1_1StopMultiplexCommand(
throw new Error("No value provided for input HTTP label: MultiplexId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1791,13 +1863,15 @@ export async function serializeAws_restJson1_1UpdateChannelCommand(
bodyParams["roleArn"] = input.RoleArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1834,13 +1908,15 @@ export async function serializeAws_restJson1_1UpdateChannelClassCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1902,13 +1978,15 @@ export async function serializeAws_restJson1_1UpdateInputCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1949,13 +2027,15 @@ export async function serializeAws_restJson1_1UpdateInputSecurityGroupCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1992,13 +2072,15 @@ export async function serializeAws_restJson1_1UpdateMultiplexCommand(
bodyParams["name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2048,13 +2130,15 @@ export async function serializeAws_restJson1_1UpdateMultiplexProgramCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2085,13 +2169,15 @@ export async function serializeAws_restJson1_1UpdateReservationCommand(
bodyParams["name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-mediapackage-vod/protocols/Aws_restJson1_1.ts b/clients/client-mediapackage-vod/protocols/Aws_restJson1_1.ts
index fd70f4a91901..4490da97d034 100644
--- a/clients/client-mediapackage-vod/protocols/Aws_restJson1_1.ts
+++ b/clients/client-mediapackage-vod/protocols/Aws_restJson1_1.ts
@@ -111,13 +111,15 @@ export async function serializeAws_restJson1_1CreateAssetCommand(
bodyParams["sourceRoleArn"] = input.SourceRoleArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -161,13 +163,15 @@ export async function serializeAws_restJson1_1CreatePackagingConfigurationComman
bodyParams["packagingGroupId"] = input.PackagingGroupId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -184,13 +188,15 @@ export async function serializeAws_restJson1_1CreatePackagingGroupCommand(
bodyParams["id"] = input.Id;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -214,13 +220,15 @@ export async function serializeAws_restJson1_1DeleteAssetCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -244,13 +252,15 @@ export async function serializeAws_restJson1_1DeletePackagingConfigurationComman
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -274,13 +284,15 @@ export async function serializeAws_restJson1_1DeletePackagingGroupCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -304,13 +316,15 @@ export async function serializeAws_restJson1_1DescribeAssetCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -334,13 +348,15 @@ export async function serializeAws_restJson1_1DescribePackagingConfigurationComm
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -364,13 +380,15 @@ export async function serializeAws_restJson1_1DescribePackagingGroupCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -392,14 +410,16 @@ export async function serializeAws_restJson1_1ListAssetsCommand(
query["packagingGroupId"] = input.PackagingGroupId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -421,14 +441,16 @@ export async function serializeAws_restJson1_1ListPackagingConfigurationsCommand
query["packagingGroupId"] = input.PackagingGroupId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -447,14 +469,16 @@ export async function serializeAws_restJson1_1ListPackagingGroupsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
diff --git a/clients/client-mediapackage/protocols/Aws_restJson1_1.ts b/clients/client-mediapackage/protocols/Aws_restJson1_1.ts
index 2cbc0baf097f..d35d64cc3cb2 100644
--- a/clients/client-mediapackage/protocols/Aws_restJson1_1.ts
+++ b/clients/client-mediapackage/protocols/Aws_restJson1_1.ts
@@ -134,13 +134,15 @@ export async function serializeAws_restJson1_1CreateChannelCommand(
bodyParams["tags"] = serializeAws_restJson1_1Tags(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -172,13 +174,15 @@ export async function serializeAws_restJson1_1CreateHarvestJobCommand(
bodyParams["startTime"] = input.StartTime;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -254,13 +258,15 @@ export async function serializeAws_restJson1_1CreateOriginEndpointCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -284,13 +290,15 @@ export async function serializeAws_restJson1_1DeleteChannelCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -314,13 +322,15 @@ export async function serializeAws_restJson1_1DeleteOriginEndpointCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -344,13 +354,15 @@ export async function serializeAws_restJson1_1DescribeChannelCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -374,13 +386,15 @@ export async function serializeAws_restJson1_1DescribeHarvestJobCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -404,13 +418,15 @@ export async function serializeAws_restJson1_1DescribeOriginEndpointCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -429,14 +445,16 @@ export async function serializeAws_restJson1_1ListChannelsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -461,14 +479,16 @@ export async function serializeAws_restJson1_1ListHarvestJobsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -490,14 +510,16 @@ export async function serializeAws_restJson1_1ListOriginEndpointsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -523,13 +545,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: ResourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -553,13 +577,15 @@ export async function serializeAws_restJson1_1RotateChannelCredentialsCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -600,13 +626,15 @@ export async function serializeAws_restJson1_1RotateIngestEndpointCredentialsCom
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -640,13 +668,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -676,14 +706,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.TagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -712,13 +744,15 @@ export async function serializeAws_restJson1_1UpdateChannelCommand(
bodyParams["description"] = input.Description;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -797,13 +831,15 @@ export async function serializeAws_restJson1_1UpdateOriginEndpointCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-mediastore-data/protocols/Aws_restJson1_1.ts b/clients/client-mediastore-data/protocols/Aws_restJson1_1.ts
index b3595289516e..ccddf3a44039 100644
--- a/clients/client-mediastore-data/protocols/Aws_restJson1_1.ts
+++ b/clients/client-mediastore-data/protocols/Aws_restJson1_1.ts
@@ -63,13 +63,15 @@ export async function serializeAws_restJson1_1DeleteObjectCommand(
throw new Error("No value provided for input HTTP label: Path.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -96,13 +98,15 @@ export async function serializeAws_restJson1_1DescribeObjectCommand(
throw new Error("No value provided for input HTTP label: Path.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "HEAD",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -132,13 +136,15 @@ export async function serializeAws_restJson1_1GetObjectCommand(
throw new Error("No value provided for input HTTP label: Path.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -160,14 +166,16 @@ export async function serializeAws_restJson1_1ListItemsCommand(
query["Path"] = input.Path;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -207,13 +215,15 @@ export async function serializeAws_restJson1_1PutObjectCommand(
if (input.Body !== undefined) {
body = input.Body;
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-mediastore/protocols/Aws_json1_1.ts b/clients/client-mediastore/protocols/Aws_json1_1.ts
index ab7e645445df..e03fd0d58ff5 100644
--- a/clients/client-mediastore/protocols/Aws_json1_1.ts
+++ b/clients/client-mediastore/protocols/Aws_json1_1.ts
@@ -2853,19 +2853,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-mediatailor/protocols/Aws_restJson1_1.ts b/clients/client-mediatailor/protocols/Aws_restJson1_1.ts
index 9bdbb31b3fdb..16689a5cb5ce 100644
--- a/clients/client-mediatailor/protocols/Aws_restJson1_1.ts
+++ b/clients/client-mediatailor/protocols/Aws_restJson1_1.ts
@@ -70,13 +70,15 @@ export async function serializeAws_restJson1_1DeletePlaybackConfigurationCommand
throw new Error("No value provided for input HTTP label: Name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -100,13 +102,15 @@ export async function serializeAws_restJson1_1GetPlaybackConfigurationCommand(
throw new Error("No value provided for input HTTP label: Name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -125,14 +129,16 @@ export async function serializeAws_restJson1_1ListPlaybackConfigurationsCommand(
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -158,13 +164,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: ResourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -221,13 +229,15 @@ export async function serializeAws_restJson1_1PutPlaybackConfigurationCommand(
bodyParams["VideoContentSourceUrl"] = input.VideoContentSourceUrl;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -261,13 +271,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -297,14 +309,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.TagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
diff --git a/clients/client-migration-hub/protocols/Aws_json1_1.ts b/clients/client-migration-hub/protocols/Aws_json1_1.ts
index 3b482bbf9129..c08c51bea861 100644
--- a/clients/client-migration-hub/protocols/Aws_json1_1.ts
+++ b/clients/client-migration-hub/protocols/Aws_json1_1.ts
@@ -3874,19 +3874,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-migrationhub-config/protocols/Aws_json1_1.ts b/clients/client-migrationhub-config/protocols/Aws_json1_1.ts
index 46d0a0a33cf1..d106e70b926a 100644
--- a/clients/client-migrationhub-config/protocols/Aws_json1_1.ts
+++ b/clients/client-migrationhub-config/protocols/Aws_json1_1.ts
@@ -743,19 +743,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-mobile/protocols/Aws_restJson1_1.ts b/clients/client-mobile/protocols/Aws_restJson1_1.ts
index 752f7c343e4b..cc863a6454fd 100644
--- a/clients/client-mobile/protocols/Aws_restJson1_1.ts
+++ b/clients/client-mobile/protocols/Aws_restJson1_1.ts
@@ -85,14 +85,16 @@ export async function serializeAws_restJson1_1CreateProjectCommand(
if (input.contents !== undefined) {
body = input.contents;
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -116,13 +118,15 @@ export async function serializeAws_restJson1_1DeleteProjectCommand(
throw new Error("No value provided for input HTTP label: projectId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -146,13 +150,15 @@ export async function serializeAws_restJson1_1DescribeBundleCommand(
throw new Error("No value provided for input HTTP label: bundleId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -171,14 +177,16 @@ export async function serializeAws_restJson1_1DescribeProjectCommand(
query["syncFromResources"] = input.syncFromResources.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -209,14 +217,16 @@ export async function serializeAws_restJson1_1ExportBundleCommand(
query["projectId"] = input.projectId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -240,13 +250,15 @@ export async function serializeAws_restJson1_1ExportProjectCommand(
throw new Error("No value provided for input HTTP label: projectId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -265,14 +277,16 @@ export async function serializeAws_restJson1_1ListBundlesCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -291,14 +305,16 @@ export async function serializeAws_restJson1_1ListProjectsCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -317,14 +333,16 @@ export async function serializeAws_restJson1_1UpdateProjectCommand(
if (input.contents !== undefined) {
body = input.contents;
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
diff --git a/clients/client-mq/protocols/Aws_restJson1_1.ts b/clients/client-mq/protocols/Aws_restJson1_1.ts
index 6d41664d0d63..28169e50163a 100644
--- a/clients/client-mq/protocols/Aws_restJson1_1.ts
+++ b/clients/client-mq/protocols/Aws_restJson1_1.ts
@@ -217,13 +217,15 @@ export async function serializeAws_restJson1_1CreateBrokerCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -252,13 +254,15 @@ export async function serializeAws_restJson1_1CreateConfigurationCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -292,13 +296,15 @@ export async function serializeAws_restJson1_1CreateTagsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -348,13 +354,15 @@ export async function serializeAws_restJson1_1CreateUserCommand(
bodyParams["password"] = input.Password;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -378,13 +386,15 @@ export async function serializeAws_restJson1_1DeleteBrokerCommand(
throw new Error("No value provided for input HTTP label: BrokerId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -414,14 +424,16 @@ export async function serializeAws_restJson1_1DeleteTagsCommand(
query["tagKeys"] = (input.TagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -457,13 +469,15 @@ export async function serializeAws_restJson1_1DeleteUserCommand(
throw new Error("No value provided for input HTTP label: Username.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -487,13 +501,15 @@ export async function serializeAws_restJson1_1DescribeBrokerCommand(
throw new Error("No value provided for input HTTP label: BrokerId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -515,14 +531,16 @@ export async function serializeAws_restJson1_1DescribeBrokerEngineTypesCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -550,14 +568,16 @@ export async function serializeAws_restJson1_1DescribeBrokerInstanceOptionsComma
query["storageType"] = input.StorageType;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -583,13 +603,15 @@ export async function serializeAws_restJson1_1DescribeConfigurationCommand(
throw new Error("No value provided for input HTTP label: ConfigurationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -632,13 +654,15 @@ export async function serializeAws_restJson1_1DescribeConfigurationRevisionComma
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -674,13 +698,15 @@ export async function serializeAws_restJson1_1DescribeUserCommand(
throw new Error("No value provided for input HTTP label: Username.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -699,14 +725,16 @@ export async function serializeAws_restJson1_1ListBrokersCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -739,14 +767,16 @@ export async function serializeAws_restJson1_1ListConfigurationRevisionsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -765,14 +795,16 @@ export async function serializeAws_restJson1_1ListConfigurationsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -798,13 +830,15 @@ export async function serializeAws_restJson1_1ListTagsCommand(
throw new Error("No value provided for input HTTP label: ResourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -835,14 +869,16 @@ export async function serializeAws_restJson1_1ListUsersCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -866,13 +902,15 @@ export async function serializeAws_restJson1_1RebootBrokerCommand(
throw new Error("No value provided for input HTTP label: BrokerId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -922,13 +960,15 @@ export async function serializeAws_restJson1_1UpdateBrokerCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -962,13 +1002,15 @@ export async function serializeAws_restJson1_1UpdateConfigurationCommand(
bodyParams["description"] = input.Description;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1018,13 +1060,15 @@ export async function serializeAws_restJson1_1UpdateUserCommand(
bodyParams["password"] = input.Password;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-mturk/protocols/Aws_json1_1.ts b/clients/client-mturk/protocols/Aws_json1_1.ts
index 495ec897f0aa..f2d6aeca6c7d 100644
--- a/clients/client-mturk/protocols/Aws_json1_1.ts
+++ b/clients/client-mturk/protocols/Aws_json1_1.ts
@@ -6295,19 +6295,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-neptune/protocols/Aws_query.ts b/clients/client-neptune/protocols/Aws_query.ts
index dbb08260d0d4..36e5bc595b0f 100644
--- a/clients/client-neptune/protocols/Aws_query.ts
+++ b/clients/client-neptune/protocols/Aws_query.ts
@@ -15067,19 +15067,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-networkmanager/protocols/Aws_restJson1_1.ts b/clients/client-networkmanager/protocols/Aws_restJson1_1.ts
index 9fc0dd73fc01..8d820f1a26ce 100644
--- a/clients/client-networkmanager/protocols/Aws_restJson1_1.ts
+++ b/clients/client-networkmanager/protocols/Aws_restJson1_1.ts
@@ -180,13 +180,15 @@ export async function serializeAws_restJson1_1AssociateCustomerGatewayCommand(
bodyParams["LinkId"] = input.LinkId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -220,13 +222,15 @@ export async function serializeAws_restJson1_1AssociateLinkCommand(
bodyParams["LinkId"] = input.LinkId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -281,13 +285,15 @@ export async function serializeAws_restJson1_1CreateDeviceCommand(
bodyParams["Vendor"] = input.Vendor;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -307,13 +313,15 @@ export async function serializeAws_restJson1_1CreateGlobalNetworkCommand(
bodyParams["Tags"] = serializeAws_restJson1_1TagList(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -362,13 +370,15 @@ export async function serializeAws_restJson1_1CreateLinkCommand(
bodyParams["Type"] = input.Type;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -408,13 +418,15 @@ export async function serializeAws_restJson1_1CreateSiteCommand(
bodyParams["Tags"] = serializeAws_restJson1_1TagList(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -452,13 +464,15 @@ export async function serializeAws_restJson1_1DeleteDeviceCommand(
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -484,13 +498,15 @@ export async function serializeAws_restJson1_1DeleteGlobalNetworkCommand(
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -528,13 +544,15 @@ export async function serializeAws_restJson1_1DeleteLinkCommand(
throw new Error("No value provided for input HTTP label: LinkId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -572,13 +590,15 @@ export async function serializeAws_restJson1_1DeleteSiteCommand(
throw new Error("No value provided for input HTTP label: SiteId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -621,13 +641,15 @@ export async function serializeAws_restJson1_1DeregisterTransitGatewayCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -651,14 +673,16 @@ export async function serializeAws_restJson1_1DescribeGlobalNetworksCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -701,13 +725,15 @@ export async function serializeAws_restJson1_1DisassociateCustomerGatewayCommand
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -740,14 +766,16 @@ export async function serializeAws_restJson1_1DisassociateLinkCommand(
query["linkId"] = input.LinkId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -786,14 +814,16 @@ export async function serializeAws_restJson1_1GetCustomerGatewayAssociationsComm
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -832,14 +862,16 @@ export async function serializeAws_restJson1_1GetDevicesCommand(
query["siteId"] = input.SiteId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -878,14 +910,16 @@ export async function serializeAws_restJson1_1GetLinkAssociationsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -930,14 +964,16 @@ export async function serializeAws_restJson1_1GetLinksCommand(
query["type"] = input.Type;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -973,14 +1009,16 @@ export async function serializeAws_restJson1_1GetSitesCommand(
query["siteIds"] = (input.SiteIds || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1019,14 +1057,16 @@ export async function serializeAws_restJson1_1GetTransitGatewayRegistrationsComm
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1052,13 +1092,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: ResourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1090,13 +1132,15 @@ export async function serializeAws_restJson1_1RegisterTransitGatewayCommand(
bodyParams["TransitGatewayArn"] = input.TransitGatewayArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1127,13 +1171,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["Tags"] = serializeAws_restJson1_1TagList(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1163,14 +1209,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.TagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1234,13 +1282,15 @@ export async function serializeAws_restJson1_1UpdateDeviceCommand(
bodyParams["Vendor"] = input.Vendor;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1271,13 +1321,15 @@ export async function serializeAws_restJson1_1UpdateGlobalNetworkCommand(
bodyParams["Description"] = input.Description;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1332,13 +1384,15 @@ export async function serializeAws_restJson1_1UpdateLinkCommand(
bodyParams["Type"] = input.Type;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1387,13 +1441,15 @@ export async function serializeAws_restJson1_1UpdateSiteCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-opsworks/protocols/Aws_json1_1.ts b/clients/client-opsworks/protocols/Aws_json1_1.ts
index 3401d906675e..98d78aca2fb7 100644
--- a/clients/client-opsworks/protocols/Aws_json1_1.ts
+++ b/clients/client-opsworks/protocols/Aws_json1_1.ts
@@ -11749,19 +11749,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-opsworkscm/protocols/Aws_json1_1.ts b/clients/client-opsworkscm/protocols/Aws_json1_1.ts
index 55944deee307..aa3ea1b8f08f 100644
--- a/clients/client-opsworkscm/protocols/Aws_json1_1.ts
+++ b/clients/client-opsworkscm/protocols/Aws_json1_1.ts
@@ -3339,19 +3339,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-organizations/protocols/Aws_json1_1.ts b/clients/client-organizations/protocols/Aws_json1_1.ts
index 363efc9555f0..7866fe014df9 100644
--- a/clients/client-organizations/protocols/Aws_json1_1.ts
+++ b/clients/client-organizations/protocols/Aws_json1_1.ts
@@ -10796,19 +10796,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-outposts/protocols/Aws_restJson1_1.ts b/clients/client-outposts/protocols/Aws_restJson1_1.ts
index 2754f51d7f90..691a5849a2af 100644
--- a/clients/client-outposts/protocols/Aws_restJson1_1.ts
+++ b/clients/client-outposts/protocols/Aws_restJson1_1.ts
@@ -68,13 +68,15 @@ export async function serializeAws_restJson1_1CreateOutpostCommand(
bodyParams["SiteId"] = input.SiteId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -98,13 +100,15 @@ export async function serializeAws_restJson1_1GetOutpostCommand(
throw new Error("No value provided for input HTTP label: OutpostId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -135,14 +139,16 @@ export async function serializeAws_restJson1_1GetOutpostInstanceTypesCommand(
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -161,14 +167,16 @@ export async function serializeAws_restJson1_1ListOutpostsCommand(
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -187,14 +195,16 @@ export async function serializeAws_restJson1_1ListSitesCommand(
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
diff --git a/clients/client-personalize-events/protocols/Aws_restJson1_1.ts b/clients/client-personalize-events/protocols/Aws_restJson1_1.ts
index 4cdf9c65fc34..eb35d0cd9337 100644
--- a/clients/client-personalize-events/protocols/Aws_restJson1_1.ts
+++ b/clients/client-personalize-events/protocols/Aws_restJson1_1.ts
@@ -43,13 +43,15 @@ export async function serializeAws_restJson1_1PutEventsCommand(
bodyParams["userId"] = input.userId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-personalize-runtime/protocols/Aws_restJson1_1.ts b/clients/client-personalize-runtime/protocols/Aws_restJson1_1.ts
index ca6bfda4cd2e..7cf1e9b70af7 100644
--- a/clients/client-personalize-runtime/protocols/Aws_restJson1_1.ts
+++ b/clients/client-personalize-runtime/protocols/Aws_restJson1_1.ts
@@ -51,13 +51,15 @@ export async function serializeAws_restJson1_1GetPersonalizedRankingCommand(
bodyParams["userId"] = input.userId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -89,13 +91,15 @@ export async function serializeAws_restJson1_1GetRecommendationsCommand(
bodyParams["userId"] = input.userId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-personalize/protocols/Aws_json1_1.ts b/clients/client-personalize/protocols/Aws_json1_1.ts
index f6a535e69282..71dcc2329a5f 100644
--- a/clients/client-personalize/protocols/Aws_json1_1.ts
+++ b/clients/client-personalize/protocols/Aws_json1_1.ts
@@ -7597,19 +7597,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-pi/protocols/Aws_json1_1.ts b/clients/client-pi/protocols/Aws_json1_1.ts
index 4bb1babdd339..a51993792595 100644
--- a/clients/client-pi/protocols/Aws_json1_1.ts
+++ b/clients/client-pi/protocols/Aws_json1_1.ts
@@ -765,19 +765,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-pinpoint-email/protocols/Aws_restJson1_1.ts b/clients/client-pinpoint-email/protocols/Aws_restJson1_1.ts
index 16a1667fa37b..1cad8c363e84 100644
--- a/clients/client-pinpoint-email/protocols/Aws_restJson1_1.ts
+++ b/clients/client-pinpoint-email/protocols/Aws_restJson1_1.ts
@@ -270,13 +270,15 @@ export async function serializeAws_restJson1_1CreateConfigurationSetCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -318,13 +320,15 @@ export async function serializeAws_restJson1_1CreateConfigurationSetEventDestina
bodyParams["EventDestinationName"] = input.EventDestinationName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -344,13 +348,15 @@ export async function serializeAws_restJson1_1CreateDedicatedIpPoolCommand(
bodyParams["Tags"] = serializeAws_restJson1_1TagList(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -379,13 +385,15 @@ export async function serializeAws_restJson1_1CreateDeliverabilityTestReportComm
bodyParams["Tags"] = serializeAws_restJson1_1TagList(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -405,13 +413,15 @@ export async function serializeAws_restJson1_1CreateEmailIdentityCommand(
bodyParams["Tags"] = serializeAws_restJson1_1TagList(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -439,13 +449,15 @@ export async function serializeAws_restJson1_1DeleteConfigurationSetCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -490,13 +502,15 @@ export async function serializeAws_restJson1_1DeleteConfigurationSetEventDestina
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -520,13 +534,15 @@ export async function serializeAws_restJson1_1DeleteDedicatedIpPoolCommand(
throw new Error("No value provided for input HTTP label: PoolName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -552,13 +568,15 @@ export async function serializeAws_restJson1_1DeleteEmailIdentityCommand(
throw new Error("No value provided for input HTTP label: EmailIdentity.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -571,13 +589,15 @@ export async function serializeAws_restJson1_1GetAccountCommand(
let resolvedPath = "/v1/email/account";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -595,14 +615,16 @@ export async function serializeAws_restJson1_1GetBlacklistReportsCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -630,13 +652,15 @@ export async function serializeAws_restJson1_1GetConfigurationSetCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -665,13 +689,15 @@ export async function serializeAws_restJson1_1GetConfigurationSetEventDestinatio
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -695,13 +721,15 @@ export async function serializeAws_restJson1_1GetDedicatedIpCommand(
throw new Error("No value provided for input HTTP label: Ip.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -723,14 +751,16 @@ export async function serializeAws_restJson1_1GetDedicatedIpsCommand(
query["PoolName"] = input.PoolName;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -743,13 +773,15 @@ export async function serializeAws_restJson1_1GetDeliverabilityDashboardOptionsC
let resolvedPath = "/v1/email/deliverability-dashboard";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -774,13 +806,15 @@ export async function serializeAws_restJson1_1GetDeliverabilityTestReportCommand
throw new Error("No value provided for input HTTP label: ReportId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -805,13 +839,15 @@ export async function serializeAws_restJson1_1GetDomainDeliverabilityCampaignCom
throw new Error("No value provided for input HTTP label: CampaignId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -847,14 +883,16 @@ export async function serializeAws_restJson1_1GetDomainStatisticsReportCommand(
).toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -880,13 +918,15 @@ export async function serializeAws_restJson1_1GetEmailIdentityCommand(
throw new Error("No value provided for input HTTP label: EmailIdentity.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -905,14 +945,16 @@ export async function serializeAws_restJson1_1ListConfigurationSetsCommand(
query["PageSize"] = input.PageSize.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -931,14 +973,16 @@ export async function serializeAws_restJson1_1ListDedicatedIpPoolsCommand(
query["PageSize"] = input.PageSize.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -957,14 +1001,16 @@ export async function serializeAws_restJson1_1ListDeliverabilityTestReportsComma
query["PageSize"] = input.PageSize.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1010,14 +1056,16 @@ export async function serializeAws_restJson1_1ListDomainDeliverabilityCampaignsC
).toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1036,14 +1084,16 @@ export async function serializeAws_restJson1_1ListEmailIdentitiesCommand(
query["PageSize"] = input.PageSize.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1059,14 +1109,16 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
query["ResourceArn"] = input.ResourceArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1083,13 +1135,15 @@ export async function serializeAws_restJson1_1PutAccountDedicatedIpWarmupAttribu
bodyParams["AutoWarmupEnabled"] = input.AutoWarmupEnabled;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1106,13 +1160,15 @@ export async function serializeAws_restJson1_1PutAccountSendingAttributesCommand
bodyParams["SendingEnabled"] = input.SendingEnabled;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1149,13 +1205,15 @@ export async function serializeAws_restJson1_1PutConfigurationSetDeliveryOptions
bodyParams["TlsPolicy"] = input.TlsPolicy;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1189,13 +1247,15 @@ export async function serializeAws_restJson1_1PutConfigurationSetReputationOptio
bodyParams["ReputationMetricsEnabled"] = input.ReputationMetricsEnabled;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1229,13 +1289,15 @@ export async function serializeAws_restJson1_1PutConfigurationSetSendingOptionsC
bodyParams["SendingEnabled"] = input.SendingEnabled;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1269,13 +1331,15 @@ export async function serializeAws_restJson1_1PutConfigurationSetTrackingOptions
bodyParams["CustomRedirectDomain"] = input.CustomRedirectDomain;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1304,13 +1368,15 @@ export async function serializeAws_restJson1_1PutDedicatedIpInPoolCommand(
bodyParams["DestinationPoolName"] = input.DestinationPoolName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1339,13 +1405,15 @@ export async function serializeAws_restJson1_1PutDedicatedIpWarmupAttributesComm
bodyParams["WarmupPercentage"] = input.WarmupPercentage;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1370,13 +1438,15 @@ export async function serializeAws_restJson1_1PutDeliverabilityDashboardOptionCo
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1407,13 +1477,15 @@ export async function serializeAws_restJson1_1PutEmailIdentityDkimAttributesComm
bodyParams["SigningEnabled"] = input.SigningEnabled;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1444,13 +1516,15 @@ export async function serializeAws_restJson1_1PutEmailIdentityFeedbackAttributes
bodyParams["EmailForwardingEnabled"] = input.EmailForwardingEnabled;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1484,13 +1558,15 @@ export async function serializeAws_restJson1_1PutEmailIdentityMailFromAttributes
bodyParams["MailFromDomain"] = input.MailFromDomain;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1538,13 +1614,15 @@ export async function serializeAws_restJson1_1SendEmailCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1564,13 +1642,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["Tags"] = serializeAws_restJson1_1TagList(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1589,14 +1669,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["TagKeys"] = (input.TagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1651,13 +1733,15 @@ export async function serializeAws_restJson1_1UpdateConfigurationSetEventDestina
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-pinpoint-sms-voice/protocols/Aws_restJson1_1.ts b/clients/client-pinpoint-sms-voice/protocols/Aws_restJson1_1.ts
index 09f325d0c90c..2fee936b3aa4 100644
--- a/clients/client-pinpoint-sms-voice/protocols/Aws_restJson1_1.ts
+++ b/clients/client-pinpoint-sms-voice/protocols/Aws_restJson1_1.ts
@@ -76,13 +76,15 @@ export async function serializeAws_restJson1_1CreateConfigurationSetCommand(
bodyParams["ConfigurationSetName"] = input.ConfigurationSetName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -124,13 +126,15 @@ export async function serializeAws_restJson1_1CreateConfigurationSetEventDestina
bodyParams["EventDestinationName"] = input.EventDestinationName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -158,13 +162,15 @@ export async function serializeAws_restJson1_1DeleteConfigurationSetCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -209,13 +215,15 @@ export async function serializeAws_restJson1_1DeleteConfigurationSetEventDestina
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -244,13 +252,15 @@ export async function serializeAws_restJson1_1GetConfigurationSetEventDestinatio
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -269,14 +279,16 @@ export async function serializeAws_restJson1_1ListConfigurationSetsCommand(
query["PageSize"] = input.PageSize;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -308,13 +320,15 @@ export async function serializeAws_restJson1_1SendVoiceMessageCommand(
bodyParams["OriginationPhoneNumber"] = input.OriginationPhoneNumber;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -369,13 +383,15 @@ export async function serializeAws_restJson1_1UpdateConfigurationSetEventDestina
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-pinpoint/protocols/Aws_restJson1_1.ts b/clients/client-pinpoint/protocols/Aws_restJson1_1.ts
index b0f6abfb6842..242176c4fae1 100644
--- a/clients/client-pinpoint/protocols/Aws_restJson1_1.ts
+++ b/clients/client-pinpoint/protocols/Aws_restJson1_1.ts
@@ -632,13 +632,15 @@ export async function serializeAws_restJson1_1CreateAppCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -674,13 +676,15 @@ export async function serializeAws_restJson1_1CreateCampaignCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -716,13 +720,15 @@ export async function serializeAws_restJson1_1CreateEmailTemplateCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -758,13 +764,15 @@ export async function serializeAws_restJson1_1CreateExportJobCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -800,13 +808,15 @@ export async function serializeAws_restJson1_1CreateImportJobCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -842,13 +852,15 @@ export async function serializeAws_restJson1_1CreateJourneyCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -884,13 +896,15 @@ export async function serializeAws_restJson1_1CreatePushTemplateCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -926,13 +940,15 @@ export async function serializeAws_restJson1_1CreateSegmentCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -968,13 +984,15 @@ export async function serializeAws_restJson1_1CreateSmsTemplateCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1010,13 +1028,15 @@ export async function serializeAws_restJson1_1CreateVoiceTemplateCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1042,13 +1062,15 @@ export async function serializeAws_restJson1_1DeleteAdmChannelCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1074,13 +1096,15 @@ export async function serializeAws_restJson1_1DeleteApnsChannelCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1106,13 +1130,15 @@ export async function serializeAws_restJson1_1DeleteApnsSandboxChannelCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1138,13 +1164,15 @@ export async function serializeAws_restJson1_1DeleteApnsVoipChannelCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1170,13 +1198,15 @@ export async function serializeAws_restJson1_1DeleteApnsVoipSandboxChannelComman
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1202,13 +1232,15 @@ export async function serializeAws_restJson1_1DeleteAppCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1234,13 +1266,15 @@ export async function serializeAws_restJson1_1DeleteBaiduChannelCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1278,13 +1312,15 @@ export async function serializeAws_restJson1_1DeleteCampaignCommand(
throw new Error("No value provided for input HTTP label: CampaignId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1310,13 +1346,15 @@ export async function serializeAws_restJson1_1DeleteEmailChannelCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1346,14 +1384,16 @@ export async function serializeAws_restJson1_1DeleteEmailTemplateCommand(
query["version"] = input.Version;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1391,13 +1431,15 @@ export async function serializeAws_restJson1_1DeleteEndpointCommand(
throw new Error("No value provided for input HTTP label: EndpointId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1423,13 +1465,15 @@ export async function serializeAws_restJson1_1DeleteEventStreamCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1455,13 +1499,15 @@ export async function serializeAws_restJson1_1DeleteGcmChannelCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1499,13 +1545,15 @@ export async function serializeAws_restJson1_1DeleteJourneyCommand(
throw new Error("No value provided for input HTTP label: JourneyId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1535,14 +1583,16 @@ export async function serializeAws_restJson1_1DeletePushTemplateCommand(
query["version"] = input.Version;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1580,13 +1630,15 @@ export async function serializeAws_restJson1_1DeleteSegmentCommand(
throw new Error("No value provided for input HTTP label: SegmentId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1612,13 +1664,15 @@ export async function serializeAws_restJson1_1DeleteSmsChannelCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1648,14 +1702,16 @@ export async function serializeAws_restJson1_1DeleteSmsTemplateCommand(
query["version"] = input.Version;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1693,13 +1749,15 @@ export async function serializeAws_restJson1_1DeleteUserEndpointsCommand(
throw new Error("No value provided for input HTTP label: UserId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1725,13 +1783,15 @@ export async function serializeAws_restJson1_1DeleteVoiceChannelCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1761,14 +1821,16 @@ export async function serializeAws_restJson1_1DeleteVoiceTemplateCommand(
query["version"] = input.Version;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1794,13 +1856,15 @@ export async function serializeAws_restJson1_1GetAdmChannelCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1826,13 +1890,15 @@ export async function serializeAws_restJson1_1GetApnsChannelCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1858,13 +1924,15 @@ export async function serializeAws_restJson1_1GetApnsSandboxChannelCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1890,13 +1958,15 @@ export async function serializeAws_restJson1_1GetApnsVoipChannelCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1922,13 +1992,15 @@ export async function serializeAws_restJson1_1GetApnsVoipSandboxChannelCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1954,13 +2026,15 @@ export async function serializeAws_restJson1_1GetAppCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2015,14 +2089,16 @@ export async function serializeAws_restJson1_1GetApplicationDateRangeKpiCommand(
).toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2048,13 +2124,15 @@ export async function serializeAws_restJson1_1GetApplicationSettingsCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2073,14 +2151,16 @@ export async function serializeAws_restJson1_1GetAppsCommand(
query["token"] = input.Token;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2106,13 +2186,15 @@ export async function serializeAws_restJson1_1GetBaiduChannelCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2150,13 +2232,15 @@ export async function serializeAws_restJson1_1GetCampaignCommand(
throw new Error("No value provided for input HTTP label: CampaignId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2202,14 +2286,16 @@ export async function serializeAws_restJson1_1GetCampaignActivitiesCommand(
query["token"] = input.Token;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2277,14 +2363,16 @@ export async function serializeAws_restJson1_1GetCampaignDateRangeKpiCommand(
).toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2335,13 +2423,15 @@ export async function serializeAws_restJson1_1GetCampaignVersionCommand(
throw new Error("No value provided for input HTTP label: Version.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2386,14 +2476,16 @@ export async function serializeAws_restJson1_1GetCampaignVersionsCommand(
query["token"] = input.Token;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2426,14 +2518,16 @@ export async function serializeAws_restJson1_1GetCampaignsCommand(
query["token"] = input.Token;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2459,13 +2553,15 @@ export async function serializeAws_restJson1_1GetChannelsCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2491,13 +2587,15 @@ export async function serializeAws_restJson1_1GetEmailChannelCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2527,14 +2625,16 @@ export async function serializeAws_restJson1_1GetEmailTemplateCommand(
query["version"] = input.Version;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2572,13 +2672,15 @@ export async function serializeAws_restJson1_1GetEndpointCommand(
throw new Error("No value provided for input HTTP label: EndpointId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2604,13 +2706,15 @@ export async function serializeAws_restJson1_1GetEventStreamCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2648,13 +2752,15 @@ export async function serializeAws_restJson1_1GetExportJobCommand(
throw new Error("No value provided for input HTTP label: JobId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2687,14 +2793,16 @@ export async function serializeAws_restJson1_1GetExportJobsCommand(
query["token"] = input.Token;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2720,13 +2828,15 @@ export async function serializeAws_restJson1_1GetGcmChannelCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2764,13 +2874,15 @@ export async function serializeAws_restJson1_1GetImportJobCommand(
throw new Error("No value provided for input HTTP label: JobId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2803,14 +2915,16 @@ export async function serializeAws_restJson1_1GetImportJobsCommand(
query["token"] = input.Token;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2848,13 +2962,15 @@ export async function serializeAws_restJson1_1GetJourneyCommand(
throw new Error("No value provided for input HTTP label: JourneyId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2922,14 +3038,16 @@ export async function serializeAws_restJson1_1GetJourneyDateRangeKpiCommand(
).toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2991,14 +3109,16 @@ export async function serializeAws_restJson1_1GetJourneyExecutionActivityMetrics
query["page-size"] = input.PageSize;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3044,14 +3164,16 @@ export async function serializeAws_restJson1_1GetJourneyExecutionMetricsCommand(
query["page-size"] = input.PageSize;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3081,14 +3203,16 @@ export async function serializeAws_restJson1_1GetPushTemplateCommand(
query["version"] = input.Version;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3126,13 +3250,15 @@ export async function serializeAws_restJson1_1GetSegmentCommand(
throw new Error("No value provided for input HTTP label: SegmentId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3178,14 +3304,16 @@ export async function serializeAws_restJson1_1GetSegmentExportJobsCommand(
query["token"] = input.Token;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3231,14 +3359,16 @@ export async function serializeAws_restJson1_1GetSegmentImportJobsCommand(
query["token"] = input.Token;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3289,13 +3419,15 @@ export async function serializeAws_restJson1_1GetSegmentVersionCommand(
throw new Error("No value provided for input HTTP label: Version.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3340,14 +3472,16 @@ export async function serializeAws_restJson1_1GetSegmentVersionsCommand(
query["token"] = input.Token;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3380,14 +3514,16 @@ export async function serializeAws_restJson1_1GetSegmentsCommand(
query["token"] = input.Token;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3413,13 +3549,15 @@ export async function serializeAws_restJson1_1GetSmsChannelCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3449,14 +3587,16 @@ export async function serializeAws_restJson1_1GetSmsTemplateCommand(
query["version"] = input.Version;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3494,13 +3634,15 @@ export async function serializeAws_restJson1_1GetUserEndpointsCommand(
throw new Error("No value provided for input HTTP label: UserId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3526,13 +3668,15 @@ export async function serializeAws_restJson1_1GetVoiceChannelCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3562,14 +3706,16 @@ export async function serializeAws_restJson1_1GetVoiceTemplateCommand(
query["version"] = input.Version;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3602,14 +3748,16 @@ export async function serializeAws_restJson1_1ListJourneysCommand(
query["token"] = input.Token;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3635,13 +3783,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: ResourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3688,14 +3838,16 @@ export async function serializeAws_restJson1_1ListTemplateVersionsCommand(
query["page-size"] = input.PageSize;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3720,14 +3872,16 @@ export async function serializeAws_restJson1_1ListTemplatesCommand(
query["template-type"] = input.TemplateType;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3749,13 +3903,15 @@ export async function serializeAws_restJson1_1PhoneNumberValidateCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3791,13 +3947,15 @@ export async function serializeAws_restJson1_1PutEventStreamCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3830,13 +3988,15 @@ export async function serializeAws_restJson1_1PutEventsCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3886,13 +4046,15 @@ export async function serializeAws_restJson1_1RemoveAttributesCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3928,13 +4090,15 @@ export async function serializeAws_restJson1_1SendMessagesCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3970,13 +4134,15 @@ export async function serializeAws_restJson1_1SendUsersMessagesCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4009,13 +4175,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4045,14 +4213,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.TagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4088,13 +4258,15 @@ export async function serializeAws_restJson1_1UpdateAdmChannelCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4130,13 +4302,15 @@ export async function serializeAws_restJson1_1UpdateApnsChannelCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4172,13 +4346,15 @@ export async function serializeAws_restJson1_1UpdateApnsSandboxChannelCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4214,13 +4390,15 @@ export async function serializeAws_restJson1_1UpdateApnsVoipChannelCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4256,13 +4434,15 @@ export async function serializeAws_restJson1_1UpdateApnsVoipSandboxChannelComman
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4298,13 +4478,15 @@ export async function serializeAws_restJson1_1UpdateApplicationSettingsCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4340,13 +4522,15 @@ export async function serializeAws_restJson1_1UpdateBaiduChannelCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4394,13 +4578,15 @@ export async function serializeAws_restJson1_1UpdateCampaignCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4436,13 +4622,15 @@ export async function serializeAws_restJson1_1UpdateEmailChannelCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4485,14 +4673,16 @@ export async function serializeAws_restJson1_1UpdateEmailTemplateCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4540,13 +4730,15 @@ export async function serializeAws_restJson1_1UpdateEndpointCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4582,13 +4774,15 @@ export async function serializeAws_restJson1_1UpdateEndpointsBatchCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4624,13 +4818,15 @@ export async function serializeAws_restJson1_1UpdateGcmChannelCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4678,13 +4874,15 @@ export async function serializeAws_restJson1_1UpdateJourneyCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4732,13 +4930,15 @@ export async function serializeAws_restJson1_1UpdateJourneyStateCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4781,14 +4981,16 @@ export async function serializeAws_restJson1_1UpdatePushTemplateCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4836,13 +5038,15 @@ export async function serializeAws_restJson1_1UpdateSegmentCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4878,13 +5082,15 @@ export async function serializeAws_restJson1_1UpdateSmsChannelCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4927,14 +5133,16 @@ export async function serializeAws_restJson1_1UpdateSmsTemplateCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4985,13 +5193,15 @@ export async function serializeAws_restJson1_1UpdateTemplateActiveVersionCommand
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5027,13 +5237,15 @@ export async function serializeAws_restJson1_1UpdateVoiceChannelCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -5076,14 +5288,16 @@ export async function serializeAws_restJson1_1UpdateVoiceTemplateCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
diff --git a/clients/client-polly/protocols/Aws_restJson1_1.ts b/clients/client-polly/protocols/Aws_restJson1_1.ts
index b71413251395..6232da93d696 100644
--- a/clients/client-polly/protocols/Aws_restJson1_1.ts
+++ b/clients/client-polly/protocols/Aws_restJson1_1.ts
@@ -100,13 +100,15 @@ export async function serializeAws_restJson1_1DeleteLexiconCommand(
throw new Error("No value provided for input HTTP label: Name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -133,14 +135,16 @@ export async function serializeAws_restJson1_1DescribeVoicesCommand(
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -164,13 +168,15 @@ export async function serializeAws_restJson1_1GetLexiconCommand(
throw new Error("No value provided for input HTTP label: Name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -194,13 +200,15 @@ export async function serializeAws_restJson1_1GetSpeechSynthesisTaskCommand(
throw new Error("No value provided for input HTTP label: TaskId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -216,14 +224,16 @@ export async function serializeAws_restJson1_1ListLexiconsCommand(
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -245,14 +255,16 @@ export async function serializeAws_restJson1_1ListSpeechSynthesisTasksCommand(
query["Status"] = input.Status;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -281,13 +293,15 @@ export async function serializeAws_restJson1_1PutLexiconCommand(
bodyParams["Content"] = input.Content;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -343,13 +357,15 @@ export async function serializeAws_restJson1_1StartSpeechSynthesisTaskCommand(
bodyParams["VoiceId"] = input.VoiceId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -396,13 +412,15 @@ export async function serializeAws_restJson1_1SynthesizeSpeechCommand(
bodyParams["VoiceId"] = input.VoiceId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-pricing/protocols/Aws_json1_1.ts b/clients/client-pricing/protocols/Aws_json1_1.ts
index 2657f53999e7..4442509adcdd 100644
--- a/clients/client-pricing/protocols/Aws_json1_1.ts
+++ b/clients/client-pricing/protocols/Aws_json1_1.ts
@@ -815,19 +815,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-qldb-session/protocols/Aws_json1_0.ts b/clients/client-qldb-session/protocols/Aws_json1_0.ts
index 9dbff021e80c..10398aaccf57 100644
--- a/clients/client-qldb-session/protocols/Aws_json1_0.ts
+++ b/clients/client-qldb-session/protocols/Aws_json1_0.ts
@@ -735,19 +735,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-qldb/protocols/Aws_restJson1_1.ts b/clients/client-qldb/protocols/Aws_restJson1_1.ts
index faa39c1ce06b..67fb7c4eb7f1 100644
--- a/clients/client-qldb/protocols/Aws_restJson1_1.ts
+++ b/clients/client-qldb/protocols/Aws_restJson1_1.ts
@@ -108,13 +108,15 @@ export async function serializeAws_restJson1_1CreateLedgerCommand(
bodyParams["Tags"] = serializeAws_restJson1_1Tags(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -138,13 +140,15 @@ export async function serializeAws_restJson1_1DeleteLedgerCommand(
throw new Error("No value provided for input HTTP label: Name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -180,13 +184,15 @@ export async function serializeAws_restJson1_1DescribeJournalS3ExportCommand(
throw new Error("No value provided for input HTTP label: Name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -210,13 +216,15 @@ export async function serializeAws_restJson1_1DescribeLedgerCommand(
throw new Error("No value provided for input HTTP label: Name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -263,13 +271,15 @@ export async function serializeAws_restJson1_1ExportJournalToS3Command(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -307,13 +317,15 @@ export async function serializeAws_restJson1_1GetBlockCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -337,13 +349,15 @@ export async function serializeAws_restJson1_1GetDigestCommand(
throw new Error("No value provided for input HTTP label: Name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -384,13 +398,15 @@ export async function serializeAws_restJson1_1GetRevisionCommand(
bodyParams["DocumentId"] = input.DocumentId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -409,14 +425,16 @@ export async function serializeAws_restJson1_1ListJournalS3ExportsCommand(
query["next_token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -447,14 +465,16 @@ export async function serializeAws_restJson1_1ListJournalS3ExportsForLedgerComma
query["next_token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -473,14 +493,16 @@ export async function serializeAws_restJson1_1ListLedgersCommand(
query["next_token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -506,13 +528,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: ResourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -543,13 +567,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["Tags"] = serializeAws_restJson1_1Tags(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -579,14 +605,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.TagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -615,13 +643,15 @@ export async function serializeAws_restJson1_1UpdateLedgerCommand(
bodyParams["DeletionProtection"] = input.DeletionProtection;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-quicksight/protocols/Aws_restJson1_1.ts b/clients/client-quicksight/protocols/Aws_restJson1_1.ts
index 2cf4cc95c6e6..345968137a7d 100644
--- a/clients/client-quicksight/protocols/Aws_restJson1_1.ts
+++ b/clients/client-quicksight/protocols/Aws_restJson1_1.ts
@@ -435,13 +435,15 @@ export async function serializeAws_restJson1_1CancelIngestionCommand(
throw new Error("No value provided for input HTTP label: IngestionId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -518,13 +520,15 @@ export async function serializeAws_restJson1_1CreateDashboardCommand(
bodyParams["VersionDescription"] = input.VersionDescription;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -596,13 +600,15 @@ export async function serializeAws_restJson1_1CreateDataSetCommand(
bodyParams["Tags"] = serializeAws_restJson1_1TagList(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -676,13 +682,15 @@ export async function serializeAws_restJson1_1CreateDataSourceCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -728,13 +736,15 @@ export async function serializeAws_restJson1_1CreateGroupCommand(
bodyParams["GroupName"] = input.GroupName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -797,13 +807,15 @@ export async function serializeAws_restJson1_1CreateGroupMembershipCommand(
throw new Error("No value provided for input HTTP label: Namespace.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -859,13 +871,15 @@ export async function serializeAws_restJson1_1CreateIAMPolicyAssignmentCommand(
bodyParams["PolicyArn"] = input.PolicyArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -918,13 +932,15 @@ export async function serializeAws_restJson1_1CreateIngestionCommand(
throw new Error("No value provided for input HTTP label: IngestionId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -985,13 +1001,15 @@ export async function serializeAws_restJson1_1CreateTemplateCommand(
bodyParams["VersionDescription"] = input.VersionDescription;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1047,13 +1065,15 @@ export async function serializeAws_restJson1_1CreateTemplateAliasCommand(
bodyParams["TemplateVersionNumber"] = input.TemplateVersionNumber;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1097,14 +1117,16 @@ export async function serializeAws_restJson1_1DeleteDashboardCommand(
query["version-number"] = input.VersionNumber.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1142,13 +1164,15 @@ export async function serializeAws_restJson1_1DeleteDataSetCommand(
throw new Error("No value provided for input HTTP label: DataSetId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1188,13 +1212,15 @@ export async function serializeAws_restJson1_1DeleteDataSourceCommand(
throw new Error("No value provided for input HTTP label: DataSourceId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1245,13 +1271,15 @@ export async function serializeAws_restJson1_1DeleteGroupCommand(
throw new Error("No value provided for input HTTP label: Namespace.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1314,13 +1342,15 @@ export async function serializeAws_restJson1_1DeleteGroupMembershipCommand(
throw new Error("No value provided for input HTTP label: Namespace.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1373,13 +1403,15 @@ export async function serializeAws_restJson1_1DeleteIAMPolicyAssignmentCommand(
throw new Error("No value provided for input HTTP label: Namespace.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1421,14 +1453,16 @@ export async function serializeAws_restJson1_1DeleteTemplateCommand(
query["version-number"] = input.VersionNumber.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1479,13 +1513,15 @@ export async function serializeAws_restJson1_1DeleteTemplateAliasCommand(
throw new Error("No value provided for input HTTP label: TemplateId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1536,13 +1572,15 @@ export async function serializeAws_restJson1_1DeleteUserCommand(
throw new Error("No value provided for input HTTP label: UserName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1595,13 +1633,15 @@ export async function serializeAws_restJson1_1DeleteUserByPrincipalIdCommand(
throw new Error("No value provided for input HTTP label: PrincipalId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1648,14 +1688,16 @@ export async function serializeAws_restJson1_1DescribeDashboardCommand(
query["version-number"] = input.VersionNumber.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1696,13 +1738,15 @@ export async function serializeAws_restJson1_1DescribeDashboardPermissionsComman
throw new Error("No value provided for input HTTP label: DashboardId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1740,13 +1784,15 @@ export async function serializeAws_restJson1_1DescribeDataSetCommand(
throw new Error("No value provided for input HTTP label: DataSetId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1785,13 +1831,15 @@ export async function serializeAws_restJson1_1DescribeDataSetPermissionsCommand(
throw new Error("No value provided for input HTTP label: DataSetId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1831,13 +1879,15 @@ export async function serializeAws_restJson1_1DescribeDataSourceCommand(
throw new Error("No value provided for input HTTP label: DataSourceId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1878,13 +1928,15 @@ export async function serializeAws_restJson1_1DescribeDataSourcePermissionsComma
throw new Error("No value provided for input HTTP label: DataSourceId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1935,13 +1987,15 @@ export async function serializeAws_restJson1_1DescribeGroupCommand(
throw new Error("No value provided for input HTTP label: Namespace.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1994,13 +2048,15 @@ export async function serializeAws_restJson1_1DescribeIAMPolicyAssignmentCommand
throw new Error("No value provided for input HTTP label: Namespace.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2053,13 +2109,15 @@ export async function serializeAws_restJson1_1DescribeIngestionCommand(
throw new Error("No value provided for input HTTP label: IngestionId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2104,14 +2162,16 @@ export async function serializeAws_restJson1_1DescribeTemplateCommand(
query["version-number"] = input.VersionNumber.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2162,13 +2222,15 @@ export async function serializeAws_restJson1_1DescribeTemplateAliasCommand(
throw new Error("No value provided for input HTTP label: TemplateId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2207,13 +2269,15 @@ export async function serializeAws_restJson1_1DescribeTemplatePermissionsCommand
throw new Error("No value provided for input HTTP label: TemplateId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2264,13 +2328,15 @@ export async function serializeAws_restJson1_1DescribeUserCommand(
throw new Error("No value provided for input HTTP label: UserName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2327,14 +2393,16 @@ export async function serializeAws_restJson1_1GetDashboardEmbedUrlCommand(
query["user-arn"] = input.UserArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2382,14 +2450,16 @@ export async function serializeAws_restJson1_1ListDashboardVersionsCommand(
query["next-token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2422,14 +2492,16 @@ export async function serializeAws_restJson1_1ListDashboardsCommand(
query["next-token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2462,14 +2534,16 @@ export async function serializeAws_restJson1_1ListDataSetsCommand(
query["next-token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2502,14 +2576,16 @@ export async function serializeAws_restJson1_1ListDataSourcesCommand(
query["next-token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2567,14 +2643,16 @@ export async function serializeAws_restJson1_1ListGroupMembershipsCommand(
query["next-token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2619,14 +2697,16 @@ export async function serializeAws_restJson1_1ListGroupsCommand(
query["next-token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2677,14 +2757,16 @@ export async function serializeAws_restJson1_1ListIAMPolicyAssignmentsCommand(
bodyParams["AssignmentStatus"] = input.AssignmentStatus;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2742,14 +2824,16 @@ export async function serializeAws_restJson1_1ListIAMPolicyAssignmentsForUserCom
query["next-token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2795,14 +2879,16 @@ export async function serializeAws_restJson1_1ListIngestionsCommand(
query["next-token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2828,13 +2914,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: ResourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2879,14 +2967,16 @@ export async function serializeAws_restJson1_1ListTemplateAliasesCommand(
query["next-token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2931,14 +3021,16 @@ export async function serializeAws_restJson1_1ListTemplateVersionsCommand(
query["next-token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2971,14 +3063,16 @@ export async function serializeAws_restJson1_1ListTemplatesCommand(
query["next-token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3036,14 +3130,16 @@ export async function serializeAws_restJson1_1ListUserGroupsCommand(
query["next-token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3088,14 +3184,16 @@ export async function serializeAws_restJson1_1ListUsersCommand(
query["next-token"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3153,13 +3251,15 @@ export async function serializeAws_restJson1_1RegisterUserCommand(
bodyParams["UserRole"] = input.UserRole;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3190,13 +3290,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["Tags"] = serializeAws_restJson1_1TagList(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3226,14 +3328,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["keys"] = (input.TagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3301,13 +3405,15 @@ export async function serializeAws_restJson1_1UpdateDashboardCommand(
bodyParams["VersionDescription"] = input.VersionDescription;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3366,13 +3472,15 @@ export async function serializeAws_restJson1_1UpdateDashboardPermissionsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3427,13 +3535,15 @@ export async function serializeAws_restJson1_1UpdateDashboardPublishedVersionCom
throw new Error("No value provided for input HTTP label: VersionNumber.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3505,13 +3615,15 @@ export async function serializeAws_restJson1_1UpdateDataSetCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3568,13 +3680,15 @@ export async function serializeAws_restJson1_1UpdateDataSetPermissionsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3647,13 +3761,15 @@ export async function serializeAws_restJson1_1UpdateDataSourceCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3712,13 +3828,15 @@ export async function serializeAws_restJson1_1UpdateDataSourcePermissionsCommand
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3774,13 +3892,15 @@ export async function serializeAws_restJson1_1UpdateGroupCommand(
bodyParams["Description"] = input.Description;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3847,13 +3967,15 @@ export async function serializeAws_restJson1_1UpdateIAMPolicyAssignmentCommand(
bodyParams["PolicyArn"] = input.PolicyArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3905,13 +4027,15 @@ export async function serializeAws_restJson1_1UpdateTemplateCommand(
bodyParams["VersionDescription"] = input.VersionDescription;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -3967,13 +4091,15 @@ export async function serializeAws_restJson1_1UpdateTemplateAliasCommand(
bodyParams["TemplateVersionNumber"] = input.TemplateVersionNumber;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4030,13 +4156,15 @@ export async function serializeAws_restJson1_1UpdateTemplatePermissionsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -4095,13 +4223,15 @@ export async function serializeAws_restJson1_1UpdateUserCommand(
bodyParams["Role"] = input.Role;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-ram/protocols/Aws_restJson1_1.ts b/clients/client-ram/protocols/Aws_restJson1_1.ts
index 5a6c4780ea32..642de7c360d6 100644
--- a/clients/client-ram/protocols/Aws_restJson1_1.ts
+++ b/clients/client-ram/protocols/Aws_restJson1_1.ts
@@ -153,13 +153,15 @@ export async function serializeAws_restJson1_1AcceptResourceShareInvitationComma
bodyParams["resourceShareInvitationArn"] = input.resourceShareInvitationArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -191,13 +193,15 @@ export async function serializeAws_restJson1_1AssociateResourceShareCommand(
bodyParams["resourceShareArn"] = input.resourceShareArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -223,13 +227,15 @@ export async function serializeAws_restJson1_1AssociateResourceSharePermissionCo
bodyParams["resourceShareArn"] = input.resourceShareArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -273,13 +279,15 @@ export async function serializeAws_restJson1_1CreateResourceShareCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagList(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -298,14 +306,16 @@ export async function serializeAws_restJson1_1DeleteResourceShareCommand(
query["resourceShareArn"] = input.resourceShareArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -337,13 +347,15 @@ export async function serializeAws_restJson1_1DisassociateResourceShareCommand(
bodyParams["resourceShareArn"] = input.resourceShareArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -366,13 +378,15 @@ export async function serializeAws_restJson1_1DisassociateResourceSharePermissio
bodyParams["resourceShareArn"] = input.resourceShareArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -385,13 +399,15 @@ export async function serializeAws_restJson1_1EnableSharingWithAwsOrganizationCo
let resolvedPath = "/enablesharingwithawsorganization";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -411,13 +427,15 @@ export async function serializeAws_restJson1_1GetPermissionCommand(
bodyParams["permissionVersion"] = input.permissionVersion;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -446,13 +464,15 @@ export async function serializeAws_restJson1_1GetResourcePoliciesCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -492,13 +512,15 @@ export async function serializeAws_restJson1_1GetResourceShareAssociationsComman
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -534,13 +556,15 @@ export async function serializeAws_restJson1_1GetResourceShareInvitationsCommand
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -583,13 +607,15 @@ export async function serializeAws_restJson1_1GetResourceSharesCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -612,13 +638,15 @@ export async function serializeAws_restJson1_1ListPendingInvitationResourcesComm
bodyParams["resourceShareInvitationArn"] = input.resourceShareInvitationArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -641,13 +669,15 @@ export async function serializeAws_restJson1_1ListPermissionsCommand(
bodyParams["resourceType"] = input.resourceType;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -690,13 +720,15 @@ export async function serializeAws_restJson1_1ListPrincipalsCommand(
bodyParams["resourceType"] = input.resourceType;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -719,13 +751,15 @@ export async function serializeAws_restJson1_1ListResourceSharePermissionsComman
bodyParams["resourceShareArn"] = input.resourceShareArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -768,13 +802,15 @@ export async function serializeAws_restJson1_1ListResourcesCommand(
bodyParams["resourceType"] = input.resourceType;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -790,14 +826,16 @@ export async function serializeAws_restJson1_1PromoteResourceShareCreatedFromPol
query["resourceShareArn"] = input.resourceShareArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -817,13 +855,15 @@ export async function serializeAws_restJson1_1RejectResourceShareInvitationComma
bodyParams["resourceShareInvitationArn"] = input.resourceShareInvitationArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -843,13 +883,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagList(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -872,13 +914,15 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -904,13 +948,15 @@ export async function serializeAws_restJson1_1UpdateResourceShareCommand(
bodyParams["resourceShareArn"] = input.resourceShareArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-rds-data/protocols/Aws_restJson1_1.ts b/clients/client-rds-data/protocols/Aws_restJson1_1.ts
index ca74788ba911..f33ac9628fdc 100644
--- a/clients/client-rds-data/protocols/Aws_restJson1_1.ts
+++ b/clients/client-rds-data/protocols/Aws_restJson1_1.ts
@@ -87,13 +87,15 @@ export async function serializeAws_restJson1_1BatchExecuteStatementCommand(
bodyParams["transactionId"] = input.transactionId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -119,13 +121,15 @@ export async function serializeAws_restJson1_1BeginTransactionCommand(
bodyParams["secretArn"] = input.secretArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -148,13 +152,15 @@ export async function serializeAws_restJson1_1CommitTransactionCommand(
bodyParams["transactionId"] = input.transactionId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -183,13 +189,15 @@ export async function serializeAws_restJson1_1ExecuteSqlCommand(
bodyParams["sqlStatements"] = input.sqlStatements;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -233,13 +241,15 @@ export async function serializeAws_restJson1_1ExecuteStatementCommand(
bodyParams["transactionId"] = input.transactionId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -262,13 +272,15 @@ export async function serializeAws_restJson1_1RollbackTransactionCommand(
bodyParams["transactionId"] = input.transactionId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-rds/protocols/Aws_query.ts b/clients/client-rds/protocols/Aws_query.ts
index 453240cde853..6fd2dd19b4bd 100644
--- a/clients/client-rds/protocols/Aws_query.ts
+++ b/clients/client-rds/protocols/Aws_query.ts
@@ -32296,19 +32296,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-redshift/protocols/Aws_query.ts b/clients/client-redshift/protocols/Aws_query.ts
index ba0b3a9c0dbb..b5746ede5dce 100644
--- a/clients/client-redshift/protocols/Aws_query.ts
+++ b/clients/client-redshift/protocols/Aws_query.ts
@@ -22141,19 +22141,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-rekognition/protocols/Aws_json1_1.ts b/clients/client-rekognition/protocols/Aws_json1_1.ts
index 40cfc58a660e..5919b9026882 100644
--- a/clients/client-rekognition/protocols/Aws_json1_1.ts
+++ b/clients/client-rekognition/protocols/Aws_json1_1.ts
@@ -10932,19 +10932,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-resource-groups-tagging-api/protocols/Aws_json1_1.ts b/clients/client-resource-groups-tagging-api/protocols/Aws_json1_1.ts
index 03c9be8a1aed..a2232423794e 100644
--- a/clients/client-resource-groups-tagging-api/protocols/Aws_json1_1.ts
+++ b/clients/client-resource-groups-tagging-api/protocols/Aws_json1_1.ts
@@ -1795,19 +1795,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-resource-groups/protocols/Aws_restJson1_1.ts b/clients/client-resource-groups/protocols/Aws_restJson1_1.ts
index ea4c3bea3074..ea54a2fbb714 100644
--- a/clients/client-resource-groups/protocols/Aws_restJson1_1.ts
+++ b/clients/client-resource-groups/protocols/Aws_restJson1_1.ts
@@ -100,13 +100,15 @@ export async function serializeAws_restJson1_1CreateGroupCommand(
bodyParams["Tags"] = serializeAws_restJson1_1Tags(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -130,13 +132,15 @@ export async function serializeAws_restJson1_1DeleteGroupCommand(
throw new Error("No value provided for input HTTP label: GroupName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -160,13 +164,15 @@ export async function serializeAws_restJson1_1GetGroupCommand(
throw new Error("No value provided for input HTTP label: GroupName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -190,13 +196,15 @@ export async function serializeAws_restJson1_1GetGroupQueryCommand(
throw new Error("No value provided for input HTTP label: GroupName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -220,13 +228,15 @@ export async function serializeAws_restJson1_1GetTagsCommand(
throw new Error("No value provided for input HTTP label: Arn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -265,14 +275,16 @@ export async function serializeAws_restJson1_1ListGroupResourcesCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -299,14 +311,16 @@ export async function serializeAws_restJson1_1ListGroupsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -332,13 +346,15 @@ export async function serializeAws_restJson1_1SearchResourcesCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -367,13 +383,15 @@ export async function serializeAws_restJson1_1TagCommand(
bodyParams["Tags"] = serializeAws_restJson1_1Tags(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -405,13 +423,15 @@ export async function serializeAws_restJson1_1UntagCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -440,13 +460,15 @@ export async function serializeAws_restJson1_1UpdateGroupCommand(
bodyParams["Description"] = input.Description;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -478,13 +500,15 @@ export async function serializeAws_restJson1_1UpdateGroupQueryCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-robomaker/protocols/Aws_restJson1_1.ts b/clients/client-robomaker/protocols/Aws_restJson1_1.ts
index db3339c4feaf..cb2126583bda 100644
--- a/clients/client-robomaker/protocols/Aws_restJson1_1.ts
+++ b/clients/client-robomaker/protocols/Aws_restJson1_1.ts
@@ -214,13 +214,15 @@ export async function serializeAws_restJson1_1BatchDescribeSimulationJobCommand(
bodyParams["jobs"] = serializeAws_restJson1_1Arns(input.jobs, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -237,13 +239,15 @@ export async function serializeAws_restJson1_1CancelDeploymentJobCommand(
bodyParams["job"] = input.job;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -260,13 +264,15 @@ export async function serializeAws_restJson1_1CancelSimulationJobCommand(
bodyParams["job"] = input.job;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -306,13 +312,15 @@ export async function serializeAws_restJson1_1CreateDeploymentJobCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -332,13 +340,15 @@ export async function serializeAws_restJson1_1CreateFleetCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -364,13 +374,15 @@ export async function serializeAws_restJson1_1CreateRobotCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -404,13 +416,15 @@ export async function serializeAws_restJson1_1CreateRobotApplicationCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -430,13 +444,15 @@ export async function serializeAws_restJson1_1CreateRobotApplicationVersionComma
bodyParams["currentRevisionId"] = input.currentRevisionId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -484,13 +500,15 @@ export async function serializeAws_restJson1_1CreateSimulationApplicationCommand
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -510,13 +528,15 @@ export async function serializeAws_restJson1_1CreateSimulationApplicationVersion
bodyParams["currentRevisionId"] = input.currentRevisionId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -588,13 +608,15 @@ export async function serializeAws_restJson1_1CreateSimulationJobCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -611,13 +633,15 @@ export async function serializeAws_restJson1_1DeleteFleetCommand(
bodyParams["fleet"] = input.fleet;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -634,13 +658,15 @@ export async function serializeAws_restJson1_1DeleteRobotCommand(
bodyParams["robot"] = input.robot;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -660,13 +686,15 @@ export async function serializeAws_restJson1_1DeleteRobotApplicationCommand(
bodyParams["applicationVersion"] = input.applicationVersion;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -686,13 +714,15 @@ export async function serializeAws_restJson1_1DeleteSimulationApplicationCommand
bodyParams["applicationVersion"] = input.applicationVersion;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -712,13 +742,15 @@ export async function serializeAws_restJson1_1DeregisterRobotCommand(
bodyParams["robot"] = input.robot;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -735,13 +767,15 @@ export async function serializeAws_restJson1_1DescribeDeploymentJobCommand(
bodyParams["job"] = input.job;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -758,13 +792,15 @@ export async function serializeAws_restJson1_1DescribeFleetCommand(
bodyParams["fleet"] = input.fleet;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -781,13 +817,15 @@ export async function serializeAws_restJson1_1DescribeRobotCommand(
bodyParams["robot"] = input.robot;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -807,13 +845,15 @@ export async function serializeAws_restJson1_1DescribeRobotApplicationCommand(
bodyParams["applicationVersion"] = input.applicationVersion;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -833,13 +873,15 @@ export async function serializeAws_restJson1_1DescribeSimulationApplicationComma
bodyParams["applicationVersion"] = input.applicationVersion;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -856,13 +898,15 @@ export async function serializeAws_restJson1_1DescribeSimulationJobCommand(
bodyParams["job"] = input.job;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -888,13 +932,15 @@ export async function serializeAws_restJson1_1ListDeploymentJobsCommand(
bodyParams["nextToken"] = input.nextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -920,13 +966,15 @@ export async function serializeAws_restJson1_1ListFleetsCommand(
bodyParams["nextToken"] = input.nextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -955,13 +1003,15 @@ export async function serializeAws_restJson1_1ListRobotApplicationsCommand(
bodyParams["versionQualifier"] = input.versionQualifier;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -987,13 +1037,15 @@ export async function serializeAws_restJson1_1ListRobotsCommand(
bodyParams["nextToken"] = input.nextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1022,13 +1074,15 @@ export async function serializeAws_restJson1_1ListSimulationApplicationsCommand(
bodyParams["versionQualifier"] = input.versionQualifier;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1054,13 +1108,15 @@ export async function serializeAws_restJson1_1ListSimulationJobsCommand(
bodyParams["nextToken"] = input.nextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1086,13 +1142,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: resourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1112,13 +1170,15 @@ export async function serializeAws_restJson1_1RegisterRobotCommand(
bodyParams["robot"] = input.robot;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1135,13 +1195,15 @@ export async function serializeAws_restJson1_1RestartSimulationJobCommand(
bodyParams["job"] = input.job;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1164,13 +1226,15 @@ export async function serializeAws_restJson1_1SyncDeploymentJobCommand(
bodyParams["fleet"] = input.fleet;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1201,13 +1265,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1237,14 +1303,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.tagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1278,13 +1346,15 @@ export async function serializeAws_restJson1_1UpdateRobotApplicationCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1332,13 +1402,15 @@ export async function serializeAws_restJson1_1UpdateSimulationApplicationCommand
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-route-53-domains/protocols/Aws_json1_1.ts b/clients/client-route-53-domains/protocols/Aws_json1_1.ts
index adc6a17ac01a..3b7e31cf3d11 100644
--- a/clients/client-route-53-domains/protocols/Aws_json1_1.ts
+++ b/clients/client-route-53-domains/protocols/Aws_json1_1.ts
@@ -4209,19 +4209,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-route-53/protocols/Aws_restXml.ts b/clients/client-route-53/protocols/Aws_restXml.ts
index e39886706938..3387efd42975 100644
--- a/clients/client-route-53/protocols/Aws_restXml.ts
+++ b/clients/client-route-53/protocols/Aws_restXml.ts
@@ -365,13 +365,15 @@ export async function serializeAws_restXmlAssociateVPCWithHostedZoneCommand(
bodyNode.addChildNode(node);
}
body += bodyNode.toString();
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -411,13 +413,15 @@ export async function serializeAws_restXmlChangeResourceRecordSetsCommand(
bodyNode.addChildNode(node);
}
body += bodyNode.toString();
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -478,13 +482,15 @@ export async function serializeAws_restXmlChangeTagsForResourceCommand(
bodyNode.addChildNode(containerNode);
}
body += bodyNode.toString();
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -516,13 +522,15 @@ export async function serializeAws_restXmlCreateHealthCheckCommand(
bodyNode.addChildNode(node);
}
body += bodyNode.toString();
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -570,13 +578,15 @@ export async function serializeAws_restXmlCreateHostedZoneCommand(
bodyNode.addChildNode(node);
}
body += bodyNode.toString();
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -607,13 +617,15 @@ export async function serializeAws_restXmlCreateQueryLoggingConfigCommand(
bodyNode.addChildNode(node);
}
body += bodyNode.toString();
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -644,13 +656,15 @@ export async function serializeAws_restXmlCreateReusableDelegationSetCommand(
bodyNode.addChildNode(node);
}
body += bodyNode.toString();
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -687,13 +701,15 @@ export async function serializeAws_restXmlCreateTrafficPolicyCommand(
bodyNode.addChildNode(node);
}
body += bodyNode.toString();
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -742,13 +758,15 @@ export async function serializeAws_restXmlCreateTrafficPolicyInstanceCommand(
bodyNode.addChildNode(node);
}
body += bodyNode.toString();
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -791,13 +809,15 @@ export async function serializeAws_restXmlCreateTrafficPolicyVersionCommand(
bodyNode.addChildNode(node);
}
body += bodyNode.toString();
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -835,13 +855,15 @@ export async function serializeAws_restXmlCreateVPCAssociationAuthorizationComma
bodyNode.addChildNode(node);
}
body += bodyNode.toString();
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -867,13 +889,15 @@ export async function serializeAws_restXmlDeleteHealthCheckCommand(
throw new Error("No value provided for input HTTP label: HealthCheckId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -897,13 +921,15 @@ export async function serializeAws_restXmlDeleteHostedZoneCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -927,13 +953,15 @@ export async function serializeAws_restXmlDeleteQueryLoggingConfigCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -957,13 +985,15 @@ export async function serializeAws_restXmlDeleteReusableDelegationSetCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -999,13 +1029,15 @@ export async function serializeAws_restXmlDeleteTrafficPolicyCommand(
throw new Error("No value provided for input HTTP label: Version.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1029,13 +1061,15 @@ export async function serializeAws_restXmlDeleteTrafficPolicyInstanceCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1073,13 +1107,15 @@ export async function serializeAws_restXmlDeleteVPCAssociationAuthorizationComma
bodyNode.addChildNode(node);
}
body += bodyNode.toString();
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1122,13 +1158,15 @@ export async function serializeAws_restXmlDisassociateVPCFromHostedZoneCommand(
bodyNode.addChildNode(node);
}
body += bodyNode.toString();
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1152,13 +1190,15 @@ export async function serializeAws_restXmlGetAccountLimitCommand(
throw new Error("No value provided for input HTTP label: Type.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1182,13 +1222,15 @@ export async function serializeAws_restXmlGetChangeCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1201,13 +1243,15 @@ export async function serializeAws_restXmlGetCheckerIpRangesCommand(
let resolvedPath = "/2013-04-01/checkeripranges";
let body: any;
body = "";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1229,14 +1273,16 @@ export async function serializeAws_restXmlGetGeoLocationCommand(
query["subdivisioncode"] = input.SubdivisionCode;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1262,13 +1308,15 @@ export async function serializeAws_restXmlGetHealthCheckCommand(
throw new Error("No value provided for input HTTP label: HealthCheckId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1281,13 +1329,15 @@ export async function serializeAws_restXmlGetHealthCheckCountCommand(
let resolvedPath = "/2013-04-01/healthcheckcount";
let body: any;
body = "";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1314,13 +1364,15 @@ export async function serializeAws_restXmlGetHealthCheckLastFailureReasonCommand
throw new Error("No value provided for input HTTP label: HealthCheckId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1346,13 +1398,15 @@ export async function serializeAws_restXmlGetHealthCheckStatusCommand(
throw new Error("No value provided for input HTTP label: HealthCheckId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1376,13 +1430,15 @@ export async function serializeAws_restXmlGetHostedZoneCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1395,13 +1451,15 @@ export async function serializeAws_restXmlGetHostedZoneCountCommand(
let resolvedPath = "/2013-04-01/hostedzonecount";
let body: any;
body = "";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1439,13 +1497,15 @@ export async function serializeAws_restXmlGetHostedZoneLimitCommand(
throw new Error("No value provided for input HTTP label: Type.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1469,13 +1529,15 @@ export async function serializeAws_restXmlGetQueryLoggingConfigCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1499,13 +1561,15 @@ export async function serializeAws_restXmlGetReusableDelegationSetCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1544,13 +1608,15 @@ export async function serializeAws_restXmlGetReusableDelegationSetLimitCommand(
throw new Error("No value provided for input HTTP label: Type.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1586,13 +1652,15 @@ export async function serializeAws_restXmlGetTrafficPolicyCommand(
throw new Error("No value provided for input HTTP label: Version.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1616,13 +1684,15 @@ export async function serializeAws_restXmlGetTrafficPolicyInstanceCommand(
throw new Error("No value provided for input HTTP label: Id.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1635,13 +1705,15 @@ export async function serializeAws_restXmlGetTrafficPolicyInstanceCountCommand(
let resolvedPath = "/2013-04-01/trafficpolicyinstancecount";
let body: any;
body = "";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1666,14 +1738,16 @@ export async function serializeAws_restXmlListGeoLocationsCommand(
query["startsubdivisioncode"] = input.StartSubdivisionCode;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1692,14 +1766,16 @@ export async function serializeAws_restXmlListHealthChecksCommand(
query["maxitems"] = input.MaxItems;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1721,14 +1797,16 @@ export async function serializeAws_restXmlListHostedZonesCommand(
query["maxitems"] = input.MaxItems;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1750,14 +1828,16 @@ export async function serializeAws_restXmlListHostedZonesByNameCommand(
query["maxitems"] = input.MaxItems;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1779,14 +1859,16 @@ export async function serializeAws_restXmlListQueryLoggingConfigsCommand(
query["nexttoken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1825,14 +1907,16 @@ export async function serializeAws_restXmlListResourceRecordSetsCommand(
query["type"] = input.StartRecordType;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1851,14 +1935,16 @@ export async function serializeAws_restXmlListReusableDelegationSetsCommand(
query["maxitems"] = input.MaxItems;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1896,13 +1982,15 @@ export async function serializeAws_restXmlListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: ResourceType.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1946,13 +2034,15 @@ export async function serializeAws_restXmlListTagsForResourcesCommand(
bodyNode.addChildNode(containerNode);
}
body += bodyNode.toString();
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1971,14 +2061,16 @@ export async function serializeAws_restXmlListTrafficPoliciesCommand(
query["trafficpolicyid"] = input.TrafficPolicyIdMarker;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2003,14 +2095,16 @@ export async function serializeAws_restXmlListTrafficPolicyInstancesCommand(
query["trafficpolicyinstancetype"] = input.TrafficPolicyInstanceTypeMarker;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2035,14 +2129,16 @@ export async function serializeAws_restXmlListTrafficPolicyInstancesByHostedZone
query["trafficpolicyinstancetype"] = input.TrafficPolicyInstanceTypeMarker;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2073,14 +2169,16 @@ export async function serializeAws_restXmlListTrafficPolicyInstancesByPolicyComm
query["version"] = input.TrafficPolicyVersion.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2111,14 +2209,16 @@ export async function serializeAws_restXmlListTrafficPolicyVersionsCommand(
query["trafficpolicyversion"] = input.TrafficPolicyVersionMarker;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2152,14 +2252,16 @@ export async function serializeAws_restXmlListVPCAssociationAuthorizationsComman
query["nexttoken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2190,14 +2292,16 @@ export async function serializeAws_restXmlTestDNSAnswerCommand(
query["resolverip"] = input.ResolverIP;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2342,13 +2446,15 @@ export async function serializeAws_restXmlUpdateHealthCheckCommand(
bodyNode.addChildNode(node);
}
body += bodyNode.toString();
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2385,13 +2491,15 @@ export async function serializeAws_restXmlUpdateHostedZoneCommentCommand(
bodyNode.addChildNode(node);
}
body += bodyNode.toString();
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2440,13 +2548,15 @@ export async function serializeAws_restXmlUpdateTrafficPolicyCommentCommand(
bodyNode.addChildNode(node);
}
body += bodyNode.toString();
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2495,13 +2605,15 @@ export async function serializeAws_restXmlUpdateTrafficPolicyInstanceCommand(
bodyNode.addChildNode(node);
}
body += bodyNode.toString();
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-route53resolver/protocols/Aws_json1_1.ts b/clients/client-route53resolver/protocols/Aws_json1_1.ts
index 873c4037e81a..c25d7179c21c 100644
--- a/clients/client-route53resolver/protocols/Aws_json1_1.ts
+++ b/clients/client-route53resolver/protocols/Aws_json1_1.ts
@@ -4644,19 +4644,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-s3-control/protocols/Aws_restXml.ts b/clients/client-s3-control/protocols/Aws_restXml.ts
index afe01cc1feb2..28d796605871 100644
--- a/clients/client-s3-control/protocols/Aws_restXml.ts
+++ b/clients/client-s3-control/protocols/Aws_restXml.ts
@@ -170,13 +170,15 @@ export async function serializeAws_restXmlCreateAccessPointCommand(
bodyNode.addChildNode(node);
}
body += bodyNode.toString();
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -251,13 +253,15 @@ export async function serializeAws_restXmlCreateJobCommand(
bodyNode.addChildNode(node);
}
body += bodyNode.toString();
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -284,13 +288,15 @@ export async function serializeAws_restXmlDeleteAccessPointCommand(
throw new Error("No value provided for input HTTP label: Name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -317,13 +323,15 @@ export async function serializeAws_restXmlDeleteAccessPointPolicyCommand(
throw new Error("No value provided for input HTTP label: Name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -338,13 +346,15 @@ export async function serializeAws_restXmlDeletePublicAccessBlockCommand(
}
let resolvedPath = "/v20180820/configuration/publicAccessBlock";
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -371,13 +381,15 @@ export async function serializeAws_restXmlDescribeJobCommand(
throw new Error("No value provided for input HTTP label: JobId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -404,13 +416,15 @@ export async function serializeAws_restXmlGetAccessPointCommand(
throw new Error("No value provided for input HTTP label: Name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -437,13 +451,15 @@ export async function serializeAws_restXmlGetAccessPointPolicyCommand(
throw new Error("No value provided for input HTTP label: Name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -470,13 +486,15 @@ export async function serializeAws_restXmlGetAccessPointPolicyStatusCommand(
throw new Error("No value provided for input HTTP label: Name.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -491,13 +509,15 @@ export async function serializeAws_restXmlGetPublicAccessBlockCommand(
}
let resolvedPath = "/v20180820/configuration/publicAccessBlock";
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -522,14 +542,16 @@ export async function serializeAws_restXmlListAccessPointsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -554,14 +576,16 @@ export async function serializeAws_restXmlListJobsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -601,13 +625,15 @@ export async function serializeAws_restXmlPutAccessPointPolicyCommand(
bodyNode.addChildNode(node);
}
body += bodyNode.toString();
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -635,13 +661,15 @@ export async function serializeAws_restXmlPutPublicAccessBlockCommand(
);
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -672,14 +700,16 @@ export async function serializeAws_restXmlUpdateJobPriorityCommand(
query["priority"] = input.Priority.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -713,14 +743,16 @@ export async function serializeAws_restXmlUpdateJobStatusCommand(
query["statusUpdateReason"] = input.StatusUpdateReason;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
diff --git a/clients/client-s3/S3.spec.ts b/clients/client-s3/S3.spec.ts
index fef019eb0bfb..ca1bfd9d4dd9 100644
--- a/clients/client-s3/S3.spec.ts
+++ b/clients/client-s3/S3.spec.ts
@@ -11,8 +11,9 @@ describe("endpoint", () => {
expect(request.protocol).toEqual("http:");
expect(request.hostname).toEqual("localhost");
expect(request.port).toEqual(8080);
- expect(request.query).toEqual({ foo: "bar" });
- expect(request.path).toEqual("/path");
+ //query and path should not be overwritten
+ expect(request.query).not.toContainEqual({ foo: "bar" });
+ expect(request.path).not.toEqual("/path");
return Promise.resolve({ output: {} as any, response: {} as any });
};
const client = new S3({ endpoint: "http://localhost:8080/path?foo=bar" });
diff --git a/clients/client-s3/protocols/Aws_restXml.ts b/clients/client-s3/protocols/Aws_restXml.ts
index 41692bd9d032..8f4eced3580a 100644
--- a/clients/client-s3/protocols/Aws_restXml.ts
+++ b/clients/client-s3/protocols/Aws_restXml.ts
@@ -529,14 +529,16 @@ export async function serializeAws_restXmlAbortMultipartUploadCommand(
query["uploadId"] = input.UploadId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -592,14 +594,16 @@ export async function serializeAws_restXmlCompleteMultipartUploadCommand(
contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -768,14 +772,16 @@ export async function serializeAws_restXmlCopyObjectCommand(
"x-id": "CopyObject"
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -832,13 +838,15 @@ export async function serializeAws_restXmlCreateBucketCommand(
contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -967,14 +975,16 @@ export async function serializeAws_restXmlCreateMultipartUploadCommand(
uploads: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -998,13 +1008,15 @@ export async function serializeAws_restXmlDeleteBucketCommand(
throw new Error("No value provided for input HTTP label: Bucket.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1034,14 +1046,16 @@ export async function serializeAws_restXmlDeleteBucketAnalyticsConfigurationComm
query["id"] = input.Id;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1068,14 +1082,16 @@ export async function serializeAws_restXmlDeleteBucketCorsCommand(
cors: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1102,14 +1118,16 @@ export async function serializeAws_restXmlDeleteBucketEncryptionCommand(
encryption: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1139,14 +1157,16 @@ export async function serializeAws_restXmlDeleteBucketInventoryConfigurationComm
query["id"] = input.Id;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1173,14 +1193,16 @@ export async function serializeAws_restXmlDeleteBucketLifecycleCommand(
lifecycle: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1210,14 +1232,16 @@ export async function serializeAws_restXmlDeleteBucketMetricsConfigurationComman
query["id"] = input.Id;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1244,14 +1268,16 @@ export async function serializeAws_restXmlDeleteBucketPolicyCommand(
policy: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1278,14 +1304,16 @@ export async function serializeAws_restXmlDeleteBucketReplicationCommand(
replication: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1312,14 +1340,16 @@ export async function serializeAws_restXmlDeleteBucketTaggingCommand(
tagging: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1346,14 +1376,16 @@ export async function serializeAws_restXmlDeleteBucketWebsiteCommand(
website: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1409,14 +1441,16 @@ export async function serializeAws_restXmlDeleteObjectCommand(
query["versionId"] = input.VersionId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1461,14 +1495,16 @@ export async function serializeAws_restXmlDeleteObjectTaggingCommand(
query["versionId"] = input.VersionId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1513,14 +1549,16 @@ export async function serializeAws_restXmlDeleteObjectsCommand(
contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1547,14 +1585,16 @@ export async function serializeAws_restXmlDeletePublicAccessBlockCommand(
publicAccessBlock: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1581,14 +1621,16 @@ export async function serializeAws_restXmlGetBucketAccelerateConfigurationComman
accelerate: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1615,14 +1657,16 @@ export async function serializeAws_restXmlGetBucketAclCommand(
acl: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1653,14 +1697,16 @@ export async function serializeAws_restXmlGetBucketAnalyticsConfigurationCommand
query["id"] = input.Id;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1687,14 +1733,16 @@ export async function serializeAws_restXmlGetBucketCorsCommand(
cors: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1721,14 +1769,16 @@ export async function serializeAws_restXmlGetBucketEncryptionCommand(
encryption: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1759,14 +1809,16 @@ export async function serializeAws_restXmlGetBucketInventoryConfigurationCommand
query["id"] = input.Id;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1793,14 +1845,16 @@ export async function serializeAws_restXmlGetBucketLifecycleConfigurationCommand
lifecycle: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1827,14 +1881,16 @@ export async function serializeAws_restXmlGetBucketLocationCommand(
location: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1861,14 +1917,16 @@ export async function serializeAws_restXmlGetBucketLoggingCommand(
logging: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1899,14 +1957,16 @@ export async function serializeAws_restXmlGetBucketMetricsConfigurationCommand(
query["id"] = input.Id;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1933,14 +1993,16 @@ export async function serializeAws_restXmlGetBucketNotificationConfigurationComm
notification: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1967,14 +2029,16 @@ export async function serializeAws_restXmlGetBucketPolicyCommand(
policy: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2001,14 +2065,16 @@ export async function serializeAws_restXmlGetBucketPolicyStatusCommand(
policyStatus: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2035,14 +2101,16 @@ export async function serializeAws_restXmlGetBucketReplicationCommand(
replication: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2069,14 +2137,16 @@ export async function serializeAws_restXmlGetBucketRequestPaymentCommand(
requestPayment: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2103,14 +2173,16 @@ export async function serializeAws_restXmlGetBucketTaggingCommand(
tagging: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2137,14 +2209,16 @@ export async function serializeAws_restXmlGetBucketVersioningCommand(
versioning: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2171,14 +2245,16 @@ export async function serializeAws_restXmlGetBucketWebsiteCommand(
website: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2283,14 +2359,16 @@ export async function serializeAws_restXmlGetObjectCommand(
query["versionId"] = input.VersionId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2338,14 +2416,16 @@ export async function serializeAws_restXmlGetObjectAclCommand(
query["versionId"] = input.VersionId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2393,14 +2473,16 @@ export async function serializeAws_restXmlGetObjectLegalHoldCommand(
query["versionId"] = input.VersionId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2427,14 +2509,16 @@ export async function serializeAws_restXmlGetObjectLockConfigurationCommand(
"object-lock": ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2482,14 +2566,16 @@ export async function serializeAws_restXmlGetObjectRetentionCommand(
query["versionId"] = input.VersionId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2534,14 +2620,16 @@ export async function serializeAws_restXmlGetObjectTaggingCommand(
query["versionId"] = input.VersionId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2586,14 +2674,16 @@ export async function serializeAws_restXmlGetObjectTorrentCommand(
torrent: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2620,14 +2710,16 @@ export async function serializeAws_restXmlGetPublicAccessBlockCommand(
publicAccessBlock: ""
};
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2651,13 +2743,15 @@ export async function serializeAws_restXmlHeadBucketCommand(
throw new Error("No value provided for input HTTP label: Bucket.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "HEAD",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2740,14 +2834,16 @@ export async function serializeAws_restXmlHeadObjectCommand(
query["versionId"] = input.VersionId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "HEAD",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2778,14 +2874,16 @@ export async function serializeAws_restXmlListBucketAnalyticsConfigurationsComma
query["continuation-token"] = input.ContinuationToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2816,14 +2914,16 @@ export async function serializeAws_restXmlListBucketInventoryConfigurationsComma
query["continuation-token"] = input.ContinuationToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2854,14 +2954,16 @@ export async function serializeAws_restXmlListBucketMetricsConfigurationsCommand
query["continuation-token"] = input.ContinuationToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2874,13 +2976,15 @@ export async function serializeAws_restXmlListBucketsCommand(
let resolvedPath = "/";
let body: any;
body = "";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -2925,14 +3029,16 @@ export async function serializeAws_restXmlListMultipartUploadsCommand(
query["upload-id-marker"] = input.UploadIdMarker;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -2977,14 +3083,16 @@ export async function serializeAws_restXmlListObjectVersionsCommand(
query["version-id-marker"] = input.VersionIdMarker;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3027,14 +3135,16 @@ export async function serializeAws_restXmlListObjectsCommand(
query["prefix"] = input.Prefix;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3085,14 +3195,16 @@ export async function serializeAws_restXmlListObjectsV2Command(
query["start-after"] = input.StartAfter;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3146,14 +3258,16 @@ export async function serializeAws_restXmlListPartsCommand(
query["uploadId"] = input.UploadId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3190,14 +3304,16 @@ export async function serializeAws_restXmlPutBucketAccelerateConfigurationComman
contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3255,14 +3371,16 @@ export async function serializeAws_restXmlPutBucketAclCommand(
contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3302,14 +3420,16 @@ export async function serializeAws_restXmlPutBucketAnalyticsConfigurationCommand
contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3349,14 +3469,16 @@ export async function serializeAws_restXmlPutBucketCorsCommand(
contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3396,14 +3518,16 @@ export async function serializeAws_restXmlPutBucketEncryptionCommand(
contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3443,14 +3567,16 @@ export async function serializeAws_restXmlPutBucketInventoryConfigurationCommand
contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3487,14 +3613,16 @@ export async function serializeAws_restXmlPutBucketLifecycleConfigurationCommand
contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3534,14 +3662,16 @@ export async function serializeAws_restXmlPutBucketLoggingCommand(
contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3581,14 +3711,16 @@ export async function serializeAws_restXmlPutBucketMetricsConfigurationCommand(
contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3625,14 +3757,16 @@ export async function serializeAws_restXmlPutBucketNotificationConfigurationComm
contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3677,14 +3811,16 @@ export async function serializeAws_restXmlPutBucketPolicyCommand(
bodyNode.addChildNode(node);
}
body += bodyNode.toString();
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3727,14 +3863,16 @@ export async function serializeAws_restXmlPutBucketReplicationCommand(
contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3774,14 +3912,16 @@ export async function serializeAws_restXmlPutBucketRequestPaymentCommand(
contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3818,14 +3958,16 @@ export async function serializeAws_restXmlPutBucketTaggingCommand(
contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3868,14 +4010,16 @@ export async function serializeAws_restXmlPutBucketVersioningCommand(
contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -3915,14 +4059,16 @@ export async function serializeAws_restXmlPutBucketWebsiteCommand(
contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4062,14 +4208,16 @@ export async function serializeAws_restXmlPutObjectCommand(
contents = input.Body;
body = contents;
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4148,14 +4296,16 @@ export async function serializeAws_restXmlPutObjectAclCommand(
contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4216,14 +4366,16 @@ export async function serializeAws_restXmlPutObjectLegalHoldCommand(
contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4269,14 +4421,16 @@ export async function serializeAws_restXmlPutObjectLockConfigurationCommand(
contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4342,14 +4496,16 @@ export async function serializeAws_restXmlPutObjectRetentionCommand(
contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4404,14 +4560,16 @@ export async function serializeAws_restXmlPutObjectTaggingCommand(
contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4451,14 +4609,16 @@ export async function serializeAws_restXmlPutPublicAccessBlockCommand(
contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4516,14 +4676,16 @@ export async function serializeAws_restXmlRestoreObjectCommand(
contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4625,14 +4787,16 @@ export async function serializeAws_restXmlSelectObjectContentCommand(
bodyNode.addChildNode(node);
}
body += bodyNode.toString();
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4709,14 +4873,16 @@ export async function serializeAws_restXmlUploadPartCommand(
contents = input.Body;
body = contents;
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -4819,14 +4985,16 @@ export async function serializeAws_restXmlUploadPartCopyCommand(
query["uploadId"] = input.UploadId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
diff --git a/clients/client-sagemaker-a2i-runtime/protocols/Aws_restJson1_1.ts b/clients/client-sagemaker-a2i-runtime/protocols/Aws_restJson1_1.ts
index 1fb0b42e5db1..18adc7580539 100644
--- a/clients/client-sagemaker-a2i-runtime/protocols/Aws_restJson1_1.ts
+++ b/clients/client-sagemaker-a2i-runtime/protocols/Aws_restJson1_1.ts
@@ -69,13 +69,15 @@ export async function serializeAws_restJson1_1DeleteHumanLoopCommand(
throw new Error("No value provided for input HTTP label: HumanLoopName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -101,13 +103,15 @@ export async function serializeAws_restJson1_1DescribeHumanLoopCommand(
throw new Error("No value provided for input HTTP label: HumanLoopName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -139,14 +143,16 @@ export async function serializeAws_restJson1_1ListHumanLoopsCommand(
query["SortOrder"] = input.SortOrder;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -182,13 +188,15 @@ export async function serializeAws_restJson1_1StartHumanLoopCommand(
bodyParams["HumanLoopName"] = input.HumanLoopName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -205,13 +213,15 @@ export async function serializeAws_restJson1_1StopHumanLoopCommand(
bodyParams["HumanLoopName"] = input.HumanLoopName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-sagemaker-runtime/protocols/Aws_restJson1_1.ts b/clients/client-sagemaker-runtime/protocols/Aws_restJson1_1.ts
index 4cdaf6e095a0..430b184c8a82 100644
--- a/clients/client-sagemaker-runtime/protocols/Aws_restJson1_1.ts
+++ b/clients/client-sagemaker-runtime/protocols/Aws_restJson1_1.ts
@@ -60,13 +60,15 @@ export async function serializeAws_restJson1_1InvokeEndpointCommand(
if (input.Body !== undefined) {
body = input.Body;
}
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-sagemaker/protocols/Aws_json1_1.ts b/clients/client-sagemaker/protocols/Aws_json1_1.ts
index 17d4d36e72fb..fd674b90b4ab 100644
--- a/clients/client-sagemaker/protocols/Aws_json1_1.ts
+++ b/clients/client-sagemaker/protocols/Aws_json1_1.ts
@@ -28820,19 +28820,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-savingsplans/protocols/Aws_restJson1_1.ts b/clients/client-savingsplans/protocols/Aws_restJson1_1.ts
index caa9f7e5e636..c4227f3766a0 100644
--- a/clients/client-savingsplans/protocols/Aws_restJson1_1.ts
+++ b/clients/client-savingsplans/protocols/Aws_restJson1_1.ts
@@ -143,13 +143,15 @@ export async function serializeAws_restJson1_1DescribeSavingsPlansOfferingRatesC
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -240,13 +242,15 @@ export async function serializeAws_restJson1_1DescribeSavingsPlansOfferingsComma
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -278,13 +282,15 @@ export async function serializeAws_restJson1_1CreateSavingsPlanCommand(
bodyParams["upfrontPaymentAmount"] = input.upfrontPaymentAmount;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -313,13 +319,15 @@ export async function serializeAws_restJson1_1DescribeSavingsPlanRatesCommand(
bodyParams["savingsPlanId"] = input.savingsPlanId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -363,13 +371,15 @@ export async function serializeAws_restJson1_1DescribeSavingsPlansCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -386,13 +396,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
bodyParams["resourceArn"] = input.resourceArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -412,13 +424,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -441,13 +455,15 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-schemas/protocols/Aws_restJson1_1.ts b/clients/client-schemas/protocols/Aws_restJson1_1.ts
index bc6fc7006ad3..a3959e1970ac 100644
--- a/clients/client-schemas/protocols/Aws_restJson1_1.ts
+++ b/clients/client-schemas/protocols/Aws_restJson1_1.ts
@@ -166,13 +166,15 @@ export async function serializeAws_restJson1_1CreateDiscovererCommand(
bodyParams["tags"] = serializeAws_restJson1_1Tags(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -206,13 +208,15 @@ export async function serializeAws_restJson1_1CreateRegistryCommand(
bodyParams["tags"] = serializeAws_restJson1_1Tags(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -265,13 +269,15 @@ export async function serializeAws_restJson1_1CreateSchemaCommand(
bodyParams["Type"] = input.Type;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -297,13 +303,15 @@ export async function serializeAws_restJson1_1DeleteDiscovererCommand(
throw new Error("No value provided for input HTTP label: DiscovererId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -329,13 +337,15 @@ export async function serializeAws_restJson1_1DeleteRegistryCommand(
throw new Error("No value provided for input HTTP label: RegistryName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -374,13 +384,15 @@ export async function serializeAws_restJson1_1DeleteSchemaCommand(
throw new Error("No value provided for input HTTP label: SchemaName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -433,13 +445,15 @@ export async function serializeAws_restJson1_1DeleteSchemaVersionCommand(
throw new Error("No value provided for input HTTP label: SchemaVersion.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -494,14 +508,16 @@ export async function serializeAws_restJson1_1DescribeCodeBindingCommand(
query["schemaVersion"] = input.SchemaVersion;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -527,13 +543,15 @@ export async function serializeAws_restJson1_1DescribeDiscovererCommand(
throw new Error("No value provided for input HTTP label: DiscovererId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -559,13 +577,15 @@ export async function serializeAws_restJson1_1DescribeRegistryCommand(
throw new Error("No value provided for input HTTP label: RegistryName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -608,14 +628,16 @@ export async function serializeAws_restJson1_1DescribeSchemaCommand(
query["schemaVersion"] = input.SchemaVersion;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -670,14 +692,16 @@ export async function serializeAws_restJson1_1GetCodeBindingSourceCommand(
query["schemaVersion"] = input.SchemaVersion;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -702,13 +726,15 @@ export async function serializeAws_restJson1_1GetDiscoveredSchemaCommand(
bodyParams["Type"] = input.Type;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -733,14 +759,16 @@ export async function serializeAws_restJson1_1ListDiscoverersCommand(
query["sourceArnPrefix"] = input.SourceArnPrefix;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -765,14 +793,16 @@ export async function serializeAws_restJson1_1ListRegistriesCommand(
query["scope"] = input.Scope;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -818,14 +848,16 @@ export async function serializeAws_restJson1_1ListSchemaVersionsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -861,14 +893,16 @@ export async function serializeAws_restJson1_1ListSchemasCommand(
query["schemaNamePrefix"] = input.SchemaNamePrefix;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -894,13 +928,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: ResourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -920,13 +956,15 @@ export async function serializeAws_restJson1_1LockServiceLinkedRoleCommand(
bodyParams["Timeout"] = input.Timeout;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -981,14 +1019,16 @@ export async function serializeAws_restJson1_1PutCodeBindingCommand(
query["schemaVersion"] = input.SchemaVersion;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1024,14 +1064,16 @@ export async function serializeAws_restJson1_1SearchSchemasCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1057,13 +1099,15 @@ export async function serializeAws_restJson1_1StartDiscovererCommand(
throw new Error("No value provided for input HTTP label: DiscovererId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1089,13 +1133,15 @@ export async function serializeAws_restJson1_1StopDiscovererCommand(
throw new Error("No value provided for input HTTP label: DiscovererId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1126,13 +1172,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["tags"] = serializeAws_restJson1_1Tags(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1149,13 +1197,15 @@ export async function serializeAws_restJson1_1UnlockServiceLinkedRoleCommand(
bodyParams["RoleArn"] = input.RoleArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1185,14 +1235,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.TagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1223,13 +1275,15 @@ export async function serializeAws_restJson1_1UpdateDiscovererCommand(
bodyParams["Description"] = input.Description;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1260,13 +1314,15 @@ export async function serializeAws_restJson1_1UpdateRegistryCommand(
bodyParams["Description"] = input.Description;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1322,13 +1378,15 @@ export async function serializeAws_restJson1_1UpdateSchemaCommand(
bodyParams["Type"] = input.Type;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-secrets-manager/protocols/Aws_json1_1.ts b/clients/client-secrets-manager/protocols/Aws_json1_1.ts
index 0015cf52e03b..ec3e94ca96d4 100644
--- a/clients/client-secrets-manager/protocols/Aws_json1_1.ts
+++ b/clients/client-secrets-manager/protocols/Aws_json1_1.ts
@@ -3564,19 +3564,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-securityhub/protocols/Aws_restJson1_1.ts b/clients/client-securityhub/protocols/Aws_restJson1_1.ts
index 0de13b2bb4e9..a42c83565e3e 100644
--- a/clients/client-securityhub/protocols/Aws_restJson1_1.ts
+++ b/clients/client-securityhub/protocols/Aws_restJson1_1.ts
@@ -258,13 +258,15 @@ export async function serializeAws_restJson1_1AcceptInvitationCommand(
bodyParams["MasterId"] = input.MasterId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -286,13 +288,15 @@ export async function serializeAws_restJson1_1BatchDisableStandardsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -314,13 +318,15 @@ export async function serializeAws_restJson1_1BatchEnableStandardsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -340,13 +346,15 @@ export async function serializeAws_restJson1_1BatchImportFindingsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -369,13 +377,15 @@ export async function serializeAws_restJson1_1CreateActionTargetCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -401,13 +411,15 @@ export async function serializeAws_restJson1_1CreateInsightCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -427,13 +439,15 @@ export async function serializeAws_restJson1_1CreateMembersCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -453,13 +467,15 @@ export async function serializeAws_restJson1_1DeclineInvitationsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -488,13 +504,15 @@ export async function serializeAws_restJson1_1DeleteActionTargetCommand(
throw new Error("No value provided for input HTTP label: ActionTargetArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -521,13 +539,15 @@ export async function serializeAws_restJson1_1DeleteInsightCommand(
throw new Error("No value provided for input HTTP label: InsightArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -547,13 +567,15 @@ export async function serializeAws_restJson1_1DeleteInvitationsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -573,13 +595,15 @@ export async function serializeAws_restJson1_1DeleteMembersCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -605,13 +629,15 @@ export async function serializeAws_restJson1_1DescribeActionTargetsCommand(
bodyParams["NextToken"] = input.NextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -627,14 +653,16 @@ export async function serializeAws_restJson1_1DescribeHubCommand(
query["HubArn"] = input.HubArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -653,14 +681,16 @@ export async function serializeAws_restJson1_1DescribeProductsCommand(
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -698,14 +728,16 @@ export async function serializeAws_restJson1_1DescribeStandardsControlsCommand(
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -736,13 +768,15 @@ export async function serializeAws_restJson1_1DisableImportFindingsForProductCom
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -755,13 +789,15 @@ export async function serializeAws_restJson1_1DisableSecurityHubCommand(
let resolvedPath = "/accounts";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -774,13 +810,15 @@ export async function serializeAws_restJson1_1DisassociateFromMasterAccountComma
let resolvedPath = "/master/disassociate";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -800,13 +838,15 @@ export async function serializeAws_restJson1_1DisassociateMembersCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -823,13 +863,15 @@ export async function serializeAws_restJson1_1EnableImportFindingsForProductComm
bodyParams["ProductArn"] = input.ProductArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -846,13 +888,15 @@ export async function serializeAws_restJson1_1EnableSecurityHubCommand(
bodyParams["Tags"] = serializeAws_restJson1_1TagMap(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -880,13 +924,15 @@ export async function serializeAws_restJson1_1GetEnabledStandardsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -918,13 +964,15 @@ export async function serializeAws_restJson1_1GetFindingsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -951,13 +999,15 @@ export async function serializeAws_restJson1_1GetInsightResultsCommand(
throw new Error("No value provided for input HTTP label: InsightArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -983,13 +1033,15 @@ export async function serializeAws_restJson1_1GetInsightsCommand(
bodyParams["NextToken"] = input.NextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1002,13 +1054,15 @@ export async function serializeAws_restJson1_1GetInvitationsCountCommand(
let resolvedPath = "/invitations/count";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1021,13 +1075,15 @@ export async function serializeAws_restJson1_1GetMasterAccountCommand(
let resolvedPath = "/master";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1047,13 +1103,15 @@ export async function serializeAws_restJson1_1GetMembersCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1073,13 +1131,15 @@ export async function serializeAws_restJson1_1InviteMembersCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1098,14 +1158,16 @@ export async function serializeAws_restJson1_1ListEnabledProductsForImportComman
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1124,14 +1186,16 @@ export async function serializeAws_restJson1_1ListInvitationsCommand(
query["NextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1153,14 +1217,16 @@ export async function serializeAws_restJson1_1ListMembersCommand(
query["OnlyAssociated"] = input.OnlyAssociated.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1186,13 +1252,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: ResourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1223,13 +1291,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["Tags"] = serializeAws_restJson1_1TagMap(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1259,14 +1329,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.TagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1303,13 +1375,15 @@ export async function serializeAws_restJson1_1UpdateActionTargetCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1338,13 +1412,15 @@ export async function serializeAws_restJson1_1UpdateFindingsCommand(
bodyParams["RecordState"] = input.RecordState;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1385,13 +1461,15 @@ export async function serializeAws_restJson1_1UpdateInsightCommand(
bodyParams["Name"] = input.Name;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1430,13 +1508,15 @@ export async function serializeAws_restJson1_1UpdateStandardsControlCommand(
bodyParams["DisabledReason"] = input.DisabledReason;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-serverlessapplicationrepository/protocols/Aws_restJson1_1.ts b/clients/client-serverlessapplicationrepository/protocols/Aws_restJson1_1.ts
index 161dd53e9bae..31e1556e80c9 100644
--- a/clients/client-serverlessapplicationrepository/protocols/Aws_restJson1_1.ts
+++ b/clients/client-serverlessapplicationrepository/protocols/Aws_restJson1_1.ts
@@ -142,13 +142,15 @@ export async function serializeAws_restJson1_1CreateApplicationCommand(
bodyParams["templateUrl"] = input.TemplateUrl;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -202,13 +204,15 @@ export async function serializeAws_restJson1_1CreateApplicationVersionCommand(
bodyParams["templateUrl"] = input.TemplateUrl;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -294,13 +298,15 @@ export async function serializeAws_restJson1_1CreateCloudFormationChangeSetComma
bodyParams["templateId"] = input.TemplateId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -331,13 +337,15 @@ export async function serializeAws_restJson1_1CreateCloudFormationTemplateComman
bodyParams["semanticVersion"] = input.SemanticVersion;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -363,13 +371,15 @@ export async function serializeAws_restJson1_1DeleteApplicationCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -399,14 +409,16 @@ export async function serializeAws_restJson1_1GetApplicationCommand(
query["semanticVersion"] = input.SemanticVersion;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -432,13 +444,15 @@ export async function serializeAws_restJson1_1GetApplicationPolicyCommand(
throw new Error("No value provided for input HTTP label: ApplicationId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -476,13 +490,15 @@ export async function serializeAws_restJson1_1GetCloudFormationTemplateCommand(
throw new Error("No value provided for input HTTP label: TemplateId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -518,14 +534,16 @@ export async function serializeAws_restJson1_1ListApplicationDependenciesCommand
query["semanticVersion"] = input.SemanticVersion;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -558,14 +576,16 @@ export async function serializeAws_restJson1_1ListApplicationVersionsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -584,14 +604,16 @@ export async function serializeAws_restJson1_1ListApplicationsCommand(
query["nextToken"] = input.NextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -627,13 +649,15 @@ export async function serializeAws_restJson1_1PutApplicationPolicyCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -682,13 +706,15 @@ export async function serializeAws_restJson1_1UpdateApplicationCommand(
bodyParams["readmeUrl"] = input.ReadmeUrl;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-service-catalog/protocols/Aws_json1_1.ts b/clients/client-service-catalog/protocols/Aws_json1_1.ts
index e70a3e4e277f..ccccdfc6ccff 100644
--- a/clients/client-service-catalog/protocols/Aws_json1_1.ts
+++ b/clients/client-service-catalog/protocols/Aws_json1_1.ts
@@ -14334,19 +14334,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-service-quotas/protocols/Aws_json1_1.ts b/clients/client-service-quotas/protocols/Aws_json1_1.ts
index 8d000a335cdb..66b79599674c 100644
--- a/clients/client-service-quotas/protocols/Aws_json1_1.ts
+++ b/clients/client-service-quotas/protocols/Aws_json1_1.ts
@@ -3835,19 +3835,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-servicediscovery/protocols/Aws_json1_1.ts b/clients/client-servicediscovery/protocols/Aws_json1_1.ts
index b1b692b9c823..89ad6e0f4660 100644
--- a/clients/client-servicediscovery/protocols/Aws_json1_1.ts
+++ b/clients/client-servicediscovery/protocols/Aws_json1_1.ts
@@ -4042,19 +4042,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-ses/protocols/Aws_query.ts b/clients/client-ses/protocols/Aws_query.ts
index fd02d5f13ec4..a32ef4620d0a 100644
--- a/clients/client-ses/protocols/Aws_query.ts
+++ b/clients/client-ses/protocols/Aws_query.ts
@@ -12507,19 +12507,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-sesv2/protocols/Aws_restJson1_1.ts b/clients/client-sesv2/protocols/Aws_restJson1_1.ts
index 009117d74912..f7d06b8bb497 100644
--- a/clients/client-sesv2/protocols/Aws_restJson1_1.ts
+++ b/clients/client-sesv2/protocols/Aws_restJson1_1.ts
@@ -314,13 +314,15 @@ export async function serializeAws_restJson1_1CreateConfigurationSetCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -362,13 +364,15 @@ export async function serializeAws_restJson1_1CreateConfigurationSetEventDestina
bodyParams["EventDestinationName"] = input.EventDestinationName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -388,13 +392,15 @@ export async function serializeAws_restJson1_1CreateDedicatedIpPoolCommand(
bodyParams["Tags"] = serializeAws_restJson1_1TagList(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -423,13 +429,15 @@ export async function serializeAws_restJson1_1CreateDeliverabilityTestReportComm
bodyParams["Tags"] = serializeAws_restJson1_1TagList(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -457,13 +465,15 @@ export async function serializeAws_restJson1_1CreateEmailIdentityCommand(
bodyParams["Tags"] = serializeAws_restJson1_1TagList(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -491,13 +501,15 @@ export async function serializeAws_restJson1_1DeleteConfigurationSetCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -542,13 +554,15 @@ export async function serializeAws_restJson1_1DeleteConfigurationSetEventDestina
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -572,13 +586,15 @@ export async function serializeAws_restJson1_1DeleteDedicatedIpPoolCommand(
throw new Error("No value provided for input HTTP label: PoolName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -604,13 +620,15 @@ export async function serializeAws_restJson1_1DeleteEmailIdentityCommand(
throw new Error("No value provided for input HTTP label: EmailIdentity.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -636,13 +654,15 @@ export async function serializeAws_restJson1_1DeleteSuppressedDestinationCommand
throw new Error("No value provided for input HTTP label: EmailAddress.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -655,13 +675,15 @@ export async function serializeAws_restJson1_1GetAccountCommand(
let resolvedPath = "/v2/email/account";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -679,14 +701,16 @@ export async function serializeAws_restJson1_1GetBlacklistReportsCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -714,13 +738,15 @@ export async function serializeAws_restJson1_1GetConfigurationSetCommand(
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -749,13 +775,15 @@ export async function serializeAws_restJson1_1GetConfigurationSetEventDestinatio
);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -779,13 +807,15 @@ export async function serializeAws_restJson1_1GetDedicatedIpCommand(
throw new Error("No value provided for input HTTP label: Ip.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -807,14 +837,16 @@ export async function serializeAws_restJson1_1GetDedicatedIpsCommand(
query["PoolName"] = input.PoolName;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -827,13 +859,15 @@ export async function serializeAws_restJson1_1GetDeliverabilityDashboardOptionsC
let resolvedPath = "/v2/email/deliverability-dashboard";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -858,13 +892,15 @@ export async function serializeAws_restJson1_1GetDeliverabilityTestReportCommand
throw new Error("No value provided for input HTTP label: ReportId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -889,13 +925,15 @@ export async function serializeAws_restJson1_1GetDomainDeliverabilityCampaignCom
throw new Error("No value provided for input HTTP label: CampaignId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -931,14 +969,16 @@ export async function serializeAws_restJson1_1GetDomainStatisticsReportCommand(
).toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -964,13 +1004,15 @@ export async function serializeAws_restJson1_1GetEmailIdentityCommand(
throw new Error("No value provided for input HTTP label: EmailIdentity.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -996,13 +1038,15 @@ export async function serializeAws_restJson1_1GetSuppressedDestinationCommand(
throw new Error("No value provided for input HTTP label: EmailAddress.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1021,14 +1065,16 @@ export async function serializeAws_restJson1_1ListConfigurationSetsCommand(
query["PageSize"] = input.PageSize.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1047,14 +1093,16 @@ export async function serializeAws_restJson1_1ListDedicatedIpPoolsCommand(
query["PageSize"] = input.PageSize.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1073,14 +1121,16 @@ export async function serializeAws_restJson1_1ListDeliverabilityTestReportsComma
query["PageSize"] = input.PageSize.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1126,14 +1176,16 @@ export async function serializeAws_restJson1_1ListDomainDeliverabilityCampaignsC
).toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1152,14 +1204,16 @@ export async function serializeAws_restJson1_1ListEmailIdentitiesCommand(
query["PageSize"] = input.PageSize.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1191,14 +1245,16 @@ export async function serializeAws_restJson1_1ListSuppressedDestinationsCommand(
).toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1214,14 +1270,16 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
query["ResourceArn"] = input.ResourceArn;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1238,13 +1296,15 @@ export async function serializeAws_restJson1_1PutAccountDedicatedIpWarmupAttribu
bodyParams["AutoWarmupEnabled"] = input.AutoWarmupEnabled;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1261,13 +1321,15 @@ export async function serializeAws_restJson1_1PutAccountSendingAttributesCommand
bodyParams["SendingEnabled"] = input.SendingEnabled;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1289,13 +1351,15 @@ export async function serializeAws_restJson1_1PutAccountSuppressionAttributesCom
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1332,13 +1396,15 @@ export async function serializeAws_restJson1_1PutConfigurationSetDeliveryOptions
bodyParams["TlsPolicy"] = input.TlsPolicy;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1372,13 +1438,15 @@ export async function serializeAws_restJson1_1PutConfigurationSetReputationOptio
bodyParams["ReputationMetricsEnabled"] = input.ReputationMetricsEnabled;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1412,13 +1480,15 @@ export async function serializeAws_restJson1_1PutConfigurationSetSendingOptionsC
bodyParams["SendingEnabled"] = input.SendingEnabled;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1457,13 +1527,15 @@ export async function serializeAws_restJson1_1PutConfigurationSetSuppressionOpti
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1497,13 +1569,15 @@ export async function serializeAws_restJson1_1PutConfigurationSetTrackingOptions
bodyParams["CustomRedirectDomain"] = input.CustomRedirectDomain;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1532,13 +1606,15 @@ export async function serializeAws_restJson1_1PutDedicatedIpInPoolCommand(
bodyParams["DestinationPoolName"] = input.DestinationPoolName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1567,13 +1643,15 @@ export async function serializeAws_restJson1_1PutDedicatedIpWarmupAttributesComm
bodyParams["WarmupPercentage"] = input.WarmupPercentage;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1598,13 +1676,15 @@ export async function serializeAws_restJson1_1PutDeliverabilityDashboardOptionCo
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1635,13 +1715,15 @@ export async function serializeAws_restJson1_1PutEmailIdentityDkimAttributesComm
bodyParams["SigningEnabled"] = input.SigningEnabled;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1680,13 +1762,15 @@ export async function serializeAws_restJson1_1PutEmailIdentityDkimSigningAttribu
bodyParams["SigningAttributesOrigin"] = input.SigningAttributesOrigin;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1717,13 +1801,15 @@ export async function serializeAws_restJson1_1PutEmailIdentityFeedbackAttributes
bodyParams["EmailForwardingEnabled"] = input.EmailForwardingEnabled;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1757,13 +1843,15 @@ export async function serializeAws_restJson1_1PutEmailIdentityMailFromAttributes
bodyParams["MailFromDomain"] = input.MailFromDomain;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1783,13 +1871,15 @@ export async function serializeAws_restJson1_1PutSuppressedDestinationCommand(
bodyParams["Reason"] = input.Reason;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1837,13 +1927,15 @@ export async function serializeAws_restJson1_1SendEmailCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1863,13 +1955,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["Tags"] = serializeAws_restJson1_1TagList(input.Tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1888,14 +1982,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["TagKeys"] = (input.TagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1950,13 +2046,15 @@ export async function serializeAws_restJson1_1UpdateConfigurationSetEventDestina
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-sfn/protocols/Aws_json1_0.ts b/clients/client-sfn/protocols/Aws_json1_0.ts
index 95eed09039d1..05aea322dee3 100644
--- a/clients/client-sfn/protocols/Aws_json1_0.ts
+++ b/clients/client-sfn/protocols/Aws_json1_0.ts
@@ -5067,19 +5067,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-shield/protocols/Aws_json1_1.ts b/clients/client-shield/protocols/Aws_json1_1.ts
index 4d704cfc7988..ee08ba24de38 100644
--- a/clients/client-shield/protocols/Aws_json1_1.ts
+++ b/clients/client-shield/protocols/Aws_json1_1.ts
@@ -3470,19 +3470,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-signer/protocols/Aws_restJson1_1.ts b/clients/client-signer/protocols/Aws_restJson1_1.ts
index 02467f4a54ea..f69f9a6af4aa 100644
--- a/clients/client-signer/protocols/Aws_restJson1_1.ts
+++ b/clients/client-signer/protocols/Aws_restJson1_1.ts
@@ -112,13 +112,15 @@ export async function serializeAws_restJson1_1CancelSigningProfileCommand(
throw new Error("No value provided for input HTTP label: profileName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -142,13 +144,15 @@ export async function serializeAws_restJson1_1DescribeSigningJobCommand(
throw new Error("No value provided for input HTTP label: jobId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -172,13 +176,15 @@ export async function serializeAws_restJson1_1GetSigningPlatformCommand(
throw new Error("No value provided for input HTTP label: platformId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -204,13 +210,15 @@ export async function serializeAws_restJson1_1GetSigningProfileCommand(
throw new Error("No value provided for input HTTP label: profileName.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -238,14 +246,16 @@ export async function serializeAws_restJson1_1ListSigningJobsCommand(
query["status"] = input.status;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -273,14 +283,16 @@ export async function serializeAws_restJson1_1ListSigningPlatformsCommand(
query["target"] = input.target;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -302,14 +314,16 @@ export async function serializeAws_restJson1_1ListSigningProfilesCommand(
query["nextToken"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -335,13 +349,15 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
throw new Error("No value provided for input HTTP label: resourceArn.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -393,13 +409,15 @@ export async function serializeAws_restJson1_1PutSigningProfileCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -434,13 +452,15 @@ export async function serializeAws_restJson1_1StartSigningJobCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -471,13 +491,15 @@ export async function serializeAws_restJson1_1TagResourceCommand(
bodyParams["tags"] = serializeAws_restJson1_1TagMap(input.tags, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -507,14 +529,16 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
query["tagKeys"] = (input.tagKeys || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
diff --git a/clients/client-sms/protocols/Aws_json1_1.ts b/clients/client-sms/protocols/Aws_json1_1.ts
index 5fa0520493e8..c2c2a31c98b0 100644
--- a/clients/client-sms/protocols/Aws_json1_1.ts
+++ b/clients/client-sms/protocols/Aws_json1_1.ts
@@ -5982,19 +5982,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-snowball/protocols/Aws_json1_1.ts b/clients/client-snowball/protocols/Aws_json1_1.ts
index 0854d85ae0eb..cbc64e67397d 100644
--- a/clients/client-snowball/protocols/Aws_json1_1.ts
+++ b/clients/client-snowball/protocols/Aws_json1_1.ts
@@ -3733,19 +3733,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-sns/protocols/Aws_query.ts b/clients/client-sns/protocols/Aws_query.ts
index 353f1efd6600..6e68ad28601f 100644
--- a/clients/client-sns/protocols/Aws_query.ts
+++ b/clients/client-sns/protocols/Aws_query.ts
@@ -6525,19 +6525,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-sqs/protocols/Aws_query.ts b/clients/client-sqs/protocols/Aws_query.ts
index 5042f646eb76..72e82066b073 100644
--- a/clients/client-sqs/protocols/Aws_query.ts
+++ b/clients/client-sqs/protocols/Aws_query.ts
@@ -3738,19 +3738,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-ssm/protocols/Aws_json1_1.ts b/clients/client-ssm/protocols/Aws_json1_1.ts
index b0e1469e4dc7..f312f62d1525 100644
--- a/clients/client-ssm/protocols/Aws_json1_1.ts
+++ b/clients/client-ssm/protocols/Aws_json1_1.ts
@@ -30965,19 +30965,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-sso-oidc/protocols/Aws_restJson1_1.ts b/clients/client-sso-oidc/protocols/Aws_restJson1_1.ts
index b7179c755909..b259f2e60d92 100644
--- a/clients/client-sso-oidc/protocols/Aws_restJson1_1.ts
+++ b/clients/client-sso-oidc/protocols/Aws_restJson1_1.ts
@@ -70,13 +70,15 @@ export async function serializeAws_restJson1_1CreateTokenCommand(
bodyParams["scope"] = serializeAws_restJson1_1Scopes(input.scope, context);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -102,13 +104,15 @@ export async function serializeAws_restJson1_1RegisterClientCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -131,13 +135,15 @@ export async function serializeAws_restJson1_1StartDeviceAuthorizationCommand(
bodyParams["startUrl"] = input.startUrl;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-sso/protocols/Aws_restJson1_1.ts b/clients/client-sso/protocols/Aws_restJson1_1.ts
index 6afbfaec47d0..c245442868f9 100644
--- a/clients/client-sso/protocols/Aws_restJson1_1.ts
+++ b/clients/client-sso/protocols/Aws_restJson1_1.ts
@@ -56,14 +56,16 @@ export async function serializeAws_restJson1_1GetRoleCredentialsCommand(
query["role_name"] = input.roleName;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -88,14 +90,16 @@ export async function serializeAws_restJson1_1ListAccountRolesCommand(
query["next_token"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -117,14 +121,16 @@ export async function serializeAws_restJson1_1ListAccountsCommand(
query["next_token"] = input.nextToken;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -139,13 +145,15 @@ export async function serializeAws_restJson1_1LogoutCommand(
}
let resolvedPath = "/logout";
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-storage-gateway/protocols/Aws_json1_1.ts b/clients/client-storage-gateway/protocols/Aws_json1_1.ts
index ce6f5d285697..b20bc43ec8d1 100644
--- a/clients/client-storage-gateway/protocols/Aws_json1_1.ts
+++ b/clients/client-storage-gateway/protocols/Aws_json1_1.ts
@@ -11388,19 +11388,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-sts/protocols/Aws_query.ts b/clients/client-sts/protocols/Aws_query.ts
index 7b73606c1ccb..be293b4e5f6b 100644
--- a/clients/client-sts/protocols/Aws_query.ts
+++ b/clients/client-sts/protocols/Aws_query.ts
@@ -1791,19 +1791,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-support/protocols/Aws_json1_1.ts b/clients/client-support/protocols/Aws_json1_1.ts
index dd59e6a3c30a..7fac66eecdf8 100644
--- a/clients/client-support/protocols/Aws_json1_1.ts
+++ b/clients/client-support/protocols/Aws_json1_1.ts
@@ -2857,19 +2857,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-swf/protocols/Aws_json1_0.ts b/clients/client-swf/protocols/Aws_json1_0.ts
index 967aa958a3cb..07ee1bed253b 100644
--- a/clients/client-swf/protocols/Aws_json1_0.ts
+++ b/clients/client-swf/protocols/Aws_json1_0.ts
@@ -8700,19 +8700,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-textract/protocols/Aws_json1_1.ts b/clients/client-textract/protocols/Aws_json1_1.ts
index 5cdc7360359e..a90208b74241 100644
--- a/clients/client-textract/protocols/Aws_json1_1.ts
+++ b/clients/client-textract/protocols/Aws_json1_1.ts
@@ -2308,19 +2308,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-transcribe-streaming/protocols/Aws_restJson1_1.ts b/clients/client-transcribe-streaming/protocols/Aws_restJson1_1.ts
index c1361ae0531a..f94469bb9ec5 100644
--- a/clients/client-transcribe-streaming/protocols/Aws_restJson1_1.ts
+++ b/clients/client-transcribe-streaming/protocols/Aws_restJson1_1.ts
@@ -64,13 +64,15 @@ export async function serializeAws_restJson1_1StartStreamTranscriptionCommand(
body = {};
}
body = JSON.stringify(body);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-transcribe/protocols/Aws_json1_1.ts b/clients/client-transcribe/protocols/Aws_json1_1.ts
index b295aa1fdd09..380ebc7ca089 100644
--- a/clients/client-transcribe/protocols/Aws_json1_1.ts
+++ b/clients/client-transcribe/protocols/Aws_json1_1.ts
@@ -2761,19 +2761,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-transfer/protocols/Aws_json1_1.ts b/clients/client-transfer/protocols/Aws_json1_1.ts
index 6f17d3246b01..2eb9433989b1 100644
--- a/clients/client-transfer/protocols/Aws_json1_1.ts
+++ b/clients/client-transfer/protocols/Aws_json1_1.ts
@@ -3509,19 +3509,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-translate/protocols/Aws_json1_1.ts b/clients/client-translate/protocols/Aws_json1_1.ts
index 54d7234b912c..a3b4fe1d347f 100644
--- a/clients/client-translate/protocols/Aws_json1_1.ts
+++ b/clients/client-translate/protocols/Aws_json1_1.ts
@@ -2311,19 +2311,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-waf-regional/protocols/Aws_json1_1.ts b/clients/client-waf-regional/protocols/Aws_json1_1.ts
index ba461689a29a..ffa39fa61651 100644
--- a/clients/client-waf-regional/protocols/Aws_json1_1.ts
+++ b/clients/client-waf-regional/protocols/Aws_json1_1.ts
@@ -15208,19 +15208,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-waf/protocols/Aws_json1_1.ts b/clients/client-waf/protocols/Aws_json1_1.ts
index b6ab34906e6b..7ffc784cb547 100644
--- a/clients/client-waf/protocols/Aws_json1_1.ts
+++ b/clients/client-waf/protocols/Aws_json1_1.ts
@@ -14570,19 +14570,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-wafv2/protocols/Aws_json1_1.ts b/clients/client-wafv2/protocols/Aws_json1_1.ts
index 1253244aed6b..724654e5ef63 100644
--- a/clients/client-wafv2/protocols/Aws_json1_1.ts
+++ b/clients/client-wafv2/protocols/Aws_json1_1.ts
@@ -8456,19 +8456,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-workdocs/protocols/Aws_restJson1_1.ts b/clients/client-workdocs/protocols/Aws_restJson1_1.ts
index 5b71e274d5dc..e9aca9cd36a9 100644
--- a/clients/client-workdocs/protocols/Aws_restJson1_1.ts
+++ b/clients/client-workdocs/protocols/Aws_restJson1_1.ts
@@ -261,13 +261,15 @@ export async function serializeAws_restJson1_1AbortDocumentVersionUploadCommand(
throw new Error("No value provided for input HTTP label: VersionId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -294,13 +296,15 @@ export async function serializeAws_restJson1_1ActivateUserCommand(
throw new Error("No value provided for input HTTP label: UserId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -343,13 +347,15 @@ export async function serializeAws_restJson1_1AddResourcePermissionsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -406,13 +412,15 @@ export async function serializeAws_restJson1_1CreateCommentCommand(
bodyParams["Visibility"] = input.Visibility;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -451,14 +459,16 @@ export async function serializeAws_restJson1_1CreateCustomMetadataCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -481,13 +491,15 @@ export async function serializeAws_restJson1_1CreateFolderCommand(
bodyParams["ParentFolderId"] = input.ParentFolderId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -522,13 +534,15 @@ export async function serializeAws_restJson1_1CreateLabelsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PUT",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -565,13 +579,15 @@ export async function serializeAws_restJson1_1CreateNotificationSubscriptionComm
bodyParams["SubscriptionType"] = input.SubscriptionType;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -615,13 +631,15 @@ export async function serializeAws_restJson1_1CreateUserCommand(
bodyParams["Username"] = input.Username;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -648,13 +666,15 @@ export async function serializeAws_restJson1_1DeactivateUserCommand(
throw new Error("No value provided for input HTTP label: UserId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -706,13 +726,15 @@ export async function serializeAws_restJson1_1DeleteCommentCommand(
throw new Error("No value provided for input HTTP label: VersionId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -749,14 +771,16 @@ export async function serializeAws_restJson1_1DeleteCustomMetadataCommand(
query["versionId"] = input.VersionId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -783,13 +807,15 @@ export async function serializeAws_restJson1_1DeleteDocumentCommand(
throw new Error("No value provided for input HTTP label: DocumentId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -816,13 +842,15 @@ export async function serializeAws_restJson1_1DeleteFolderCommand(
throw new Error("No value provided for input HTTP label: FolderId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -849,13 +877,15 @@ export async function serializeAws_restJson1_1DeleteFolderContentsCommand(
throw new Error("No value provided for input HTTP label: FolderId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -889,14 +919,16 @@ export async function serializeAws_restJson1_1DeleteLabelsCommand(
query["labels"] = (input.Labels || []).map(_entry => _entry);
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -937,13 +969,15 @@ export async function serializeAws_restJson1_1DeleteNotificationSubscriptionComm
throw new Error("No value provided for input HTTP label: SubscriptionId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -970,13 +1004,15 @@ export async function serializeAws_restJson1_1DeleteUserCommand(
throw new Error("No value provided for input HTTP label: UserId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1025,14 +1061,16 @@ export async function serializeAws_restJson1_1DescribeActivitiesCommand(
query["userId"] = input.UserId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1079,14 +1117,16 @@ export async function serializeAws_restJson1_1DescribeCommentsCommand(
query["marker"] = input.Marker;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1126,14 +1166,16 @@ export async function serializeAws_restJson1_1DescribeDocumentVersionsCommand(
query["marker"] = input.Marker;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1179,14 +1221,16 @@ export async function serializeAws_restJson1_1DescribeFolderContentsCommand(
query["type"] = input.Type;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1214,14 +1258,16 @@ export async function serializeAws_restJson1_1DescribeGroupsCommand(
query["searchQuery"] = input.SearchQuery;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1254,14 +1300,16 @@ export async function serializeAws_restJson1_1DescribeNotificationSubscriptionsC
query["marker"] = input.Marker;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1298,14 +1346,16 @@ export async function serializeAws_restJson1_1DescribeResourcePermissionsCommand
query["principalId"] = input.PrincipalId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1327,14 +1377,16 @@ export async function serializeAws_restJson1_1DescribeRootFoldersCommand(
query["marker"] = input.Marker;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1377,14 +1429,16 @@ export async function serializeAws_restJson1_1DescribeUsersCommand(
query["userIds"] = input.UserIds;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1399,13 +1453,15 @@ export async function serializeAws_restJson1_1GetCurrentUserCommand(
}
let resolvedPath = "/api/v1/me";
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1436,14 +1492,16 @@ export async function serializeAws_restJson1_1GetDocumentCommand(
query["includeCustomMetadata"] = input.IncludeCustomMetadata.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1480,14 +1538,16 @@ export async function serializeAws_restJson1_1GetDocumentPathCommand(
query["marker"] = input.Marker;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1533,14 +1593,16 @@ export async function serializeAws_restJson1_1GetDocumentVersionCommand(
query["includeCustomMetadata"] = input.IncludeCustomMetadata.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1571,14 +1633,16 @@ export async function serializeAws_restJson1_1GetFolderCommand(
query["includeCustomMetadata"] = input.IncludeCustomMetadata.toString();
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1615,14 +1679,16 @@ export async function serializeAws_restJson1_1GetFolderPathCommand(
query["marker"] = input.Marker;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1650,14 +1716,16 @@ export async function serializeAws_restJson1_1GetResourcesCommand(
query["userId"] = input.UserId;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1699,13 +1767,15 @@ export async function serializeAws_restJson1_1InitiateDocumentVersionUploadComma
bodyParams["ParentFolderId"] = input.ParentFolderId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1732,13 +1802,15 @@ export async function serializeAws_restJson1_1RemoveAllResourcePermissionsComman
throw new Error("No value provided for input HTTP label: ResourceId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1783,14 +1855,16 @@ export async function serializeAws_restJson1_1RemoveResourcePermissionCommand(
query["type"] = input.PrincipalType;
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "DELETE",
- headers: headers,
+ headers,
path: resolvedPath,
- query: query,
- body: body,
- ...context.endpoint
+ query,
+ body
});
}
@@ -1828,13 +1902,15 @@ export async function serializeAws_restJson1_1UpdateDocumentCommand(
bodyParams["ResourceState"] = input.ResourceState;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1878,13 +1954,15 @@ export async function serializeAws_restJson1_1UpdateDocumentVersionCommand(
bodyParams["VersionStatus"] = input.VersionStatus;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1922,13 +2000,15 @@ export async function serializeAws_restJson1_1UpdateFolderCommand(
bodyParams["ResourceState"] = input.ResourceState;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -1981,13 +2061,15 @@ export async function serializeAws_restJson1_1UpdateUserCommand(
bodyParams["Type"] = input.Type;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "PATCH",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-worklink/protocols/Aws_restJson1_1.ts b/clients/client-worklink/protocols/Aws_restJson1_1.ts
index e83b0e81ee3e..48acb697a154 100644
--- a/clients/client-worklink/protocols/Aws_restJson1_1.ts
+++ b/clients/client-worklink/protocols/Aws_restJson1_1.ts
@@ -165,13 +165,15 @@ export async function serializeAws_restJson1_1AssociateDomainCommand(
bodyParams["FleetArn"] = input.FleetArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -194,13 +196,15 @@ export async function serializeAws_restJson1_1AssociateWebsiteAuthorizationProvi
bodyParams["FleetArn"] = input.FleetArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -223,13 +227,15 @@ export async function serializeAws_restJson1_1AssociateWebsiteCertificateAuthori
bodyParams["FleetArn"] = input.FleetArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -252,13 +258,15 @@ export async function serializeAws_restJson1_1CreateFleetCommand(
bodyParams["OptimizeForEndUserLocation"] = input.OptimizeForEndUserLocation;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -275,13 +283,15 @@ export async function serializeAws_restJson1_1DeleteFleetCommand(
bodyParams["FleetArn"] = input.FleetArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -298,13 +308,15 @@ export async function serializeAws_restJson1_1DescribeAuditStreamConfigurationCo
bodyParams["FleetArn"] = input.FleetArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -321,13 +333,15 @@ export async function serializeAws_restJson1_1DescribeCompanyNetworkConfiguratio
bodyParams["FleetArn"] = input.FleetArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -347,13 +361,15 @@ export async function serializeAws_restJson1_1DescribeDeviceCommand(
bodyParams["FleetArn"] = input.FleetArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -370,13 +386,15 @@ export async function serializeAws_restJson1_1DescribeDevicePolicyConfigurationC
bodyParams["FleetArn"] = input.FleetArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -396,13 +414,15 @@ export async function serializeAws_restJson1_1DescribeDomainCommand(
bodyParams["FleetArn"] = input.FleetArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -419,13 +439,15 @@ export async function serializeAws_restJson1_1DescribeFleetMetadataCommand(
bodyParams["FleetArn"] = input.FleetArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -442,13 +464,15 @@ export async function serializeAws_restJson1_1DescribeIdentityProviderConfigurat
bodyParams["FleetArn"] = input.FleetArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -468,13 +492,15 @@ export async function serializeAws_restJson1_1DescribeWebsiteCertificateAuthorit
bodyParams["WebsiteCaId"] = input.WebsiteCaId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -494,13 +520,15 @@ export async function serializeAws_restJson1_1DisassociateDomainCommand(
bodyParams["FleetArn"] = input.FleetArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -520,13 +548,15 @@ export async function serializeAws_restJson1_1DisassociateWebsiteAuthorizationPr
bodyParams["FleetArn"] = input.FleetArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -546,13 +576,15 @@ export async function serializeAws_restJson1_1DisassociateWebsiteCertificateAuth
bodyParams["WebsiteCaId"] = input.WebsiteCaId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -575,13 +607,15 @@ export async function serializeAws_restJson1_1ListDevicesCommand(
bodyParams["NextToken"] = input.NextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -604,13 +638,15 @@ export async function serializeAws_restJson1_1ListDomainsCommand(
bodyParams["NextToken"] = input.NextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -630,13 +666,15 @@ export async function serializeAws_restJson1_1ListFleetsCommand(
bodyParams["NextToken"] = input.NextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -659,13 +697,15 @@ export async function serializeAws_restJson1_1ListWebsiteAuthorizationProvidersC
bodyParams["NextToken"] = input.NextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -688,13 +728,15 @@ export async function serializeAws_restJson1_1ListWebsiteCertificateAuthoritiesC
bodyParams["NextToken"] = input.NextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -714,13 +756,15 @@ export async function serializeAws_restJson1_1RestoreDomainAccessCommand(
bodyParams["FleetArn"] = input.FleetArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -740,13 +784,15 @@ export async function serializeAws_restJson1_1RevokeDomainAccessCommand(
bodyParams["FleetArn"] = input.FleetArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -766,13 +812,15 @@ export async function serializeAws_restJson1_1SignOutUserCommand(
bodyParams["Username"] = input.Username;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -792,13 +840,15 @@ export async function serializeAws_restJson1_1UpdateAuditStreamConfigurationComm
bodyParams["FleetArn"] = input.FleetArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -830,13 +880,15 @@ export async function serializeAws_restJson1_1UpdateCompanyNetworkConfigurationC
bodyParams["VpcId"] = input.VpcId;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -856,13 +908,15 @@ export async function serializeAws_restJson1_1UpdateDevicePolicyConfigurationCom
bodyParams["FleetArn"] = input.FleetArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -885,13 +939,15 @@ export async function serializeAws_restJson1_1UpdateDomainMetadataCommand(
bodyParams["FleetArn"] = input.FleetArn;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -914,13 +970,15 @@ export async function serializeAws_restJson1_1UpdateFleetMetadataCommand(
bodyParams["OptimizeForEndUserLocation"] = input.OptimizeForEndUserLocation;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -944,13 +1002,15 @@ export async function serializeAws_restJson1_1UpdateIdentityProviderConfiguratio
bodyParams["IdentityProviderType"] = input.IdentityProviderType;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-workmail/protocols/Aws_json1_1.ts b/clients/client-workmail/protocols/Aws_json1_1.ts
index bfac5158789b..15084763ad85 100644
--- a/clients/client-workmail/protocols/Aws_json1_1.ts
+++ b/clients/client-workmail/protocols/Aws_json1_1.ts
@@ -6446,19 +6446,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-workmailmessageflow/protocols/Aws_restJson1_1.ts b/clients/client-workmailmessageflow/protocols/Aws_restJson1_1.ts
index c7360ab8332b..9f9761fc4c2f 100644
--- a/clients/client-workmailmessageflow/protocols/Aws_restJson1_1.ts
+++ b/clients/client-workmailmessageflow/protocols/Aws_restJson1_1.ts
@@ -38,13 +38,15 @@ export async function serializeAws_restJson1_1GetRawMessageContentCommand(
throw new Error("No value provided for input HTTP label: messageId.");
}
let body: any;
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "GET",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/clients/client-workspaces/protocols/Aws_json1_1.ts b/clients/client-workspaces/protocols/Aws_json1_1.ts
index af47ef6338f1..d3df0b7fd5d0 100644
--- a/clients/client-workspaces/protocols/Aws_json1_1.ts
+++ b/clients/client-workspaces/protocols/Aws_json1_1.ts
@@ -7621,19 +7621,21 @@ const collectBodyString = (
);
};
-const buildHttpRpcRequest = (
+const buildHttpRpcRequest = async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
-): __HttpRequest => {
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port } = await context.endpoint();
const contents: any = {
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- path: path,
- headers: headers,
- ...context.endpoint
+ path,
+ headers
};
if (resolvedHostname !== undefined) {
contents.hostname = resolvedHostname;
diff --git a/clients/client-xray/protocols/Aws_restJson1_1.ts b/clients/client-xray/protocols/Aws_restJson1_1.ts
index d2bb8f93fdb2..5f48a06d36e2 100644
--- a/clients/client-xray/protocols/Aws_restJson1_1.ts
+++ b/clients/client-xray/protocols/Aws_restJson1_1.ts
@@ -158,13 +158,15 @@ export async function serializeAws_restJson1_1BatchGetTracesCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -184,13 +186,15 @@ export async function serializeAws_restJson1_1CreateGroupCommand(
bodyParams["GroupName"] = input.GroupName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -210,13 +214,15 @@ export async function serializeAws_restJson1_1CreateSamplingRuleCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -236,13 +242,15 @@ export async function serializeAws_restJson1_1DeleteGroupCommand(
bodyParams["GroupName"] = input.GroupName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -262,13 +270,15 @@ export async function serializeAws_restJson1_1DeleteSamplingRuleCommand(
bodyParams["RuleName"] = input.RuleName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -281,13 +291,15 @@ export async function serializeAws_restJson1_1GetEncryptionConfigCommand(
let resolvedPath = "/EncryptionConfig";
let body: any;
body = "{}";
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -307,13 +319,15 @@ export async function serializeAws_restJson1_1GetGroupCommand(
bodyParams["GroupName"] = input.GroupName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -330,13 +344,15 @@ export async function serializeAws_restJson1_1GetGroupsCommand(
bodyParams["NextToken"] = input.NextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -353,13 +369,15 @@ export async function serializeAws_restJson1_1GetSamplingRulesCommand(
bodyParams["NextToken"] = input.NextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -376,13 +394,15 @@ export async function serializeAws_restJson1_1GetSamplingStatisticSummariesComma
bodyParams["NextToken"] = input.NextToken;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -404,13 +424,15 @@ export async function serializeAws_restJson1_1GetSamplingTargetsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -439,13 +461,15 @@ export async function serializeAws_restJson1_1GetServiceGraphCommand(
bodyParams["StartTime"] = Math.round(input.StartTime.getTime() / 1000);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -480,13 +504,15 @@ export async function serializeAws_restJson1_1GetTimeSeriesServiceStatisticsComm
bodyParams["StartTime"] = Math.round(input.StartTime.getTime() / 1000);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -509,13 +535,15 @@ export async function serializeAws_restJson1_1GetTraceGraphCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -553,13 +581,15 @@ export async function serializeAws_restJson1_1GetTraceSummariesCommand(
bodyParams["TimeRangeType"] = input.TimeRangeType;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -579,13 +609,15 @@ export async function serializeAws_restJson1_1PutEncryptionConfigCommand(
bodyParams["Type"] = input.Type;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -616,13 +648,15 @@ export async function serializeAws_restJson1_1PutTelemetryRecordsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -644,13 +678,15 @@ export async function serializeAws_restJson1_1PutTraceSegmentsCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -673,13 +709,15 @@ export async function serializeAws_restJson1_1UpdateGroupCommand(
bodyParams["GroupName"] = input.GroupName;
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
@@ -701,13 +739,15 @@ export async function serializeAws_restJson1_1UpdateSamplingRuleCommand(
);
}
body = JSON.stringify(bodyParams);
+ const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({
- protocol: "https",
+ protocol,
+ hostname,
+ port,
method: "POST",
- headers: headers,
+ headers,
path: resolvedPath,
- body: body,
- ...context.endpoint
+ body
});
}
diff --git a/packages/middleware-serde/src/serdePlugin.ts b/packages/middleware-serde/src/serdePlugin.ts
index ae077d3721eb..ab0d6d905a02 100644
--- a/packages/middleware-serde/src/serdePlugin.ts
+++ b/packages/middleware-serde/src/serdePlugin.ts
@@ -5,7 +5,6 @@ import {
MetadataBearer,
MiddlewareStack,
EndpointBearer,
- RequestHandler,
DeserializeHandlerOptions,
SerializeHandlerOptions
} from "@aws-sdk/types";
diff --git a/packages/middleware-serde/src/serializerMiddleware.ts b/packages/middleware-serde/src/serializerMiddleware.ts
index 0d83540f0de9..e72631e40fd8 100644
--- a/packages/middleware-serde/src/serializerMiddleware.ts
+++ b/packages/middleware-serde/src/serializerMiddleware.ts
@@ -20,11 +20,7 @@ export function serializerMiddleware<
): SerializeHandler => async (
args: SerializeHandlerArguments
): Promise> => {
- const endpointResolvedOptions = {
- ...options,
- endpoint: await options.endpoint()
- };
- const request = await serializer(args.input, endpointResolvedOptions);
+ const request = await serializer(args.input, options);
return next({
...args,
request