diff --git a/clients/client-accessanalyzer/protocols/Aws_restJson1_1.ts b/clients/client-accessanalyzer/protocols/Aws_restJson1_1.ts index f45f20cb0367..d3569ac186f0 100644 --- a/clients/client-accessanalyzer/protocols/Aws_restJson1_1.ts +++ b/clients/client-accessanalyzer/protocols/Aws_restJson1_1.ts @@ -137,12 +137,12 @@ export async function serializeAws_restJson1_1CreateAnalyzerCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -186,12 +186,12 @@ export async function serializeAws_restJson1_1CreateArchiveRuleCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -222,13 +222,13 @@ export async function serializeAws_restJson1_1DeleteAnalyzerCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -271,13 +271,13 @@ export async function serializeAws_restJson1_1DeleteArchiveRuleCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -297,13 +297,13 @@ export async function serializeAws_restJson1_1GetAnalyzedResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -330,12 +330,12 @@ export async function serializeAws_restJson1_1GetAnalyzerCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -374,12 +374,12 @@ export async function serializeAws_restJson1_1GetArchiveRuleCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -408,13 +408,13 @@ export async function serializeAws_restJson1_1GetFindingCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -441,12 +441,12 @@ export async function serializeAws_restJson1_1ListAnalyzedResourcesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -469,13 +469,13 @@ export async function serializeAws_restJson1_1ListAnalyzersCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -509,13 +509,13 @@ export async function serializeAws_restJson1_1ListArchiveRulesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -551,12 +551,12 @@ export async function serializeAws_restJson1_1ListFindingsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -583,12 +583,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -609,12 +609,12 @@ export async function serializeAws_restJson1_1StartResourceScanCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -646,12 +646,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -682,13 +682,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -741,12 +741,12 @@ export async function serializeAws_restJson1_1UpdateArchiveRuleCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -782,12 +782,12 @@ export async function serializeAws_restJson1_1UpdateFindingsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-acm-pca/protocols/Aws_json1_1.ts b/clients/client-acm-pca/protocols/Aws_json1_1.ts index d91522769861..e2db711b084a 100644 --- a/clients/client-acm-pca/protocols/Aws_json1_1.ts +++ b/clients/client-acm-pca/protocols/Aws_json1_1.ts @@ -4113,11 +4113,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 4e9c93ac5841..5d2380438bea 100644 --- a/clients/client-acm/protocols/Aws_json1_1.ts +++ b/clients/client-acm/protocols/Aws_json1_1.ts @@ -2790,11 +2790,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 19c298daa784..8487abab1779 100644 --- a/clients/client-alexa-for-business/protocols/Aws_json1_1.ts +++ b/clients/client-alexa-for-business/protocols/Aws_json1_1.ts @@ -14195,11 +14195,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 23971a730bc3..996f009dbc70 100644 --- a/clients/client-amplify/protocols/Aws_restJson1_1.ts +++ b/clients/client-amplify/protocols/Aws_restJson1_1.ts @@ -264,12 +264,12 @@ export async function serializeAws_restJson1_1CreateAppCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -305,12 +305,12 @@ export async function serializeAws_restJson1_1CreateBackendEnvironmentCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -390,12 +390,12 @@ export async function serializeAws_restJson1_1CreateBranchCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -440,12 +440,12 @@ export async function serializeAws_restJson1_1CreateDeploymentCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -484,12 +484,12 @@ export async function serializeAws_restJson1_1CreateDomainAssociationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -522,12 +522,12 @@ export async function serializeAws_restJson1_1CreateWebhookCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -552,12 +552,12 @@ export async function serializeAws_restJson1_1DeleteAppCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -596,12 +596,12 @@ export async function serializeAws_restJson1_1DeleteBackendEnvironmentCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -638,12 +638,12 @@ export async function serializeAws_restJson1_1DeleteBranchCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -680,12 +680,12 @@ export async function serializeAws_restJson1_1DeleteDomainAssociationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -734,12 +734,12 @@ export async function serializeAws_restJson1_1DeleteJobCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -764,12 +764,12 @@ export async function serializeAws_restJson1_1DeleteWebhookCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -805,12 +805,12 @@ export async function serializeAws_restJson1_1GenerateAccessLogsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -835,12 +835,12 @@ export async function serializeAws_restJson1_1GetAppCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -865,12 +865,12 @@ export async function serializeAws_restJson1_1GetArtifactUrlCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -909,12 +909,12 @@ export async function serializeAws_restJson1_1GetBackendEnvironmentCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -951,12 +951,12 @@ export async function serializeAws_restJson1_1GetBranchCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -993,12 +993,12 @@ export async function serializeAws_restJson1_1GetDomainAssociationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1047,12 +1047,12 @@ export async function serializeAws_restJson1_1GetJobCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1077,12 +1077,12 @@ export async function serializeAws_restJson1_1GetWebhookCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1102,13 +1102,13 @@ export async function serializeAws_restJson1_1ListAppsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1165,13 +1165,13 @@ export async function serializeAws_restJson1_1ListArtifactsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1208,13 +1208,13 @@ export async function serializeAws_restJson1_1ListBackendEnvironmentsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1246,13 +1246,13 @@ export async function serializeAws_restJson1_1ListBranchesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1284,13 +1284,13 @@ export async function serializeAws_restJson1_1ListDomainAssociationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1334,13 +1334,13 @@ export async function serializeAws_restJson1_1ListJobsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1367,12 +1367,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1404,13 +1404,13 @@ export async function serializeAws_restJson1_1ListWebhooksCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1455,12 +1455,12 @@ export async function serializeAws_restJson1_1StartDeploymentCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1517,12 +1517,12 @@ export async function serializeAws_restJson1_1StartJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1571,12 +1571,12 @@ export async function serializeAws_restJson1_1StopJobCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1608,12 +1608,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1644,13 +1644,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1743,12 +1743,12 @@ export async function serializeAws_restJson1_1UpdateAppCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1834,12 +1834,12 @@ export async function serializeAws_restJson1_1UpdateBranchCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1887,12 +1887,12 @@ export async function serializeAws_restJson1_1UpdateDomainAssociationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1925,12 +1925,12 @@ export async function serializeAws_restJson1_1UpdateWebhookCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-api-gateway/protocols/Aws_restJson1_1.ts b/clients/client-api-gateway/protocols/Aws_restJson1_1.ts index 29114d9afb3d..f61c861b5374 100644 --- a/clients/client-api-gateway/protocols/Aws_restJson1_1.ts +++ b/clients/client-api-gateway/protocols/Aws_restJson1_1.ts @@ -591,12 +591,12 @@ export async function serializeAws_restJson1_1CreateApiKeyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -667,12 +667,12 @@ export async function serializeAws_restJson1_1CreateAuthorizerCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -723,12 +723,12 @@ export async function serializeAws_restJson1_1CreateBasePathMappingCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -802,12 +802,12 @@ export async function serializeAws_restJson1_1CreateDeploymentCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -858,12 +858,12 @@ export async function serializeAws_restJson1_1CreateDocumentationPartCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -914,12 +914,12 @@ export async function serializeAws_restJson1_1CreateDocumentationVersionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -990,12 +990,12 @@ export async function serializeAws_restJson1_1CreateDomainNameCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1046,12 +1046,12 @@ export async function serializeAws_restJson1_1CreateModelCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1099,12 +1099,12 @@ export async function serializeAws_restJson1_1CreateRequestValidatorCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1161,12 +1161,12 @@ export async function serializeAws_restJson1_1CreateResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1234,12 +1234,12 @@ export async function serializeAws_restJson1_1CreateRestApiCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1320,12 +1320,12 @@ export async function serializeAws_restJson1_1CreateStageCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1382,12 +1382,12 @@ export async function serializeAws_restJson1_1CreateUsagePlanCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1437,12 +1437,12 @@ export async function serializeAws_restJson1_1CreateUsagePlanKeyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1487,12 +1487,12 @@ export async function serializeAws_restJson1_1CreateVpcLinkCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1534,12 +1534,12 @@ export async function serializeAws_restJson1_1DeleteApiKeyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1595,12 +1595,12 @@ export async function serializeAws_restJson1_1DeleteAuthorizerCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1654,12 +1654,12 @@ export async function serializeAws_restJson1_1DeleteBasePathMappingCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1705,12 +1705,12 @@ export async function serializeAws_restJson1_1DeleteClientCertificateCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1766,12 +1766,12 @@ export async function serializeAws_restJson1_1DeleteDeploymentCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1830,12 +1830,12 @@ export async function serializeAws_restJson1_1DeleteDocumentationPartCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1894,12 +1894,12 @@ export async function serializeAws_restJson1_1DeleteDocumentationVersionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1941,12 +1941,12 @@ export async function serializeAws_restJson1_1DeleteDomainNameCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2002,12 +2002,12 @@ export async function serializeAws_restJson1_1DeleteGatewayResponseCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2074,12 +2074,12 @@ export async function serializeAws_restJson1_1DeleteIntegrationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2158,12 +2158,12 @@ export async function serializeAws_restJson1_1DeleteIntegrationResponseCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2230,12 +2230,12 @@ export async function serializeAws_restJson1_1DeleteMethodCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2314,12 +2314,12 @@ export async function serializeAws_restJson1_1DeleteMethodResponseCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2373,12 +2373,12 @@ export async function serializeAws_restJson1_1DeleteModelCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2437,12 +2437,12 @@ export async function serializeAws_restJson1_1DeleteRequestValidatorCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2496,12 +2496,12 @@ export async function serializeAws_restJson1_1DeleteResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2543,12 +2543,12 @@ export async function serializeAws_restJson1_1DeleteRestApiCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2602,12 +2602,12 @@ export async function serializeAws_restJson1_1DeleteStageCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2651,12 +2651,12 @@ export async function serializeAws_restJson1_1DeleteUsagePlanCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2712,12 +2712,12 @@ export async function serializeAws_restJson1_1DeleteUsagePlanKeyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2759,12 +2759,12 @@ export async function serializeAws_restJson1_1DeleteVpcLinkCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2819,12 +2819,12 @@ export async function serializeAws_restJson1_1FlushStageAuthorizersCacheCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2878,12 +2878,12 @@ export async function serializeAws_restJson1_1FlushStageCacheCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2922,12 +2922,12 @@ export async function serializeAws_restJson1_1GenerateClientCertificateCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2957,12 +2957,12 @@ export async function serializeAws_restJson1_1GetAccountCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3008,13 +3008,13 @@ export async function serializeAws_restJson1_1GetApiKeyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3060,13 +3060,13 @@ export async function serializeAws_restJson1_1GetApiKeysCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3122,12 +3122,12 @@ export async function serializeAws_restJson1_1GetAuthorizerCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3176,13 +3176,13 @@ export async function serializeAws_restJson1_1GetAuthorizersCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3236,12 +3236,12 @@ export async function serializeAws_restJson1_1GetBasePathMappingCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3290,13 +3290,13 @@ export async function serializeAws_restJson1_1GetBasePathMappingsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3342,12 +3342,12 @@ export async function serializeAws_restJson1_1GetClientCertificateCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3384,13 +3384,13 @@ export async function serializeAws_restJson1_1GetClientCertificatesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3450,13 +3450,13 @@ export async function serializeAws_restJson1_1GetDeploymentCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3505,13 +3505,13 @@ export async function serializeAws_restJson1_1GetDeploymentsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3570,12 +3570,12 @@ export async function serializeAws_restJson1_1GetDocumentationPartCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3636,13 +3636,13 @@ export async function serializeAws_restJson1_1GetDocumentationPartsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3701,12 +3701,12 @@ export async function serializeAws_restJson1_1GetDocumentationVersionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3755,13 +3755,13 @@ export async function serializeAws_restJson1_1GetDocumentationVersionsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3803,12 +3803,12 @@ export async function serializeAws_restJson1_1GetDomainNameCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3845,13 +3845,13 @@ export async function serializeAws_restJson1_1GetDomainNamesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3912,12 +3912,12 @@ export async function serializeAws_restJson1_1GetExportCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3973,12 +3973,12 @@ export async function serializeAws_restJson1_1GetGatewayResponseCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4027,13 +4027,13 @@ export async function serializeAws_restJson1_1GetGatewayResponsesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4100,12 +4100,12 @@ export async function serializeAws_restJson1_1GetIntegrationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4184,12 +4184,12 @@ export async function serializeAws_restJson1_1GetIntegrationResponseCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4256,12 +4256,12 @@ export async function serializeAws_restJson1_1GetMethodCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4340,12 +4340,12 @@ export async function serializeAws_restJson1_1GetMethodResponseCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4403,13 +4403,13 @@ export async function serializeAws_restJson1_1GetModelCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4464,12 +4464,12 @@ export async function serializeAws_restJson1_1GetModelTemplateCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4518,13 +4518,13 @@ export async function serializeAws_restJson1_1GetModelsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4583,12 +4583,12 @@ export async function serializeAws_restJson1_1GetRequestValidatorCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4637,13 +4637,13 @@ export async function serializeAws_restJson1_1GetRequestValidatorsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4701,13 +4701,13 @@ export async function serializeAws_restJson1_1GetResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4759,13 +4759,13 @@ export async function serializeAws_restJson1_1GetResourcesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4807,12 +4807,12 @@ export async function serializeAws_restJson1_1GetRestApiCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4849,13 +4849,13 @@ export async function serializeAws_restJson1_1GetRestApisCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4912,12 +4912,12 @@ export async function serializeAws_restJson1_1GetSdkCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4959,12 +4959,12 @@ export async function serializeAws_restJson1_1GetSdkTypeCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5001,13 +5001,13 @@ export async function serializeAws_restJson1_1GetSdkTypesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -5061,12 +5061,12 @@ export async function serializeAws_restJson1_1GetStageCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5112,13 +5112,13 @@ export async function serializeAws_restJson1_1GetStagesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -5169,13 +5169,13 @@ export async function serializeAws_restJson1_1GetTagsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -5235,13 +5235,13 @@ export async function serializeAws_restJson1_1GetUsageCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -5285,12 +5285,12 @@ export async function serializeAws_restJson1_1GetUsagePlanCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5346,12 +5346,12 @@ export async function serializeAws_restJson1_1GetUsagePlanKeyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5405,13 +5405,13 @@ export async function serializeAws_restJson1_1GetUsagePlanKeysCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -5451,13 +5451,13 @@ export async function serializeAws_restJson1_1GetUsagePlansCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -5499,12 +5499,12 @@ export async function serializeAws_restJson1_1GetVpcLinkCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5541,13 +5541,13 @@ export async function serializeAws_restJson1_1GetVpcLinksCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -5586,13 +5586,13 @@ export async function serializeAws_restJson1_1ImportApiKeysCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -5641,13 +5641,13 @@ export async function serializeAws_restJson1_1ImportDocumentationPartsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -5689,13 +5689,13 @@ export async function serializeAws_restJson1_1ImportRestApiCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -5770,12 +5770,12 @@ export async function serializeAws_restJson1_1PutGatewayResponseCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5894,12 +5894,12 @@ export async function serializeAws_restJson1_1PutIntegrationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6000,12 +6000,12 @@ export async function serializeAws_restJson1_1PutIntegrationResponseCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6107,12 +6107,12 @@ export async function serializeAws_restJson1_1PutMethodCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6205,12 +6205,12 @@ export async function serializeAws_restJson1_1PutMethodResponseCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6265,13 +6265,13 @@ export async function serializeAws_restJson1_1PutRestApiCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -6321,12 +6321,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6399,12 +6399,12 @@ export async function serializeAws_restJson1_1TestInvokeAuthorizerCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6483,12 +6483,12 @@ export async function serializeAws_restJson1_1TestInvokeMethodCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6536,13 +6536,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -6580,12 +6580,12 @@ export async function serializeAws_restJson1_1UpdateAccountCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6635,12 +6635,12 @@ export async function serializeAws_restJson1_1UpdateApiKeyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6704,12 +6704,12 @@ export async function serializeAws_restJson1_1UpdateAuthorizerCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6771,12 +6771,12 @@ export async function serializeAws_restJson1_1UpdateBasePathMappingCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6830,12 +6830,12 @@ export async function serializeAws_restJson1_1UpdateClientCertificateCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6899,12 +6899,12 @@ export async function serializeAws_restJson1_1UpdateDeploymentCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6971,12 +6971,12 @@ export async function serializeAws_restJson1_1UpdateDocumentationPartCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7043,12 +7043,12 @@ export async function serializeAws_restJson1_1UpdateDocumentationVersionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7098,12 +7098,12 @@ export async function serializeAws_restJson1_1UpdateDomainNameCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7167,12 +7167,12 @@ export async function serializeAws_restJson1_1UpdateGatewayResponseCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7247,12 +7247,12 @@ export async function serializeAws_restJson1_1UpdateIntegrationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7339,12 +7339,12 @@ export async function serializeAws_restJson1_1UpdateIntegrationResponseCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7419,12 +7419,12 @@ export async function serializeAws_restJson1_1UpdateMethodCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7511,12 +7511,12 @@ export async function serializeAws_restJson1_1UpdateMethodResponseCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7578,12 +7578,12 @@ export async function serializeAws_restJson1_1UpdateModelCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7650,12 +7650,12 @@ export async function serializeAws_restJson1_1UpdateRequestValidatorCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7717,12 +7717,12 @@ export async function serializeAws_restJson1_1UpdateResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7772,12 +7772,12 @@ export async function serializeAws_restJson1_1UpdateRestApiCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7839,12 +7839,12 @@ export async function serializeAws_restJson1_1UpdateStageCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7908,12 +7908,12 @@ export async function serializeAws_restJson1_1UpdateUsageCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7965,12 +7965,12 @@ export async function serializeAws_restJson1_1UpdateUsagePlanCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -8020,12 +8020,12 @@ export async function serializeAws_restJson1_1UpdateVpcLinkCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-apigatewaymanagementapi/protocols/Aws_restJson1_1.ts b/clients/client-apigatewaymanagementapi/protocols/Aws_restJson1_1.ts index 168dc92561a8..6dd2510666a8 100644 --- a/clients/client-apigatewaymanagementapi/protocols/Aws_restJson1_1.ts +++ b/clients/client-apigatewaymanagementapi/protocols/Aws_restJson1_1.ts @@ -55,12 +55,12 @@ export async function serializeAws_restJson1_1DeleteConnectionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -87,12 +87,12 @@ export async function serializeAws_restJson1_1GetConnectionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -122,12 +122,12 @@ export async function serializeAws_restJson1_1PostToConnectionCommand( body = input.Data; } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-apigatewayv2/protocols/Aws_restJson1_1.ts b/clients/client-apigatewayv2/protocols/Aws_restJson1_1.ts index b5795c2f640e..1fe83660c020 100644 --- a/clients/client-apigatewayv2/protocols/Aws_restJson1_1.ts +++ b/clients/client-apigatewayv2/protocols/Aws_restJson1_1.ts @@ -339,12 +339,12 @@ export async function serializeAws_restJson1_1CreateApiCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -380,12 +380,12 @@ export async function serializeAws_restJson1_1CreateApiMappingCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -444,12 +444,12 @@ export async function serializeAws_restJson1_1CreateAuthorizerCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -482,12 +482,12 @@ export async function serializeAws_restJson1_1CreateDeploymentCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -516,12 +516,12 @@ export async function serializeAws_restJson1_1CreateDomainNameCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -599,12 +599,12 @@ export async function serializeAws_restJson1_1CreateIntegrationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -670,12 +670,12 @@ export async function serializeAws_restJson1_1CreateIntegrationResponseCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -714,12 +714,12 @@ export async function serializeAws_restJson1_1CreateModelCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -791,12 +791,12 @@ export async function serializeAws_restJson1_1CreateRouteCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -853,12 +853,12 @@ export async function serializeAws_restJson1_1CreateRouteResponseCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -927,12 +927,12 @@ export async function serializeAws_restJson1_1CreateStageCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -957,12 +957,12 @@ export async function serializeAws_restJson1_1DeleteApiCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1001,12 +1001,12 @@ export async function serializeAws_restJson1_1DeleteApiMappingCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1045,12 +1045,12 @@ export async function serializeAws_restJson1_1DeleteAuthorizerCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1075,12 +1075,12 @@ export async function serializeAws_restJson1_1DeleteCorsConfigurationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1119,12 +1119,12 @@ export async function serializeAws_restJson1_1DeleteDeploymentCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1149,12 +1149,12 @@ export async function serializeAws_restJson1_1DeleteDomainNameCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1193,12 +1193,12 @@ export async function serializeAws_restJson1_1DeleteIntegrationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1254,12 +1254,12 @@ export async function serializeAws_restJson1_1DeleteIntegrationResponseCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1296,12 +1296,12 @@ export async function serializeAws_restJson1_1DeleteModelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1338,12 +1338,12 @@ export async function serializeAws_restJson1_1DeleteRouteCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1395,12 +1395,12 @@ export async function serializeAws_restJson1_1DeleteRouteResponseCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1450,12 +1450,12 @@ export async function serializeAws_restJson1_1DeleteRouteSettingsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1492,12 +1492,12 @@ export async function serializeAws_restJson1_1DeleteStageCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1522,12 +1522,12 @@ export async function serializeAws_restJson1_1GetApiCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1566,12 +1566,12 @@ export async function serializeAws_restJson1_1GetApiMappingCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1603,13 +1603,13 @@ export async function serializeAws_restJson1_1GetApiMappingsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1629,13 +1629,13 @@ export async function serializeAws_restJson1_1GetApisCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1674,12 +1674,12 @@ export async function serializeAws_restJson1_1GetAuthorizerCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1711,13 +1711,13 @@ export async function serializeAws_restJson1_1GetAuthorizersCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1756,12 +1756,12 @@ export async function serializeAws_restJson1_1GetDeploymentCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1793,13 +1793,13 @@ export async function serializeAws_restJson1_1GetDeploymentsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1824,12 +1824,12 @@ export async function serializeAws_restJson1_1GetDomainNameCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1849,13 +1849,13 @@ export async function serializeAws_restJson1_1GetDomainNamesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1894,12 +1894,12 @@ export async function serializeAws_restJson1_1GetIntegrationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1955,12 +1955,12 @@ export async function serializeAws_restJson1_1GetIntegrationResponseCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2007,13 +2007,13 @@ export async function serializeAws_restJson1_1GetIntegrationResponsesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2045,13 +2045,13 @@ export async function serializeAws_restJson1_1GetIntegrationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2088,12 +2088,12 @@ export async function serializeAws_restJson1_1GetModelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2130,12 +2130,12 @@ export async function serializeAws_restJson1_1GetModelTemplateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2167,13 +2167,13 @@ export async function serializeAws_restJson1_1GetModelsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2210,12 +2210,12 @@ export async function serializeAws_restJson1_1GetRouteCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2267,12 +2267,12 @@ export async function serializeAws_restJson1_1GetRouteResponseCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2316,13 +2316,13 @@ export async function serializeAws_restJson1_1GetRouteResponsesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2354,13 +2354,13 @@ export async function serializeAws_restJson1_1GetRoutesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2397,12 +2397,12 @@ export async function serializeAws_restJson1_1GetStageCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2434,13 +2434,13 @@ export async function serializeAws_restJson1_1GetStagesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2467,12 +2467,12 @@ export async function serializeAws_restJson1_1GetTagsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2497,13 +2497,13 @@ export async function serializeAws_restJson1_1ImportApiCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2540,13 +2540,13 @@ export async function serializeAws_restJson1_1ReimportApiCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2578,12 +2578,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2614,13 +2614,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2680,12 +2680,12 @@ export async function serializeAws_restJson1_1UpdateApiCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2735,12 +2735,12 @@ export async function serializeAws_restJson1_1UpdateApiMappingCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2813,12 +2813,12 @@ export async function serializeAws_restJson1_1UpdateAuthorizerCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2862,12 +2862,12 @@ export async function serializeAws_restJson1_1UpdateDeploymentCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2902,12 +2902,12 @@ export async function serializeAws_restJson1_1UpdateDomainNameCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2999,12 +2999,12 @@ export async function serializeAws_restJson1_1UpdateIntegrationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3086,12 +3086,12 @@ export async function serializeAws_restJson1_1UpdateIntegrationResponseCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3142,12 +3142,12 @@ export async function serializeAws_restJson1_1UpdateModelCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3231,12 +3231,12 @@ export async function serializeAws_restJson1_1UpdateRouteCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3308,12 +3308,12 @@ export async function serializeAws_restJson1_1UpdateRouteResponseCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3388,12 +3388,12 @@ export async function serializeAws_restJson1_1UpdateStageCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-app-mesh/protocols/Aws_restJson1_1.ts b/clients/client-app-mesh/protocols/Aws_restJson1_1.ts index 9f217319e38d..6859e56ead65 100644 --- a/clients/client-app-mesh/protocols/Aws_restJson1_1.ts +++ b/clients/client-app-mesh/protocols/Aws_restJson1_1.ts @@ -222,12 +222,12 @@ export async function serializeAws_restJson1_1CreateMeshCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -286,12 +286,12 @@ export async function serializeAws_restJson1_1CreateRouteCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -336,12 +336,12 @@ export async function serializeAws_restJson1_1CreateVirtualNodeCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -386,12 +386,12 @@ export async function serializeAws_restJson1_1CreateVirtualRouterCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -436,12 +436,12 @@ export async function serializeAws_restJson1_1CreateVirtualServiceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -466,12 +466,12 @@ export async function serializeAws_restJson1_1DeleteMeshCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -525,12 +525,12 @@ export async function serializeAws_restJson1_1DeleteRouteCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -570,12 +570,12 @@ export async function serializeAws_restJson1_1DeleteVirtualNodeCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -617,12 +617,12 @@ export async function serializeAws_restJson1_1DeleteVirtualRouterCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -664,12 +664,12 @@ export async function serializeAws_restJson1_1DeleteVirtualServiceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -694,12 +694,12 @@ export async function serializeAws_restJson1_1DescribeMeshCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -753,12 +753,12 @@ export async function serializeAws_restJson1_1DescribeRouteCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -798,12 +798,12 @@ export async function serializeAws_restJson1_1DescribeVirtualNodeCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -845,12 +845,12 @@ export async function serializeAws_restJson1_1DescribeVirtualRouterCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -892,12 +892,12 @@ export async function serializeAws_restJson1_1DescribeVirtualServiceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -917,13 +917,13 @@ export async function serializeAws_restJson1_1ListMeshesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -972,13 +972,13 @@ export async function serializeAws_restJson1_1ListRoutesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1001,13 +1001,13 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1039,13 +1039,13 @@ export async function serializeAws_restJson1_1ListVirtualNodesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1077,13 +1077,13 @@ export async function serializeAws_restJson1_1ListVirtualRoutersCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1115,13 +1115,13 @@ export async function serializeAws_restJson1_1ListVirtualServicesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1143,13 +1143,13 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1174,13 +1174,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1216,12 +1216,12 @@ export async function serializeAws_restJson1_1UpdateMeshCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1286,12 +1286,12 @@ export async function serializeAws_restJson1_1UpdateRouteCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1345,12 +1345,12 @@ export async function serializeAws_restJson1_1UpdateVirtualNodeCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1406,12 +1406,12 @@ export async function serializeAws_restJson1_1UpdateVirtualRouterCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1467,12 +1467,12 @@ export async function serializeAws_restJson1_1UpdateVirtualServiceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-appconfig/protocols/Aws_restJson1_1.ts b/clients/client-appconfig/protocols/Aws_restJson1_1.ts index dc06caec5376..3f2436fa3053 100644 --- a/clients/client-appconfig/protocols/Aws_restJson1_1.ts +++ b/clients/client-appconfig/protocols/Aws_restJson1_1.ts @@ -163,12 +163,12 @@ export async function serializeAws_restJson1_1CreateApplicationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -218,12 +218,12 @@ export async function serializeAws_restJson1_1CreateConfigurationProfileCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -263,12 +263,12 @@ export async function serializeAws_restJson1_1CreateDeploymentStrategyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -312,12 +312,12 @@ export async function serializeAws_restJson1_1CreateEnvironmentCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -344,12 +344,12 @@ export async function serializeAws_restJson1_1DeleteApplicationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -393,12 +393,12 @@ export async function serializeAws_restJson1_1DeleteConfigurationProfileCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -427,12 +427,12 @@ export async function serializeAws_restJson1_1DeleteDeploymentStrategyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -474,12 +474,12 @@ export async function serializeAws_restJson1_1DeleteEnvironmentCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -506,12 +506,12 @@ export async function serializeAws_restJson1_1GetApplicationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -574,13 +574,13 @@ export async function serializeAws_restJson1_1GetConfigurationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -624,12 +624,12 @@ export async function serializeAws_restJson1_1GetConfigurationProfileCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -687,12 +687,12 @@ export async function serializeAws_restJson1_1GetDeploymentCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -721,12 +721,12 @@ export async function serializeAws_restJson1_1GetDeploymentStrategyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -768,12 +768,12 @@ export async function serializeAws_restJson1_1GetEnvironmentCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -793,13 +793,13 @@ export async function serializeAws_restJson1_1ListApplicationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -833,13 +833,13 @@ export async function serializeAws_restJson1_1ListConfigurationProfilesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -859,13 +859,13 @@ export async function serializeAws_restJson1_1ListDeploymentStrategiesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -914,13 +914,13 @@ export async function serializeAws_restJson1_1ListDeploymentsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -954,13 +954,13 @@ export async function serializeAws_restJson1_1ListEnvironmentsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -987,12 +987,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1051,12 +1051,12 @@ export async function serializeAws_restJson1_1StartDeploymentCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1114,12 +1114,12 @@ export async function serializeAws_restJson1_1StopDeploymentCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1151,12 +1151,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1187,13 +1187,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1228,12 +1228,12 @@ export async function serializeAws_restJson1_1UpdateApplicationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1294,12 +1294,12 @@ export async function serializeAws_restJson1_1UpdateConfigurationProfileCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1346,12 +1346,12 @@ export async function serializeAws_restJson1_1UpdateDeploymentStrategyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1407,12 +1407,12 @@ export async function serializeAws_restJson1_1UpdateEnvironmentCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1460,13 +1460,13 @@ export async function serializeAws_restJson1_1ValidateConfigurationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } 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 0e398fbe975b..a433d8dbbb7e 100644 --- a/clients/client-application-auto-scaling/protocols/Aws_json1_1.ts +++ b/clients/client-application-auto-scaling/protocols/Aws_json1_1.ts @@ -2710,11 +2710,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 1c27da703015..0384d65d3d3b 100644 --- a/clients/client-application-discovery-service/protocols/Aws_json1_1.ts +++ b/clients/client-application-discovery-service/protocols/Aws_json1_1.ts @@ -5519,11 +5519,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 44d129ae6dc7..f0d610b668db 100644 --- a/clients/client-application-insights/protocols/Aws_json1_1.ts +++ b/clients/client-application-insights/protocols/Aws_json1_1.ts @@ -4517,11 +4517,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 cdfa4ae52421..c083b75018cb 100644 --- a/clients/client-appstream/protocols/Aws_json1_1.ts +++ b/clients/client-appstream/protocols/Aws_json1_1.ts @@ -8657,11 +8657,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 4c6b299505cf..fa5a0b46c3b5 100644 --- a/clients/client-appsync/protocols/Aws_restJson1_1.ts +++ b/clients/client-appsync/protocols/Aws_restJson1_1.ts @@ -253,12 +253,12 @@ export async function serializeAws_restJson1_1CreateApiCacheCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -291,12 +291,12 @@ export async function serializeAws_restJson1_1CreateApiKeyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -371,12 +371,12 @@ export async function serializeAws_restJson1_1CreateDataSourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -421,12 +421,12 @@ export async function serializeAws_restJson1_1CreateFunctionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -478,12 +478,12 @@ export async function serializeAws_restJson1_1CreateGraphqlApiCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -555,12 +555,12 @@ export async function serializeAws_restJson1_1CreateResolverCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -593,12 +593,12 @@ export async function serializeAws_restJson1_1CreateTypeCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -623,12 +623,12 @@ export async function serializeAws_restJson1_1DeleteApiCacheCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -665,12 +665,12 @@ export async function serializeAws_restJson1_1DeleteApiKeyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -707,12 +707,12 @@ export async function serializeAws_restJson1_1DeleteDataSourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -749,12 +749,12 @@ export async function serializeAws_restJson1_1DeleteFunctionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -779,12 +779,12 @@ export async function serializeAws_restJson1_1DeleteGraphqlApiCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -833,12 +833,12 @@ export async function serializeAws_restJson1_1DeleteResolverCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -875,12 +875,12 @@ export async function serializeAws_restJson1_1DeleteTypeCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -905,12 +905,12 @@ export async function serializeAws_restJson1_1FlushApiCacheCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -935,12 +935,12 @@ export async function serializeAws_restJson1_1GetApiCacheCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -977,12 +977,12 @@ export async function serializeAws_restJson1_1GetDataSourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1019,12 +1019,12 @@ export async function serializeAws_restJson1_1GetFunctionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1049,12 +1049,12 @@ export async function serializeAws_restJson1_1GetGraphqlApiCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1086,13 +1086,13 @@ export async function serializeAws_restJson1_1GetIntrospectionSchemaCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1141,12 +1141,12 @@ export async function serializeAws_restJson1_1GetResolverCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1171,12 +1171,12 @@ export async function serializeAws_restJson1_1GetSchemaCreationStatusCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1217,13 +1217,13 @@ export async function serializeAws_restJson1_1GetTypeCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1255,13 +1255,13 @@ export async function serializeAws_restJson1_1ListApiKeysCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1293,13 +1293,13 @@ export async function serializeAws_restJson1_1ListDataSourcesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1331,13 +1331,13 @@ export async function serializeAws_restJson1_1ListFunctionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1357,13 +1357,13 @@ export async function serializeAws_restJson1_1ListGraphqlApisCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1407,13 +1407,13 @@ export async function serializeAws_restJson1_1ListResolversCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1457,13 +1457,13 @@ export async function serializeAws_restJson1_1ListResolversByFunctionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1490,12 +1490,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1530,13 +1530,13 @@ export async function serializeAws_restJson1_1ListTypesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1566,12 +1566,12 @@ export async function serializeAws_restJson1_1StartSchemaCreationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1603,12 +1603,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1639,13 +1639,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1681,12 +1681,12 @@ export async function serializeAws_restJson1_1UpdateApiCacheCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1731,12 +1731,12 @@ export async function serializeAws_restJson1_1UpdateApiKeyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1820,12 +1820,12 @@ export async function serializeAws_restJson1_1UpdateDataSourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1882,12 +1882,12 @@ export async function serializeAws_restJson1_1UpdateFunctionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1948,12 +1948,12 @@ export async function serializeAws_restJson1_1UpdateGraphqlApiCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2034,12 +2034,12 @@ export async function serializeAws_restJson1_1UpdateResolverCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2084,12 +2084,12 @@ export async function serializeAws_restJson1_1UpdateTypeCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-athena/protocols/Aws_json1_1.ts b/clients/client-athena/protocols/Aws_json1_1.ts index cb26536f18a2..7399a472d406 100644 --- a/clients/client-athena/protocols/Aws_json1_1.ts +++ b/clients/client-athena/protocols/Aws_json1_1.ts @@ -3470,11 +3470,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 441a3abb96f5..87f768d81eff 100644 --- a/clients/client-auto-scaling-plans/protocols/Aws_json1_1.ts +++ b/clients/client-auto-scaling-plans/protocols/Aws_json1_1.ts @@ -2074,11 +2074,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 94bee8680d7c..8a5aa2be96dd 100644 --- a/clients/client-auto-scaling/protocols/Aws_query.ts +++ b/clients/client-auto-scaling/protocols/Aws_query.ts @@ -10190,11 +10190,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 c45e5e4c6ff6..14bb7d214e4c 100644 --- a/clients/client-backup/protocols/Aws_restJson1_1.ts +++ b/clients/client-backup/protocols/Aws_restJson1_1.ts @@ -254,12 +254,12 @@ export async function serializeAws_restJson1_1CreateBackupPlanCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -297,12 +297,12 @@ export async function serializeAws_restJson1_1CreateBackupSelectionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -343,12 +343,12 @@ export async function serializeAws_restJson1_1CreateBackupVaultCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -375,12 +375,12 @@ export async function serializeAws_restJson1_1DeleteBackupPlanCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -421,12 +421,12 @@ export async function serializeAws_restJson1_1DeleteBackupSelectionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -453,12 +453,12 @@ export async function serializeAws_restJson1_1DeleteBackupVaultCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -485,12 +485,12 @@ export async function serializeAws_restJson1_1DeleteBackupVaultAccessPolicyComma } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -518,12 +518,12 @@ export async function serializeAws_restJson1_1DeleteBackupVaultNotificationsComm } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -567,12 +567,12 @@ export async function serializeAws_restJson1_1DeleteRecoveryPointCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -599,12 +599,12 @@ export async function serializeAws_restJson1_1DescribeBackupJobCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -631,12 +631,12 @@ export async function serializeAws_restJson1_1DescribeBackupVaultCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -661,12 +661,12 @@ export async function serializeAws_restJson1_1DescribeCopyJobCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -693,12 +693,12 @@ export async function serializeAws_restJson1_1DescribeProtectedResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -742,12 +742,12 @@ export async function serializeAws_restJson1_1DescribeRecoveryPointCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -774,12 +774,12 @@ export async function serializeAws_restJson1_1DescribeRestoreJobCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -806,12 +806,12 @@ export async function serializeAws_restJson1_1ExportBackupPlanTemplateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -842,13 +842,13 @@ export async function serializeAws_restJson1_1GetBackupPlanCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -866,12 +866,12 @@ export async function serializeAws_restJson1_1GetBackupPlanFromJSONCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -900,12 +900,12 @@ export async function serializeAws_restJson1_1GetBackupPlanFromTemplateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -946,12 +946,12 @@ export async function serializeAws_restJson1_1GetBackupSelectionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -978,12 +978,12 @@ export async function serializeAws_restJson1_1GetBackupVaultAccessPolicyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1011,12 +1011,12 @@ export async function serializeAws_restJson1_1GetBackupVaultNotificationsCommand } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1060,12 +1060,12 @@ export async function serializeAws_restJson1_1GetRecoveryPointRestoreMetadataCom } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1079,12 +1079,12 @@ export async function serializeAws_restJson1_1GetSupportedResourceTypesCommand( let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1126,13 +1126,13 @@ export async function serializeAws_restJson1_1ListBackupJobsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1152,13 +1152,13 @@ export async function serializeAws_restJson1_1ListBackupPlanTemplatesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1192,13 +1192,13 @@ export async function serializeAws_restJson1_1ListBackupPlanVersionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1221,13 +1221,13 @@ export async function serializeAws_restJson1_1ListBackupPlansCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1261,13 +1261,13 @@ export async function serializeAws_restJson1_1ListBackupSelectionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1287,13 +1287,13 @@ export async function serializeAws_restJson1_1ListBackupVaultsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1335,13 +1335,13 @@ export async function serializeAws_restJson1_1ListCopyJobsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1361,13 +1361,13 @@ export async function serializeAws_restJson1_1ListProtectedResourcesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1420,13 +1420,13 @@ export async function serializeAws_restJson1_1ListRecoveryPointsByBackupVaultCom } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1460,13 +1460,13 @@ export async function serializeAws_restJson1_1ListRecoveryPointsByResourceComman } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1486,13 +1486,13 @@ export async function serializeAws_restJson1_1ListRestoreJobsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1526,13 +1526,13 @@ export async function serializeAws_restJson1_1ListTagsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1564,12 +1564,12 @@ export async function serializeAws_restJson1_1PutBackupVaultAccessPolicyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1608,12 +1608,12 @@ export async function serializeAws_restJson1_1PutBackupVaultNotificationsCommand } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1658,12 +1658,12 @@ export async function serializeAws_restJson1_1StartBackupJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1699,12 +1699,12 @@ export async function serializeAws_restJson1_1StartCopyJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1737,12 +1737,12 @@ export async function serializeAws_restJson1_1StartRestoreJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1769,12 +1769,12 @@ export async function serializeAws_restJson1_1StopBackupJobCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1806,12 +1806,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1846,12 +1846,12 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1886,12 +1886,12 @@ export async function serializeAws_restJson1_1UpdateBackupPlanCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1943,12 +1943,12 @@ export async function serializeAws_restJson1_1UpdateRecoveryPointLifecycleComman } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-batch/protocols/Aws_restJson1_1.ts b/clients/client-batch/protocols/Aws_restJson1_1.ts index b89113912350..f63b584cb1bc 100644 --- a/clients/client-batch/protocols/Aws_restJson1_1.ts +++ b/clients/client-batch/protocols/Aws_restJson1_1.ts @@ -132,12 +132,12 @@ export async function serializeAws_restJson1_1CancelJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -170,12 +170,12 @@ export async function serializeAws_restJson1_1CreateComputeEnvironmentCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -207,12 +207,12 @@ export async function serializeAws_restJson1_1CreateJobQueueCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -230,12 +230,12 @@ export async function serializeAws_restJson1_1DeleteComputeEnvironmentCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -253,12 +253,12 @@ export async function serializeAws_restJson1_1DeleteJobQueueCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -276,12 +276,12 @@ export async function serializeAws_restJson1_1DeregisterJobDefinitionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -308,12 +308,12 @@ export async function serializeAws_restJson1_1DescribeComputeEnvironmentsCommand } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -346,12 +346,12 @@ export async function serializeAws_restJson1_1DescribeJobDefinitionsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -378,12 +378,12 @@ export async function serializeAws_restJson1_1DescribeJobQueuesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -404,12 +404,12 @@ export async function serializeAws_restJson1_1DescribeJobsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -442,12 +442,12 @@ export async function serializeAws_restJson1_1ListJobsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -500,12 +500,12 @@ export async function serializeAws_restJson1_1RegisterJobDefinitionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -573,12 +573,12 @@ export async function serializeAws_restJson1_1SubmitJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -599,12 +599,12 @@ export async function serializeAws_restJson1_1TerminateJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -636,12 +636,12 @@ export async function serializeAws_restJson1_1UpdateComputeEnvironmentCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -673,12 +673,12 @@ export async function serializeAws_restJson1_1UpdateJobQueueCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-budgets/protocols/Aws_json1_1.ts b/clients/client-budgets/protocols/Aws_json1_1.ts index 0139fb288253..43267ad7faff 100644 --- a/clients/client-budgets/protocols/Aws_json1_1.ts +++ b/clients/client-budgets/protocols/Aws_json1_1.ts @@ -3266,11 +3266,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 4761c4610da5..a61602ccf287 100644 --- a/clients/client-chime/protocols/Aws_restJson1_1.ts +++ b/clients/client-chime/protocols/Aws_restJson1_1.ts @@ -487,13 +487,13 @@ export async function serializeAws_restJson1_1AssociatePhoneNumberWithUserComman } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -538,13 +538,13 @@ export async function serializeAws_restJson1_1AssociatePhoneNumbersWithVoiceConn } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -589,13 +589,13 @@ export async function serializeAws_restJson1_1AssociatePhoneNumbersWithVoiceConn } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -633,13 +633,13 @@ export async function serializeAws_restJson1_1AssociateSigninDelegateGroupsWithA } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -677,13 +677,13 @@ export async function serializeAws_restJson1_1BatchCreateAttendeeCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -733,13 +733,13 @@ export async function serializeAws_restJson1_1BatchCreateRoomMembershipCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -763,13 +763,13 @@ export async function serializeAws_restJson1_1BatchDeletePhoneNumberCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -805,13 +805,13 @@ export async function serializeAws_restJson1_1BatchSuspendUserCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -847,13 +847,13 @@ export async function serializeAws_restJson1_1BatchUnsuspendUserCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -879,13 +879,13 @@ export async function serializeAws_restJson1_1BatchUpdatePhoneNumberCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -920,12 +920,12 @@ export async function serializeAws_restJson1_1BatchUpdateUserCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -943,12 +943,12 @@ export async function serializeAws_restJson1_1CreateAccountCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -978,12 +978,12 @@ export async function serializeAws_restJson1_1CreateAttendeeCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1016,12 +1016,12 @@ export async function serializeAws_restJson1_1CreateBotCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1056,12 +1056,12 @@ export async function serializeAws_restJson1_1CreateMeetingCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1087,12 +1087,12 @@ export async function serializeAws_restJson1_1CreatePhoneNumberOrderCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1128,12 +1128,12 @@ export async function serializeAws_restJson1_1CreateRoomCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1178,12 +1178,12 @@ export async function serializeAws_restJson1_1CreateRoomMembershipCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1222,13 +1222,13 @@ export async function serializeAws_restJson1_1CreateUserCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1252,12 +1252,12 @@ export async function serializeAws_restJson1_1CreateVoiceConnectorCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1283,12 +1283,12 @@ export async function serializeAws_restJson1_1CreateVoiceConnectorGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1313,12 +1313,12 @@ export async function serializeAws_restJson1_1DeleteAccountCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1355,12 +1355,12 @@ export async function serializeAws_restJson1_1DeleteAttendeeCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1397,12 +1397,12 @@ export async function serializeAws_restJson1_1DeleteEventsConfigurationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1427,12 +1427,12 @@ export async function serializeAws_restJson1_1DeleteMeetingCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1459,12 +1459,12 @@ export async function serializeAws_restJson1_1DeletePhoneNumberCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1501,12 +1501,12 @@ export async function serializeAws_restJson1_1DeleteRoomCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1556,12 +1556,12 @@ export async function serializeAws_restJson1_1DeleteRoomMembershipCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1590,12 +1590,12 @@ export async function serializeAws_restJson1_1DeleteVoiceConnectorCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1624,12 +1624,12 @@ export async function serializeAws_restJson1_1DeleteVoiceConnectorGroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1658,12 +1658,12 @@ export async function serializeAws_restJson1_1DeleteVoiceConnectorOriginationCom } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1693,12 +1693,12 @@ export async function serializeAws_restJson1_1DeleteVoiceConnectorStreamingConfi } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1727,12 +1727,12 @@ export async function serializeAws_restJson1_1DeleteVoiceConnectorTerminationCom } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1773,13 +1773,13 @@ export async function serializeAws_restJson1_1DeleteVoiceConnectorTerminationCre } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1819,13 +1819,13 @@ export async function serializeAws_restJson1_1DisassociatePhoneNumberFromUserCom }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1867,13 +1867,13 @@ export async function serializeAws_restJson1_1DisassociatePhoneNumbersFromVoiceC } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1915,13 +1915,13 @@ export async function serializeAws_restJson1_1DisassociatePhoneNumbersFromVoiceC } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1957,13 +1957,13 @@ export async function serializeAws_restJson1_1DisassociateSigninDelegateGroupsFr } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1988,12 +1988,12 @@ export async function serializeAws_restJson1_1GetAccountCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2018,12 +2018,12 @@ export async function serializeAws_restJson1_1GetAccountSettingsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2060,12 +2060,12 @@ export async function serializeAws_restJson1_1GetAttendeeCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2102,12 +2102,12 @@ export async function serializeAws_restJson1_1GetBotCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2144,12 +2144,12 @@ export async function serializeAws_restJson1_1GetEventsConfigurationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2163,12 +2163,12 @@ export async function serializeAws_restJson1_1GetGlobalSettingsCommand( let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2193,12 +2193,12 @@ export async function serializeAws_restJson1_1GetMeetingCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2225,12 +2225,12 @@ export async function serializeAws_restJson1_1GetPhoneNumberCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2259,12 +2259,12 @@ export async function serializeAws_restJson1_1GetPhoneNumberOrderCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2278,12 +2278,12 @@ export async function serializeAws_restJson1_1GetPhoneNumberSettingsCommand( let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2320,12 +2320,12 @@ export async function serializeAws_restJson1_1GetRoomCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2362,12 +2362,12 @@ export async function serializeAws_restJson1_1GetUserCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2404,12 +2404,12 @@ export async function serializeAws_restJson1_1GetUserSettingsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2438,12 +2438,12 @@ export async function serializeAws_restJson1_1GetVoiceConnectorCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2472,12 +2472,12 @@ export async function serializeAws_restJson1_1GetVoiceConnectorGroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2507,12 +2507,12 @@ export async function serializeAws_restJson1_1GetVoiceConnectorLoggingConfigurat } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2541,12 +2541,12 @@ export async function serializeAws_restJson1_1GetVoiceConnectorOriginationComman } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2576,12 +2576,12 @@ export async function serializeAws_restJson1_1GetVoiceConnectorStreamingConfigur } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2610,12 +2610,12 @@ export async function serializeAws_restJson1_1GetVoiceConnectorTerminationComman } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2644,12 +2644,12 @@ export async function serializeAws_restJson1_1GetVoiceConnectorTerminationHealth } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2688,13 +2688,13 @@ export async function serializeAws_restJson1_1InviteUsersCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2720,13 +2720,13 @@ export async function serializeAws_restJson1_1ListAccountsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2758,13 +2758,13 @@ export async function serializeAws_restJson1_1ListAttendeesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2796,13 +2796,13 @@ export async function serializeAws_restJson1_1ListBotsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2822,13 +2822,13 @@ export async function serializeAws_restJson1_1ListMeetingsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2848,13 +2848,13 @@ export async function serializeAws_restJson1_1ListPhoneNumberOrdersCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2886,13 +2886,13 @@ export async function serializeAws_restJson1_1ListPhoneNumbersCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2936,13 +2936,13 @@ export async function serializeAws_restJson1_1ListRoomMembershipsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2977,13 +2977,13 @@ export async function serializeAws_restJson1_1ListRoomsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3021,13 +3021,13 @@ export async function serializeAws_restJson1_1ListUsersCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3047,13 +3047,13 @@ export async function serializeAws_restJson1_1ListVoiceConnectorGroupsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3083,12 +3083,12 @@ export async function serializeAws_restJson1_1ListVoiceConnectorTerminationCrede } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3108,13 +3108,13 @@ export async function serializeAws_restJson1_1ListVoiceConnectorsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3154,13 +3154,13 @@ export async function serializeAws_restJson1_1LogoutUserCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3206,12 +3206,12 @@ export async function serializeAws_restJson1_1PutEventsConfigurationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3251,12 +3251,12 @@ export async function serializeAws_restJson1_1PutVoiceConnectorLoggingConfigurat } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3293,12 +3293,12 @@ export async function serializeAws_restJson1_1PutVoiceConnectorOriginationComman } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3338,12 +3338,12 @@ export async function serializeAws_restJson1_1PutVoiceConnectorStreamingConfigur } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3380,12 +3380,12 @@ export async function serializeAws_restJson1_1PutVoiceConnectorTerminationComman } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3426,13 +3426,13 @@ export async function serializeAws_restJson1_1PutVoiceConnectorTerminationCreden } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3472,13 +3472,13 @@ export async function serializeAws_restJson1_1RegenerateSecurityTokenCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3518,13 +3518,13 @@ export async function serializeAws_restJson1_1ResetPersonalPINCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3554,13 +3554,13 @@ export async function serializeAws_restJson1_1RestorePhoneNumberCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3597,13 +3597,13 @@ export async function serializeAws_restJson1_1SearchAvailablePhoneNumbersCommand } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3633,12 +3633,12 @@ export async function serializeAws_restJson1_1UpdateAccountCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3671,12 +3671,12 @@ export async function serializeAws_restJson1_1UpdateAccountSettingsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3718,12 +3718,12 @@ export async function serializeAws_restJson1_1UpdateBotCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3754,12 +3754,12 @@ export async function serializeAws_restJson1_1UpdateGlobalSettingsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3794,12 +3794,12 @@ export async function serializeAws_restJson1_1UpdatePhoneNumberCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3817,12 +3817,12 @@ export async function serializeAws_restJson1_1UpdatePhoneNumberSettingsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3864,12 +3864,12 @@ export async function serializeAws_restJson1_1UpdateRoomCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3924,12 +3924,12 @@ export async function serializeAws_restJson1_1UpdateRoomMembershipCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3982,12 +3982,12 @@ export async function serializeAws_restJson1_1UpdateUserCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4032,12 +4032,12 @@ export async function serializeAws_restJson1_1UpdateUserSettingsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4074,12 +4074,12 @@ export async function serializeAws_restJson1_1UpdateVoiceConnectorCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4121,12 +4121,12 @@ export async function serializeAws_restJson1_1UpdateVoiceConnectorGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-cloud9/protocols/Aws_json1_1.ts b/clients/client-cloud9/protocols/Aws_json1_1.ts index 90cc0fa85e9e..8eb08e2c0c3d 100644 --- a/clients/client-cloud9/protocols/Aws_json1_1.ts +++ b/clients/client-cloud9/protocols/Aws_json1_1.ts @@ -2312,11 +2312,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 cfeeac4272e9..80bf8ec8eb3e 100644 --- a/clients/client-clouddirectory/protocols/Aws_restJson1_1.ts +++ b/clients/client-clouddirectory/protocols/Aws_restJson1_1.ts @@ -440,12 +440,12 @@ export async function serializeAws_restJson1_1AddFacetToObjectCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -466,12 +466,12 @@ export async function serializeAws_restJson1_1ApplySchemaCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -504,12 +504,12 @@ export async function serializeAws_restJson1_1AttachObjectCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -539,12 +539,12 @@ export async function serializeAws_restJson1_1AttachPolicyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -574,12 +574,12 @@ export async function serializeAws_restJson1_1AttachToIndexCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -629,12 +629,12 @@ export async function serializeAws_restJson1_1AttachTypedLinkCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -661,12 +661,12 @@ export async function serializeAws_restJson1_1BatchReadCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -690,12 +690,12 @@ export async function serializeAws_restJson1_1BatchWriteCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -716,12 +716,12 @@ export async function serializeAws_restJson1_1CreateDirectoryCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -754,12 +754,12 @@ export async function serializeAws_restJson1_1CreateFacetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -797,12 +797,12 @@ export async function serializeAws_restJson1_1CreateIndexCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -843,12 +843,12 @@ export async function serializeAws_restJson1_1CreateObjectCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -866,12 +866,12 @@ export async function serializeAws_restJson1_1CreateSchemaCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -895,12 +895,12 @@ export async function serializeAws_restJson1_1CreateTypedLinkFacetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -916,12 +916,12 @@ export async function serializeAws_restJson1_1DeleteDirectoryCommand( let resolvedPath = "/amazonclouddirectory/2017-01-11/directory"; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -942,12 +942,12 @@ export async function serializeAws_restJson1_1DeleteFacetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -971,12 +971,12 @@ export async function serializeAws_restJson1_1DeleteObjectCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -992,12 +992,12 @@ export async function serializeAws_restJson1_1DeleteSchemaCommand( let resolvedPath = "/amazonclouddirectory/2017-01-11/schema"; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1018,12 +1018,12 @@ export async function serializeAws_restJson1_1DeleteTypedLinkFacetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1053,12 +1053,12 @@ export async function serializeAws_restJson1_1DetachFromIndexCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1085,12 +1085,12 @@ export async function serializeAws_restJson1_1DetachObjectCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1120,12 +1120,12 @@ export async function serializeAws_restJson1_1DetachPolicyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1151,12 +1151,12 @@ export async function serializeAws_restJson1_1DetachTypedLinkCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1172,12 +1172,12 @@ export async function serializeAws_restJson1_1DisableDirectoryCommand( let resolvedPath = "/amazonclouddirectory/2017-01-11/directory/disable"; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1193,12 +1193,12 @@ export async function serializeAws_restJson1_1EnableDirectoryCommand( let resolvedPath = "/amazonclouddirectory/2017-01-11/directory/enable"; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1216,12 +1216,12 @@ export async function serializeAws_restJson1_1GetAppliedSchemaVersionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1237,12 +1237,12 @@ export async function serializeAws_restJson1_1GetDirectoryCommand( let resolvedPath = "/amazonclouddirectory/2017-01-11/directory/get"; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1263,12 +1263,12 @@ export async function serializeAws_restJson1_1GetFacetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1304,12 +1304,12 @@ export async function serializeAws_restJson1_1GetLinkAttributesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1348,12 +1348,12 @@ export async function serializeAws_restJson1_1GetObjectAttributesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1380,12 +1380,12 @@ export async function serializeAws_restJson1_1GetObjectInformationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1401,12 +1401,12 @@ export async function serializeAws_restJson1_1GetSchemaAsJsonCommand( let resolvedPath = "/amazonclouddirectory/2017-01-11/schema/json"; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1427,12 +1427,12 @@ export async function serializeAws_restJson1_1GetTypedLinkFacetInformationComman } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1459,12 +1459,12 @@ export async function serializeAws_restJson1_1ListAppliedSchemaArnsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1497,12 +1497,12 @@ export async function serializeAws_restJson1_1ListAttachedIndicesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1523,12 +1523,12 @@ export async function serializeAws_restJson1_1ListDevelopmentSchemaArnsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1552,12 +1552,12 @@ export async function serializeAws_restJson1_1ListDirectoriesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1584,12 +1584,12 @@ export async function serializeAws_restJson1_1ListFacetAttributesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1613,12 +1613,12 @@ export async function serializeAws_restJson1_1ListFacetNamesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1667,12 +1667,12 @@ export async function serializeAws_restJson1_1ListIncomingTypedLinksCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1713,12 +1713,12 @@ export async function serializeAws_restJson1_1ListIndexCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1742,12 +1742,12 @@ export async function serializeAws_restJson1_1ListManagedSchemaArnsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1786,12 +1786,12 @@ export async function serializeAws_restJson1_1ListObjectAttributesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1824,12 +1824,12 @@ export async function serializeAws_restJson1_1ListObjectChildrenCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1859,12 +1859,12 @@ export async function serializeAws_restJson1_1ListObjectParentPathsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1901,12 +1901,12 @@ export async function serializeAws_restJson1_1ListObjectParentsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1939,12 +1939,12 @@ export async function serializeAws_restJson1_1ListObjectPoliciesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1993,12 +1993,12 @@ export async function serializeAws_restJson1_1ListOutgoingTypedLinksCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2031,12 +2031,12 @@ export async function serializeAws_restJson1_1ListPolicyAttachmentsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2060,12 +2060,12 @@ export async function serializeAws_restJson1_1ListPublishedSchemaArnsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2089,12 +2089,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2122,12 +2122,12 @@ export async function serializeAws_restJson1_1ListTypedLinkFacetAttributesComman } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2151,12 +2151,12 @@ export async function serializeAws_restJson1_1ListTypedLinkFacetNamesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2186,12 +2186,12 @@ export async function serializeAws_restJson1_1LookupPolicyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2218,12 +2218,12 @@ export async function serializeAws_restJson1_1PublishSchemaCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2244,12 +2244,12 @@ export async function serializeAws_restJson1_1PutSchemaFromJsonCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2279,12 +2279,12 @@ export async function serializeAws_restJson1_1RemoveFacetFromObjectCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2305,12 +2305,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2334,12 +2334,12 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2371,12 +2371,12 @@ export async function serializeAws_restJson1_1UpdateFacetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2411,12 +2411,12 @@ export async function serializeAws_restJson1_1UpdateLinkAttributesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2448,12 +2448,12 @@ export async function serializeAws_restJson1_1UpdateObjectAttributesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2474,12 +2474,12 @@ export async function serializeAws_restJson1_1UpdateSchemaCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2516,12 +2516,12 @@ export async function serializeAws_restJson1_1UpdateTypedLinkFacetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2545,12 +2545,12 @@ export async function serializeAws_restJson1_1UpgradeAppliedSchemaCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2577,12 +2577,12 @@ export async function serializeAws_restJson1_1UpgradePublishedSchemaCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-cloudformation/protocols/Aws_query.ts b/clients/client-cloudformation/protocols/Aws_query.ts index e01ba04ba608..5962fdf5cc01 100644 --- a/clients/client-cloudformation/protocols/Aws_query.ts +++ b/clients/client-cloudformation/protocols/Aws_query.ts @@ -11686,11 +11686,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 11a5a7fe2469..40395ece71c8 100644 --- a/clients/client-cloudfront/protocols/Aws_restXml.ts +++ b/clients/client-cloudfront/protocols/Aws_restXml.ts @@ -387,12 +387,12 @@ export async function serializeAws_restXmlCreateCloudFrontOriginAccessIdentityCo body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -418,12 +418,12 @@ export async function serializeAws_restXmlCreateDistributionCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -452,13 +452,13 @@ export async function serializeAws_restXmlCreateDistributionWithTagsCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -484,12 +484,12 @@ export async function serializeAws_restXmlCreateFieldLevelEncryptionConfigComman body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -515,12 +515,12 @@ export async function serializeAws_restXmlCreateFieldLevelEncryptionProfileComma body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -560,12 +560,12 @@ export async function serializeAws_restXmlCreateInvalidationCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -591,12 +591,12 @@ export async function serializeAws_restXmlCreatePublicKeyCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -622,12 +622,12 @@ export async function serializeAws_restXmlCreateStreamingDistributionCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -656,13 +656,13 @@ export async function serializeAws_restXmlCreateStreamingDistributionWithTagsCom body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -690,12 +690,12 @@ export async function serializeAws_restXmlDeleteCloudFrontOriginAccessIdentityCo } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -723,12 +723,12 @@ export async function serializeAws_restXmlDeleteDistributionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -756,12 +756,12 @@ export async function serializeAws_restXmlDeleteFieldLevelEncryptionConfigComman } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -789,12 +789,12 @@ export async function serializeAws_restXmlDeleteFieldLevelEncryptionProfileComma } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -822,12 +822,12 @@ export async function serializeAws_restXmlDeletePublicKeyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -855,12 +855,12 @@ export async function serializeAws_restXmlDeleteStreamingDistributionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -885,12 +885,12 @@ export async function serializeAws_restXmlGetCloudFrontOriginAccessIdentityComma } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -916,12 +916,12 @@ export async function serializeAws_restXmlGetCloudFrontOriginAccessIdentityConfi } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -946,12 +946,12 @@ export async function serializeAws_restXmlGetDistributionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -976,12 +976,12 @@ export async function serializeAws_restXmlGetDistributionConfigCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1006,12 +1006,12 @@ export async function serializeAws_restXmlGetFieldLevelEncryptionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1036,12 +1036,12 @@ export async function serializeAws_restXmlGetFieldLevelEncryptionConfigCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1066,12 +1066,12 @@ export async function serializeAws_restXmlGetFieldLevelEncryptionProfileCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1096,12 +1096,12 @@ export async function serializeAws_restXmlGetFieldLevelEncryptionProfileConfigCo } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1141,12 +1141,12 @@ export async function serializeAws_restXmlGetInvalidationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1171,12 +1171,12 @@ export async function serializeAws_restXmlGetPublicKeyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1201,12 +1201,12 @@ export async function serializeAws_restXmlGetPublicKeyConfigCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1231,12 +1231,12 @@ export async function serializeAws_restXmlGetStreamingDistributionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1261,12 +1261,12 @@ export async function serializeAws_restXmlGetStreamingDistributionConfigCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1286,13 +1286,13 @@ export async function serializeAws_restXmlListCloudFrontOriginAccessIdentitiesCo } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1312,13 +1312,13 @@ export async function serializeAws_restXmlListDistributionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1350,13 +1350,13 @@ export async function serializeAws_restXmlListDistributionsByWebACLIdCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1376,13 +1376,13 @@ export async function serializeAws_restXmlListFieldLevelEncryptionConfigsCommand } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1402,13 +1402,13 @@ export async function serializeAws_restXmlListFieldLevelEncryptionProfilesComman } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1442,13 +1442,13 @@ export async function serializeAws_restXmlListInvalidationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1468,13 +1468,13 @@ export async function serializeAws_restXmlListPublicKeysCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1494,13 +1494,13 @@ export async function serializeAws_restXmlListStreamingDistributionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1517,13 +1517,13 @@ export async function serializeAws_restXmlListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1552,13 +1552,13 @@ export async function serializeAws_restXmlTagResourceCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1587,13 +1587,13 @@ export async function serializeAws_restXmlUntagResourceCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1635,12 +1635,12 @@ export async function serializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCo body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1681,12 +1681,12 @@ export async function serializeAws_restXmlUpdateDistributionCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1727,12 +1727,12 @@ export async function serializeAws_restXmlUpdateFieldLevelEncryptionConfigComman body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1773,12 +1773,12 @@ export async function serializeAws_restXmlUpdateFieldLevelEncryptionProfileComma body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1819,12 +1819,12 @@ export async function serializeAws_restXmlUpdatePublicKeyCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1865,12 +1865,12 @@ export async function serializeAws_restXmlUpdateStreamingDistributionCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-cloudhsm-v2/protocols/Aws_json1_1.ts b/clients/client-cloudhsm-v2/protocols/Aws_json1_1.ts index 7fe60060ba24..ddb98fdc9b49 100644 --- a/clients/client-cloudhsm-v2/protocols/Aws_json1_1.ts +++ b/clients/client-cloudhsm-v2/protocols/Aws_json1_1.ts @@ -2721,11 +2721,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 ca596ff4ad14..419c8a0ab30f 100644 --- a/clients/client-cloudhsm/protocols/Aws_json1_1.ts +++ b/clients/client-cloudhsm/protocols/Aws_json1_1.ts @@ -3079,11 +3079,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 3fca291bea58..62deff581650 100644 --- a/clients/client-cloudsearch-domain/protocols/Aws_restJson1_1.ts +++ b/clients/client-cloudsearch-domain/protocols/Aws_restJson1_1.ts @@ -94,13 +94,13 @@ export async function serializeAws_restJson1_1SearchCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -126,13 +126,13 @@ export async function serializeAws_restJson1_1SuggestCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -154,13 +154,13 @@ export async function serializeAws_restJson1_1UploadDocumentsCommand( body = input.documents; } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-cloudsearch/protocols/Aws_query.ts b/clients/client-cloudsearch/protocols/Aws_query.ts index 3abf650e86b4..eef804bd2548 100644 --- a/clients/client-cloudsearch/protocols/Aws_query.ts +++ b/clients/client-cloudsearch/protocols/Aws_query.ts @@ -6287,11 +6287,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 959e6284f869..13d89a3a2005 100644 --- a/clients/client-cloudtrail/protocols/Aws_json1_1.ts +++ b/clients/client-cloudtrail/protocols/Aws_json1_1.ts @@ -5801,11 +5801,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 56e3869f10d5..18aad8d14cba 100644 --- a/clients/client-cloudwatch-events/protocols/Aws_json1_1.ts +++ b/clients/client-cloudwatch-events/protocols/Aws_json1_1.ts @@ -5561,11 +5561,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 621419e1e5f1..9363066f40e0 100644 --- a/clients/client-cloudwatch-logs/protocols/Aws_json1_1.ts +++ b/clients/client-cloudwatch-logs/protocols/Aws_json1_1.ts @@ -6579,11 +6579,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 511f0c35a924..97cd9b698049 100644 --- a/clients/client-cloudwatch/protocols/Aws_query.ts +++ b/clients/client-cloudwatch/protocols/Aws_query.ts @@ -6499,11 +6499,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 16e397f30a08..70987011f937 100644 --- a/clients/client-codebuild/protocols/Aws_json1_1.ts +++ b/clients/client-codebuild/protocols/Aws_json1_1.ts @@ -6740,11 +6740,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 a9f03b674076..7b3ccc713c39 100644 --- a/clients/client-codecommit/protocols/Aws_json1_1.ts +++ b/clients/client-codecommit/protocols/Aws_json1_1.ts @@ -28113,11 +28113,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 c5c3ab95647a..9b44fae83cfd 100644 --- a/clients/client-codedeploy/protocols/Aws_json1_1.ts +++ b/clients/client-codedeploy/protocols/Aws_json1_1.ts @@ -14976,11 +14976,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 8e8ccc56c3ef..43bbe5a3999e 100644 --- a/clients/client-codeguru-reviewer/protocols/Aws_restJson1_1.ts +++ b/clients/client-codeguru-reviewer/protocols/Aws_restJson1_1.ts @@ -65,12 +65,12 @@ export async function serializeAws_restJson1_1AssociateRepositoryCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -97,12 +97,12 @@ export async function serializeAws_restJson1_1DescribeRepositoryAssociationComma } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -129,12 +129,12 @@ export async function serializeAws_restJson1_1DisassociateRepositoryCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -166,13 +166,13 @@ export async function serializeAws_restJson1_1ListRepositoryAssociationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-codeguruprofiler/protocols/Aws_restJson1_1.ts b/clients/client-codeguruprofiler/protocols/Aws_restJson1_1.ts index 0702f6326098..adcc2658b5e6 100644 --- a/clients/client-codeguruprofiler/protocols/Aws_restJson1_1.ts +++ b/clients/client-codeguruprofiler/protocols/Aws_restJson1_1.ts @@ -94,12 +94,12 @@ export async function serializeAws_restJson1_1ConfigureAgentCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -129,13 +129,13 @@ export async function serializeAws_restJson1_1CreateProfilingGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -164,12 +164,12 @@ export async function serializeAws_restJson1_1DeleteProfilingGroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -198,12 +198,12 @@ export async function serializeAws_restJson1_1DescribeProfilingGroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -226,13 +226,13 @@ export async function serializeAws_restJson1_1ListProfilingGroupsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -271,12 +271,12 @@ export async function serializeAws_restJson1_1UpdateProfilingGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -325,13 +325,13 @@ export async function serializeAws_restJson1_1GetProfileCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -383,13 +383,13 @@ export async function serializeAws_restJson1_1ListProfileTimesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -428,13 +428,13 @@ export async function serializeAws_restJson1_1PostAgentProfileCommand( body = input.agentProfile; } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-codepipeline/protocols/Aws_json1_1.ts b/clients/client-codepipeline/protocols/Aws_json1_1.ts index 47a05b3de9e9..523a99cce436 100644 --- a/clients/client-codepipeline/protocols/Aws_json1_1.ts +++ b/clients/client-codepipeline/protocols/Aws_json1_1.ts @@ -8855,11 +8855,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 26f1ca4c2ce7..f6d83f3a5e92 100644 --- a/clients/client-codestar-connections/protocols/Aws_json1_0.ts +++ b/clients/client-codestar-connections/protocols/Aws_json1_0.ts @@ -581,11 +581,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 c0e48e502025..0f41921512c1 100644 --- a/clients/client-codestar-notifications/protocols/Aws_restJson1_1.ts +++ b/clients/client-codestar-notifications/protocols/Aws_restJson1_1.ts @@ -124,12 +124,12 @@ export async function serializeAws_restJson1_1CreateNotificationRuleCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -147,12 +147,12 @@ export async function serializeAws_restJson1_1DeleteNotificationRuleCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -173,12 +173,12 @@ export async function serializeAws_restJson1_1DeleteTargetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -196,12 +196,12 @@ export async function serializeAws_restJson1_1DescribeNotificationRuleCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -228,12 +228,12 @@ export async function serializeAws_restJson1_1ListEventTypesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -262,12 +262,12 @@ export async function serializeAws_restJson1_1ListNotificationRulesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -285,12 +285,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -317,12 +317,12 @@ export async function serializeAws_restJson1_1ListTargetsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -349,12 +349,12 @@ export async function serializeAws_restJson1_1SubscribeCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -375,12 +375,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -401,12 +401,12 @@ export async function serializeAws_restJson1_1UnsubscribeCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -430,12 +430,12 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -474,12 +474,12 @@ export async function serializeAws_restJson1_1UpdateNotificationRuleCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-codestar/protocols/Aws_json1_1.ts b/clients/client-codestar/protocols/Aws_json1_1.ts index 42cfbfd9ae78..5ec1bb111dc6 100644 --- a/clients/client-codestar/protocols/Aws_json1_1.ts +++ b/clients/client-codestar/protocols/Aws_json1_1.ts @@ -3518,11 +3518,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 df7624ee31b2..6713a5683053 100644 --- a/clients/client-cognito-identity-provider/protocols/Aws_json1_1.ts +++ b/clients/client-cognito-identity-provider/protocols/Aws_json1_1.ts @@ -24208,11 +24208,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 81c8b205fba2..c802eb1b3c3e 100644 --- a/clients/client-cognito-identity/protocols/Aws_json1_1.ts +++ b/clients/client-cognito-identity/protocols/Aws_json1_1.ts @@ -4540,11 +4540,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 95a3f47f9530..94d66b18f66a 100644 --- a/clients/client-cognito-sync/protocols/Aws_restJson1_1.ts +++ b/clients/client-cognito-sync/protocols/Aws_restJson1_1.ts @@ -127,12 +127,12 @@ export async function serializeAws_restJson1_1BulkPublishCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -186,12 +186,12 @@ export async function serializeAws_restJson1_1DeleteDatasetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -245,12 +245,12 @@ export async function serializeAws_restJson1_1DescribeDatasetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -277,12 +277,12 @@ export async function serializeAws_restJson1_1DescribeIdentityPoolUsageCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -321,12 +321,12 @@ export async function serializeAws_restJson1_1DescribeIdentityUsageCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -353,12 +353,12 @@ export async function serializeAws_restJson1_1GetBulkPublishDetailsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -385,12 +385,12 @@ export async function serializeAws_restJson1_1GetCognitoEventsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -417,12 +417,12 @@ export async function serializeAws_restJson1_1GetIdentityPoolConfigurationComman } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -469,13 +469,13 @@ export async function serializeAws_restJson1_1ListDatasetsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -495,13 +495,13 @@ export async function serializeAws_restJson1_1ListIdentityPoolUsageCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -568,13 +568,13 @@ export async function serializeAws_restJson1_1ListRecordsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -622,12 +622,12 @@ export async function serializeAws_restJson1_1RegisterDeviceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -662,12 +662,12 @@ export async function serializeAws_restJson1_1SetCognitoEventsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -708,12 +708,12 @@ export async function serializeAws_restJson1_1SetIdentityPoolConfigurationComman } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -779,12 +779,12 @@ export async function serializeAws_restJson1_1SubscribeToDatasetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -850,12 +850,12 @@ export async function serializeAws_restJson1_1UnsubscribeFromDatasetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -926,12 +926,12 @@ export async function serializeAws_restJson1_1UpdateRecordsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-comprehend/protocols/Aws_json1_1.ts b/clients/client-comprehend/protocols/Aws_json1_1.ts index 68b3ad5dd50c..73fccfeabcee 100644 --- a/clients/client-comprehend/protocols/Aws_json1_1.ts +++ b/clients/client-comprehend/protocols/Aws_json1_1.ts @@ -10884,11 +10884,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 6897d7c6e4e9..7cda45654a25 100644 --- a/clients/client-comprehendmedical/protocols/Aws_json1_1.ts +++ b/clients/client-comprehendmedical/protocols/Aws_json1_1.ts @@ -3147,11 +3147,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 a0b42cfe212b..67cc6a60aa08 100644 --- a/clients/client-compute-optimizer/protocols/Aws_json1_0.ts +++ b/clients/client-compute-optimizer/protocols/Aws_json1_0.ts @@ -2148,11 +2148,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 17ac24525457..08543d8fc111 100644 --- a/clients/client-config-service/protocols/Aws_json1_1.ts +++ b/clients/client-config-service/protocols/Aws_json1_1.ts @@ -17079,11 +17079,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 9dcdeb03b493..5a06bbfcc8fd 100644 --- a/clients/client-connect/protocols/Aws_restJson1_1.ts +++ b/clients/client-connect/protocols/Aws_restJson1_1.ts @@ -234,12 +234,12 @@ export async function serializeAws_restJson1_1CreateUserCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -276,12 +276,12 @@ export async function serializeAws_restJson1_1DeleteUserCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -318,12 +318,12 @@ export async function serializeAws_restJson1_1DescribeUserCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -364,12 +364,12 @@ export async function serializeAws_restJson1_1DescribeUserHierarchyGroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -394,12 +394,12 @@ export async function serializeAws_restJson1_1DescribeUserHierarchyStructureComm } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -440,12 +440,12 @@ export async function serializeAws_restJson1_1GetContactAttributesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -496,12 +496,12 @@ export async function serializeAws_restJson1_1GetCurrentMetricDataCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -526,12 +526,12 @@ export async function serializeAws_restJson1_1GetFederationTokenCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -588,12 +588,12 @@ export async function serializeAws_restJson1_1GetMetricDataCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -630,13 +630,13 @@ export async function serializeAws_restJson1_1ListContactFlowsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -668,13 +668,13 @@ export async function serializeAws_restJson1_1ListHoursOfOperationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -716,13 +716,13 @@ export async function serializeAws_restJson1_1ListPhoneNumbersCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -757,13 +757,13 @@ export async function serializeAws_restJson1_1ListQueuesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -795,13 +795,13 @@ export async function serializeAws_restJson1_1ListRoutingProfilesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -833,13 +833,13 @@ export async function serializeAws_restJson1_1ListSecurityProfilesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -866,12 +866,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -903,13 +903,13 @@ export async function serializeAws_restJson1_1ListUserHierarchyGroupsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -941,13 +941,13 @@ export async function serializeAws_restJson1_1ListUsersCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -994,12 +994,12 @@ export async function serializeAws_restJson1_1StartChatContactCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1041,12 +1041,12 @@ export async function serializeAws_restJson1_1StartOutboundVoiceContactCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1067,12 +1067,12 @@ export async function serializeAws_restJson1_1StopContactCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1104,12 +1104,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1140,13 +1140,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1173,12 +1173,12 @@ export async function serializeAws_restJson1_1UpdateContactAttributesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1220,12 +1220,12 @@ export async function serializeAws_restJson1_1UpdateUserHierarchyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1270,12 +1270,12 @@ export async function serializeAws_restJson1_1UpdateUserIdentityInfoCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1320,12 +1320,12 @@ export async function serializeAws_restJson1_1UpdateUserPhoneConfigCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1367,12 +1367,12 @@ export async function serializeAws_restJson1_1UpdateUserRoutingProfileCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1419,12 +1419,12 @@ export async function serializeAws_restJson1_1UpdateUserSecurityProfilesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-connectparticipant/protocols/Aws_restJson1_1.ts b/clients/client-connectparticipant/protocols/Aws_restJson1_1.ts index fd868de6f810..486b1703bcce 100644 --- a/clients/client-connectparticipant/protocols/Aws_restJson1_1.ts +++ b/clients/client-connectparticipant/protocols/Aws_restJson1_1.ts @@ -62,12 +62,12 @@ export async function serializeAws_restJson1_1CreateParticipantConnectionCommand } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -91,12 +91,12 @@ export async function serializeAws_restJson1_1DisconnectParticipantCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -135,12 +135,12 @@ export async function serializeAws_restJson1_1GetTranscriptCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -170,12 +170,12 @@ export async function serializeAws_restJson1_1SendEventCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -205,12 +205,12 @@ export async function serializeAws_restJson1_1SendMessageCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } 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 d78c600f0636..cfa9b2513441 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 @@ -867,11 +867,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 ef51c465d3a2..49012959aa18 100644 --- a/clients/client-cost-explorer/protocols/Aws_json1_1.ts +++ b/clients/client-cost-explorer/protocols/Aws_json1_1.ts @@ -6049,11 +6049,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 66d60f46d0e2..8c331cfca3e2 100644 --- a/clients/client-data-pipeline/protocols/Aws_json1_1.ts +++ b/clients/client-data-pipeline/protocols/Aws_json1_1.ts @@ -3601,11 +3601,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 27d087da98eb..9bbe5821321f 100644 --- a/clients/client-database-migration-service/protocols/Aws_json1_1.ts +++ b/clients/client-database-migration-service/protocols/Aws_json1_1.ts @@ -9958,11 +9958,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 afb4fafa8e72..12bd17cae829 100644 --- a/clients/client-dataexchange/protocols/Aws_restJson1_1.ts +++ b/clients/client-dataexchange/protocols/Aws_restJson1_1.ts @@ -153,12 +153,12 @@ export async function serializeAws_restJson1_1CancelJobCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -188,12 +188,12 @@ export async function serializeAws_restJson1_1CreateDataSetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -217,12 +217,12 @@ export async function serializeAws_restJson1_1CreateJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -258,12 +258,12 @@ export async function serializeAws_restJson1_1CreateRevisionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -313,12 +313,12 @@ export async function serializeAws_restJson1_1DeleteAssetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -343,12 +343,12 @@ export async function serializeAws_restJson1_1DeleteDataSetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -385,12 +385,12 @@ export async function serializeAws_restJson1_1DeleteRevisionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -440,12 +440,12 @@ export async function serializeAws_restJson1_1GetAssetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -470,12 +470,12 @@ export async function serializeAws_restJson1_1GetDataSetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -500,12 +500,12 @@ export async function serializeAws_restJson1_1GetJobCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -542,12 +542,12 @@ export async function serializeAws_restJson1_1GetRevisionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -579,13 +579,13 @@ export async function serializeAws_restJson1_1ListDataSetRevisionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -608,13 +608,13 @@ export async function serializeAws_restJson1_1ListDataSetsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -640,13 +640,13 @@ export async function serializeAws_restJson1_1ListJobsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -690,13 +690,13 @@ export async function serializeAws_restJson1_1ListRevisionAssetsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -723,12 +723,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -753,12 +753,12 @@ export async function serializeAws_restJson1_1StartJobCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -793,12 +793,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -829,13 +829,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -890,12 +890,12 @@ export async function serializeAws_restJson1_1UpdateAssetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -928,12 +928,12 @@ export async function serializeAws_restJson1_1UpdateDataSetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -978,12 +978,12 @@ export async function serializeAws_restJson1_1UpdateRevisionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-datasync/protocols/Aws_json1_1.ts b/clients/client-datasync/protocols/Aws_json1_1.ts index 50c75aa20ffb..3a4032404843 100644 --- a/clients/client-datasync/protocols/Aws_json1_1.ts +++ b/clients/client-datasync/protocols/Aws_json1_1.ts @@ -4425,11 +4425,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 c5058905a967..8b07bae7ac01 100644 --- a/clients/client-dax/protocols/Aws_json1_1.ts +++ b/clients/client-dax/protocols/Aws_json1_1.ts @@ -5137,11 +5137,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 8abe3d1e53e4..0766c5268b84 100644 --- a/clients/client-detective/protocols/Aws_restJson1_1.ts +++ b/clients/client-detective/protocols/Aws_restJson1_1.ts @@ -79,12 +79,12 @@ export async function serializeAws_restJson1_1AcceptInvitationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -98,12 +98,12 @@ export async function serializeAws_restJson1_1CreateGraphCommand( let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -130,12 +130,12 @@ export async function serializeAws_restJson1_1CreateMembersCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -153,12 +153,12 @@ export async function serializeAws_restJson1_1DeleteGraphCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -182,12 +182,12 @@ export async function serializeAws_restJson1_1DeleteMembersCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -205,12 +205,12 @@ export async function serializeAws_restJson1_1DisassociateMembershipCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -234,12 +234,12 @@ export async function serializeAws_restJson1_1GetMembersCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -260,12 +260,12 @@ export async function serializeAws_restJson1_1ListGraphsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -286,12 +286,12 @@ export async function serializeAws_restJson1_1ListInvitationsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -315,12 +315,12 @@ export async function serializeAws_restJson1_1ListMembersCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -338,12 +338,12 @@ export async function serializeAws_restJson1_1RejectInvitationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-device-farm/protocols/Aws_json1_1.ts b/clients/client-device-farm/protocols/Aws_json1_1.ts index 1da7bc72a026..b2b63368631d 100644 --- a/clients/client-device-farm/protocols/Aws_json1_1.ts +++ b/clients/client-device-farm/protocols/Aws_json1_1.ts @@ -14217,11 +14217,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 5176d4857364..c34c733405e7 100644 --- a/clients/client-direct-connect/protocols/Aws_json1_1.ts +++ b/clients/client-direct-connect/protocols/Aws_json1_1.ts @@ -8248,11 +8248,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 391379af603d..646c9cda8fa2 100644 --- a/clients/client-directory-service/protocols/Aws_json1_1.ts +++ b/clients/client-directory-service/protocols/Aws_json1_1.ts @@ -11825,11 +11825,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 27d42520a8c3..9df60fbbfa5b 100644 --- a/clients/client-dlm/protocols/Aws_restJson1_1.ts +++ b/clients/client-dlm/protocols/Aws_restJson1_1.ts @@ -92,12 +92,12 @@ export async function serializeAws_restJson1_1CreateLifecyclePolicyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -122,12 +122,12 @@ export async function serializeAws_restJson1_1DeleteLifecyclePolicyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -156,13 +156,13 @@ export async function serializeAws_restJson1_1GetLifecyclePoliciesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -187,12 +187,12 @@ export async function serializeAws_restJson1_1GetLifecyclePolicyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -219,12 +219,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -256,12 +256,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -292,13 +292,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -340,12 +340,12 @@ export async function serializeAws_restJson1_1UpdateLifecyclePolicyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-docdb/protocols/Aws_query.ts b/clients/client-docdb/protocols/Aws_query.ts index c1fa8dc738c7..62605928f33a 100644 --- a/clients/client-docdb/protocols/Aws_query.ts +++ b/clients/client-docdb/protocols/Aws_query.ts @@ -10890,11 +10890,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 7b8fd7835693..c2ea94138f65 100644 --- a/clients/client-dynamodb-streams/protocols/Aws_json1_0.ts +++ b/clients/client-dynamodb-streams/protocols/Aws_json1_0.ts @@ -1188,11 +1188,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 b8d057d2d5ad..fb9a1b3d1060 100644 --- a/clients/client-dynamodb/protocols/Aws_json1_0.ts +++ b/clients/client-dynamodb/protocols/Aws_json1_0.ts @@ -11751,11 +11751,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 036e4718d98f..7130183d82ac 100644 --- a/clients/client-ebs/protocols/Aws_restJson1_1.ts +++ b/clients/client-ebs/protocols/Aws_restJson1_1.ts @@ -68,13 +68,13 @@ export async function serializeAws_restJson1_1GetSnapshotBlockCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -116,13 +116,13 @@ export async function serializeAws_restJson1_1ListChangedBlocksCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -157,13 +157,13 @@ export async function serializeAws_restJson1_1ListSnapshotBlocksCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } 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 7720c0cf7ec2..b96050bde72b 100644 --- a/clients/client-ec2-instance-connect/protocols/Aws_json1_1.ts +++ b/clients/client-ec2-instance-connect/protocols/Aws_json1_1.ts @@ -374,11 +374,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 5f0d9af59301..5939e4f9de1a 100644 --- a/clients/client-ec2/protocols/Aws_ec2.ts +++ b/clients/client-ec2/protocols/Aws_ec2.ts @@ -78716,11 +78716,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 6a169035d965..02c7b6460396 100644 --- a/clients/client-ecr/protocols/Aws_json1_1.ts +++ b/clients/client-ecr/protocols/Aws_json1_1.ts @@ -6334,11 +6334,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 e8adf3bfcda5..4157a1a55a31 100644 --- a/clients/client-ecs/protocols/Aws_json1_1.ts +++ b/clients/client-ecs/protocols/Aws_json1_1.ts @@ -13606,11 +13606,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 01a4d85c46ac..165783f3b793 100644 --- a/clients/client-efs/protocols/Aws_restJson1_1.ts +++ b/clients/client-efs/protocols/Aws_restJson1_1.ts @@ -178,12 +178,12 @@ export async function serializeAws_restJson1_1CreateAccessPointCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -223,12 +223,12 @@ export async function serializeAws_restJson1_1CreateFileSystemCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -258,12 +258,12 @@ export async function serializeAws_restJson1_1CreateMountTargetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -295,12 +295,12 @@ export async function serializeAws_restJson1_1CreateTagsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -327,12 +327,12 @@ export async function serializeAws_restJson1_1DeleteAccessPointCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -359,12 +359,12 @@ export async function serializeAws_restJson1_1DeleteFileSystemCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -391,12 +391,12 @@ export async function serializeAws_restJson1_1DeleteFileSystemPolicyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -423,12 +423,12 @@ export async function serializeAws_restJson1_1DeleteMountTargetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -463,12 +463,12 @@ export async function serializeAws_restJson1_1DeleteTagsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -494,13 +494,13 @@ export async function serializeAws_restJson1_1DescribeAccessPointsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -527,12 +527,12 @@ export async function serializeAws_restJson1_1DescribeFileSystemPolicyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -558,13 +558,13 @@ export async function serializeAws_restJson1_1DescribeFileSystemsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -592,12 +592,12 @@ export async function serializeAws_restJson1_1DescribeLifecycleConfigurationComm } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -625,12 +625,12 @@ export async function serializeAws_restJson1_1DescribeMountTargetSecurityGroupsC } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -659,13 +659,13 @@ export async function serializeAws_restJson1_1DescribeMountTargetsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -699,13 +699,13 @@ export async function serializeAws_restJson1_1DescribeTagsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -737,13 +737,13 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -779,12 +779,12 @@ export async function serializeAws_restJson1_1ModifyMountTargetSecurityGroupsCom } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -820,12 +820,12 @@ export async function serializeAws_restJson1_1PutFileSystemPolicyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -861,12 +861,12 @@ export async function serializeAws_restJson1_1PutLifecycleConfigurationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -896,12 +896,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -934,12 +934,12 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -975,12 +975,12 @@ export async function serializeAws_restJson1_1UpdateFileSystemCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-eks/protocols/Aws_restJson1_1.ts b/clients/client-eks/protocols/Aws_restJson1_1.ts index ec0963dc1696..5cef1ca3f0d7 100644 --- a/clients/client-eks/protocols/Aws_restJson1_1.ts +++ b/clients/client-eks/protocols/Aws_restJson1_1.ts @@ -174,12 +174,12 @@ export async function serializeAws_restJson1_1CreateClusterCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -235,12 +235,12 @@ export async function serializeAws_restJson1_1CreateFargateProfileCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -328,12 +328,12 @@ export async function serializeAws_restJson1_1CreateNodegroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -358,12 +358,12 @@ export async function serializeAws_restJson1_1DeleteClusterCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -407,12 +407,12 @@ export async function serializeAws_restJson1_1DeleteFargateProfileCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -453,12 +453,12 @@ export async function serializeAws_restJson1_1DeleteNodegroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -483,12 +483,12 @@ export async function serializeAws_restJson1_1DescribeClusterCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -532,12 +532,12 @@ export async function serializeAws_restJson1_1DescribeFargateProfileCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -578,12 +578,12 @@ export async function serializeAws_restJson1_1DescribeNodegroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -624,13 +624,13 @@ export async function serializeAws_restJson1_1DescribeUpdateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -650,13 +650,13 @@ export async function serializeAws_restJson1_1ListClustersCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -690,13 +690,13 @@ export async function serializeAws_restJson1_1ListFargateProfilesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -730,13 +730,13 @@ export async function serializeAws_restJson1_1ListNodegroupsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -763,12 +763,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -803,13 +803,13 @@ export async function serializeAws_restJson1_1ListUpdatesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -841,12 +841,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -877,13 +877,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -928,12 +928,12 @@ export async function serializeAws_restJson1_1UpdateClusterConfigCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -969,12 +969,12 @@ export async function serializeAws_restJson1_1UpdateClusterVersionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1038,12 +1038,12 @@ export async function serializeAws_restJson1_1UpdateNodegroupConfigCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1102,12 +1102,12 @@ export async function serializeAws_restJson1_1UpdateNodegroupVersionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-elastic-beanstalk/protocols/Aws_query.ts b/clients/client-elastic-beanstalk/protocols/Aws_query.ts index 2db0d3c04b80..d26f3e62b9c8 100644 --- a/clients/client-elastic-beanstalk/protocols/Aws_query.ts +++ b/clients/client-elastic-beanstalk/protocols/Aws_query.ts @@ -9707,11 +9707,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 b9b40b9c31c5..e2bad5bf9a6a 100644 --- a/clients/client-elastic-inference/protocols/Aws_restJson1_1.ts +++ b/clients/client-elastic-inference/protocols/Aws_restJson1_1.ts @@ -53,12 +53,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -90,12 +90,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -126,13 +126,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } 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 7041bed6854f..295ba458692a 100644 --- a/clients/client-elastic-load-balancing-v2/protocols/Aws_query.ts +++ b/clients/client-elastic-load-balancing-v2/protocols/Aws_query.ts @@ -9761,11 +9761,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 a844b8dca3ed..87c8b54177b7 100644 --- a/clients/client-elastic-load-balancing/protocols/Aws_query.ts +++ b/clients/client-elastic-load-balancing/protocols/Aws_query.ts @@ -6681,11 +6681,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 df5c0674d824..20c50bc4da35 100644 --- a/clients/client-elastic-transcoder/protocols/Aws_restJson1_1.ts +++ b/clients/client-elastic-transcoder/protocols/Aws_restJson1_1.ts @@ -142,12 +142,12 @@ export async function serializeAws_restJson1_1CancelJobCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -204,12 +204,12 @@ export async function serializeAws_restJson1_1CreateJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -259,12 +259,12 @@ export async function serializeAws_restJson1_1CreatePipelineCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -306,12 +306,12 @@ export async function serializeAws_restJson1_1CreatePresetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -336,12 +336,12 @@ export async function serializeAws_restJson1_1DeletePipelineCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -366,12 +366,12 @@ export async function serializeAws_restJson1_1DeletePresetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -403,13 +403,13 @@ export async function serializeAws_restJson1_1ListJobsByPipelineCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -441,13 +441,13 @@ export async function serializeAws_restJson1_1ListJobsByStatusCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -467,13 +467,13 @@ export async function serializeAws_restJson1_1ListPipelinesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -493,13 +493,13 @@ export async function serializeAws_restJson1_1ListPresetsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -524,12 +524,12 @@ export async function serializeAws_restJson1_1ReadJobCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -554,12 +554,12 @@ export async function serializeAws_restJson1_1ReadPipelineCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -584,12 +584,12 @@ export async function serializeAws_restJson1_1ReadPresetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -619,12 +619,12 @@ export async function serializeAws_restJson1_1TestRoleCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -683,12 +683,12 @@ export async function serializeAws_restJson1_1UpdatePipelineCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -721,12 +721,12 @@ export async function serializeAws_restJson1_1UpdatePipelineNotificationsCommand } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -756,12 +756,12 @@ export async function serializeAws_restJson1_1UpdatePipelineStatusCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-elasticache/protocols/Aws_query.ts b/clients/client-elasticache/protocols/Aws_query.ts index 04ac95606663..8a7a136b70d7 100644 --- a/clients/client-elasticache/protocols/Aws_query.ts +++ b/clients/client-elasticache/protocols/Aws_query.ts @@ -13877,11 +13877,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 a8eb9689cd47..a2a41181f06c 100644 --- a/clients/client-elasticsearch-service/protocols/Aws_restJson1_1.ts +++ b/clients/client-elasticsearch-service/protocols/Aws_restJson1_1.ts @@ -177,12 +177,12 @@ export async function serializeAws_restJson1_1AddTagsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -200,12 +200,12 @@ export async function serializeAws_restJson1_1CancelElasticsearchServiceSoftware } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -299,12 +299,12 @@ export async function serializeAws_restJson1_1CreateElasticsearchDomainCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -329,12 +329,12 @@ export async function serializeAws_restJson1_1DeleteElasticsearchDomainCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -348,12 +348,12 @@ export async function serializeAws_restJson1_1DeleteElasticsearchServiceRoleComm let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -378,12 +378,12 @@ export async function serializeAws_restJson1_1DescribeElasticsearchDomainCommand } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -408,12 +408,12 @@ export async function serializeAws_restJson1_1DescribeElasticsearchDomainConfigC } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -434,12 +434,12 @@ export async function serializeAws_restJson1_1DescribeElasticsearchDomainsComman } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -487,13 +487,13 @@ export async function serializeAws_restJson1_1DescribeElasticsearchInstanceTypeL } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -516,13 +516,13 @@ export async function serializeAws_restJson1_1DescribeReservedElasticsearchInsta } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -545,13 +545,13 @@ export async function serializeAws_restJson1_1DescribeReservedElasticsearchInsta } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -568,13 +568,13 @@ export async function serializeAws_restJson1_1GetCompatibleElasticsearchVersions } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -606,13 +606,13 @@ export async function serializeAws_restJson1_1GetUpgradeHistoryCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -637,12 +637,12 @@ export async function serializeAws_restJson1_1GetUpgradeStatusCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -656,12 +656,12 @@ export async function serializeAws_restJson1_1ListDomainNamesCommand( let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -700,13 +700,13 @@ export async function serializeAws_restJson1_1ListElasticsearchInstanceTypesComm } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -726,13 +726,13 @@ export async function serializeAws_restJson1_1ListElasticsearchVersionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -749,13 +749,13 @@ export async function serializeAws_restJson1_1ListTagsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -780,12 +780,12 @@ export async function serializeAws_restJson1_1PurchaseReservedElasticsearchInsta } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -809,12 +809,12 @@ export async function serializeAws_restJson1_1RemoveTagsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -832,12 +832,12 @@ export async function serializeAws_restJson1_1StartElasticsearchServiceSoftwareU } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -921,12 +921,12 @@ export async function serializeAws_restJson1_1UpdateElasticsearchDomainConfigCom } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -950,12 +950,12 @@ export async function serializeAws_restJson1_1UpgradeElasticsearchDomainCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-emr/protocols/Aws_json1_1.ts b/clients/client-emr/protocols/Aws_json1_1.ts index 4313e4a2b427..bd36b305e967 100644 --- a/clients/client-emr/protocols/Aws_json1_1.ts +++ b/clients/client-emr/protocols/Aws_json1_1.ts @@ -7686,11 +7686,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 56e3869f10d5..18aad8d14cba 100644 --- a/clients/client-eventbridge/protocols/Aws_json1_1.ts +++ b/clients/client-eventbridge/protocols/Aws_json1_1.ts @@ -5561,11 +5561,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 ff01a31f1e2e..9ee9806c47f5 100644 --- a/clients/client-firehose/protocols/Aws_json1_1.ts +++ b/clients/client-firehose/protocols/Aws_json1_1.ts @@ -4578,11 +4578,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 41ff76016d91..ab551bded64a 100644 --- a/clients/client-fms/protocols/Aws_json1_1.ts +++ b/clients/client-fms/protocols/Aws_json1_1.ts @@ -3102,11 +3102,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 a04a7abb73ee..50c4214ce90b 100644 --- a/clients/client-forecast/protocols/Aws_json1_1.ts +++ b/clients/client-forecast/protocols/Aws_json1_1.ts @@ -5574,11 +5574,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 d699d4d8d538..bc2388d92291 100644 --- a/clients/client-forecastquery/protocols/Aws_json1_1.ts +++ b/clients/client-forecastquery/protocols/Aws_json1_1.ts @@ -447,11 +447,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 695d14c92d60..71885d983017 100644 --- a/clients/client-frauddetector/protocols/Aws_json1_1.ts +++ b/clients/client-frauddetector/protocols/Aws_json1_1.ts @@ -5775,11 +5775,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 da266ad4bc12..f9a688b32693 100644 --- a/clients/client-fsx/protocols/Aws_json1_1.ts +++ b/clients/client-fsx/protocols/Aws_json1_1.ts @@ -4259,11 +4259,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 053166bc40e5..b341c431541c 100644 --- a/clients/client-gamelift/protocols/Aws_json1_1.ts +++ b/clients/client-gamelift/protocols/Aws_json1_1.ts @@ -14982,11 +14982,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 1c46434151c2..5eea945ee274 100644 --- a/clients/client-glacier/protocols/Aws_restJson1_1.ts +++ b/clients/client-glacier/protocols/Aws_restJson1_1.ts @@ -224,12 +224,12 @@ export async function serializeAws_restJson1_1AbortMultipartUploadCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -266,12 +266,12 @@ export async function serializeAws_restJson1_1AbortVaultLockCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -316,13 +316,13 @@ export async function serializeAws_restJson1_1AddTagsToVaultCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -378,12 +378,12 @@ export async function serializeAws_restJson1_1CompleteMultipartUploadCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -432,12 +432,12 @@ export async function serializeAws_restJson1_1CompleteVaultLockCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -474,12 +474,12 @@ export async function serializeAws_restJson1_1CreateVaultCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -528,12 +528,12 @@ export async function serializeAws_restJson1_1DeleteArchiveCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -570,12 +570,12 @@ export async function serializeAws_restJson1_1DeleteVaultCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -612,12 +612,12 @@ export async function serializeAws_restJson1_1DeleteVaultAccessPolicyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -655,12 +655,12 @@ export async function serializeAws_restJson1_1DeleteVaultNotificationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -709,12 +709,12 @@ export async function serializeAws_restJson1_1DescribeJobCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -751,12 +751,12 @@ export async function serializeAws_restJson1_1DescribeVaultCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -781,12 +781,12 @@ export async function serializeAws_restJson1_1GetDataRetrievalPolicyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -838,12 +838,12 @@ export async function serializeAws_restJson1_1GetJobOutputCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -880,12 +880,12 @@ export async function serializeAws_restJson1_1GetVaultAccessPolicyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -922,12 +922,12 @@ export async function serializeAws_restJson1_1GetVaultLockCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -965,12 +965,12 @@ export async function serializeAws_restJson1_1GetVaultNotificationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1014,12 +1014,12 @@ export async function serializeAws_restJson1_1InitiateJobCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1062,12 +1062,12 @@ export async function serializeAws_restJson1_1InitiateMultipartUploadCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1111,12 +1111,12 @@ export async function serializeAws_restJson1_1InitiateVaultLockCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1166,13 +1166,13 @@ export async function serializeAws_restJson1_1ListJobsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1216,13 +1216,13 @@ export async function serializeAws_restJson1_1ListMultipartUploadsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1279,13 +1279,13 @@ export async function serializeAws_restJson1_1ListPartsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1310,12 +1310,12 @@ export async function serializeAws_restJson1_1ListProvisionedCapacityCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1352,12 +1352,12 @@ export async function serializeAws_restJson1_1ListTagsForVaultCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1389,13 +1389,13 @@ export async function serializeAws_restJson1_1ListVaultsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1420,12 +1420,12 @@ export async function serializeAws_restJson1_1PurchaseProvisionedCapacityCommand } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1473,13 +1473,13 @@ export async function serializeAws_restJson1_1RemoveTagsFromVaultCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1512,12 +1512,12 @@ export async function serializeAws_restJson1_1SetDataRetrievalPolicyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1561,12 +1561,12 @@ export async function serializeAws_restJson1_1SetVaultAccessPolicyCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1614,12 +1614,12 @@ export async function serializeAws_restJson1_1SetVaultNotificationsCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1665,12 +1665,12 @@ export async function serializeAws_restJson1_1UploadArchiveCommand( body = input.body; } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1729,12 +1729,12 @@ export async function serializeAws_restJson1_1UploadMultipartPartCommand( body = input.body; } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-global-accelerator/protocols/Aws_json1_1.ts b/clients/client-global-accelerator/protocols/Aws_json1_1.ts index b662de6adaac..db4ba19c3f24 100644 --- a/clients/client-global-accelerator/protocols/Aws_json1_1.ts +++ b/clients/client-global-accelerator/protocols/Aws_json1_1.ts @@ -3346,11 +3346,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 b24d24520c54..4e93f887fbdd 100644 --- a/clients/client-glue/protocols/Aws_json1_1.ts +++ b/clients/client-glue/protocols/Aws_json1_1.ts @@ -25548,11 +25548,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 2f4e797b6dbc..4a05631d869a 100644 --- a/clients/client-greengrass/protocols/Aws_restJson1_1.ts +++ b/clients/client-greengrass/protocols/Aws_restJson1_1.ts @@ -443,12 +443,12 @@ export async function serializeAws_restJson1_1AssociateRoleToGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -466,12 +466,12 @@ export async function serializeAws_restJson1_1AssociateServiceRoleToAccountComma } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -503,12 +503,12 @@ export async function serializeAws_restJson1_1CreateConnectorDefinitionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -549,12 +549,12 @@ export async function serializeAws_restJson1_1CreateConnectorDefinitionVersionCo } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -586,12 +586,12 @@ export async function serializeAws_restJson1_1CreateCoreDefinitionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -631,12 +631,12 @@ export async function serializeAws_restJson1_1CreateCoreDefinitionVersionCommand } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -675,12 +675,12 @@ export async function serializeAws_restJson1_1CreateDeploymentCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -712,12 +712,12 @@ export async function serializeAws_restJson1_1CreateDeviceDefinitionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -758,12 +758,12 @@ export async function serializeAws_restJson1_1CreateDeviceDefinitionVersionComma } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -795,12 +795,12 @@ export async function serializeAws_restJson1_1CreateFunctionDefinitionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -847,12 +847,12 @@ export async function serializeAws_restJson1_1CreateFunctionDefinitionVersionCom } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -882,12 +882,12 @@ export async function serializeAws_restJson1_1CreateGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -915,12 +915,12 @@ export async function serializeAws_restJson1_1CreateGroupCertificateAuthorityCom } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -975,12 +975,12 @@ export async function serializeAws_restJson1_1CreateGroupVersionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1012,12 +1012,12 @@ export async function serializeAws_restJson1_1CreateLoggerDefinitionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1058,12 +1058,12 @@ export async function serializeAws_restJson1_1CreateLoggerDefinitionVersionComma } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1095,12 +1095,12 @@ export async function serializeAws_restJson1_1CreateResourceDefinitionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1141,12 +1141,12 @@ export async function serializeAws_restJson1_1CreateResourceDefinitionVersionCom } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1186,12 +1186,12 @@ export async function serializeAws_restJson1_1CreateSoftwareUpdateJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1223,12 +1223,12 @@ export async function serializeAws_restJson1_1CreateSubscriptionDefinitionComman } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1269,12 +1269,12 @@ export async function serializeAws_restJson1_1CreateSubscriptionDefinitionVersio } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1304,12 +1304,12 @@ export async function serializeAws_restJson1_1DeleteConnectorDefinitionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1338,12 +1338,12 @@ export async function serializeAws_restJson1_1DeleteCoreDefinitionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1372,12 +1372,12 @@ export async function serializeAws_restJson1_1DeleteDeviceDefinitionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1406,12 +1406,12 @@ export async function serializeAws_restJson1_1DeleteFunctionDefinitionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1436,12 +1436,12 @@ export async function serializeAws_restJson1_1DeleteGroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1470,12 +1470,12 @@ export async function serializeAws_restJson1_1DeleteLoggerDefinitionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1504,12 +1504,12 @@ export async function serializeAws_restJson1_1DeleteResourceDefinitionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1539,12 +1539,12 @@ export async function serializeAws_restJson1_1DeleteSubscriptionDefinitionComman } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1569,12 +1569,12 @@ export async function serializeAws_restJson1_1DisassociateRoleFromGroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1588,12 +1588,12 @@ export async function serializeAws_restJson1_1DisassociateServiceRoleFromAccount let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1618,12 +1618,12 @@ export async function serializeAws_restJson1_1GetAssociatedRoleCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1652,12 +1652,12 @@ export async function serializeAws_restJson1_1GetBulkDeploymentStatusCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1682,12 +1682,12 @@ export async function serializeAws_restJson1_1GetConnectivityInfoCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1717,12 +1717,12 @@ export async function serializeAws_restJson1_1GetConnectorDefinitionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1772,13 +1772,13 @@ export async function serializeAws_restJson1_1GetConnectorDefinitionVersionComma } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1807,12 +1807,12 @@ export async function serializeAws_restJson1_1GetCoreDefinitionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1858,12 +1858,12 @@ export async function serializeAws_restJson1_1GetCoreDefinitionVersionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1903,12 +1903,12 @@ export async function serializeAws_restJson1_1GetDeploymentStatusCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1937,12 +1937,12 @@ export async function serializeAws_restJson1_1GetDeviceDefinitionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1992,13 +1992,13 @@ export async function serializeAws_restJson1_1GetDeviceDefinitionVersionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2027,12 +2027,12 @@ export async function serializeAws_restJson1_1GetFunctionDefinitionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2082,13 +2082,13 @@ export async function serializeAws_restJson1_1GetFunctionDefinitionVersionComman } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2113,12 +2113,12 @@ export async function serializeAws_restJson1_1GetGroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2160,12 +2160,12 @@ export async function serializeAws_restJson1_1GetGroupCertificateAuthorityComman } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2191,12 +2191,12 @@ export async function serializeAws_restJson1_1GetGroupCertificateConfigurationCo } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2235,12 +2235,12 @@ export async function serializeAws_restJson1_1GetGroupVersionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2269,12 +2269,12 @@ export async function serializeAws_restJson1_1GetLoggerDefinitionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2324,13 +2324,13 @@ export async function serializeAws_restJson1_1GetLoggerDefinitionVersionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2359,12 +2359,12 @@ export async function serializeAws_restJson1_1GetResourceDefinitionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2410,12 +2410,12 @@ export async function serializeAws_restJson1_1GetResourceDefinitionVersionComman } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2429,12 +2429,12 @@ export async function serializeAws_restJson1_1GetServiceRoleForAccountCommand( let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2464,12 +2464,12 @@ export async function serializeAws_restJson1_1GetSubscriptionDefinitionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2519,13 +2519,13 @@ export async function serializeAws_restJson1_1GetSubscriptionDefinitionVersionCo } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2562,13 +2562,13 @@ export async function serializeAws_restJson1_1ListBulkDeploymentDetailedReportsC } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2588,13 +2588,13 @@ export async function serializeAws_restJson1_1ListBulkDeploymentsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2631,13 +2631,13 @@ export async function serializeAws_restJson1_1ListConnectorDefinitionVersionsCom } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2657,13 +2657,13 @@ export async function serializeAws_restJson1_1ListConnectorDefinitionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2699,13 +2699,13 @@ export async function serializeAws_restJson1_1ListCoreDefinitionVersionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2725,13 +2725,13 @@ export async function serializeAws_restJson1_1ListCoreDefinitionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2763,13 +2763,13 @@ export async function serializeAws_restJson1_1ListDeploymentsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2806,13 +2806,13 @@ export async function serializeAws_restJson1_1ListDeviceDefinitionVersionsComman } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2832,13 +2832,13 @@ export async function serializeAws_restJson1_1ListDeviceDefinitionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2875,13 +2875,13 @@ export async function serializeAws_restJson1_1ListFunctionDefinitionVersionsComm } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2901,13 +2901,13 @@ export async function serializeAws_restJson1_1ListFunctionDefinitionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2932,12 +2932,12 @@ export async function serializeAws_restJson1_1ListGroupCertificateAuthoritiesCom } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2969,13 +2969,13 @@ export async function serializeAws_restJson1_1ListGroupVersionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2995,13 +2995,13 @@ export async function serializeAws_restJson1_1ListGroupsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3038,13 +3038,13 @@ export async function serializeAws_restJson1_1ListLoggerDefinitionVersionsComman } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3064,13 +3064,13 @@ export async function serializeAws_restJson1_1ListLoggerDefinitionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3107,13 +3107,13 @@ export async function serializeAws_restJson1_1ListResourceDefinitionVersionsComm } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3133,13 +3133,13 @@ export async function serializeAws_restJson1_1ListResourceDefinitionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3176,13 +3176,13 @@ export async function serializeAws_restJson1_1ListSubscriptionDefinitionVersions } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3202,13 +3202,13 @@ export async function serializeAws_restJson1_1ListSubscriptionDefinitionsCommand } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3235,12 +3235,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3273,12 +3273,12 @@ export async function serializeAws_restJson1_1ResetDeploymentsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3305,12 +3305,12 @@ export async function serializeAws_restJson1_1StartBulkDeploymentCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3339,12 +3339,12 @@ export async function serializeAws_restJson1_1StopBulkDeploymentCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3376,12 +3376,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3412,13 +3412,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3453,12 +3453,12 @@ export async function serializeAws_restJson1_1UpdateConnectivityInfoCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3493,12 +3493,12 @@ export async function serializeAws_restJson1_1UpdateConnectorDefinitionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3532,12 +3532,12 @@ export async function serializeAws_restJson1_1UpdateCoreDefinitionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3571,12 +3571,12 @@ export async function serializeAws_restJson1_1UpdateDeviceDefinitionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3610,12 +3610,12 @@ export async function serializeAws_restJson1_1UpdateFunctionDefinitionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3645,12 +3645,12 @@ export async function serializeAws_restJson1_1UpdateGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3682,12 +3682,12 @@ export async function serializeAws_restJson1_1UpdateGroupCertificateConfiguratio } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3721,12 +3721,12 @@ export async function serializeAws_restJson1_1UpdateLoggerDefinitionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3760,12 +3760,12 @@ export async function serializeAws_restJson1_1UpdateResourceDefinitionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3800,12 +3800,12 @@ export async function serializeAws_restJson1_1UpdateSubscriptionDefinitionComman } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-groundstation/protocols/Aws_restJson1_1.ts b/clients/client-groundstation/protocols/Aws_restJson1_1.ts index a101e4618cf3..a320b3f0c3fe 100644 --- a/clients/client-groundstation/protocols/Aws_restJson1_1.ts +++ b/clients/client-groundstation/protocols/Aws_restJson1_1.ts @@ -165,12 +165,12 @@ export async function serializeAws_restJson1_1CancelContactCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -197,12 +197,12 @@ export async function serializeAws_restJson1_1CreateConfigCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -226,12 +226,12 @@ export async function serializeAws_restJson1_1CreateDataflowEndpointGroupCommand } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -273,12 +273,12 @@ export async function serializeAws_restJson1_1CreateMissionProfileCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -315,12 +315,12 @@ export async function serializeAws_restJson1_1DeleteConfigCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -349,12 +349,12 @@ export async function serializeAws_restJson1_1DeleteDataflowEndpointGroupCommand } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -383,12 +383,12 @@ export async function serializeAws_restJson1_1DeleteMissionProfileCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -413,12 +413,12 @@ export async function serializeAws_restJson1_1DescribeContactCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -455,12 +455,12 @@ export async function serializeAws_restJson1_1GetConfigCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -489,12 +489,12 @@ export async function serializeAws_restJson1_1GetDataflowEndpointGroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -523,12 +523,12 @@ export async function serializeAws_restJson1_1GetMissionProfileCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -548,13 +548,13 @@ export async function serializeAws_restJson1_1ListConfigsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -596,12 +596,12 @@ export async function serializeAws_restJson1_1ListContactsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -621,13 +621,13 @@ export async function serializeAws_restJson1_1ListDataflowEndpointGroupsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -647,13 +647,13 @@ export async function serializeAws_restJson1_1ListMissionProfilesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -686,12 +686,12 @@ export async function serializeAws_restJson1_1ReserveContactCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -739,12 +739,12 @@ export async function serializeAws_restJson1_1UpdateConfigCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -799,12 +799,12 @@ export async function serializeAws_restJson1_1UpdateMissionProfileCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -825,12 +825,12 @@ export async function serializeAws_restJson1_1GetMinuteUsageCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -857,12 +857,12 @@ export async function serializeAws_restJson1_1GetSatelliteCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -882,13 +882,13 @@ export async function serializeAws_restJson1_1ListGroundStationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -908,13 +908,13 @@ export async function serializeAws_restJson1_1ListSatellitesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -941,12 +941,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -978,12 +978,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1014,13 +1014,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-guardduty/protocols/Aws_restJson1_1.ts b/clients/client-guardduty/protocols/Aws_restJson1_1.ts index dbf526054adb..185a92e244f4 100644 --- a/clients/client-guardduty/protocols/Aws_restJson1_1.ts +++ b/clients/client-guardduty/protocols/Aws_restJson1_1.ts @@ -286,12 +286,12 @@ export async function serializeAws_restJson1_1AcceptInvitationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -324,12 +324,12 @@ export async function serializeAws_restJson1_1ArchiveFindingsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -359,12 +359,12 @@ export async function serializeAws_restJson1_1CreateDetectorCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -418,12 +418,12 @@ export async function serializeAws_restJson1_1CreateFilterCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -471,12 +471,12 @@ export async function serializeAws_restJson1_1CreateIPSetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -509,12 +509,12 @@ export async function serializeAws_restJson1_1CreateMembersCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -558,12 +558,12 @@ export async function serializeAws_restJson1_1CreatePublishingDestinationCommand } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -596,12 +596,12 @@ export async function serializeAws_restJson1_1CreateSampleFindingsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -649,12 +649,12 @@ export async function serializeAws_restJson1_1CreateThreatIntelSetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -675,12 +675,12 @@ export async function serializeAws_restJson1_1DeclineInvitationsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -705,12 +705,12 @@ export async function serializeAws_restJson1_1DeleteDetectorCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -747,12 +747,12 @@ export async function serializeAws_restJson1_1DeleteFilterCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -789,12 +789,12 @@ export async function serializeAws_restJson1_1DeleteIPSetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -815,12 +815,12 @@ export async function serializeAws_restJson1_1DeleteInvitationsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -853,12 +853,12 @@ export async function serializeAws_restJson1_1DeleteMembersCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -898,12 +898,12 @@ export async function serializeAws_restJson1_1DeletePublishingDestinationCommand } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -944,12 +944,12 @@ export async function serializeAws_restJson1_1DeleteThreatIntelSetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -989,12 +989,12 @@ export async function serializeAws_restJson1_1DescribePublishingDestinationComma } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1019,12 +1019,12 @@ export async function serializeAws_restJson1_1DisassociateFromMasterAccountComma } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1057,12 +1057,12 @@ export async function serializeAws_restJson1_1DisassociateMembersCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1087,12 +1087,12 @@ export async function serializeAws_restJson1_1GetDetectorCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1129,12 +1129,12 @@ export async function serializeAws_restJson1_1GetFilterCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1173,12 +1173,12 @@ export async function serializeAws_restJson1_1GetFindingsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1219,12 +1219,12 @@ export async function serializeAws_restJson1_1GetFindingsStatisticsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1261,12 +1261,12 @@ export async function serializeAws_restJson1_1GetIPSetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1280,12 +1280,12 @@ export async function serializeAws_restJson1_1GetInvitationsCountCommand( let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1310,12 +1310,12 @@ export async function serializeAws_restJson1_1GetMasterAccountCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1348,12 +1348,12 @@ export async function serializeAws_restJson1_1GetMembersCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1394,12 +1394,12 @@ export async function serializeAws_restJson1_1GetThreatIntelSetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1438,12 +1438,12 @@ export async function serializeAws_restJson1_1InviteMembersCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1463,13 +1463,13 @@ export async function serializeAws_restJson1_1ListDetectorsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1501,13 +1501,13 @@ export async function serializeAws_restJson1_1ListFiltersCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1552,12 +1552,12 @@ export async function serializeAws_restJson1_1ListFindingsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1589,13 +1589,13 @@ export async function serializeAws_restJson1_1ListIPSetsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1615,13 +1615,13 @@ export async function serializeAws_restJson1_1ListInvitationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1656,13 +1656,13 @@ export async function serializeAws_restJson1_1ListMembersCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1694,13 +1694,13 @@ export async function serializeAws_restJson1_1ListPublishingDestinationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1727,12 +1727,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1764,13 +1764,13 @@ export async function serializeAws_restJson1_1ListThreatIntelSetsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1803,12 +1803,12 @@ export async function serializeAws_restJson1_1StartMonitoringMembersCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1841,12 +1841,12 @@ export async function serializeAws_restJson1_1StopMonitoringMembersCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1878,12 +1878,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1916,12 +1916,12 @@ export async function serializeAws_restJson1_1UnarchiveFindingsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1952,13 +1952,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1991,12 +1991,12 @@ export async function serializeAws_restJson1_1UpdateDetectorCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2050,12 +2050,12 @@ export async function serializeAws_restJson1_1UpdateFilterCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2094,12 +2094,12 @@ export async function serializeAws_restJson1_1UpdateFindingsFeedbackCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2147,12 +2147,12 @@ export async function serializeAws_restJson1_1UpdateIPSetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2202,12 +2202,12 @@ export async function serializeAws_restJson1_1UpdatePublishingDestinationCommand } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2259,12 +2259,12 @@ export async function serializeAws_restJson1_1UpdateThreatIntelSetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-health/protocols/Aws_json1_1.ts b/clients/client-health/protocols/Aws_json1_1.ts index a052a3b0ca3b..bdc369135327 100644 --- a/clients/client-health/protocols/Aws_json1_1.ts +++ b/clients/client-health/protocols/Aws_json1_1.ts @@ -2703,11 +2703,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 4773c871d500..7f25084cc4ac 100644 --- a/clients/client-iam/protocols/Aws_query.ts +++ b/clients/client-iam/protocols/Aws_query.ts @@ -23252,11 +23252,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 124c6557adfb..d26c317403f5 100644 --- a/clients/client-imagebuilder/protocols/Aws_restJson1_1.ts +++ b/clients/client-imagebuilder/protocols/Aws_restJson1_1.ts @@ -244,12 +244,12 @@ export async function serializeAws_restJson1_1CancelImageCreationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -297,12 +297,12 @@ export async function serializeAws_restJson1_1CreateComponentCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -338,12 +338,12 @@ export async function serializeAws_restJson1_1CreateDistributionConfigurationCom } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -386,12 +386,12 @@ export async function serializeAws_restJson1_1CreateImageCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -449,12 +449,12 @@ export async function serializeAws_restJson1_1CreateImagePipelineCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -506,12 +506,12 @@ export async function serializeAws_restJson1_1CreateImageRecipeCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -574,12 +574,12 @@ export async function serializeAws_restJson1_1CreateInfrastructureConfigurationC } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -596,13 +596,13 @@ export async function serializeAws_restJson1_1DeleteComponentCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -619,13 +619,13 @@ export async function serializeAws_restJson1_1DeleteDistributionConfigurationCom } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -642,13 +642,13 @@ export async function serializeAws_restJson1_1DeleteImageCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -665,13 +665,13 @@ export async function serializeAws_restJson1_1DeleteImagePipelineCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -688,13 +688,13 @@ export async function serializeAws_restJson1_1DeleteImageRecipeCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -712,13 +712,13 @@ export async function serializeAws_restJson1_1DeleteInfrastructureConfigurationC } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -735,13 +735,13 @@ export async function serializeAws_restJson1_1GetComponentCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -758,13 +758,13 @@ export async function serializeAws_restJson1_1GetComponentPolicyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -781,13 +781,13 @@ export async function serializeAws_restJson1_1GetDistributionConfigurationComman } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -804,13 +804,13 @@ export async function serializeAws_restJson1_1GetImageCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -827,13 +827,13 @@ export async function serializeAws_restJson1_1GetImagePipelineCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -850,13 +850,13 @@ export async function serializeAws_restJson1_1GetImagePolicyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -873,13 +873,13 @@ export async function serializeAws_restJson1_1GetImageRecipeCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -896,13 +896,13 @@ export async function serializeAws_restJson1_1GetImageRecipePolicyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -920,13 +920,13 @@ export async function serializeAws_restJson1_1GetInfrastructureConfigurationComm } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -980,12 +980,12 @@ export async function serializeAws_restJson1_1ImportComponentCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1009,12 +1009,12 @@ export async function serializeAws_restJson1_1ListComponentBuildVersionsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1044,12 +1044,12 @@ export async function serializeAws_restJson1_1ListComponentsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1076,12 +1076,12 @@ export async function serializeAws_restJson1_1ListDistributionConfigurationsComm } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1111,12 +1111,12 @@ export async function serializeAws_restJson1_1ListImageBuildVersionsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1146,12 +1146,12 @@ export async function serializeAws_restJson1_1ListImagePipelineImagesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1178,12 +1178,12 @@ export async function serializeAws_restJson1_1ListImagePipelinesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1213,12 +1213,12 @@ export async function serializeAws_restJson1_1ListImageRecipesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1248,12 +1248,12 @@ export async function serializeAws_restJson1_1ListImagesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1280,12 +1280,12 @@ export async function serializeAws_restJson1_1ListInfrastructureConfigurationsCo } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1312,12 +1312,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1338,12 +1338,12 @@ export async function serializeAws_restJson1_1PutComponentPolicyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1364,12 +1364,12 @@ export async function serializeAws_restJson1_1PutImagePolicyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1390,12 +1390,12 @@ export async function serializeAws_restJson1_1PutImageRecipePolicyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1419,12 +1419,12 @@ export async function serializeAws_restJson1_1StartImagePipelineExecutionCommand } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1456,12 +1456,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1492,13 +1492,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1532,12 +1532,12 @@ export async function serializeAws_restJson1_1UpdateDistributionConfigurationCom } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1592,12 +1592,12 @@ export async function serializeAws_restJson1_1UpdateImagePipelineCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1658,12 +1658,12 @@ export async function serializeAws_restJson1_1UpdateInfrastructureConfigurationC } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-inspector/protocols/Aws_json1_1.ts b/clients/client-inspector/protocols/Aws_json1_1.ts index 11deb7456310..b686d9f81763 100644 --- a/clients/client-inspector/protocols/Aws_json1_1.ts +++ b/clients/client-inspector/protocols/Aws_json1_1.ts @@ -7812,11 +7812,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 3a0090faebd8..6eba82a36335 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 @@ -100,12 +100,12 @@ export async function serializeAws_restJson1_1ClaimDevicesByClaimCodeCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -130,12 +130,12 @@ export async function serializeAws_restJson1_1DescribeDeviceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -168,12 +168,12 @@ export async function serializeAws_restJson1_1FinalizeDeviceClaimCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -198,12 +198,12 @@ export async function serializeAws_restJson1_1GetDeviceMethodsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -228,12 +228,12 @@ export async function serializeAws_restJson1_1InitiateDeviceClaimCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -269,12 +269,12 @@ export async function serializeAws_restJson1_1InvokeDeviceMethodCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -316,13 +316,13 @@ export async function serializeAws_restJson1_1ListDeviceEventsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -345,13 +345,13 @@ export async function serializeAws_restJson1_1ListDevicesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -378,12 +378,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -418,12 +418,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -448,12 +448,12 @@ export async function serializeAws_restJson1_1UnclaimDeviceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -484,13 +484,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -520,12 +520,12 @@ export async function serializeAws_restJson1_1UpdateDeviceStateCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } 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 c06e2ecbe44c..b058f2ac0610 100644 --- a/clients/client-iot-1click-projects/protocols/Aws_restJson1_1.ts +++ b/clients/client-iot-1click-projects/protocols/Aws_restJson1_1.ts @@ -149,12 +149,12 @@ export async function serializeAws_restJson1_1AssociateDeviceWithPlacementComman } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -192,12 +192,12 @@ export async function serializeAws_restJson1_1CreatePlacementCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -227,12 +227,12 @@ export async function serializeAws_restJson1_1CreateProjectCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -273,12 +273,12 @@ export async function serializeAws_restJson1_1DeletePlacementCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -305,12 +305,12 @@ export async function serializeAws_restJson1_1DeleteProjectCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -351,12 +351,12 @@ export async function serializeAws_restJson1_1DescribePlacementCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -383,12 +383,12 @@ export async function serializeAws_restJson1_1DescribeProjectCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -446,12 +446,12 @@ export async function serializeAws_restJson1_1DisassociateDeviceFromPlacementCom } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -493,12 +493,12 @@ export async function serializeAws_restJson1_1GetDevicesInPlacementCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -532,13 +532,13 @@ export async function serializeAws_restJson1_1ListPlacementsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -558,13 +558,13 @@ export async function serializeAws_restJson1_1ListProjectsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -591,12 +591,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -628,12 +628,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -664,13 +664,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -719,12 +719,12 @@ export async function serializeAws_restJson1_1UpdatePlacementCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -762,12 +762,12 @@ export async function serializeAws_restJson1_1UpdateProjectCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } 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 ff322a17d5ae..3a9f8b46f63a 100644 --- a/clients/client-iot-data-plane/protocols/Aws_restJson1_1.ts +++ b/clients/client-iot-data-plane/protocols/Aws_restJson1_1.ts @@ -62,12 +62,12 @@ export async function serializeAws_restJson1_1DeleteThingShadowCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -92,12 +92,12 @@ export async function serializeAws_restJson1_1GetThingShadowCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -129,13 +129,13 @@ export async function serializeAws_restJson1_1PublishCommand( body = input.payload; } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -163,12 +163,12 @@ export async function serializeAws_restJson1_1UpdateThingShadowCommand( body = input.payload; } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } 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 bb183a9fa675..2b1d598fbe7c 100644 --- a/clients/client-iot-events-data/protocols/Aws_restJson1_1.ts +++ b/clients/client-iot-events-data/protocols/Aws_restJson1_1.ts @@ -66,12 +66,12 @@ export async function serializeAws_restJson1_1BatchPutMessageCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -92,12 +92,12 @@ export async function serializeAws_restJson1_1BatchUpdateDetectorCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -130,13 +130,13 @@ export async function serializeAws_restJson1_1DescribeDetectorCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -175,13 +175,13 @@ export async function serializeAws_restJson1_1ListDetectorsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-iot-events/protocols/Aws_restJson1_1.ts b/clients/client-iot-events/protocols/Aws_restJson1_1.ts index d8864f6249a2..53ea086d7583 100644 --- a/clients/client-iot-events/protocols/Aws_restJson1_1.ts +++ b/clients/client-iot-events/protocols/Aws_restJson1_1.ts @@ -155,12 +155,12 @@ export async function serializeAws_restJson1_1CreateDetectorModelCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -190,12 +190,12 @@ export async function serializeAws_restJson1_1CreateInputCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -224,12 +224,12 @@ export async function serializeAws_restJson1_1DeleteDetectorModelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -254,12 +254,12 @@ export async function serializeAws_restJson1_1DeleteInputCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -292,13 +292,13 @@ export async function serializeAws_restJson1_1DescribeDetectorModelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -323,12 +323,12 @@ export async function serializeAws_restJson1_1DescribeInputCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -342,12 +342,12 @@ export async function serializeAws_restJson1_1DescribeLoggingOptionsCommand( let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -383,13 +383,13 @@ export async function serializeAws_restJson1_1ListDetectorModelVersionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -409,13 +409,13 @@ export async function serializeAws_restJson1_1ListDetectorModelsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -435,13 +435,13 @@ export async function serializeAws_restJson1_1ListInputsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -458,13 +458,13 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -485,12 +485,12 @@ export async function serializeAws_restJson1_1PutLoggingOptionsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -512,13 +512,13 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -538,13 +538,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -592,12 +592,12 @@ export async function serializeAws_restJson1_1UpdateDetectorModelCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -633,12 +633,12 @@ export async function serializeAws_restJson1_1UpdateInputCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } 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 18279123ba54..10aaf8224bd3 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 @@ -81,13 +81,13 @@ export async function serializeAws_restJson1_1DescribeJobExecutionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -112,12 +112,12 @@ export async function serializeAws_restJson1_1GetPendingJobExecutionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -153,12 +153,12 @@ export async function serializeAws_restJson1_1StartNextPendingJobExecutionComman } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -221,12 +221,12 @@ export async function serializeAws_restJson1_1UpdateJobExecutionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-iot/protocols/Aws_restJson1_1.ts b/clients/client-iot/protocols/Aws_restJson1_1.ts index 44d4f3be2ecb..69e5fb8e12c7 100644 --- a/clients/client-iot/protocols/Aws_restJson1_1.ts +++ b/clients/client-iot/protocols/Aws_restJson1_1.ts @@ -1036,12 +1036,12 @@ export async function serializeAws_restJson1_1ConfirmTopicRuleDestinationCommand } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1079,12 +1079,12 @@ export async function serializeAws_restJson1_1CreateTopicRuleCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1107,12 +1107,12 @@ export async function serializeAws_restJson1_1CreateTopicRuleDestinationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1137,12 +1137,12 @@ export async function serializeAws_restJson1_1DeleteTopicRuleCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1170,12 +1170,12 @@ export async function serializeAws_restJson1_1DeleteTopicRuleDestinationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1195,13 +1195,13 @@ export async function serializeAws_restJson1_1DeleteV2LoggingLevelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1226,12 +1226,12 @@ export async function serializeAws_restJson1_1DisableTopicRuleCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1256,12 +1256,12 @@ export async function serializeAws_restJson1_1EnableTopicRuleCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1275,12 +1275,12 @@ export async function serializeAws_restJson1_1GetLoggingOptionsCommand( let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1305,12 +1305,12 @@ export async function serializeAws_restJson1_1GetTopicRuleCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1338,12 +1338,12 @@ export async function serializeAws_restJson1_1GetTopicRuleDestinationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1357,12 +1357,12 @@ export async function serializeAws_restJson1_1GetV2LoggingOptionsCommand( let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1382,13 +1382,13 @@ export async function serializeAws_restJson1_1ListTopicRuleDestinationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1414,13 +1414,13 @@ export async function serializeAws_restJson1_1ListTopicRulesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1443,13 +1443,13 @@ export async function serializeAws_restJson1_1ListV2LoggingLevelsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1484,12 +1484,12 @@ export async function serializeAws_restJson1_1ReplaceTopicRuleCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1512,12 +1512,12 @@ export async function serializeAws_restJson1_1SetLoggingOptionsCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1541,12 +1541,12 @@ export async function serializeAws_restJson1_1SetV2LoggingLevelCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1570,12 +1570,12 @@ export async function serializeAws_restJson1_1SetV2LoggingOptionsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1596,12 +1596,12 @@ export async function serializeAws_restJson1_1UpdateTopicRuleDestinationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1632,13 +1632,13 @@ export async function serializeAws_restJson1_1AcceptCertificateTransferCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1668,12 +1668,12 @@ export async function serializeAws_restJson1_1AttachPolicyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1701,12 +1701,12 @@ export async function serializeAws_restJson1_1AttachPrincipalPolicyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1733,12 +1733,12 @@ export async function serializeAws_restJson1_1CancelCertificateTransferCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1752,12 +1752,12 @@ export async function serializeAws_restJson1_1ClearDefaultAuthorizerCommand( let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1804,12 +1804,12 @@ export async function serializeAws_restJson1_1CreateAuthorizerCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1831,13 +1831,13 @@ export async function serializeAws_restJson1_1CreateCertificateFromCsrCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1891,12 +1891,12 @@ export async function serializeAws_restJson1_1CreateDomainConfigurationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1913,13 +1913,13 @@ export async function serializeAws_restJson1_1CreateKeysAndCertificateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1949,12 +1949,12 @@ export async function serializeAws_restJson1_1CreatePolicyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1988,13 +1988,13 @@ export async function serializeAws_restJson1_1CreatePolicyVersionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2022,12 +2022,12 @@ export async function serializeAws_restJson1_1CreateProvisioningClaimCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2060,12 +2060,12 @@ export async function serializeAws_restJson1_1CreateProvisioningTemplateCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2101,13 +2101,13 @@ export async function serializeAws_restJson1_1CreateProvisioningTemplateVersionC } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2140,12 +2140,12 @@ export async function serializeAws_restJson1_1CreateRoleAliasCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2172,12 +2172,12 @@ export async function serializeAws_restJson1_1DeleteAuthorizerCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2204,12 +2204,12 @@ export async function serializeAws_restJson1_1DeleteCACertificateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2240,13 +2240,13 @@ export async function serializeAws_restJson1_1DeleteCertificateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2275,12 +2275,12 @@ export async function serializeAws_restJson1_1DeleteDomainConfigurationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2305,12 +2305,12 @@ export async function serializeAws_restJson1_1DeletePolicyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2349,12 +2349,12 @@ export async function serializeAws_restJson1_1DeletePolicyVersionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2381,12 +2381,12 @@ export async function serializeAws_restJson1_1DeleteProvisioningTemplateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2426,12 +2426,12 @@ export async function serializeAws_restJson1_1DeleteProvisioningTemplateVersionC } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2445,12 +2445,12 @@ export async function serializeAws_restJson1_1DeleteRegistrationCodeCommand( let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2475,12 +2475,12 @@ export async function serializeAws_restJson1_1DeleteRoleAliasCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2507,12 +2507,12 @@ export async function serializeAws_restJson1_1DescribeAuthorizerCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2539,12 +2539,12 @@ export async function serializeAws_restJson1_1DescribeCACertificateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2571,12 +2571,12 @@ export async function serializeAws_restJson1_1DescribeCertificateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2590,12 +2590,12 @@ export async function serializeAws_restJson1_1DescribeDefaultAuthorizerCommand( let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2624,12 +2624,12 @@ export async function serializeAws_restJson1_1DescribeDomainConfigurationCommand } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2646,13 +2646,13 @@ export async function serializeAws_restJson1_1DescribeEndpointCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2679,12 +2679,12 @@ export async function serializeAws_restJson1_1DescribeProvisioningTemplateComman } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2724,12 +2724,12 @@ export async function serializeAws_restJson1_1DescribeProvisioningTemplateVersio } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2754,12 +2754,12 @@ export async function serializeAws_restJson1_1DescribeRoleAliasCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2789,12 +2789,12 @@ export async function serializeAws_restJson1_1DetachPolicyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2822,12 +2822,12 @@ export async function serializeAws_restJson1_1DetachPrincipalPolicyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2852,13 +2852,13 @@ export async function serializeAws_restJson1_1GetEffectivePoliciesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2883,12 +2883,12 @@ export async function serializeAws_restJson1_1GetPolicyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2927,12 +2927,12 @@ export async function serializeAws_restJson1_1GetPolicyVersionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2946,12 +2946,12 @@ export async function serializeAws_restJson1_1GetRegistrationCodeCommand( let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2986,13 +2986,13 @@ export async function serializeAws_restJson1_1ListAttachedPoliciesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3018,13 +3018,13 @@ export async function serializeAws_restJson1_1ListAuthorizersCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3047,13 +3047,13 @@ export async function serializeAws_restJson1_1ListCACertificatesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3076,13 +3076,13 @@ export async function serializeAws_restJson1_1ListCertificatesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3119,13 +3119,13 @@ export async function serializeAws_restJson1_1ListCertificatesByCACommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3148,13 +3148,13 @@ export async function serializeAws_restJson1_1ListDomainConfigurationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3177,13 +3177,13 @@ export async function serializeAws_restJson1_1ListOutgoingCertificatesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3206,13 +3206,13 @@ export async function serializeAws_restJson1_1ListPoliciesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3238,13 +3238,13 @@ export async function serializeAws_restJson1_1ListPolicyPrincipalsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3269,12 +3269,12 @@ export async function serializeAws_restJson1_1ListPolicyVersionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3300,13 +3300,13 @@ export async function serializeAws_restJson1_1ListPrincipalPoliciesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3340,13 +3340,13 @@ export async function serializeAws_restJson1_1ListProvisioningTemplateVersionsCo } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3366,13 +3366,13 @@ export async function serializeAws_restJson1_1ListProvisioningTemplatesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3395,13 +3395,13 @@ export async function serializeAws_restJson1_1ListRoleAliasesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3433,13 +3433,13 @@ export async function serializeAws_restJson1_1ListTargetsForPolicyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3475,13 +3475,13 @@ export async function serializeAws_restJson1_1RegisterCACertificateCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3509,13 +3509,13 @@ export async function serializeAws_restJson1_1RegisterCertificateCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3539,12 +3539,12 @@ export async function serializeAws_restJson1_1RegisterThingCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3576,12 +3576,12 @@ export async function serializeAws_restJson1_1RejectCertificateTransferCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3599,12 +3599,12 @@ export async function serializeAws_restJson1_1SetDefaultAuthorizerCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3643,12 +3643,12 @@ export async function serializeAws_restJson1_1SetDefaultPolicyVersionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3691,13 +3691,13 @@ export async function serializeAws_restJson1_1TestAuthorizationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3750,12 +3750,12 @@ export async function serializeAws_restJson1_1TestInvokeAuthorizerCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3791,13 +3791,13 @@ export async function serializeAws_restJson1_1TransferCertificateCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3841,12 +3841,12 @@ export async function serializeAws_restJson1_1UpdateAuthorizerCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3893,13 +3893,13 @@ export async function serializeAws_restJson1_1UpdateCACertificateCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3930,13 +3930,13 @@ export async function serializeAws_restJson1_1UpdateCertificateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3979,12 +3979,12 @@ export async function serializeAws_restJson1_1UpdateDomainConfigurationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4025,12 +4025,12 @@ export async function serializeAws_restJson1_1UpdateProvisioningTemplateCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4063,12 +4063,12 @@ export async function serializeAws_restJson1_1UpdateRoleAliasCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4093,12 +4093,12 @@ export async function serializeAws_restJson1_1DescribeIndexCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4125,12 +4125,12 @@ export async function serializeAws_restJson1_1GetCardinalityCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4144,12 +4144,12 @@ export async function serializeAws_restJson1_1GetIndexingConfigurationCommand( let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4182,12 +4182,12 @@ export async function serializeAws_restJson1_1GetPercentilesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4214,12 +4214,12 @@ export async function serializeAws_restJson1_1GetStatisticsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4239,13 +4239,13 @@ export async function serializeAws_restJson1_1ListIndicesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4275,12 +4275,12 @@ export async function serializeAws_restJson1_1SearchIndexCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4311,12 +4311,12 @@ export async function serializeAws_restJson1_1UpdateIndexingConfigurationCommand } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4352,12 +4352,12 @@ export async function serializeAws_restJson1_1AssociateTargetsWithJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4394,13 +4394,13 @@ export async function serializeAws_restJson1_1CancelJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4452,13 +4452,13 @@ export async function serializeAws_restJson1_1CancelJobExecutionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4534,12 +4534,12 @@ export async function serializeAws_restJson1_1CreateJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4568,13 +4568,13 @@ export async function serializeAws_restJson1_1DeleteJobCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4630,13 +4630,13 @@ export async function serializeAws_restJson1_1DeleteJobExecutionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4661,12 +4661,12 @@ export async function serializeAws_restJson1_1DescribeJobCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4707,13 +4707,13 @@ export async function serializeAws_restJson1_1DescribeJobExecutionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4738,12 +4738,12 @@ export async function serializeAws_restJson1_1GetJobDocumentCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4778,13 +4778,13 @@ export async function serializeAws_restJson1_1ListJobExecutionsForJobCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4819,13 +4819,13 @@ export async function serializeAws_restJson1_1ListJobExecutionsForThingCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4857,13 +4857,13 @@ export async function serializeAws_restJson1_1ListJobsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4921,12 +4921,12 @@ export async function serializeAws_restJson1_1UpdateJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5009,12 +5009,12 @@ export async function serializeAws_restJson1_1CreateOTAUpdateCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5048,13 +5048,13 @@ export async function serializeAws_restJson1_1DeleteOTAUpdateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -5081,12 +5081,12 @@ export async function serializeAws_restJson1_1GetOTAUpdateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5109,13 +5109,13 @@ export async function serializeAws_restJson1_1ListOTAUpdatesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -5142,12 +5142,12 @@ export async function serializeAws_restJson1_1AddThingToBillingGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5177,12 +5177,12 @@ export async function serializeAws_restJson1_1AddThingToThingGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5210,12 +5210,12 @@ export async function serializeAws_restJson1_1AttachThingPrincipalCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5257,12 +5257,12 @@ export async function serializeAws_restJson1_1CreateBillingGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5311,12 +5311,12 @@ export async function serializeAws_restJson1_1CreateDynamicThingGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5355,12 +5355,12 @@ export async function serializeAws_restJson1_1CreateThingCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5403,12 +5403,12 @@ export async function serializeAws_restJson1_1CreateThingGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5448,12 +5448,12 @@ export async function serializeAws_restJson1_1CreateThingTypeCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5486,13 +5486,13 @@ export async function serializeAws_restJson1_1DeleteBillingGroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -5523,13 +5523,13 @@ export async function serializeAws_restJson1_1DeleteDynamicThingGroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -5558,13 +5558,13 @@ export async function serializeAws_restJson1_1DeleteThingCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -5595,13 +5595,13 @@ export async function serializeAws_restJson1_1DeleteThingGroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -5628,12 +5628,12 @@ export async function serializeAws_restJson1_1DeleteThingTypeCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5665,12 +5665,12 @@ export async function serializeAws_restJson1_1DeprecateThingTypeCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5699,12 +5699,12 @@ export async function serializeAws_restJson1_1DescribeBillingGroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5718,12 +5718,12 @@ export async function serializeAws_restJson1_1DescribeEventConfigurationsCommand let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5748,12 +5748,12 @@ export async function serializeAws_restJson1_1DescribeThingCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5780,12 +5780,12 @@ export async function serializeAws_restJson1_1DescribeThingGroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5810,12 +5810,12 @@ export async function serializeAws_restJson1_1DescribeThingRegistrationTaskComma } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5842,12 +5842,12 @@ export async function serializeAws_restJson1_1DescribeThingTypeCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5875,12 +5875,12 @@ export async function serializeAws_restJson1_1DetachThingPrincipalCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5903,13 +5903,13 @@ export async function serializeAws_restJson1_1ListBillingGroupsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -5932,13 +5932,13 @@ export async function serializeAws_restJson1_1ListPrincipalThingsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -5958,13 +5958,13 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -5993,13 +5993,13 @@ export async function serializeAws_restJson1_1ListThingGroupsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -6031,13 +6031,13 @@ export async function serializeAws_restJson1_1ListThingGroupsForThingCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -6062,12 +6062,12 @@ export async function serializeAws_restJson1_1ListThingPrincipalsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6102,13 +6102,13 @@ export async function serializeAws_restJson1_1ListThingRegistrationTaskReportsCo } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -6131,13 +6131,13 @@ export async function serializeAws_restJson1_1ListThingRegistrationTasksCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -6160,13 +6160,13 @@ export async function serializeAws_restJson1_1ListThingTypesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -6195,13 +6195,13 @@ export async function serializeAws_restJson1_1ListThingsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -6237,13 +6237,13 @@ export async function serializeAws_restJson1_1ListThingsInBillingGroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -6280,13 +6280,13 @@ export async function serializeAws_restJson1_1ListThingsInThingGroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -6313,12 +6313,12 @@ export async function serializeAws_restJson1_1RemoveThingFromBillingGroupCommand } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6345,12 +6345,12 @@ export async function serializeAws_restJson1_1RemoveThingFromThingGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6377,12 +6377,12 @@ export async function serializeAws_restJson1_1StartThingRegistrationTaskCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6407,12 +6407,12 @@ export async function serializeAws_restJson1_1StopThingRegistrationTaskCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6433,12 +6433,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6462,12 +6462,12 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6509,12 +6509,12 @@ export async function serializeAws_restJson1_1UpdateBillingGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6563,12 +6563,12 @@ export async function serializeAws_restJson1_1UpdateDynamicThingGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6591,12 +6591,12 @@ export async function serializeAws_restJson1_1UpdateEventConfigurationsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6638,12 +6638,12 @@ export async function serializeAws_restJson1_1UpdateThingCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6683,12 +6683,12 @@ export async function serializeAws_restJson1_1UpdateThingGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6721,12 +6721,12 @@ export async function serializeAws_restJson1_1UpdateThingGroupsForThingCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6759,13 +6759,13 @@ export async function serializeAws_restJson1_1AttachSecurityProfileCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -6790,12 +6790,12 @@ export async function serializeAws_restJson1_1CancelAuditMitigationActionsTaskCo } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6820,12 +6820,12 @@ export async function serializeAws_restJson1_1CancelAuditTaskCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6864,12 +6864,12 @@ export async function serializeAws_restJson1_1CreateMitigationActionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6920,12 +6920,12 @@ export async function serializeAws_restJson1_1CreateScheduledAuditCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -6982,12 +6982,12 @@ export async function serializeAws_restJson1_1CreateSecurityProfileCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7004,13 +7004,13 @@ export async function serializeAws_restJson1_1DeleteAccountAuditConfigurationCom } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -7035,12 +7035,12 @@ export async function serializeAws_restJson1_1DeleteMitigationActionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7069,12 +7069,12 @@ export async function serializeAws_restJson1_1DeleteScheduledAuditCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7107,13 +7107,13 @@ export async function serializeAws_restJson1_1DeleteSecurityProfileCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -7127,12 +7127,12 @@ export async function serializeAws_restJson1_1DescribeAccountAuditConfigurationC let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7157,12 +7157,12 @@ export async function serializeAws_restJson1_1DescribeAuditFindingCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7187,12 +7187,12 @@ export async function serializeAws_restJson1_1DescribeAuditMitigationActionsTask } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7217,12 +7217,12 @@ export async function serializeAws_restJson1_1DescribeAuditTaskCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7247,12 +7247,12 @@ export async function serializeAws_restJson1_1DescribeMitigationActionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7281,12 +7281,12 @@ export async function serializeAws_restJson1_1DescribeScheduledAuditCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7315,12 +7315,12 @@ export async function serializeAws_restJson1_1DescribeSecurityProfileCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7353,13 +7353,13 @@ export async function serializeAws_restJson1_1DetachSecurityProfileCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -7385,13 +7385,13 @@ export async function serializeAws_restJson1_1ListActiveViolationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -7432,12 +7432,12 @@ export async function serializeAws_restJson1_1ListAuditFindingsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7466,13 +7466,13 @@ export async function serializeAws_restJson1_1ListAuditMitigationActionsExecutio } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -7511,13 +7511,13 @@ export async function serializeAws_restJson1_1ListAuditMitigationActionsTasksCom } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -7553,13 +7553,13 @@ export async function serializeAws_restJson1_1ListAuditTasksCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -7582,13 +7582,13 @@ export async function serializeAws_restJson1_1ListMitigationActionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -7608,13 +7608,13 @@ export async function serializeAws_restJson1_1ListScheduledAuditsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -7634,13 +7634,13 @@ export async function serializeAws_restJson1_1ListSecurityProfilesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -7666,13 +7666,13 @@ export async function serializeAws_restJson1_1ListSecurityProfilesForTargetComma } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -7708,13 +7708,13 @@ export async function serializeAws_restJson1_1ListTargetsForSecurityProfileComma } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -7750,13 +7750,13 @@ export async function serializeAws_restJson1_1ListViolationEventsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -7805,12 +7805,12 @@ export async function serializeAws_restJson1_1StartAuditMitigationActionsTaskCom } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7833,12 +7833,12 @@ export async function serializeAws_restJson1_1StartOnDemandAuditTaskCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7872,12 +7872,12 @@ export async function serializeAws_restJson1_1UpdateAccountAuditConfigurationCom } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7913,12 +7913,12 @@ export async function serializeAws_restJson1_1UpdateMitigationActionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -7966,12 +7966,12 @@ export async function serializeAws_restJson1_1UpdateScheduledAuditCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -8039,13 +8039,13 @@ export async function serializeAws_restJson1_1UpdateSecurityProfileCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -8066,12 +8066,12 @@ export async function serializeAws_restJson1_1ValidateSecurityProfileBehaviorsCo } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -8113,12 +8113,12 @@ export async function serializeAws_restJson1_1CreateStreamCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -8143,12 +8143,12 @@ export async function serializeAws_restJson1_1DeleteStreamCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -8173,12 +8173,12 @@ export async function serializeAws_restJson1_1DescribeStreamCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -8201,13 +8201,13 @@ export async function serializeAws_restJson1_1ListStreamsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -8246,12 +8246,12 @@ export async function serializeAws_restJson1_1UpdateStreamCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-iotanalytics/protocols/Aws_restJson1_1.ts b/clients/client-iotanalytics/protocols/Aws_restJson1_1.ts index 53d91d074150..6a8498f24f83 100644 --- a/clients/client-iotanalytics/protocols/Aws_restJson1_1.ts +++ b/clients/client-iotanalytics/protocols/Aws_restJson1_1.ts @@ -257,12 +257,12 @@ export async function serializeAws_restJson1_1CancelPipelineReprocessingCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -295,12 +295,12 @@ export async function serializeAws_restJson1_1CreateChannelCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -355,12 +355,12 @@ export async function serializeAws_restJson1_1CreateDatasetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -387,12 +387,12 @@ export async function serializeAws_restJson1_1CreateDatasetContentCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -425,12 +425,12 @@ export async function serializeAws_restJson1_1CreateDatastoreCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -459,12 +459,12 @@ export async function serializeAws_restJson1_1CreatePipelineCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -491,12 +491,12 @@ export async function serializeAws_restJson1_1DeleteChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -523,12 +523,12 @@ export async function serializeAws_restJson1_1DeleteDatasetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -559,13 +559,13 @@ export async function serializeAws_restJson1_1DeleteDatasetContentCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -592,12 +592,12 @@ export async function serializeAws_restJson1_1DeleteDatastoreCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -624,12 +624,12 @@ export async function serializeAws_restJson1_1DeletePipelineCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -660,13 +660,13 @@ export async function serializeAws_restJson1_1DescribeChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -693,12 +693,12 @@ export async function serializeAws_restJson1_1DescribeDatasetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -729,13 +729,13 @@ export async function serializeAws_restJson1_1DescribeDatastoreCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -749,12 +749,12 @@ export async function serializeAws_restJson1_1DescribeLoggingOptionsCommand( let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -781,12 +781,12 @@ export async function serializeAws_restJson1_1DescribePipelineCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -817,13 +817,13 @@ export async function serializeAws_restJson1_1GetDatasetContentCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -843,13 +843,13 @@ export async function serializeAws_restJson1_1ListChannelsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -893,13 +893,13 @@ export async function serializeAws_restJson1_1ListDatasetContentsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -919,13 +919,13 @@ export async function serializeAws_restJson1_1ListDatasetsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -945,13 +945,13 @@ export async function serializeAws_restJson1_1ListDatastoresCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -971,13 +971,13 @@ export async function serializeAws_restJson1_1ListPipelinesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -994,13 +994,13 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1021,12 +1021,12 @@ export async function serializeAws_restJson1_1PutLoggingOptionsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1053,12 +1053,12 @@ export async function serializeAws_restJson1_1RunPipelineActivityCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1099,13 +1099,13 @@ export async function serializeAws_restJson1_1SampleChannelDataCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1140,12 +1140,12 @@ export async function serializeAws_restJson1_1StartPipelineReprocessingCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1167,13 +1167,13 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1193,13 +1193,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1240,12 +1240,12 @@ export async function serializeAws_restJson1_1UpdateChannelCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1308,12 +1308,12 @@ export async function serializeAws_restJson1_1UpdateDatasetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1354,12 +1354,12 @@ export async function serializeAws_restJson1_1UpdateDatastoreCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1396,12 +1396,12 @@ export async function serializeAws_restJson1_1UpdatePipelineCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1425,12 +1425,12 @@ export async function serializeAws_restJson1_1BatchPutMessageCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-iotsecuretunneling/protocols/Aws_json1_1.ts b/clients/client-iotsecuretunneling/protocols/Aws_json1_1.ts index b78d93f687cd..49666b769331 100644 --- a/clients/client-iotsecuretunneling/protocols/Aws_json1_1.ts +++ b/clients/client-iotsecuretunneling/protocols/Aws_json1_1.ts @@ -1167,11 +1167,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 31a5ee9f3764..823266cde2ab 100644 --- a/clients/client-iotthingsgraph/protocols/Aws_json1_1.ts +++ b/clients/client-iotthingsgraph/protocols/Aws_json1_1.ts @@ -6272,11 +6272,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 a5d562184d1c..a00f42a22d4e 100644 --- a/clients/client-kafka/protocols/Aws_restJson1_1.ts +++ b/clients/client-kafka/protocols/Aws_restJson1_1.ts @@ -194,12 +194,12 @@ export async function serializeAws_restJson1_1CreateClusterCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -231,12 +231,12 @@ export async function serializeAws_restJson1_1CreateConfigurationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -265,13 +265,13 @@ export async function serializeAws_restJson1_1DeleteClusterCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -296,12 +296,12 @@ export async function serializeAws_restJson1_1DescribeClusterCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -330,12 +330,12 @@ export async function serializeAws_restJson1_1DescribeClusterOperationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -360,12 +360,12 @@ export async function serializeAws_restJson1_1DescribeConfigurationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -402,12 +402,12 @@ export async function serializeAws_restJson1_1DescribeConfigurationRevisionComma } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -432,12 +432,12 @@ export async function serializeAws_restJson1_1GetBootstrapBrokersCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -469,13 +469,13 @@ export async function serializeAws_restJson1_1ListClusterOperationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -498,13 +498,13 @@ export async function serializeAws_restJson1_1ListClustersCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -536,13 +536,13 @@ export async function serializeAws_restJson1_1ListConfigurationRevisionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -562,13 +562,13 @@ export async function serializeAws_restJson1_1ListConfigurationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -600,13 +600,13 @@ export async function serializeAws_restJson1_1ListNodesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -633,12 +633,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -673,12 +673,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -709,13 +709,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -748,12 +748,12 @@ export async function serializeAws_restJson1_1UpdateBrokerCountCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -791,12 +791,12 @@ export async function serializeAws_restJson1_1UpdateBrokerStorageCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -832,12 +832,12 @@ export async function serializeAws_restJson1_1UpdateClusterConfigurationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -876,12 +876,12 @@ export async function serializeAws_restJson1_1UpdateMonitoringCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-kendra/protocols/Aws_json1_1.ts b/clients/client-kendra/protocols/Aws_json1_1.ts index 77cc3145c57d..ccf4ecfe1fc8 100644 --- a/clients/client-kendra/protocols/Aws_json1_1.ts +++ b/clients/client-kendra/protocols/Aws_json1_1.ts @@ -5829,11 +5829,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 b904230b910f..096d295cb905 100644 --- a/clients/client-kinesis-analytics-v2/protocols/Aws_json1_1.ts +++ b/clients/client-kinesis-analytics-v2/protocols/Aws_json1_1.ts @@ -7812,11 +7812,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 e238a13f4de6..5bfe0cdc61f2 100644 --- a/clients/client-kinesis-analytics/protocols/Aws_json1_1.ts +++ b/clients/client-kinesis-analytics/protocols/Aws_json1_1.ts @@ -5276,11 +5276,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 5cdd1c5dd21b..87b1b0f64337 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 @@ -83,12 +83,12 @@ export async function serializeAws_restJson1_1GetDASHStreamingSessionURLCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -136,12 +136,12 @@ export async function serializeAws_restJson1_1GetHLSStreamingSessionURLCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -165,12 +165,12 @@ export async function serializeAws_restJson1_1GetMediaForFragmentListCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -200,12 +200,12 @@ export async function serializeAws_restJson1_1ListFragmentsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } 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 9c92cf6e1560..e2d7f8da5e85 100644 --- a/clients/client-kinesis-video-media/protocols/Aws_restJson1_1.ts +++ b/clients/client-kinesis-video-media/protocols/Aws_restJson1_1.ts @@ -46,12 +46,12 @@ export async function serializeAws_restJson1_1GetMediaCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } 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 7d0d5bcd5e98..d4ba0e1780fc 100644 --- a/clients/client-kinesis-video-signaling/protocols/Aws_restJson1_1.ts +++ b/clients/client-kinesis-video-signaling/protocols/Aws_restJson1_1.ts @@ -50,12 +50,12 @@ export async function serializeAws_restJson1_1GetIceServerConfigCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -79,12 +79,12 @@ export async function serializeAws_restJson1_1SendAlexaOfferToMasterCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-kinesis-video/protocols/Aws_restJson1_1.ts b/clients/client-kinesis-video/protocols/Aws_restJson1_1.ts index b556eb74cb53..95b246df7c56 100644 --- a/clients/client-kinesis-video/protocols/Aws_restJson1_1.ts +++ b/clients/client-kinesis-video/protocols/Aws_restJson1_1.ts @@ -141,12 +141,12 @@ export async function serializeAws_restJson1_1CreateSignalingChannelCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -182,12 +182,12 @@ export async function serializeAws_restJson1_1CreateStreamCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -208,12 +208,12 @@ export async function serializeAws_restJson1_1DeleteSignalingChannelCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -234,12 +234,12 @@ export async function serializeAws_restJson1_1DeleteStreamCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -260,12 +260,12 @@ export async function serializeAws_restJson1_1DescribeSignalingChannelCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -286,12 +286,12 @@ export async function serializeAws_restJson1_1DescribeStreamCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -315,12 +315,12 @@ export async function serializeAws_restJson1_1GetDataEndpointCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -346,12 +346,12 @@ export async function serializeAws_restJson1_1GetSignalingChannelEndpointCommand } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -380,12 +380,12 @@ export async function serializeAws_restJson1_1ListSignalingChannelsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -414,12 +414,12 @@ export async function serializeAws_restJson1_1ListStreamsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -440,12 +440,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -469,12 +469,12 @@ export async function serializeAws_restJson1_1ListTagsForStreamCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -495,12 +495,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -527,12 +527,12 @@ export async function serializeAws_restJson1_1TagStreamCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -556,12 +556,12 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -588,12 +588,12 @@ export async function serializeAws_restJson1_1UntagStreamCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -623,12 +623,12 @@ export async function serializeAws_restJson1_1UpdateDataRetentionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -657,12 +657,12 @@ export async function serializeAws_restJson1_1UpdateSignalingChannelCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -692,12 +692,12 @@ export async function serializeAws_restJson1_1UpdateStreamCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-kinesis/protocols/Aws_json1_1.ts b/clients/client-kinesis/protocols/Aws_json1_1.ts index bcf971b274cf..62a11b6f2262 100644 --- a/clients/client-kinesis/protocols/Aws_json1_1.ts +++ b/clients/client-kinesis/protocols/Aws_json1_1.ts @@ -5208,11 +5208,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 e0d227a9cb0d..de50a6ece9e5 100644 --- a/clients/client-kms/protocols/Aws_json1_1.ts +++ b/clients/client-kms/protocols/Aws_json1_1.ts @@ -9465,11 +9465,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 12b4e599e419..f5a084c24fb3 100644 --- a/clients/client-lakeformation/protocols/Aws_json1_1.ts +++ b/clients/client-lakeformation/protocols/Aws_json1_1.ts @@ -2861,11 +2861,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 9e94882189ab..b6d2f2883397 100644 --- a/clients/client-lambda/protocols/Aws_restJson1_1.ts +++ b/clients/client-lambda/protocols/Aws_restJson1_1.ts @@ -320,13 +320,13 @@ export async function serializeAws_restJson1_1AddLayerVersionPermissionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -380,13 +380,13 @@ export async function serializeAws_restJson1_1AddPermissionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -432,12 +432,12 @@ export async function serializeAws_restJson1_1CreateAliasCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -494,12 +494,12 @@ export async function serializeAws_restJson1_1CreateEventSourceMappingCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -580,12 +580,12 @@ export async function serializeAws_restJson1_1CreateFunctionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -624,12 +624,12 @@ export async function serializeAws_restJson1_1DeleteAliasCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -654,12 +654,12 @@ export async function serializeAws_restJson1_1DeleteEventSourceMappingCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -690,13 +690,13 @@ export async function serializeAws_restJson1_1DeleteFunctionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -723,12 +723,12 @@ export async function serializeAws_restJson1_1DeleteFunctionConcurrencyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -759,13 +759,13 @@ export async function serializeAws_restJson1_1DeleteFunctionEventInvokeConfigCom } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -804,12 +804,12 @@ export async function serializeAws_restJson1_1DeleteLayerVersionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -841,13 +841,13 @@ export async function serializeAws_restJson1_1DeleteProvisionedConcurrencyConfig } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -861,12 +861,12 @@ export async function serializeAws_restJson1_1GetAccountSettingsCommand( let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -905,12 +905,12 @@ export async function serializeAws_restJson1_1GetAliasCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -935,12 +935,12 @@ export async function serializeAws_restJson1_1GetEventSourceMappingCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -971,13 +971,13 @@ export async function serializeAws_restJson1_1GetFunctionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1004,12 +1004,12 @@ export async function serializeAws_restJson1_1GetFunctionConcurrencyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1040,13 +1040,13 @@ export async function serializeAws_restJson1_1GetFunctionConfigurationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1077,13 +1077,13 @@ export async function serializeAws_restJson1_1GetFunctionEventInvokeConfigComman } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1122,12 +1122,12 @@ export async function serializeAws_restJson1_1GetLayerVersionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1146,13 +1146,13 @@ export async function serializeAws_restJson1_1GetLayerVersionByArnCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1192,12 +1192,12 @@ export async function serializeAws_restJson1_1GetLayerVersionPolicyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1228,13 +1228,13 @@ export async function serializeAws_restJson1_1GetPolicyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1266,13 +1266,13 @@ export async function serializeAws_restJson1_1GetProvisionedConcurrencyConfigCom } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1315,13 +1315,13 @@ export async function serializeAws_restJson1_1InvokeCommand( body = input.Payload; } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1351,12 +1351,12 @@ export async function serializeAws_restJson1_1InvokeAsyncCommand( body = input.InvokeArgs; } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1393,13 +1393,13 @@ export async function serializeAws_restJson1_1ListAliasesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1425,13 +1425,13 @@ export async function serializeAws_restJson1_1ListEventSourceMappingsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1466,13 +1466,13 @@ export async function serializeAws_restJson1_1ListFunctionEventInvokeConfigsComm } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1498,13 +1498,13 @@ export async function serializeAws_restJson1_1ListFunctionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1539,13 +1539,13 @@ export async function serializeAws_restJson1_1ListLayerVersionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1568,13 +1568,13 @@ export async function serializeAws_restJson1_1ListLayersCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1611,13 +1611,13 @@ export async function serializeAws_restJson1_1ListProvisionedConcurrencyConfigsC } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1642,12 +1642,12 @@ export async function serializeAws_restJson1_1ListTagsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1681,13 +1681,13 @@ export async function serializeAws_restJson1_1ListVersionsByFunctionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1734,12 +1734,12 @@ export async function serializeAws_restJson1_1PublishLayerVersionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1777,12 +1777,12 @@ export async function serializeAws_restJson1_1PublishVersionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1815,12 +1815,12 @@ export async function serializeAws_restJson1_1PutFunctionConcurrencyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1865,13 +1865,13 @@ export async function serializeAws_restJson1_1PutFunctionEventInvokeConfigComman } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1909,13 +1909,13 @@ export async function serializeAws_restJson1_1PutProvisionedConcurrencyConfigCom } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1973,13 +1973,13 @@ export async function serializeAws_restJson1_1RemoveLayerVersionPermissionComman } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2028,13 +2028,13 @@ export async function serializeAws_restJson1_1RemovePermissionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2064,12 +2064,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2098,13 +2098,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2162,12 +2162,12 @@ export async function serializeAws_restJson1_1UpdateAliasCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2225,12 +2225,12 @@ export async function serializeAws_restJson1_1UpdateEventSourceMappingCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2280,12 +2280,12 @@ export async function serializeAws_restJson1_1UpdateFunctionCodeCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2368,12 +2368,12 @@ export async function serializeAws_restJson1_1UpdateFunctionConfigurationCommand } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2418,13 +2418,13 @@ export async function serializeAws_restJson1_1UpdateFunctionEventInvokeConfigCom } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } 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 e309b77c3ce3..4faa42f208a2 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 @@ -217,12 +217,12 @@ export async function serializeAws_restJson1_1CreateBotVersionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -252,12 +252,12 @@ export async function serializeAws_restJson1_1CreateIntentVersionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -287,12 +287,12 @@ export async function serializeAws_restJson1_1CreateSlotTypeVersionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -317,12 +317,12 @@ export async function serializeAws_restJson1_1DeleteBotCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -359,12 +359,12 @@ export async function serializeAws_restJson1_1DeleteBotAliasCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -413,12 +413,12 @@ export async function serializeAws_restJson1_1DeleteBotChannelAssociationCommand } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -455,12 +455,12 @@ export async function serializeAws_restJson1_1DeleteBotVersionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -485,12 +485,12 @@ export async function serializeAws_restJson1_1DeleteIntentCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -527,12 +527,12 @@ export async function serializeAws_restJson1_1DeleteIntentVersionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -557,12 +557,12 @@ export async function serializeAws_restJson1_1DeleteSlotTypeCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -599,12 +599,12 @@ export async function serializeAws_restJson1_1DeleteSlotTypeVersionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -641,12 +641,12 @@ export async function serializeAws_restJson1_1DeleteUtterancesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -685,12 +685,12 @@ export async function serializeAws_restJson1_1GetBotCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -727,12 +727,12 @@ export async function serializeAws_restJson1_1GetBotAliasCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -767,13 +767,13 @@ export async function serializeAws_restJson1_1GetBotAliasesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -822,12 +822,12 @@ export async function serializeAws_restJson1_1GetBotChannelAssociationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -874,13 +874,13 @@ export async function serializeAws_restJson1_1GetBotChannelAssociationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -912,13 +912,13 @@ export async function serializeAws_restJson1_1GetBotVersionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -941,13 +941,13 @@ export async function serializeAws_restJson1_1GetBotsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -972,12 +972,12 @@ export async function serializeAws_restJson1_1GetBuiltinIntentCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1003,13 +1003,13 @@ export async function serializeAws_restJson1_1GetBuiltinIntentsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1035,13 +1035,13 @@ export async function serializeAws_restJson1_1GetBuiltinSlotTypesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1067,13 +1067,13 @@ export async function serializeAws_restJson1_1GetExportCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1098,12 +1098,12 @@ export async function serializeAws_restJson1_1GetImportCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1140,12 +1140,12 @@ export async function serializeAws_restJson1_1GetIntentCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1177,13 +1177,13 @@ export async function serializeAws_restJson1_1GetIntentVersionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1206,13 +1206,13 @@ export async function serializeAws_restJson1_1GetIntentsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1249,12 +1249,12 @@ export async function serializeAws_restJson1_1GetSlotTypeCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1286,13 +1286,13 @@ export async function serializeAws_restJson1_1GetSlotTypeVersionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1315,13 +1315,13 @@ export async function serializeAws_restJson1_1GetSlotTypesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1355,13 +1355,13 @@ export async function serializeAws_restJson1_1GetUtterancesViewCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1433,12 +1433,12 @@ export async function serializeAws_restJson1_1PutBotCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1494,12 +1494,12 @@ export async function serializeAws_restJson1_1PutBotAliasCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1590,12 +1590,12 @@ export async function serializeAws_restJson1_1PutIntentCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1640,12 +1640,12 @@ export async function serializeAws_restJson1_1PutSlotTypeCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1669,12 +1669,12 @@ export async function serializeAws_restJson1_1StartImportCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } 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 aa611c03d5aa..2e3d2eff198f 100644 --- a/clients/client-lex-runtime-service/protocols/Aws_restJson1_1.ts +++ b/clients/client-lex-runtime-service/protocols/Aws_restJson1_1.ts @@ -98,12 +98,12 @@ export async function serializeAws_restJson1_1DeleteSessionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -156,13 +156,13 @@ export async function serializeAws_restJson1_1GetSessionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -231,12 +231,12 @@ export async function serializeAws_restJson1_1PostContentCommand( body = input.inputStream; } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -302,12 +302,12 @@ export async function serializeAws_restJson1_1PostTextCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -381,12 +381,12 @@ export async function serializeAws_restJson1_1PutSessionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-license-manager/protocols/Aws_json1_1.ts b/clients/client-license-manager/protocols/Aws_json1_1.ts index 5001b418bb6b..1610ed4797f0 100644 --- a/clients/client-license-manager/protocols/Aws_json1_1.ts +++ b/clients/client-license-manager/protocols/Aws_json1_1.ts @@ -4030,11 +4030,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 d05e2e94d6a0..51ea9e851094 100644 --- a/clients/client-lightsail/protocols/Aws_json1_1.ts +++ b/clients/client-lightsail/protocols/Aws_json1_1.ts @@ -22618,11 +22618,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 b69134fee0d4..e3c8885e0b41 100644 --- a/clients/client-machine-learning/protocols/Aws_json1_1.ts +++ b/clients/client-machine-learning/protocols/Aws_json1_1.ts @@ -5527,11 +5527,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 ca5d8351cc11..da80d4f8dada 100644 --- a/clients/client-macie/protocols/Aws_json1_1.ts +++ b/clients/client-macie/protocols/Aws_json1_1.ts @@ -1378,11 +1378,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 93b5e2598b76..42b4ebad2a77 100644 --- a/clients/client-managedblockchain/protocols/Aws_restJson1_1.ts +++ b/clients/client-managedblockchain/protocols/Aws_restJson1_1.ts @@ -164,12 +164,12 @@ export async function serializeAws_restJson1_1CreateMemberCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -224,12 +224,12 @@ export async function serializeAws_restJson1_1CreateNetworkCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -280,12 +280,12 @@ export async function serializeAws_restJson1_1CreateNodeCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -330,12 +330,12 @@ export async function serializeAws_restJson1_1CreateProposalCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -372,12 +372,12 @@ export async function serializeAws_restJson1_1DeleteMemberCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -426,12 +426,12 @@ export async function serializeAws_restJson1_1DeleteNodeCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -468,12 +468,12 @@ export async function serializeAws_restJson1_1GetMemberCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -498,12 +498,12 @@ export async function serializeAws_restJson1_1GetNetworkCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -552,12 +552,12 @@ export async function serializeAws_restJson1_1GetNodeCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -594,12 +594,12 @@ export async function serializeAws_restJson1_1GetProposalCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -619,13 +619,13 @@ export async function serializeAws_restJson1_1ListInvitationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -666,13 +666,13 @@ export async function serializeAws_restJson1_1ListMembersCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -701,13 +701,13 @@ export async function serializeAws_restJson1_1ListNetworksCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -754,13 +754,13 @@ export async function serializeAws_restJson1_1ListNodesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -804,13 +804,13 @@ export async function serializeAws_restJson1_1ListProposalVotesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -842,13 +842,13 @@ export async function serializeAws_restJson1_1ListProposalsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -875,12 +875,12 @@ export async function serializeAws_restJson1_1RejectInvitationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -925,12 +925,12 @@ export async function serializeAws_restJson1_1VoteOnProposalCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-marketplace-catalog/protocols/Aws_restJson1_1.ts b/clients/client-marketplace-catalog/protocols/Aws_restJson1_1.ts index 3f45e2cf71b0..48a9560be128 100644 --- a/clients/client-marketplace-catalog/protocols/Aws_restJson1_1.ts +++ b/clients/client-marketplace-catalog/protocols/Aws_restJson1_1.ts @@ -71,13 +71,13 @@ export async function serializeAws_restJson1_1CancelChangeSetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -97,13 +97,13 @@ export async function serializeAws_restJson1_1DescribeChangeSetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -123,13 +123,13 @@ export async function serializeAws_restJson1_1DescribeEntityCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -162,12 +162,12 @@ export async function serializeAws_restJson1_1ListChangeSetsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -203,12 +203,12 @@ export async function serializeAws_restJson1_1ListEntitiesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -238,12 +238,12 @@ export async function serializeAws_restJson1_1StartChangeSetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } 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 5e24df348229..daf76c9e98eb 100644 --- a/clients/client-marketplace-commerce-analytics/protocols/Aws_json1_1.ts +++ b/clients/client-marketplace-commerce-analytics/protocols/Aws_json1_1.ts @@ -363,11 +363,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 61628b4b2742..65e00a938a0a 100644 --- a/clients/client-marketplace-entitlement-service/protocols/Aws_json1_1.ts +++ b/clients/client-marketplace-entitlement-service/protocols/Aws_json1_1.ts @@ -392,11 +392,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 4d256b1fd533..abf66570280d 100644 --- a/clients/client-marketplace-metering/protocols/Aws_json1_1.ts +++ b/clients/client-marketplace-metering/protocols/Aws_json1_1.ts @@ -1391,11 +1391,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 191a69d4977f..7a85bc2bf8d1 100644 --- a/clients/client-mediaconnect/protocols/Aws_restJson1_1.ts +++ b/clients/client-mediaconnect/protocols/Aws_restJson1_1.ts @@ -134,12 +134,12 @@ export async function serializeAws_restJson1_1AddFlowOutputsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -180,12 +180,12 @@ export async function serializeAws_restJson1_1CreateFlowCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -210,12 +210,12 @@ export async function serializeAws_restJson1_1DeleteFlowCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -240,12 +240,12 @@ export async function serializeAws_restJson1_1DescribeFlowCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -280,12 +280,12 @@ export async function serializeAws_restJson1_1GrantFlowEntitlementsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -305,13 +305,13 @@ export async function serializeAws_restJson1_1ListEntitlementsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -331,13 +331,13 @@ export async function serializeAws_restJson1_1ListFlowsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -364,12 +364,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -406,12 +406,12 @@ export async function serializeAws_restJson1_1RemoveFlowOutputCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -450,12 +450,12 @@ export async function serializeAws_restJson1_1RevokeFlowEntitlementCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -480,12 +480,12 @@ export async function serializeAws_restJson1_1StartFlowCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -510,12 +510,12 @@ export async function serializeAws_restJson1_1StopFlowCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -550,12 +550,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -586,13 +586,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -648,12 +648,12 @@ export async function serializeAws_restJson1_1UpdateFlowEntitlementCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -728,12 +728,12 @@ export async function serializeAws_restJson1_1UpdateFlowOutputCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -802,12 +802,12 @@ export async function serializeAws_restJson1_1UpdateFlowSourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-mediaconvert/protocols/Aws_restJson1_1.ts b/clients/client-mediaconvert/protocols/Aws_restJson1_1.ts index 8fa21be0c638..a70f535bea8d 100644 --- a/clients/client-mediaconvert/protocols/Aws_restJson1_1.ts +++ b/clients/client-mediaconvert/protocols/Aws_restJson1_1.ts @@ -266,12 +266,12 @@ export async function serializeAws_restJson1_1AssociateCertificateCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -296,12 +296,12 @@ export async function serializeAws_restJson1_1CancelJobCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -369,12 +369,12 @@ export async function serializeAws_restJson1_1CreateJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -427,12 +427,12 @@ export async function serializeAws_restJson1_1CreateJobTemplateCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -468,12 +468,12 @@ export async function serializeAws_restJson1_1CreatePresetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -514,12 +514,12 @@ export async function serializeAws_restJson1_1CreateQueueCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -544,12 +544,12 @@ export async function serializeAws_restJson1_1DeleteJobTemplateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -574,12 +574,12 @@ export async function serializeAws_restJson1_1DeletePresetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -604,12 +604,12 @@ export async function serializeAws_restJson1_1DeleteQueueCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -633,12 +633,12 @@ export async function serializeAws_restJson1_1DescribeEndpointsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -663,12 +663,12 @@ export async function serializeAws_restJson1_1DisassociateCertificateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -693,12 +693,12 @@ export async function serializeAws_restJson1_1GetJobCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -723,12 +723,12 @@ export async function serializeAws_restJson1_1GetJobTemplateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -753,12 +753,12 @@ export async function serializeAws_restJson1_1GetPresetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -783,12 +783,12 @@ export async function serializeAws_restJson1_1GetQueueCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -817,13 +817,13 @@ export async function serializeAws_restJson1_1ListJobTemplatesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -852,13 +852,13 @@ export async function serializeAws_restJson1_1ListJobsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -887,13 +887,13 @@ export async function serializeAws_restJson1_1ListPresetsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -919,13 +919,13 @@ export async function serializeAws_restJson1_1ListQueuesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -950,12 +950,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -979,12 +979,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1017,12 +1017,12 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1078,12 +1078,12 @@ export async function serializeAws_restJson1_1UpdateJobTemplateCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1122,12 +1122,12 @@ export async function serializeAws_restJson1_1UpdatePresetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1168,12 +1168,12 @@ export async function serializeAws_restJson1_1UpdateQueueCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-medialive/protocols/Aws_restJson1_1.ts b/clients/client-medialive/protocols/Aws_restJson1_1.ts index 3bee82ad146e..478431ad1af3 100644 --- a/clients/client-medialive/protocols/Aws_restJson1_1.ts +++ b/clients/client-medialive/protocols/Aws_restJson1_1.ts @@ -411,12 +411,12 @@ export async function serializeAws_restJson1_1BatchUpdateScheduleCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -485,12 +485,12 @@ export async function serializeAws_restJson1_1CreateChannelCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -559,12 +559,12 @@ export async function serializeAws_restJson1_1CreateInputCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -590,12 +590,12 @@ export async function serializeAws_restJson1_1CreateInputSecurityGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -634,12 +634,12 @@ export async function serializeAws_restJson1_1CreateMultiplexCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -685,12 +685,12 @@ export async function serializeAws_restJson1_1CreateMultiplexProgramCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -722,12 +722,12 @@ export async function serializeAws_restJson1_1CreateTagsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -752,12 +752,12 @@ export async function serializeAws_restJson1_1DeleteChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -782,12 +782,12 @@ export async function serializeAws_restJson1_1DeleteInputCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -816,12 +816,12 @@ export async function serializeAws_restJson1_1DeleteInputSecurityGroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -848,12 +848,12 @@ export async function serializeAws_restJson1_1DeleteMultiplexCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -894,12 +894,12 @@ export async function serializeAws_restJson1_1DeleteMultiplexProgramCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -926,12 +926,12 @@ export async function serializeAws_restJson1_1DeleteReservationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -956,12 +956,12 @@ export async function serializeAws_restJson1_1DeleteScheduleCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -992,13 +992,13 @@ export async function serializeAws_restJson1_1DeleteTagsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1023,12 +1023,12 @@ export async function serializeAws_restJson1_1DescribeChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1053,12 +1053,12 @@ export async function serializeAws_restJson1_1DescribeInputCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1087,12 +1087,12 @@ export async function serializeAws_restJson1_1DescribeInputSecurityGroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1119,12 +1119,12 @@ export async function serializeAws_restJson1_1DescribeMultiplexCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1165,12 +1165,12 @@ export async function serializeAws_restJson1_1DescribeMultiplexProgramCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1195,12 +1195,12 @@ export async function serializeAws_restJson1_1DescribeOfferingCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1227,12 +1227,12 @@ export async function serializeAws_restJson1_1DescribeReservationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1264,13 +1264,13 @@ export async function serializeAws_restJson1_1DescribeScheduleCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1290,13 +1290,13 @@ export async function serializeAws_restJson1_1ListChannelsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1316,13 +1316,13 @@ export async function serializeAws_restJson1_1ListInputSecurityGroupsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1342,13 +1342,13 @@ export async function serializeAws_restJson1_1ListInputsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1382,13 +1382,13 @@ export async function serializeAws_restJson1_1ListMultiplexProgramsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1408,13 +1408,13 @@ export async function serializeAws_restJson1_1ListMultiplexesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1464,13 +1464,13 @@ export async function serializeAws_restJson1_1ListOfferingsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1514,13 +1514,13 @@ export async function serializeAws_restJson1_1ListReservationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1547,12 +1547,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1597,12 +1597,12 @@ export async function serializeAws_restJson1_1PurchaseOfferingCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1627,12 +1627,12 @@ export async function serializeAws_restJson1_1StartChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1659,12 +1659,12 @@ export async function serializeAws_restJson1_1StartMultiplexCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1689,12 +1689,12 @@ export async function serializeAws_restJson1_1StopChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1721,12 +1721,12 @@ export async function serializeAws_restJson1_1StopMultiplexCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1792,12 +1792,12 @@ export async function serializeAws_restJson1_1UpdateChannelCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1835,12 +1835,12 @@ export async function serializeAws_restJson1_1UpdateChannelClassCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1903,12 +1903,12 @@ export async function serializeAws_restJson1_1UpdateInputCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1950,12 +1950,12 @@ export async function serializeAws_restJson1_1UpdateInputSecurityGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1993,12 +1993,12 @@ export async function serializeAws_restJson1_1UpdateMultiplexCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2049,12 +2049,12 @@ export async function serializeAws_restJson1_1UpdateMultiplexProgramCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2086,12 +2086,12 @@ export async function serializeAws_restJson1_1UpdateReservationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-mediapackage-vod/protocols/Aws_restJson1_1.ts b/clients/client-mediapackage-vod/protocols/Aws_restJson1_1.ts index 0bb687b1963f..fd70f4a91901 100644 --- a/clients/client-mediapackage-vod/protocols/Aws_restJson1_1.ts +++ b/clients/client-mediapackage-vod/protocols/Aws_restJson1_1.ts @@ -112,12 +112,12 @@ export async function serializeAws_restJson1_1CreateAssetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -162,12 +162,12 @@ export async function serializeAws_restJson1_1CreatePackagingConfigurationComman } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -185,12 +185,12 @@ export async function serializeAws_restJson1_1CreatePackagingGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -215,12 +215,12 @@ export async function serializeAws_restJson1_1DeleteAssetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -245,12 +245,12 @@ export async function serializeAws_restJson1_1DeletePackagingConfigurationComman } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -275,12 +275,12 @@ export async function serializeAws_restJson1_1DeletePackagingGroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -305,12 +305,12 @@ export async function serializeAws_restJson1_1DescribeAssetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -335,12 +335,12 @@ export async function serializeAws_restJson1_1DescribePackagingConfigurationComm } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -365,12 +365,12 @@ export async function serializeAws_restJson1_1DescribePackagingGroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -393,13 +393,13 @@ export async function serializeAws_restJson1_1ListAssetsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -422,13 +422,13 @@ export async function serializeAws_restJson1_1ListPackagingConfigurationsCommand } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -448,13 +448,13 @@ export async function serializeAws_restJson1_1ListPackagingGroupsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-mediapackage/protocols/Aws_restJson1_1.ts b/clients/client-mediapackage/protocols/Aws_restJson1_1.ts index 39989ae46c6c..2cbc0baf097f 100644 --- a/clients/client-mediapackage/protocols/Aws_restJson1_1.ts +++ b/clients/client-mediapackage/protocols/Aws_restJson1_1.ts @@ -135,12 +135,12 @@ export async function serializeAws_restJson1_1CreateChannelCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -173,12 +173,12 @@ export async function serializeAws_restJson1_1CreateHarvestJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -255,12 +255,12 @@ export async function serializeAws_restJson1_1CreateOriginEndpointCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -285,12 +285,12 @@ export async function serializeAws_restJson1_1DeleteChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -315,12 +315,12 @@ export async function serializeAws_restJson1_1DeleteOriginEndpointCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -345,12 +345,12 @@ export async function serializeAws_restJson1_1DescribeChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -375,12 +375,12 @@ export async function serializeAws_restJson1_1DescribeHarvestJobCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -405,12 +405,12 @@ export async function serializeAws_restJson1_1DescribeOriginEndpointCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -430,13 +430,13 @@ export async function serializeAws_restJson1_1ListChannelsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -462,13 +462,13 @@ export async function serializeAws_restJson1_1ListHarvestJobsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -491,13 +491,13 @@ export async function serializeAws_restJson1_1ListOriginEndpointsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -524,12 +524,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -554,12 +554,12 @@ export async function serializeAws_restJson1_1RotateChannelCredentialsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -601,12 +601,12 @@ export async function serializeAws_restJson1_1RotateIngestEndpointCredentialsCom } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -641,12 +641,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -677,13 +677,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -713,12 +713,12 @@ export async function serializeAws_restJson1_1UpdateChannelCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -798,12 +798,12 @@ export async function serializeAws_restJson1_1UpdateOriginEndpointCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-mediastore-data/protocols/Aws_restJson1_1.ts b/clients/client-mediastore-data/protocols/Aws_restJson1_1.ts index 4a2d5bf80786..b3595289516e 100644 --- a/clients/client-mediastore-data/protocols/Aws_restJson1_1.ts +++ b/clients/client-mediastore-data/protocols/Aws_restJson1_1.ts @@ -64,12 +64,12 @@ export async function serializeAws_restJson1_1DeleteObjectCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -97,12 +97,12 @@ export async function serializeAws_restJson1_1DescribeObjectCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "HEAD", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -133,12 +133,12 @@ export async function serializeAws_restJson1_1GetObjectCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -161,13 +161,13 @@ export async function serializeAws_restJson1_1ListItemsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -208,12 +208,12 @@ export async function serializeAws_restJson1_1PutObjectCommand( body = input.Body; } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-mediastore/protocols/Aws_json1_1.ts b/clients/client-mediastore/protocols/Aws_json1_1.ts index 5ef34830b27b..ab7e645445df 100644 --- a/clients/client-mediastore/protocols/Aws_json1_1.ts +++ b/clients/client-mediastore/protocols/Aws_json1_1.ts @@ -2861,11 +2861,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 1242ccfd259f..9bdbb31b3fdb 100644 --- a/clients/client-mediatailor/protocols/Aws_restJson1_1.ts +++ b/clients/client-mediatailor/protocols/Aws_restJson1_1.ts @@ -71,12 +71,12 @@ export async function serializeAws_restJson1_1DeletePlaybackConfigurationCommand } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -101,12 +101,12 @@ export async function serializeAws_restJson1_1GetPlaybackConfigurationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -126,13 +126,13 @@ export async function serializeAws_restJson1_1ListPlaybackConfigurationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -159,12 +159,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -222,12 +222,12 @@ export async function serializeAws_restJson1_1PutPlaybackConfigurationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -262,12 +262,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -298,13 +298,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-migration-hub/protocols/Aws_json1_1.ts b/clients/client-migration-hub/protocols/Aws_json1_1.ts index 2d26f858c526..3b482bbf9129 100644 --- a/clients/client-migration-hub/protocols/Aws_json1_1.ts +++ b/clients/client-migration-hub/protocols/Aws_json1_1.ts @@ -3882,11 +3882,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 019ad2563e03..46d0a0a33cf1 100644 --- a/clients/client-migrationhub-config/protocols/Aws_json1_1.ts +++ b/clients/client-migrationhub-config/protocols/Aws_json1_1.ts @@ -751,11 +751,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 b23b40bbb8ea..752f7c343e4b 100644 --- a/clients/client-mobile/protocols/Aws_restJson1_1.ts +++ b/clients/client-mobile/protocols/Aws_restJson1_1.ts @@ -86,13 +86,13 @@ export async function serializeAws_restJson1_1CreateProjectCommand( body = input.contents; } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -117,12 +117,12 @@ export async function serializeAws_restJson1_1DeleteProjectCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -147,12 +147,12 @@ export async function serializeAws_restJson1_1DescribeBundleCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -172,13 +172,13 @@ export async function serializeAws_restJson1_1DescribeProjectCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -210,13 +210,13 @@ export async function serializeAws_restJson1_1ExportBundleCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -241,12 +241,12 @@ export async function serializeAws_restJson1_1ExportProjectCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -266,13 +266,13 @@ export async function serializeAws_restJson1_1ListBundlesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -292,13 +292,13 @@ export async function serializeAws_restJson1_1ListProjectsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -318,13 +318,13 @@ export async function serializeAws_restJson1_1UpdateProjectCommand( body = input.contents; } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-mq/protocols/Aws_restJson1_1.ts b/clients/client-mq/protocols/Aws_restJson1_1.ts index 0dda28c8e3af..6d41664d0d63 100644 --- a/clients/client-mq/protocols/Aws_restJson1_1.ts +++ b/clients/client-mq/protocols/Aws_restJson1_1.ts @@ -218,12 +218,12 @@ export async function serializeAws_restJson1_1CreateBrokerCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -253,12 +253,12 @@ export async function serializeAws_restJson1_1CreateConfigurationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -293,12 +293,12 @@ export async function serializeAws_restJson1_1CreateTagsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -349,12 +349,12 @@ export async function serializeAws_restJson1_1CreateUserCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -379,12 +379,12 @@ export async function serializeAws_restJson1_1DeleteBrokerCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -415,13 +415,13 @@ export async function serializeAws_restJson1_1DeleteTagsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -458,12 +458,12 @@ export async function serializeAws_restJson1_1DeleteUserCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -488,12 +488,12 @@ export async function serializeAws_restJson1_1DescribeBrokerCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -516,13 +516,13 @@ export async function serializeAws_restJson1_1DescribeBrokerEngineTypesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -551,13 +551,13 @@ export async function serializeAws_restJson1_1DescribeBrokerInstanceOptionsComma } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -584,12 +584,12 @@ export async function serializeAws_restJson1_1DescribeConfigurationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -633,12 +633,12 @@ export async function serializeAws_restJson1_1DescribeConfigurationRevisionComma } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -675,12 +675,12 @@ export async function serializeAws_restJson1_1DescribeUserCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -700,13 +700,13 @@ export async function serializeAws_restJson1_1ListBrokersCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -740,13 +740,13 @@ export async function serializeAws_restJson1_1ListConfigurationRevisionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -766,13 +766,13 @@ export async function serializeAws_restJson1_1ListConfigurationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -799,12 +799,12 @@ export async function serializeAws_restJson1_1ListTagsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -836,13 +836,13 @@ export async function serializeAws_restJson1_1ListUsersCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -867,12 +867,12 @@ export async function serializeAws_restJson1_1RebootBrokerCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -923,12 +923,12 @@ export async function serializeAws_restJson1_1UpdateBrokerCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -963,12 +963,12 @@ export async function serializeAws_restJson1_1UpdateConfigurationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1019,12 +1019,12 @@ export async function serializeAws_restJson1_1UpdateUserCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-mturk/protocols/Aws_json1_1.ts b/clients/client-mturk/protocols/Aws_json1_1.ts index 73ee4ca0197c..495ec897f0aa 100644 --- a/clients/client-mturk/protocols/Aws_json1_1.ts +++ b/clients/client-mturk/protocols/Aws_json1_1.ts @@ -6303,11 +6303,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 2fa7bf9e5c4e..dbb08260d0d4 100644 --- a/clients/client-neptune/protocols/Aws_query.ts +++ b/clients/client-neptune/protocols/Aws_query.ts @@ -15075,11 +15075,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 e8f10d73e2c4..9fc0dd73fc01 100644 --- a/clients/client-networkmanager/protocols/Aws_restJson1_1.ts +++ b/clients/client-networkmanager/protocols/Aws_restJson1_1.ts @@ -181,12 +181,12 @@ export async function serializeAws_restJson1_1AssociateCustomerGatewayCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -221,12 +221,12 @@ export async function serializeAws_restJson1_1AssociateLinkCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -282,12 +282,12 @@ export async function serializeAws_restJson1_1CreateDeviceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -308,12 +308,12 @@ export async function serializeAws_restJson1_1CreateGlobalNetworkCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -363,12 +363,12 @@ export async function serializeAws_restJson1_1CreateLinkCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -409,12 +409,12 @@ export async function serializeAws_restJson1_1CreateSiteCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -453,12 +453,12 @@ export async function serializeAws_restJson1_1DeleteDeviceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -485,12 +485,12 @@ export async function serializeAws_restJson1_1DeleteGlobalNetworkCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -529,12 +529,12 @@ export async function serializeAws_restJson1_1DeleteLinkCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -573,12 +573,12 @@ export async function serializeAws_restJson1_1DeleteSiteCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -622,12 +622,12 @@ export async function serializeAws_restJson1_1DeregisterTransitGatewayCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -652,13 +652,13 @@ export async function serializeAws_restJson1_1DescribeGlobalNetworksCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -702,12 +702,12 @@ export async function serializeAws_restJson1_1DisassociateCustomerGatewayCommand } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -741,13 +741,13 @@ export async function serializeAws_restJson1_1DisassociateLinkCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -787,13 +787,13 @@ export async function serializeAws_restJson1_1GetCustomerGatewayAssociationsComm } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -833,13 +833,13 @@ export async function serializeAws_restJson1_1GetDevicesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -879,13 +879,13 @@ export async function serializeAws_restJson1_1GetLinkAssociationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -931,13 +931,13 @@ export async function serializeAws_restJson1_1GetLinksCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -974,13 +974,13 @@ export async function serializeAws_restJson1_1GetSitesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1020,13 +1020,13 @@ export async function serializeAws_restJson1_1GetTransitGatewayRegistrationsComm } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1053,12 +1053,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1091,12 +1091,12 @@ export async function serializeAws_restJson1_1RegisterTransitGatewayCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1128,12 +1128,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1164,13 +1164,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1235,12 +1235,12 @@ export async function serializeAws_restJson1_1UpdateDeviceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1272,12 +1272,12 @@ export async function serializeAws_restJson1_1UpdateGlobalNetworkCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1333,12 +1333,12 @@ export async function serializeAws_restJson1_1UpdateLinkCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1388,12 +1388,12 @@ export async function serializeAws_restJson1_1UpdateSiteCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-opsworks/protocols/Aws_json1_1.ts b/clients/client-opsworks/protocols/Aws_json1_1.ts index e0639ac37cb6..3401d906675e 100644 --- a/clients/client-opsworks/protocols/Aws_json1_1.ts +++ b/clients/client-opsworks/protocols/Aws_json1_1.ts @@ -11757,11 +11757,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 520e87ba422b..55944deee307 100644 --- a/clients/client-opsworkscm/protocols/Aws_json1_1.ts +++ b/clients/client-opsworkscm/protocols/Aws_json1_1.ts @@ -3347,11 +3347,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 d60b2609ab84..363efc9555f0 100644 --- a/clients/client-organizations/protocols/Aws_json1_1.ts +++ b/clients/client-organizations/protocols/Aws_json1_1.ts @@ -10804,11 +10804,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 5e6d99e3d339..2754f51d7f90 100644 --- a/clients/client-outposts/protocols/Aws_restJson1_1.ts +++ b/clients/client-outposts/protocols/Aws_restJson1_1.ts @@ -69,12 +69,12 @@ export async function serializeAws_restJson1_1CreateOutpostCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -99,12 +99,12 @@ export async function serializeAws_restJson1_1GetOutpostCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -136,13 +136,13 @@ export async function serializeAws_restJson1_1GetOutpostInstanceTypesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -162,13 +162,13 @@ export async function serializeAws_restJson1_1ListOutpostsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -188,13 +188,13 @@ export async function serializeAws_restJson1_1ListSitesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-personalize-events/protocols/Aws_restJson1_1.ts b/clients/client-personalize-events/protocols/Aws_restJson1_1.ts index b6ed77a6a29a..4cdf9c65fc34 100644 --- a/clients/client-personalize-events/protocols/Aws_restJson1_1.ts +++ b/clients/client-personalize-events/protocols/Aws_restJson1_1.ts @@ -44,12 +44,12 @@ export async function serializeAws_restJson1_1PutEventsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-personalize-runtime/protocols/Aws_restJson1_1.ts b/clients/client-personalize-runtime/protocols/Aws_restJson1_1.ts index a256601ce3b0..ca6bfda4cd2e 100644 --- a/clients/client-personalize-runtime/protocols/Aws_restJson1_1.ts +++ b/clients/client-personalize-runtime/protocols/Aws_restJson1_1.ts @@ -52,12 +52,12 @@ export async function serializeAws_restJson1_1GetPersonalizedRankingCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -90,12 +90,12 @@ export async function serializeAws_restJson1_1GetRecommendationsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-personalize/protocols/Aws_json1_1.ts b/clients/client-personalize/protocols/Aws_json1_1.ts index 88229e6dc991..f6a535e69282 100644 --- a/clients/client-personalize/protocols/Aws_json1_1.ts +++ b/clients/client-personalize/protocols/Aws_json1_1.ts @@ -7605,11 +7605,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 6b1edb30eaad..4bb1babdd339 100644 --- a/clients/client-pi/protocols/Aws_json1_1.ts +++ b/clients/client-pi/protocols/Aws_json1_1.ts @@ -773,11 +773,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 4f41211422de..16a1667fa37b 100644 --- a/clients/client-pinpoint-email/protocols/Aws_restJson1_1.ts +++ b/clients/client-pinpoint-email/protocols/Aws_restJson1_1.ts @@ -271,12 +271,12 @@ export async function serializeAws_restJson1_1CreateConfigurationSetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -319,12 +319,12 @@ export async function serializeAws_restJson1_1CreateConfigurationSetEventDestina } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -345,12 +345,12 @@ export async function serializeAws_restJson1_1CreateDedicatedIpPoolCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -380,12 +380,12 @@ export async function serializeAws_restJson1_1CreateDeliverabilityTestReportComm } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -406,12 +406,12 @@ export async function serializeAws_restJson1_1CreateEmailIdentityCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -440,12 +440,12 @@ export async function serializeAws_restJson1_1DeleteConfigurationSetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -491,12 +491,12 @@ export async function serializeAws_restJson1_1DeleteConfigurationSetEventDestina } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -521,12 +521,12 @@ export async function serializeAws_restJson1_1DeleteDedicatedIpPoolCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -553,12 +553,12 @@ export async function serializeAws_restJson1_1DeleteEmailIdentityCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -572,12 +572,12 @@ export async function serializeAws_restJson1_1GetAccountCommand( let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -596,13 +596,13 @@ export async function serializeAws_restJson1_1GetBlacklistReportsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -631,12 +631,12 @@ export async function serializeAws_restJson1_1GetConfigurationSetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -666,12 +666,12 @@ export async function serializeAws_restJson1_1GetConfigurationSetEventDestinatio } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -696,12 +696,12 @@ export async function serializeAws_restJson1_1GetDedicatedIpCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -724,13 +724,13 @@ export async function serializeAws_restJson1_1GetDedicatedIpsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -744,12 +744,12 @@ export async function serializeAws_restJson1_1GetDeliverabilityDashboardOptionsC let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -775,12 +775,12 @@ export async function serializeAws_restJson1_1GetDeliverabilityTestReportCommand } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -806,12 +806,12 @@ export async function serializeAws_restJson1_1GetDomainDeliverabilityCampaignCom } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -848,13 +848,13 @@ export async function serializeAws_restJson1_1GetDomainStatisticsReportCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -881,12 +881,12 @@ export async function serializeAws_restJson1_1GetEmailIdentityCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -906,13 +906,13 @@ export async function serializeAws_restJson1_1ListConfigurationSetsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -932,13 +932,13 @@ export async function serializeAws_restJson1_1ListDedicatedIpPoolsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -958,13 +958,13 @@ export async function serializeAws_restJson1_1ListDeliverabilityTestReportsComma } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1011,13 +1011,13 @@ export async function serializeAws_restJson1_1ListDomainDeliverabilityCampaignsC } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1037,13 +1037,13 @@ export async function serializeAws_restJson1_1ListEmailIdentitiesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1060,13 +1060,13 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1084,12 +1084,12 @@ export async function serializeAws_restJson1_1PutAccountDedicatedIpWarmupAttribu } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1107,12 +1107,12 @@ export async function serializeAws_restJson1_1PutAccountSendingAttributesCommand } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1150,12 +1150,12 @@ export async function serializeAws_restJson1_1PutConfigurationSetDeliveryOptions } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1190,12 +1190,12 @@ export async function serializeAws_restJson1_1PutConfigurationSetReputationOptio } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1230,12 +1230,12 @@ export async function serializeAws_restJson1_1PutConfigurationSetSendingOptionsC } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1270,12 +1270,12 @@ export async function serializeAws_restJson1_1PutConfigurationSetTrackingOptions } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1305,12 +1305,12 @@ export async function serializeAws_restJson1_1PutDedicatedIpInPoolCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1340,12 +1340,12 @@ export async function serializeAws_restJson1_1PutDedicatedIpWarmupAttributesComm } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1371,12 +1371,12 @@ export async function serializeAws_restJson1_1PutDeliverabilityDashboardOptionCo } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1408,12 +1408,12 @@ export async function serializeAws_restJson1_1PutEmailIdentityDkimAttributesComm } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1445,12 +1445,12 @@ export async function serializeAws_restJson1_1PutEmailIdentityFeedbackAttributes } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1485,12 +1485,12 @@ export async function serializeAws_restJson1_1PutEmailIdentityMailFromAttributes } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1539,12 +1539,12 @@ export async function serializeAws_restJson1_1SendEmailCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1565,12 +1565,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1590,13 +1590,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1652,12 +1652,12 @@ export async function serializeAws_restJson1_1UpdateConfigurationSetEventDestina } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } 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 2c91edf3d127..09f325d0c90c 100644 --- a/clients/client-pinpoint-sms-voice/protocols/Aws_restJson1_1.ts +++ b/clients/client-pinpoint-sms-voice/protocols/Aws_restJson1_1.ts @@ -77,12 +77,12 @@ export async function serializeAws_restJson1_1CreateConfigurationSetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -125,12 +125,12 @@ export async function serializeAws_restJson1_1CreateConfigurationSetEventDestina } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -159,12 +159,12 @@ export async function serializeAws_restJson1_1DeleteConfigurationSetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -210,12 +210,12 @@ export async function serializeAws_restJson1_1DeleteConfigurationSetEventDestina } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -245,12 +245,12 @@ export async function serializeAws_restJson1_1GetConfigurationSetEventDestinatio } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -270,13 +270,13 @@ export async function serializeAws_restJson1_1ListConfigurationSetsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -309,12 +309,12 @@ export async function serializeAws_restJson1_1SendVoiceMessageCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -370,12 +370,12 @@ export async function serializeAws_restJson1_1UpdateConfigurationSetEventDestina } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-pinpoint/protocols/Aws_restJson1_1.ts b/clients/client-pinpoint/protocols/Aws_restJson1_1.ts index 78939e3de7b1..b0f6abfb6842 100644 --- a/clients/client-pinpoint/protocols/Aws_restJson1_1.ts +++ b/clients/client-pinpoint/protocols/Aws_restJson1_1.ts @@ -633,12 +633,12 @@ export async function serializeAws_restJson1_1CreateAppCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -675,12 +675,12 @@ export async function serializeAws_restJson1_1CreateCampaignCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -717,12 +717,12 @@ export async function serializeAws_restJson1_1CreateEmailTemplateCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -759,12 +759,12 @@ export async function serializeAws_restJson1_1CreateExportJobCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -801,12 +801,12 @@ export async function serializeAws_restJson1_1CreateImportJobCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -843,12 +843,12 @@ export async function serializeAws_restJson1_1CreateJourneyCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -885,12 +885,12 @@ export async function serializeAws_restJson1_1CreatePushTemplateCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -927,12 +927,12 @@ export async function serializeAws_restJson1_1CreateSegmentCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -969,12 +969,12 @@ export async function serializeAws_restJson1_1CreateSmsTemplateCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1011,12 +1011,12 @@ export async function serializeAws_restJson1_1CreateVoiceTemplateCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1043,12 +1043,12 @@ export async function serializeAws_restJson1_1DeleteAdmChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1075,12 +1075,12 @@ export async function serializeAws_restJson1_1DeleteApnsChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1107,12 +1107,12 @@ export async function serializeAws_restJson1_1DeleteApnsSandboxChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1139,12 +1139,12 @@ export async function serializeAws_restJson1_1DeleteApnsVoipChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1171,12 +1171,12 @@ export async function serializeAws_restJson1_1DeleteApnsVoipSandboxChannelComman } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1203,12 +1203,12 @@ export async function serializeAws_restJson1_1DeleteAppCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1235,12 +1235,12 @@ export async function serializeAws_restJson1_1DeleteBaiduChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1279,12 +1279,12 @@ export async function serializeAws_restJson1_1DeleteCampaignCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1311,12 +1311,12 @@ export async function serializeAws_restJson1_1DeleteEmailChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1347,13 +1347,13 @@ export async function serializeAws_restJson1_1DeleteEmailTemplateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1392,12 +1392,12 @@ export async function serializeAws_restJson1_1DeleteEndpointCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1424,12 +1424,12 @@ export async function serializeAws_restJson1_1DeleteEventStreamCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1456,12 +1456,12 @@ export async function serializeAws_restJson1_1DeleteGcmChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1500,12 +1500,12 @@ export async function serializeAws_restJson1_1DeleteJourneyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1536,13 +1536,13 @@ export async function serializeAws_restJson1_1DeletePushTemplateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1581,12 +1581,12 @@ export async function serializeAws_restJson1_1DeleteSegmentCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1613,12 +1613,12 @@ export async function serializeAws_restJson1_1DeleteSmsChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1649,13 +1649,13 @@ export async function serializeAws_restJson1_1DeleteSmsTemplateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1694,12 +1694,12 @@ export async function serializeAws_restJson1_1DeleteUserEndpointsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1726,12 +1726,12 @@ export async function serializeAws_restJson1_1DeleteVoiceChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1762,13 +1762,13 @@ export async function serializeAws_restJson1_1DeleteVoiceTemplateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1795,12 +1795,12 @@ export async function serializeAws_restJson1_1GetAdmChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1827,12 +1827,12 @@ export async function serializeAws_restJson1_1GetApnsChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1859,12 +1859,12 @@ export async function serializeAws_restJson1_1GetApnsSandboxChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1891,12 +1891,12 @@ export async function serializeAws_restJson1_1GetApnsVoipChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1923,12 +1923,12 @@ export async function serializeAws_restJson1_1GetApnsVoipSandboxChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1955,12 +1955,12 @@ export async function serializeAws_restJson1_1GetAppCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2016,13 +2016,13 @@ export async function serializeAws_restJson1_1GetApplicationDateRangeKpiCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2049,12 +2049,12 @@ export async function serializeAws_restJson1_1GetApplicationSettingsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2074,13 +2074,13 @@ export async function serializeAws_restJson1_1GetAppsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2107,12 +2107,12 @@ export async function serializeAws_restJson1_1GetBaiduChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2151,12 +2151,12 @@ export async function serializeAws_restJson1_1GetCampaignCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2203,13 +2203,13 @@ export async function serializeAws_restJson1_1GetCampaignActivitiesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2278,13 +2278,13 @@ export async function serializeAws_restJson1_1GetCampaignDateRangeKpiCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2336,12 +2336,12 @@ export async function serializeAws_restJson1_1GetCampaignVersionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2387,13 +2387,13 @@ export async function serializeAws_restJson1_1GetCampaignVersionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2427,13 +2427,13 @@ export async function serializeAws_restJson1_1GetCampaignsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2460,12 +2460,12 @@ export async function serializeAws_restJson1_1GetChannelsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2492,12 +2492,12 @@ export async function serializeAws_restJson1_1GetEmailChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2528,13 +2528,13 @@ export async function serializeAws_restJson1_1GetEmailTemplateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2573,12 +2573,12 @@ export async function serializeAws_restJson1_1GetEndpointCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2605,12 +2605,12 @@ export async function serializeAws_restJson1_1GetEventStreamCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2649,12 +2649,12 @@ export async function serializeAws_restJson1_1GetExportJobCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2688,13 +2688,13 @@ export async function serializeAws_restJson1_1GetExportJobsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2721,12 +2721,12 @@ export async function serializeAws_restJson1_1GetGcmChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2765,12 +2765,12 @@ export async function serializeAws_restJson1_1GetImportJobCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2804,13 +2804,13 @@ export async function serializeAws_restJson1_1GetImportJobsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2849,12 +2849,12 @@ export async function serializeAws_restJson1_1GetJourneyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2923,13 +2923,13 @@ export async function serializeAws_restJson1_1GetJourneyDateRangeKpiCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2992,13 +2992,13 @@ export async function serializeAws_restJson1_1GetJourneyExecutionActivityMetrics } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3045,13 +3045,13 @@ export async function serializeAws_restJson1_1GetJourneyExecutionMetricsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3082,13 +3082,13 @@ export async function serializeAws_restJson1_1GetPushTemplateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3127,12 +3127,12 @@ export async function serializeAws_restJson1_1GetSegmentCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3179,13 +3179,13 @@ export async function serializeAws_restJson1_1GetSegmentExportJobsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3232,13 +3232,13 @@ export async function serializeAws_restJson1_1GetSegmentImportJobsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3290,12 +3290,12 @@ export async function serializeAws_restJson1_1GetSegmentVersionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3341,13 +3341,13 @@ export async function serializeAws_restJson1_1GetSegmentVersionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3381,13 +3381,13 @@ export async function serializeAws_restJson1_1GetSegmentsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3414,12 +3414,12 @@ export async function serializeAws_restJson1_1GetSmsChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3450,13 +3450,13 @@ export async function serializeAws_restJson1_1GetSmsTemplateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3495,12 +3495,12 @@ export async function serializeAws_restJson1_1GetUserEndpointsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3527,12 +3527,12 @@ export async function serializeAws_restJson1_1GetVoiceChannelCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3563,13 +3563,13 @@ export async function serializeAws_restJson1_1GetVoiceTemplateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3603,13 +3603,13 @@ export async function serializeAws_restJson1_1ListJourneysCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3636,12 +3636,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3689,13 +3689,13 @@ export async function serializeAws_restJson1_1ListTemplateVersionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3721,13 +3721,13 @@ export async function serializeAws_restJson1_1ListTemplatesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3750,12 +3750,12 @@ export async function serializeAws_restJson1_1PhoneNumberValidateCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3792,12 +3792,12 @@ export async function serializeAws_restJson1_1PutEventStreamCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3831,12 +3831,12 @@ export async function serializeAws_restJson1_1PutEventsCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3887,12 +3887,12 @@ export async function serializeAws_restJson1_1RemoveAttributesCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3929,12 +3929,12 @@ export async function serializeAws_restJson1_1SendMessagesCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3971,12 +3971,12 @@ export async function serializeAws_restJson1_1SendUsersMessagesCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4010,12 +4010,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4046,13 +4046,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4089,12 +4089,12 @@ export async function serializeAws_restJson1_1UpdateAdmChannelCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4131,12 +4131,12 @@ export async function serializeAws_restJson1_1UpdateApnsChannelCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4173,12 +4173,12 @@ export async function serializeAws_restJson1_1UpdateApnsSandboxChannelCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4215,12 +4215,12 @@ export async function serializeAws_restJson1_1UpdateApnsVoipChannelCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4257,12 +4257,12 @@ export async function serializeAws_restJson1_1UpdateApnsVoipSandboxChannelComman } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4299,12 +4299,12 @@ export async function serializeAws_restJson1_1UpdateApplicationSettingsCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4341,12 +4341,12 @@ export async function serializeAws_restJson1_1UpdateBaiduChannelCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4395,12 +4395,12 @@ export async function serializeAws_restJson1_1UpdateCampaignCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4437,12 +4437,12 @@ export async function serializeAws_restJson1_1UpdateEmailChannelCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4486,13 +4486,13 @@ export async function serializeAws_restJson1_1UpdateEmailTemplateCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4541,12 +4541,12 @@ export async function serializeAws_restJson1_1UpdateEndpointCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4583,12 +4583,12 @@ export async function serializeAws_restJson1_1UpdateEndpointsBatchCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4625,12 +4625,12 @@ export async function serializeAws_restJson1_1UpdateGcmChannelCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4679,12 +4679,12 @@ export async function serializeAws_restJson1_1UpdateJourneyCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4733,12 +4733,12 @@ export async function serializeAws_restJson1_1UpdateJourneyStateCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4782,13 +4782,13 @@ export async function serializeAws_restJson1_1UpdatePushTemplateCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4837,12 +4837,12 @@ export async function serializeAws_restJson1_1UpdateSegmentCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4879,12 +4879,12 @@ export async function serializeAws_restJson1_1UpdateSmsChannelCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4928,13 +4928,13 @@ export async function serializeAws_restJson1_1UpdateSmsTemplateCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4986,12 +4986,12 @@ export async function serializeAws_restJson1_1UpdateTemplateActiveVersionCommand } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5028,12 +5028,12 @@ export async function serializeAws_restJson1_1UpdateVoiceChannelCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -5077,13 +5077,13 @@ export async function serializeAws_restJson1_1UpdateVoiceTemplateCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-polly/protocols/Aws_restJson1_1.ts b/clients/client-polly/protocols/Aws_restJson1_1.ts index 6b6ba061a4fc..b71413251395 100644 --- a/clients/client-polly/protocols/Aws_restJson1_1.ts +++ b/clients/client-polly/protocols/Aws_restJson1_1.ts @@ -101,12 +101,12 @@ export async function serializeAws_restJson1_1DeleteLexiconCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -134,13 +134,13 @@ export async function serializeAws_restJson1_1DescribeVoicesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -165,12 +165,12 @@ export async function serializeAws_restJson1_1GetLexiconCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -195,12 +195,12 @@ export async function serializeAws_restJson1_1GetSpeechSynthesisTaskCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -217,13 +217,13 @@ export async function serializeAws_restJson1_1ListLexiconsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -246,13 +246,13 @@ export async function serializeAws_restJson1_1ListSpeechSynthesisTasksCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -282,12 +282,12 @@ export async function serializeAws_restJson1_1PutLexiconCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -344,12 +344,12 @@ export async function serializeAws_restJson1_1StartSpeechSynthesisTaskCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -397,12 +397,12 @@ export async function serializeAws_restJson1_1SynthesizeSpeechCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-pricing/protocols/Aws_json1_1.ts b/clients/client-pricing/protocols/Aws_json1_1.ts index 275b895b0d05..2657f53999e7 100644 --- a/clients/client-pricing/protocols/Aws_json1_1.ts +++ b/clients/client-pricing/protocols/Aws_json1_1.ts @@ -823,11 +823,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 ad58b634b9ac..9dbff021e80c 100644 --- a/clients/client-qldb-session/protocols/Aws_json1_0.ts +++ b/clients/client-qldb-session/protocols/Aws_json1_0.ts @@ -743,11 +743,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 c08a8b210a59..faa39c1ce06b 100644 --- a/clients/client-qldb/protocols/Aws_restJson1_1.ts +++ b/clients/client-qldb/protocols/Aws_restJson1_1.ts @@ -109,12 +109,12 @@ export async function serializeAws_restJson1_1CreateLedgerCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -139,12 +139,12 @@ export async function serializeAws_restJson1_1DeleteLedgerCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -181,12 +181,12 @@ export async function serializeAws_restJson1_1DescribeJournalS3ExportCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -211,12 +211,12 @@ export async function serializeAws_restJson1_1DescribeLedgerCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -264,12 +264,12 @@ export async function serializeAws_restJson1_1ExportJournalToS3Command( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -308,12 +308,12 @@ export async function serializeAws_restJson1_1GetBlockCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -338,12 +338,12 @@ export async function serializeAws_restJson1_1GetDigestCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -385,12 +385,12 @@ export async function serializeAws_restJson1_1GetRevisionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -410,13 +410,13 @@ export async function serializeAws_restJson1_1ListJournalS3ExportsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -448,13 +448,13 @@ export async function serializeAws_restJson1_1ListJournalS3ExportsForLedgerComma } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -474,13 +474,13 @@ export async function serializeAws_restJson1_1ListLedgersCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -507,12 +507,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -544,12 +544,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -580,13 +580,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -616,12 +616,12 @@ export async function serializeAws_restJson1_1UpdateLedgerCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-quicksight/protocols/Aws_restJson1_1.ts b/clients/client-quicksight/protocols/Aws_restJson1_1.ts index 51ef4ba692e8..2cf4cc95c6e6 100644 --- a/clients/client-quicksight/protocols/Aws_restJson1_1.ts +++ b/clients/client-quicksight/protocols/Aws_restJson1_1.ts @@ -436,12 +436,12 @@ export async function serializeAws_restJson1_1CancelIngestionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -519,12 +519,12 @@ export async function serializeAws_restJson1_1CreateDashboardCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -597,12 +597,12 @@ export async function serializeAws_restJson1_1CreateDataSetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -677,12 +677,12 @@ export async function serializeAws_restJson1_1CreateDataSourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -729,12 +729,12 @@ export async function serializeAws_restJson1_1CreateGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -798,12 +798,12 @@ export async function serializeAws_restJson1_1CreateGroupMembershipCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -860,12 +860,12 @@ export async function serializeAws_restJson1_1CreateIAMPolicyAssignmentCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -919,12 +919,12 @@ export async function serializeAws_restJson1_1CreateIngestionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -986,12 +986,12 @@ export async function serializeAws_restJson1_1CreateTemplateCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1048,12 +1048,12 @@ export async function serializeAws_restJson1_1CreateTemplateAliasCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1098,13 +1098,13 @@ export async function serializeAws_restJson1_1DeleteDashboardCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1143,12 +1143,12 @@ export async function serializeAws_restJson1_1DeleteDataSetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1189,12 +1189,12 @@ export async function serializeAws_restJson1_1DeleteDataSourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1246,12 +1246,12 @@ export async function serializeAws_restJson1_1DeleteGroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1315,12 +1315,12 @@ export async function serializeAws_restJson1_1DeleteGroupMembershipCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1374,12 +1374,12 @@ export async function serializeAws_restJson1_1DeleteIAMPolicyAssignmentCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1422,13 +1422,13 @@ export async function serializeAws_restJson1_1DeleteTemplateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1480,12 +1480,12 @@ export async function serializeAws_restJson1_1DeleteTemplateAliasCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1537,12 +1537,12 @@ export async function serializeAws_restJson1_1DeleteUserCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1596,12 +1596,12 @@ export async function serializeAws_restJson1_1DeleteUserByPrincipalIdCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1649,13 +1649,13 @@ export async function serializeAws_restJson1_1DescribeDashboardCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1697,12 +1697,12 @@ export async function serializeAws_restJson1_1DescribeDashboardPermissionsComman } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1741,12 +1741,12 @@ export async function serializeAws_restJson1_1DescribeDataSetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1786,12 +1786,12 @@ export async function serializeAws_restJson1_1DescribeDataSetPermissionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1832,12 +1832,12 @@ export async function serializeAws_restJson1_1DescribeDataSourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1879,12 +1879,12 @@ export async function serializeAws_restJson1_1DescribeDataSourcePermissionsComma } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1936,12 +1936,12 @@ export async function serializeAws_restJson1_1DescribeGroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1995,12 +1995,12 @@ export async function serializeAws_restJson1_1DescribeIAMPolicyAssignmentCommand } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2054,12 +2054,12 @@ export async function serializeAws_restJson1_1DescribeIngestionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2105,13 +2105,13 @@ export async function serializeAws_restJson1_1DescribeTemplateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2163,12 +2163,12 @@ export async function serializeAws_restJson1_1DescribeTemplateAliasCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2208,12 +2208,12 @@ export async function serializeAws_restJson1_1DescribeTemplatePermissionsCommand } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2265,12 +2265,12 @@ export async function serializeAws_restJson1_1DescribeUserCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2328,13 +2328,13 @@ export async function serializeAws_restJson1_1GetDashboardEmbedUrlCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2383,13 +2383,13 @@ export async function serializeAws_restJson1_1ListDashboardVersionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2423,13 +2423,13 @@ export async function serializeAws_restJson1_1ListDashboardsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2463,13 +2463,13 @@ export async function serializeAws_restJson1_1ListDataSetsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2503,13 +2503,13 @@ export async function serializeAws_restJson1_1ListDataSourcesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2568,13 +2568,13 @@ export async function serializeAws_restJson1_1ListGroupMembershipsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2620,13 +2620,13 @@ export async function serializeAws_restJson1_1ListGroupsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2678,13 +2678,13 @@ export async function serializeAws_restJson1_1ListIAMPolicyAssignmentsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2743,13 +2743,13 @@ export async function serializeAws_restJson1_1ListIAMPolicyAssignmentsForUserCom } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2796,13 +2796,13 @@ export async function serializeAws_restJson1_1ListIngestionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2829,12 +2829,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2880,13 +2880,13 @@ export async function serializeAws_restJson1_1ListTemplateAliasesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2932,13 +2932,13 @@ export async function serializeAws_restJson1_1ListTemplateVersionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2972,13 +2972,13 @@ export async function serializeAws_restJson1_1ListTemplatesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3037,13 +3037,13 @@ export async function serializeAws_restJson1_1ListUserGroupsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3089,13 +3089,13 @@ export async function serializeAws_restJson1_1ListUsersCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3154,12 +3154,12 @@ export async function serializeAws_restJson1_1RegisterUserCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3191,12 +3191,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3227,13 +3227,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3302,12 +3302,12 @@ export async function serializeAws_restJson1_1UpdateDashboardCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3367,12 +3367,12 @@ export async function serializeAws_restJson1_1UpdateDashboardPermissionsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3428,12 +3428,12 @@ export async function serializeAws_restJson1_1UpdateDashboardPublishedVersionCom } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3506,12 +3506,12 @@ export async function serializeAws_restJson1_1UpdateDataSetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3569,12 +3569,12 @@ export async function serializeAws_restJson1_1UpdateDataSetPermissionsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3648,12 +3648,12 @@ export async function serializeAws_restJson1_1UpdateDataSourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3713,12 +3713,12 @@ export async function serializeAws_restJson1_1UpdateDataSourcePermissionsCommand } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3775,12 +3775,12 @@ export async function serializeAws_restJson1_1UpdateGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3848,12 +3848,12 @@ export async function serializeAws_restJson1_1UpdateIAMPolicyAssignmentCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3906,12 +3906,12 @@ export async function serializeAws_restJson1_1UpdateTemplateCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -3968,12 +3968,12 @@ export async function serializeAws_restJson1_1UpdateTemplateAliasCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4031,12 +4031,12 @@ export async function serializeAws_restJson1_1UpdateTemplatePermissionsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -4096,12 +4096,12 @@ export async function serializeAws_restJson1_1UpdateUserCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-ram/protocols/Aws_restJson1_1.ts b/clients/client-ram/protocols/Aws_restJson1_1.ts index 13fc3efbff59..5a6c4780ea32 100644 --- a/clients/client-ram/protocols/Aws_restJson1_1.ts +++ b/clients/client-ram/protocols/Aws_restJson1_1.ts @@ -154,12 +154,12 @@ export async function serializeAws_restJson1_1AcceptResourceShareInvitationComma } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -192,12 +192,12 @@ export async function serializeAws_restJson1_1AssociateResourceShareCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -224,12 +224,12 @@ export async function serializeAws_restJson1_1AssociateResourceSharePermissionCo } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -274,12 +274,12 @@ export async function serializeAws_restJson1_1CreateResourceShareCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -299,13 +299,13 @@ export async function serializeAws_restJson1_1DeleteResourceShareCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -338,12 +338,12 @@ export async function serializeAws_restJson1_1DisassociateResourceShareCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -367,12 +367,12 @@ export async function serializeAws_restJson1_1DisassociateResourceSharePermissio } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -386,12 +386,12 @@ export async function serializeAws_restJson1_1EnableSharingWithAwsOrganizationCo let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -412,12 +412,12 @@ export async function serializeAws_restJson1_1GetPermissionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -447,12 +447,12 @@ export async function serializeAws_restJson1_1GetResourcePoliciesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -493,12 +493,12 @@ export async function serializeAws_restJson1_1GetResourceShareAssociationsComman } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -535,12 +535,12 @@ export async function serializeAws_restJson1_1GetResourceShareInvitationsCommand } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -584,12 +584,12 @@ export async function serializeAws_restJson1_1GetResourceSharesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -613,12 +613,12 @@ export async function serializeAws_restJson1_1ListPendingInvitationResourcesComm } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -642,12 +642,12 @@ export async function serializeAws_restJson1_1ListPermissionsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -691,12 +691,12 @@ export async function serializeAws_restJson1_1ListPrincipalsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -720,12 +720,12 @@ export async function serializeAws_restJson1_1ListResourceSharePermissionsComman } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -769,12 +769,12 @@ export async function serializeAws_restJson1_1ListResourcesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -791,13 +791,13 @@ export async function serializeAws_restJson1_1PromoteResourceShareCreatedFromPol } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -818,12 +818,12 @@ export async function serializeAws_restJson1_1RejectResourceShareInvitationComma } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -844,12 +844,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -873,12 +873,12 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -905,12 +905,12 @@ export async function serializeAws_restJson1_1UpdateResourceShareCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-rds-data/protocols/Aws_restJson1_1.ts b/clients/client-rds-data/protocols/Aws_restJson1_1.ts index d035dc4489d7..ca74788ba911 100644 --- a/clients/client-rds-data/protocols/Aws_restJson1_1.ts +++ b/clients/client-rds-data/protocols/Aws_restJson1_1.ts @@ -88,12 +88,12 @@ export async function serializeAws_restJson1_1BatchExecuteStatementCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -120,12 +120,12 @@ export async function serializeAws_restJson1_1BeginTransactionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -149,12 +149,12 @@ export async function serializeAws_restJson1_1CommitTransactionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -184,12 +184,12 @@ export async function serializeAws_restJson1_1ExecuteSqlCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -234,12 +234,12 @@ export async function serializeAws_restJson1_1ExecuteStatementCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -263,12 +263,12 @@ export async function serializeAws_restJson1_1RollbackTransactionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-rds/protocols/Aws_query.ts b/clients/client-rds/protocols/Aws_query.ts index 999b042d5d2b..453240cde853 100644 --- a/clients/client-rds/protocols/Aws_query.ts +++ b/clients/client-rds/protocols/Aws_query.ts @@ -32304,11 +32304,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 216adfca702c..ba0b3a9c0dbb 100644 --- a/clients/client-redshift/protocols/Aws_query.ts +++ b/clients/client-redshift/protocols/Aws_query.ts @@ -22149,11 +22149,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 f03f36802aae..40cfc58a660e 100644 --- a/clients/client-rekognition/protocols/Aws_json1_1.ts +++ b/clients/client-rekognition/protocols/Aws_json1_1.ts @@ -10940,11 +10940,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 c1466428fa16..03c9be8a1aed 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 @@ -1803,11 +1803,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 35cb96cb7a4c..ea4c3bea3074 100644 --- a/clients/client-resource-groups/protocols/Aws_restJson1_1.ts +++ b/clients/client-resource-groups/protocols/Aws_restJson1_1.ts @@ -101,12 +101,12 @@ export async function serializeAws_restJson1_1CreateGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -131,12 +131,12 @@ export async function serializeAws_restJson1_1DeleteGroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -161,12 +161,12 @@ export async function serializeAws_restJson1_1GetGroupCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -191,12 +191,12 @@ export async function serializeAws_restJson1_1GetGroupQueryCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -221,12 +221,12 @@ export async function serializeAws_restJson1_1GetTagsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -266,13 +266,13 @@ export async function serializeAws_restJson1_1ListGroupResourcesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -300,13 +300,13 @@ export async function serializeAws_restJson1_1ListGroupsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -333,12 +333,12 @@ export async function serializeAws_restJson1_1SearchResourcesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -368,12 +368,12 @@ export async function serializeAws_restJson1_1TagCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -406,12 +406,12 @@ export async function serializeAws_restJson1_1UntagCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -441,12 +441,12 @@ export async function serializeAws_restJson1_1UpdateGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -479,12 +479,12 @@ export async function serializeAws_restJson1_1UpdateGroupQueryCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-robomaker/protocols/Aws_restJson1_1.ts b/clients/client-robomaker/protocols/Aws_restJson1_1.ts index a34bf4185dca..db3339c4feaf 100644 --- a/clients/client-robomaker/protocols/Aws_restJson1_1.ts +++ b/clients/client-robomaker/protocols/Aws_restJson1_1.ts @@ -215,12 +215,12 @@ export async function serializeAws_restJson1_1BatchDescribeSimulationJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -238,12 +238,12 @@ export async function serializeAws_restJson1_1CancelDeploymentJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -261,12 +261,12 @@ export async function serializeAws_restJson1_1CancelSimulationJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -307,12 +307,12 @@ export async function serializeAws_restJson1_1CreateDeploymentJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -333,12 +333,12 @@ export async function serializeAws_restJson1_1CreateFleetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -365,12 +365,12 @@ export async function serializeAws_restJson1_1CreateRobotCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -405,12 +405,12 @@ export async function serializeAws_restJson1_1CreateRobotApplicationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -431,12 +431,12 @@ export async function serializeAws_restJson1_1CreateRobotApplicationVersionComma } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -485,12 +485,12 @@ export async function serializeAws_restJson1_1CreateSimulationApplicationCommand } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -511,12 +511,12 @@ export async function serializeAws_restJson1_1CreateSimulationApplicationVersion } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -589,12 +589,12 @@ export async function serializeAws_restJson1_1CreateSimulationJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -612,12 +612,12 @@ export async function serializeAws_restJson1_1DeleteFleetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -635,12 +635,12 @@ export async function serializeAws_restJson1_1DeleteRobotCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -661,12 +661,12 @@ export async function serializeAws_restJson1_1DeleteRobotApplicationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -687,12 +687,12 @@ export async function serializeAws_restJson1_1DeleteSimulationApplicationCommand } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -713,12 +713,12 @@ export async function serializeAws_restJson1_1DeregisterRobotCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -736,12 +736,12 @@ export async function serializeAws_restJson1_1DescribeDeploymentJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -759,12 +759,12 @@ export async function serializeAws_restJson1_1DescribeFleetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -782,12 +782,12 @@ export async function serializeAws_restJson1_1DescribeRobotCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -808,12 +808,12 @@ export async function serializeAws_restJson1_1DescribeRobotApplicationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -834,12 +834,12 @@ export async function serializeAws_restJson1_1DescribeSimulationApplicationComma } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -857,12 +857,12 @@ export async function serializeAws_restJson1_1DescribeSimulationJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -889,12 +889,12 @@ export async function serializeAws_restJson1_1ListDeploymentJobsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -921,12 +921,12 @@ export async function serializeAws_restJson1_1ListFleetsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -956,12 +956,12 @@ export async function serializeAws_restJson1_1ListRobotApplicationsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -988,12 +988,12 @@ export async function serializeAws_restJson1_1ListRobotsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1023,12 +1023,12 @@ export async function serializeAws_restJson1_1ListSimulationApplicationsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1055,12 +1055,12 @@ export async function serializeAws_restJson1_1ListSimulationJobsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1087,12 +1087,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1113,12 +1113,12 @@ export async function serializeAws_restJson1_1RegisterRobotCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1136,12 +1136,12 @@ export async function serializeAws_restJson1_1RestartSimulationJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1165,12 +1165,12 @@ export async function serializeAws_restJson1_1SyncDeploymentJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1202,12 +1202,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1238,13 +1238,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1279,12 +1279,12 @@ export async function serializeAws_restJson1_1UpdateRobotApplicationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1333,12 +1333,12 @@ export async function serializeAws_restJson1_1UpdateSimulationApplicationCommand } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } 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 1e9695628746..adc6a17ac01a 100644 --- a/clients/client-route-53-domains/protocols/Aws_json1_1.ts +++ b/clients/client-route-53-domains/protocols/Aws_json1_1.ts @@ -4217,11 +4217,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 b4b5ea787480..e39886706938 100644 --- a/clients/client-route-53/protocols/Aws_restXml.ts +++ b/clients/client-route-53/protocols/Aws_restXml.ts @@ -366,12 +366,12 @@ export async function serializeAws_restXmlAssociateVPCWithHostedZoneCommand( } body += bodyNode.toString(); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -412,12 +412,12 @@ export async function serializeAws_restXmlChangeResourceRecordSetsCommand( } body += bodyNode.toString(); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -479,12 +479,12 @@ export async function serializeAws_restXmlChangeTagsForResourceCommand( } body += bodyNode.toString(); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -517,12 +517,12 @@ export async function serializeAws_restXmlCreateHealthCheckCommand( } body += bodyNode.toString(); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -571,12 +571,12 @@ export async function serializeAws_restXmlCreateHostedZoneCommand( } body += bodyNode.toString(); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -608,12 +608,12 @@ export async function serializeAws_restXmlCreateQueryLoggingConfigCommand( } body += bodyNode.toString(); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -645,12 +645,12 @@ export async function serializeAws_restXmlCreateReusableDelegationSetCommand( } body += bodyNode.toString(); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -688,12 +688,12 @@ export async function serializeAws_restXmlCreateTrafficPolicyCommand( } body += bodyNode.toString(); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -743,12 +743,12 @@ export async function serializeAws_restXmlCreateTrafficPolicyInstanceCommand( } body += bodyNode.toString(); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -792,12 +792,12 @@ export async function serializeAws_restXmlCreateTrafficPolicyVersionCommand( } body += bodyNode.toString(); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -836,12 +836,12 @@ export async function serializeAws_restXmlCreateVPCAssociationAuthorizationComma } body += bodyNode.toString(); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -868,12 +868,12 @@ export async function serializeAws_restXmlDeleteHealthCheckCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -898,12 +898,12 @@ export async function serializeAws_restXmlDeleteHostedZoneCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -928,12 +928,12 @@ export async function serializeAws_restXmlDeleteQueryLoggingConfigCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -958,12 +958,12 @@ export async function serializeAws_restXmlDeleteReusableDelegationSetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1000,12 +1000,12 @@ export async function serializeAws_restXmlDeleteTrafficPolicyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1030,12 +1030,12 @@ export async function serializeAws_restXmlDeleteTrafficPolicyInstanceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1074,12 +1074,12 @@ export async function serializeAws_restXmlDeleteVPCAssociationAuthorizationComma } body += bodyNode.toString(); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1123,12 +1123,12 @@ export async function serializeAws_restXmlDisassociateVPCFromHostedZoneCommand( } body += bodyNode.toString(); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1153,12 +1153,12 @@ export async function serializeAws_restXmlGetAccountLimitCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1183,12 +1183,12 @@ export async function serializeAws_restXmlGetChangeCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1202,12 +1202,12 @@ export async function serializeAws_restXmlGetCheckerIpRangesCommand( let body: any; body = ""; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1230,13 +1230,13 @@ export async function serializeAws_restXmlGetGeoLocationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1263,12 +1263,12 @@ export async function serializeAws_restXmlGetHealthCheckCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1282,12 +1282,12 @@ export async function serializeAws_restXmlGetHealthCheckCountCommand( let body: any; body = ""; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1315,12 +1315,12 @@ export async function serializeAws_restXmlGetHealthCheckLastFailureReasonCommand } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1347,12 +1347,12 @@ export async function serializeAws_restXmlGetHealthCheckStatusCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1377,12 +1377,12 @@ export async function serializeAws_restXmlGetHostedZoneCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1396,12 +1396,12 @@ export async function serializeAws_restXmlGetHostedZoneCountCommand( let body: any; body = ""; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1440,12 +1440,12 @@ export async function serializeAws_restXmlGetHostedZoneLimitCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1470,12 +1470,12 @@ export async function serializeAws_restXmlGetQueryLoggingConfigCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1500,12 +1500,12 @@ export async function serializeAws_restXmlGetReusableDelegationSetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1545,12 +1545,12 @@ export async function serializeAws_restXmlGetReusableDelegationSetLimitCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1587,12 +1587,12 @@ export async function serializeAws_restXmlGetTrafficPolicyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1617,12 +1617,12 @@ export async function serializeAws_restXmlGetTrafficPolicyInstanceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1636,12 +1636,12 @@ export async function serializeAws_restXmlGetTrafficPolicyInstanceCountCommand( let body: any; body = ""; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1667,13 +1667,13 @@ export async function serializeAws_restXmlListGeoLocationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1693,13 +1693,13 @@ export async function serializeAws_restXmlListHealthChecksCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1722,13 +1722,13 @@ export async function serializeAws_restXmlListHostedZonesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1751,13 +1751,13 @@ export async function serializeAws_restXmlListHostedZonesByNameCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1780,13 +1780,13 @@ export async function serializeAws_restXmlListQueryLoggingConfigsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1826,13 +1826,13 @@ export async function serializeAws_restXmlListResourceRecordSetsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1852,13 +1852,13 @@ export async function serializeAws_restXmlListReusableDelegationSetsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1897,12 +1897,12 @@ export async function serializeAws_restXmlListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1947,12 +1947,12 @@ export async function serializeAws_restXmlListTagsForResourcesCommand( } body += bodyNode.toString(); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1972,13 +1972,13 @@ export async function serializeAws_restXmlListTrafficPoliciesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2004,13 +2004,13 @@ export async function serializeAws_restXmlListTrafficPolicyInstancesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2036,13 +2036,13 @@ export async function serializeAws_restXmlListTrafficPolicyInstancesByHostedZone } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2074,13 +2074,13 @@ export async function serializeAws_restXmlListTrafficPolicyInstancesByPolicyComm } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2112,13 +2112,13 @@ export async function serializeAws_restXmlListTrafficPolicyVersionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2153,13 +2153,13 @@ export async function serializeAws_restXmlListVPCAssociationAuthorizationsComman } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2191,13 +2191,13 @@ export async function serializeAws_restXmlTestDNSAnswerCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2343,12 +2343,12 @@ export async function serializeAws_restXmlUpdateHealthCheckCommand( } body += bodyNode.toString(); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2386,12 +2386,12 @@ export async function serializeAws_restXmlUpdateHostedZoneCommentCommand( } body += bodyNode.toString(); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2441,12 +2441,12 @@ export async function serializeAws_restXmlUpdateTrafficPolicyCommentCommand( } body += bodyNode.toString(); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2496,12 +2496,12 @@ export async function serializeAws_restXmlUpdateTrafficPolicyInstanceCommand( } body += bodyNode.toString(); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-route53resolver/protocols/Aws_json1_1.ts b/clients/client-route53resolver/protocols/Aws_json1_1.ts index 2abe57fcf2c2..873c4037e81a 100644 --- a/clients/client-route53resolver/protocols/Aws_json1_1.ts +++ b/clients/client-route53resolver/protocols/Aws_json1_1.ts @@ -4652,11 +4652,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 66167d280f5a..afe01cc1feb2 100644 --- a/clients/client-s3-control/protocols/Aws_restXml.ts +++ b/clients/client-s3-control/protocols/Aws_restXml.ts @@ -171,12 +171,12 @@ export async function serializeAws_restXmlCreateAccessPointCommand( } body += bodyNode.toString(); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -252,12 +252,12 @@ export async function serializeAws_restXmlCreateJobCommand( } body += bodyNode.toString(); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -285,12 +285,12 @@ export async function serializeAws_restXmlDeleteAccessPointCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -318,12 +318,12 @@ export async function serializeAws_restXmlDeleteAccessPointPolicyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -339,12 +339,12 @@ export async function serializeAws_restXmlDeletePublicAccessBlockCommand( let resolvedPath = "/v20180820/configuration/publicAccessBlock"; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -372,12 +372,12 @@ export async function serializeAws_restXmlDescribeJobCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -405,12 +405,12 @@ export async function serializeAws_restXmlGetAccessPointCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -438,12 +438,12 @@ export async function serializeAws_restXmlGetAccessPointPolicyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -471,12 +471,12 @@ export async function serializeAws_restXmlGetAccessPointPolicyStatusCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -492,12 +492,12 @@ export async function serializeAws_restXmlGetPublicAccessBlockCommand( let resolvedPath = "/v20180820/configuration/publicAccessBlock"; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -523,13 +523,13 @@ export async function serializeAws_restXmlListAccessPointsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -555,13 +555,13 @@ export async function serializeAws_restXmlListJobsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -602,12 +602,12 @@ export async function serializeAws_restXmlPutAccessPointPolicyCommand( } body += bodyNode.toString(); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -636,12 +636,12 @@ export async function serializeAws_restXmlPutPublicAccessBlockCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -673,13 +673,13 @@ export async function serializeAws_restXmlUpdateJobPriorityCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -714,13 +714,13 @@ export async function serializeAws_restXmlUpdateJobStatusCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-s3/.gitignore b/clients/client-s3/.gitignore index b41c05b597c4..924dd22d51a4 100644 --- a/clients/client-s3/.gitignore +++ b/clients/client-s3/.gitignore @@ -11,4 +11,5 @@ package-lock.json *.d.ts *.js +!jest.config.js *.js.map diff --git a/clients/client-s3/.npmignore b/clients/client-s3/.npmignore index b7ff81137c4a..a887e3da8ea9 100644 --- a/clients/client-s3/.npmignore +++ b/clients/client-s3/.npmignore @@ -2,3 +2,4 @@ /docs/ tsconfig.test.json *.tsbuildinfo +jest.config.js diff --git a/clients/client-s3/S3.spec.ts b/clients/client-s3/S3.spec.ts new file mode 100644 index 000000000000..fef019eb0bfb --- /dev/null +++ b/clients/client-s3/S3.spec.ts @@ -0,0 +1,26 @@ +import { S3 } from "./S3"; +import { SerializeMiddleware } from "@aws-sdk/types"; +import { HttpRequest } from "@aws-sdk/protocol-http"; + +describe("endpoint", () => { + it("users can override endpoint from client.", async () => { + //use s3 here but all the clients are generated similarly + const endpointValidator: SerializeMiddleware = next => args => { + // middleware intercept the request and return it early + const request = args.request as HttpRequest; + 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"); + return Promise.resolve({ output: {} as any, response: {} as any }); + }; + const client = new S3({ endpoint: "http://localhost:8080/path?foo=bar" }); + client.middlewareStack.add(endpointValidator, { + step: "serialize", + name: "endpointValidator", + priority: "low" + }); + await client.putObject({ Bucket: "bucket", Key: "key", Body: "body" }); + }); +}); diff --git a/clients/client-s3/jest.config.js b/clients/client-s3/jest.config.js new file mode 100644 index 000000000000..1878f9eddd4e --- /dev/null +++ b/clients/client-s3/jest.config.js @@ -0,0 +1,13 @@ +const base = require("../../jest.config.base.js"); + +module.exports = { + ...base, + // Only test cjs dist, avoid testing the package twice + testPathIgnorePatterns: ["/node_modules/", "/es/"], + coveragePathIgnorePatterns: [ + "/node_modules/", + "/commands/", + "/protocols/", // protocols tested in protocol protocol_tests folder + "endpoints" // endpoint tested in tests/functional/endpoints + ] +}; diff --git a/clients/client-s3/package.json b/clients/client-s3/package.json index 2b3093a01762..0b39a9ba1c31 100644 --- a/clients/client-s3/package.json +++ b/clients/client-s3/package.json @@ -12,7 +12,7 @@ "remove-documentation": "rimraf ./docs", "remove-js": "rimraf *.js && rimraf ./commands/*.js && rimraf ./models/*.js && rimraf ./protocols/*.js", "remove-maps": "rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./models/*.js.map && rimraf ./protocols/*.js.map", - "test": "exit 0", + "test": "jest --passWithNoTests", "smoke-test": "npm run pretest && node ./test/smoke/index.spec.js", "build:es": "tsc -p tsconfig.es.json", "build": "yarn pretest && yarn build:es" diff --git a/clients/client-s3/protocols/Aws_restXml.ts b/clients/client-s3/protocols/Aws_restXml.ts index 26350763812c..41692bd9d032 100644 --- a/clients/client-s3/protocols/Aws_restXml.ts +++ b/clients/client-s3/protocols/Aws_restXml.ts @@ -530,13 +530,13 @@ export async function serializeAws_restXmlAbortMultipartUploadCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -593,13 +593,13 @@ export async function serializeAws_restXmlCompleteMultipartUploadCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -769,13 +769,13 @@ export async function serializeAws_restXmlCopyObjectCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -833,12 +833,12 @@ export async function serializeAws_restXmlCreateBucketCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -968,13 +968,13 @@ export async function serializeAws_restXmlCreateMultipartUploadCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -999,12 +999,12 @@ export async function serializeAws_restXmlDeleteBucketCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1035,13 +1035,13 @@ export async function serializeAws_restXmlDeleteBucketAnalyticsConfigurationComm } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1069,13 +1069,13 @@ export async function serializeAws_restXmlDeleteBucketCorsCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1103,13 +1103,13 @@ export async function serializeAws_restXmlDeleteBucketEncryptionCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1140,13 +1140,13 @@ export async function serializeAws_restXmlDeleteBucketInventoryConfigurationComm } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1174,13 +1174,13 @@ export async function serializeAws_restXmlDeleteBucketLifecycleCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1211,13 +1211,13 @@ export async function serializeAws_restXmlDeleteBucketMetricsConfigurationComman } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1245,13 +1245,13 @@ export async function serializeAws_restXmlDeleteBucketPolicyCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1279,13 +1279,13 @@ export async function serializeAws_restXmlDeleteBucketReplicationCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1313,13 +1313,13 @@ export async function serializeAws_restXmlDeleteBucketTaggingCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1347,13 +1347,13 @@ export async function serializeAws_restXmlDeleteBucketWebsiteCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1410,13 +1410,13 @@ export async function serializeAws_restXmlDeleteObjectCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1462,13 +1462,13 @@ export async function serializeAws_restXmlDeleteObjectTaggingCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1514,13 +1514,13 @@ export async function serializeAws_restXmlDeleteObjectsCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1548,13 +1548,13 @@ export async function serializeAws_restXmlDeletePublicAccessBlockCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1582,13 +1582,13 @@ export async function serializeAws_restXmlGetBucketAccelerateConfigurationComman }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1616,13 +1616,13 @@ export async function serializeAws_restXmlGetBucketAclCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1654,13 +1654,13 @@ export async function serializeAws_restXmlGetBucketAnalyticsConfigurationCommand } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1688,13 +1688,13 @@ export async function serializeAws_restXmlGetBucketCorsCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1722,13 +1722,13 @@ export async function serializeAws_restXmlGetBucketEncryptionCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1760,13 +1760,13 @@ export async function serializeAws_restXmlGetBucketInventoryConfigurationCommand } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1794,13 +1794,13 @@ export async function serializeAws_restXmlGetBucketLifecycleConfigurationCommand }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1828,13 +1828,13 @@ export async function serializeAws_restXmlGetBucketLocationCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1862,13 +1862,13 @@ export async function serializeAws_restXmlGetBucketLoggingCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1900,13 +1900,13 @@ export async function serializeAws_restXmlGetBucketMetricsConfigurationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1934,13 +1934,13 @@ export async function serializeAws_restXmlGetBucketNotificationConfigurationComm }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1968,13 +1968,13 @@ export async function serializeAws_restXmlGetBucketPolicyCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2002,13 +2002,13 @@ export async function serializeAws_restXmlGetBucketPolicyStatusCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2036,13 +2036,13 @@ export async function serializeAws_restXmlGetBucketReplicationCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2070,13 +2070,13 @@ export async function serializeAws_restXmlGetBucketRequestPaymentCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2104,13 +2104,13 @@ export async function serializeAws_restXmlGetBucketTaggingCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2138,13 +2138,13 @@ export async function serializeAws_restXmlGetBucketVersioningCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2172,13 +2172,13 @@ export async function serializeAws_restXmlGetBucketWebsiteCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2284,13 +2284,13 @@ export async function serializeAws_restXmlGetObjectCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2339,13 +2339,13 @@ export async function serializeAws_restXmlGetObjectAclCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2394,13 +2394,13 @@ export async function serializeAws_restXmlGetObjectLegalHoldCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2428,13 +2428,13 @@ export async function serializeAws_restXmlGetObjectLockConfigurationCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2483,13 +2483,13 @@ export async function serializeAws_restXmlGetObjectRetentionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2535,13 +2535,13 @@ export async function serializeAws_restXmlGetObjectTaggingCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2587,13 +2587,13 @@ export async function serializeAws_restXmlGetObjectTorrentCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2621,13 +2621,13 @@ export async function serializeAws_restXmlGetPublicAccessBlockCommand( }; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2652,12 +2652,12 @@ export async function serializeAws_restXmlHeadBucketCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "HEAD", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2741,13 +2741,13 @@ export async function serializeAws_restXmlHeadObjectCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "HEAD", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2779,13 +2779,13 @@ export async function serializeAws_restXmlListBucketAnalyticsConfigurationsComma } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2817,13 +2817,13 @@ export async function serializeAws_restXmlListBucketInventoryConfigurationsComma } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2855,13 +2855,13 @@ export async function serializeAws_restXmlListBucketMetricsConfigurationsCommand } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2875,12 +2875,12 @@ export async function serializeAws_restXmlListBucketsCommand( let body: any; body = ""; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -2926,13 +2926,13 @@ export async function serializeAws_restXmlListMultipartUploadsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -2978,13 +2978,13 @@ export async function serializeAws_restXmlListObjectVersionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3028,13 +3028,13 @@ export async function serializeAws_restXmlListObjectsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3086,13 +3086,13 @@ export async function serializeAws_restXmlListObjectsV2Command( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3147,13 +3147,13 @@ export async function serializeAws_restXmlListPartsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3191,13 +3191,13 @@ export async function serializeAws_restXmlPutBucketAccelerateConfigurationComman body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3256,13 +3256,13 @@ export async function serializeAws_restXmlPutBucketAclCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3303,13 +3303,13 @@ export async function serializeAws_restXmlPutBucketAnalyticsConfigurationCommand body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3350,13 +3350,13 @@ export async function serializeAws_restXmlPutBucketCorsCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3397,13 +3397,13 @@ export async function serializeAws_restXmlPutBucketEncryptionCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3444,13 +3444,13 @@ export async function serializeAws_restXmlPutBucketInventoryConfigurationCommand body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3488,13 +3488,13 @@ export async function serializeAws_restXmlPutBucketLifecycleConfigurationCommand body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3535,13 +3535,13 @@ export async function serializeAws_restXmlPutBucketLoggingCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3582,13 +3582,13 @@ export async function serializeAws_restXmlPutBucketMetricsConfigurationCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3626,13 +3626,13 @@ export async function serializeAws_restXmlPutBucketNotificationConfigurationComm body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3678,13 +3678,13 @@ export async function serializeAws_restXmlPutBucketPolicyCommand( } body += bodyNode.toString(); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3728,13 +3728,13 @@ export async function serializeAws_restXmlPutBucketReplicationCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3775,13 +3775,13 @@ export async function serializeAws_restXmlPutBucketRequestPaymentCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3819,13 +3819,13 @@ export async function serializeAws_restXmlPutBucketTaggingCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3869,13 +3869,13 @@ export async function serializeAws_restXmlPutBucketVersioningCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -3916,13 +3916,13 @@ export async function serializeAws_restXmlPutBucketWebsiteCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4063,13 +4063,13 @@ export async function serializeAws_restXmlPutObjectCommand( body = contents; } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4149,13 +4149,13 @@ export async function serializeAws_restXmlPutObjectAclCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4217,13 +4217,13 @@ export async function serializeAws_restXmlPutObjectLegalHoldCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4270,13 +4270,13 @@ export async function serializeAws_restXmlPutObjectLockConfigurationCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4343,13 +4343,13 @@ export async function serializeAws_restXmlPutObjectRetentionCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4405,13 +4405,13 @@ export async function serializeAws_restXmlPutObjectTaggingCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4452,13 +4452,13 @@ export async function serializeAws_restXmlPutPublicAccessBlockCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4517,13 +4517,13 @@ export async function serializeAws_restXmlRestoreObjectCommand( body += contents.toString(); } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4626,13 +4626,13 @@ export async function serializeAws_restXmlSelectObjectContentCommand( } body += bodyNode.toString(); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4710,13 +4710,13 @@ export async function serializeAws_restXmlUploadPartCommand( body = contents; } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -4820,13 +4820,13 @@ export async function serializeAws_restXmlUploadPartCopyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } 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 e0017359ba45..1fb0b42e5db1 100644 --- a/clients/client-sagemaker-a2i-runtime/protocols/Aws_restJson1_1.ts +++ b/clients/client-sagemaker-a2i-runtime/protocols/Aws_restJson1_1.ts @@ -70,12 +70,12 @@ export async function serializeAws_restJson1_1DeleteHumanLoopCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -102,12 +102,12 @@ export async function serializeAws_restJson1_1DescribeHumanLoopCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -140,13 +140,13 @@ export async function serializeAws_restJson1_1ListHumanLoopsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -183,12 +183,12 @@ export async function serializeAws_restJson1_1StartHumanLoopCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -206,12 +206,12 @@ export async function serializeAws_restJson1_1StopHumanLoopCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-sagemaker-runtime/protocols/Aws_restJson1_1.ts b/clients/client-sagemaker-runtime/protocols/Aws_restJson1_1.ts index 8a04f55af957..4cdaf6e095a0 100644 --- a/clients/client-sagemaker-runtime/protocols/Aws_restJson1_1.ts +++ b/clients/client-sagemaker-runtime/protocols/Aws_restJson1_1.ts @@ -61,12 +61,12 @@ export async function serializeAws_restJson1_1InvokeEndpointCommand( body = input.Body; } return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-sagemaker/protocols/Aws_json1_1.ts b/clients/client-sagemaker/protocols/Aws_json1_1.ts index 8b9014609507..17d4d36e72fb 100644 --- a/clients/client-sagemaker/protocols/Aws_json1_1.ts +++ b/clients/client-sagemaker/protocols/Aws_json1_1.ts @@ -28828,11 +28828,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 97c69e98281b..caa9f7e5e636 100644 --- a/clients/client-savingsplans/protocols/Aws_restJson1_1.ts +++ b/clients/client-savingsplans/protocols/Aws_restJson1_1.ts @@ -144,12 +144,12 @@ export async function serializeAws_restJson1_1DescribeSavingsPlansOfferingRatesC } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -241,12 +241,12 @@ export async function serializeAws_restJson1_1DescribeSavingsPlansOfferingsComma } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -279,12 +279,12 @@ export async function serializeAws_restJson1_1CreateSavingsPlanCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -314,12 +314,12 @@ export async function serializeAws_restJson1_1DescribeSavingsPlanRatesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -364,12 +364,12 @@ export async function serializeAws_restJson1_1DescribeSavingsPlansCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -387,12 +387,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -413,12 +413,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -442,12 +442,12 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-schemas/protocols/Aws_restJson1_1.ts b/clients/client-schemas/protocols/Aws_restJson1_1.ts index c2cabbde3a60..bc6fc7006ad3 100644 --- a/clients/client-schemas/protocols/Aws_restJson1_1.ts +++ b/clients/client-schemas/protocols/Aws_restJson1_1.ts @@ -167,12 +167,12 @@ export async function serializeAws_restJson1_1CreateDiscovererCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -207,12 +207,12 @@ export async function serializeAws_restJson1_1CreateRegistryCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -266,12 +266,12 @@ export async function serializeAws_restJson1_1CreateSchemaCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -298,12 +298,12 @@ export async function serializeAws_restJson1_1DeleteDiscovererCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -330,12 +330,12 @@ export async function serializeAws_restJson1_1DeleteRegistryCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -375,12 +375,12 @@ export async function serializeAws_restJson1_1DeleteSchemaCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -434,12 +434,12 @@ export async function serializeAws_restJson1_1DeleteSchemaVersionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -495,13 +495,13 @@ export async function serializeAws_restJson1_1DescribeCodeBindingCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -528,12 +528,12 @@ export async function serializeAws_restJson1_1DescribeDiscovererCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -560,12 +560,12 @@ export async function serializeAws_restJson1_1DescribeRegistryCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -609,13 +609,13 @@ export async function serializeAws_restJson1_1DescribeSchemaCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -671,13 +671,13 @@ export async function serializeAws_restJson1_1GetCodeBindingSourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -703,12 +703,12 @@ export async function serializeAws_restJson1_1GetDiscoveredSchemaCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -734,13 +734,13 @@ export async function serializeAws_restJson1_1ListDiscoverersCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -766,13 +766,13 @@ export async function serializeAws_restJson1_1ListRegistriesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -819,13 +819,13 @@ export async function serializeAws_restJson1_1ListSchemaVersionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -862,13 +862,13 @@ export async function serializeAws_restJson1_1ListSchemasCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -895,12 +895,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -921,12 +921,12 @@ export async function serializeAws_restJson1_1LockServiceLinkedRoleCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -982,13 +982,13 @@ export async function serializeAws_restJson1_1PutCodeBindingCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1025,13 +1025,13 @@ export async function serializeAws_restJson1_1SearchSchemasCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1058,12 +1058,12 @@ export async function serializeAws_restJson1_1StartDiscovererCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1090,12 +1090,12 @@ export async function serializeAws_restJson1_1StopDiscovererCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1127,12 +1127,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1150,12 +1150,12 @@ export async function serializeAws_restJson1_1UnlockServiceLinkedRoleCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1186,13 +1186,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1224,12 +1224,12 @@ export async function serializeAws_restJson1_1UpdateDiscovererCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1261,12 +1261,12 @@ export async function serializeAws_restJson1_1UpdateRegistryCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1323,12 +1323,12 @@ export async function serializeAws_restJson1_1UpdateSchemaCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-secrets-manager/protocols/Aws_json1_1.ts b/clients/client-secrets-manager/protocols/Aws_json1_1.ts index ccd793e32545..0015cf52e03b 100644 --- a/clients/client-secrets-manager/protocols/Aws_json1_1.ts +++ b/clients/client-secrets-manager/protocols/Aws_json1_1.ts @@ -3572,11 +3572,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 c7c81cb5288d..0de13b2bb4e9 100644 --- a/clients/client-securityhub/protocols/Aws_restJson1_1.ts +++ b/clients/client-securityhub/protocols/Aws_restJson1_1.ts @@ -259,12 +259,12 @@ export async function serializeAws_restJson1_1AcceptInvitationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -287,12 +287,12 @@ export async function serializeAws_restJson1_1BatchDisableStandardsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -315,12 +315,12 @@ export async function serializeAws_restJson1_1BatchEnableStandardsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -341,12 +341,12 @@ export async function serializeAws_restJson1_1BatchImportFindingsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -370,12 +370,12 @@ export async function serializeAws_restJson1_1CreateActionTargetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -402,12 +402,12 @@ export async function serializeAws_restJson1_1CreateInsightCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -428,12 +428,12 @@ export async function serializeAws_restJson1_1CreateMembersCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -454,12 +454,12 @@ export async function serializeAws_restJson1_1DeclineInvitationsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -489,12 +489,12 @@ export async function serializeAws_restJson1_1DeleteActionTargetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -522,12 +522,12 @@ export async function serializeAws_restJson1_1DeleteInsightCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -548,12 +548,12 @@ export async function serializeAws_restJson1_1DeleteInvitationsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -574,12 +574,12 @@ export async function serializeAws_restJson1_1DeleteMembersCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -606,12 +606,12 @@ export async function serializeAws_restJson1_1DescribeActionTargetsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -628,13 +628,13 @@ export async function serializeAws_restJson1_1DescribeHubCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -654,13 +654,13 @@ export async function serializeAws_restJson1_1DescribeProductsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -699,13 +699,13 @@ export async function serializeAws_restJson1_1DescribeStandardsControlsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -737,12 +737,12 @@ export async function serializeAws_restJson1_1DisableImportFindingsForProductCom } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -756,12 +756,12 @@ export async function serializeAws_restJson1_1DisableSecurityHubCommand( let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -775,12 +775,12 @@ export async function serializeAws_restJson1_1DisassociateFromMasterAccountComma let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -801,12 +801,12 @@ export async function serializeAws_restJson1_1DisassociateMembersCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -824,12 +824,12 @@ export async function serializeAws_restJson1_1EnableImportFindingsForProductComm } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -847,12 +847,12 @@ export async function serializeAws_restJson1_1EnableSecurityHubCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -881,12 +881,12 @@ export async function serializeAws_restJson1_1GetEnabledStandardsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -919,12 +919,12 @@ export async function serializeAws_restJson1_1GetFindingsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -952,12 +952,12 @@ export async function serializeAws_restJson1_1GetInsightResultsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -984,12 +984,12 @@ export async function serializeAws_restJson1_1GetInsightsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1003,12 +1003,12 @@ export async function serializeAws_restJson1_1GetInvitationsCountCommand( let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1022,12 +1022,12 @@ export async function serializeAws_restJson1_1GetMasterAccountCommand( let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1048,12 +1048,12 @@ export async function serializeAws_restJson1_1GetMembersCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1074,12 +1074,12 @@ export async function serializeAws_restJson1_1InviteMembersCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1099,13 +1099,13 @@ export async function serializeAws_restJson1_1ListEnabledProductsForImportComman } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1125,13 +1125,13 @@ export async function serializeAws_restJson1_1ListInvitationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1154,13 +1154,13 @@ export async function serializeAws_restJson1_1ListMembersCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1187,12 +1187,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1224,12 +1224,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1260,13 +1260,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1304,12 +1304,12 @@ export async function serializeAws_restJson1_1UpdateActionTargetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1339,12 +1339,12 @@ export async function serializeAws_restJson1_1UpdateFindingsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1386,12 +1386,12 @@ export async function serializeAws_restJson1_1UpdateInsightCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1431,12 +1431,12 @@ export async function serializeAws_restJson1_1UpdateStandardsControlCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-serverlessapplicationrepository/protocols/Aws_restJson1_1.ts b/clients/client-serverlessapplicationrepository/protocols/Aws_restJson1_1.ts index 6936b134895b..161dd53e9bae 100644 --- a/clients/client-serverlessapplicationrepository/protocols/Aws_restJson1_1.ts +++ b/clients/client-serverlessapplicationrepository/protocols/Aws_restJson1_1.ts @@ -143,12 +143,12 @@ export async function serializeAws_restJson1_1CreateApplicationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -203,12 +203,12 @@ export async function serializeAws_restJson1_1CreateApplicationVersionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -295,12 +295,12 @@ export async function serializeAws_restJson1_1CreateCloudFormationChangeSetComma } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -332,12 +332,12 @@ export async function serializeAws_restJson1_1CreateCloudFormationTemplateComman } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -364,12 +364,12 @@ export async function serializeAws_restJson1_1DeleteApplicationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -400,13 +400,13 @@ export async function serializeAws_restJson1_1GetApplicationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -433,12 +433,12 @@ export async function serializeAws_restJson1_1GetApplicationPolicyCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -477,12 +477,12 @@ export async function serializeAws_restJson1_1GetCloudFormationTemplateCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -519,13 +519,13 @@ export async function serializeAws_restJson1_1ListApplicationDependenciesCommand } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -559,13 +559,13 @@ export async function serializeAws_restJson1_1ListApplicationVersionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -585,13 +585,13 @@ export async function serializeAws_restJson1_1ListApplicationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -628,12 +628,12 @@ export async function serializeAws_restJson1_1PutApplicationPolicyCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -683,12 +683,12 @@ export async function serializeAws_restJson1_1UpdateApplicationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-service-catalog/protocols/Aws_json1_1.ts b/clients/client-service-catalog/protocols/Aws_json1_1.ts index 48b8f997f2fa..e70a3e4e277f 100644 --- a/clients/client-service-catalog/protocols/Aws_json1_1.ts +++ b/clients/client-service-catalog/protocols/Aws_json1_1.ts @@ -14342,11 +14342,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 ea5892f9eac7..8d000a335cdb 100644 --- a/clients/client-service-quotas/protocols/Aws_json1_1.ts +++ b/clients/client-service-quotas/protocols/Aws_json1_1.ts @@ -3843,11 +3843,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 c2c8d6adf26e..b1b692b9c823 100644 --- a/clients/client-servicediscovery/protocols/Aws_json1_1.ts +++ b/clients/client-servicediscovery/protocols/Aws_json1_1.ts @@ -4050,11 +4050,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 704a8238c6bc..fd02d5f13ec4 100644 --- a/clients/client-ses/protocols/Aws_query.ts +++ b/clients/client-ses/protocols/Aws_query.ts @@ -12515,11 +12515,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 08bfc2184b10..009117d74912 100644 --- a/clients/client-sesv2/protocols/Aws_restJson1_1.ts +++ b/clients/client-sesv2/protocols/Aws_restJson1_1.ts @@ -315,12 +315,12 @@ export async function serializeAws_restJson1_1CreateConfigurationSetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -363,12 +363,12 @@ export async function serializeAws_restJson1_1CreateConfigurationSetEventDestina } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -389,12 +389,12 @@ export async function serializeAws_restJson1_1CreateDedicatedIpPoolCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -424,12 +424,12 @@ export async function serializeAws_restJson1_1CreateDeliverabilityTestReportComm } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -458,12 +458,12 @@ export async function serializeAws_restJson1_1CreateEmailIdentityCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -492,12 +492,12 @@ export async function serializeAws_restJson1_1DeleteConfigurationSetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -543,12 +543,12 @@ export async function serializeAws_restJson1_1DeleteConfigurationSetEventDestina } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -573,12 +573,12 @@ export async function serializeAws_restJson1_1DeleteDedicatedIpPoolCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -605,12 +605,12 @@ export async function serializeAws_restJson1_1DeleteEmailIdentityCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -637,12 +637,12 @@ export async function serializeAws_restJson1_1DeleteSuppressedDestinationCommand } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -656,12 +656,12 @@ export async function serializeAws_restJson1_1GetAccountCommand( let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -680,13 +680,13 @@ export async function serializeAws_restJson1_1GetBlacklistReportsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -715,12 +715,12 @@ export async function serializeAws_restJson1_1GetConfigurationSetCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -750,12 +750,12 @@ export async function serializeAws_restJson1_1GetConfigurationSetEventDestinatio } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -780,12 +780,12 @@ export async function serializeAws_restJson1_1GetDedicatedIpCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -808,13 +808,13 @@ export async function serializeAws_restJson1_1GetDedicatedIpsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -828,12 +828,12 @@ export async function serializeAws_restJson1_1GetDeliverabilityDashboardOptionsC let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -859,12 +859,12 @@ export async function serializeAws_restJson1_1GetDeliverabilityTestReportCommand } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -890,12 +890,12 @@ export async function serializeAws_restJson1_1GetDomainDeliverabilityCampaignCom } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -932,13 +932,13 @@ export async function serializeAws_restJson1_1GetDomainStatisticsReportCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -965,12 +965,12 @@ export async function serializeAws_restJson1_1GetEmailIdentityCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -997,12 +997,12 @@ export async function serializeAws_restJson1_1GetSuppressedDestinationCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1022,13 +1022,13 @@ export async function serializeAws_restJson1_1ListConfigurationSetsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1048,13 +1048,13 @@ export async function serializeAws_restJson1_1ListDedicatedIpPoolsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1074,13 +1074,13 @@ export async function serializeAws_restJson1_1ListDeliverabilityTestReportsComma } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1127,13 +1127,13 @@ export async function serializeAws_restJson1_1ListDomainDeliverabilityCampaignsC } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1153,13 +1153,13 @@ export async function serializeAws_restJson1_1ListEmailIdentitiesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1192,13 +1192,13 @@ export async function serializeAws_restJson1_1ListSuppressedDestinationsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1215,13 +1215,13 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1239,12 +1239,12 @@ export async function serializeAws_restJson1_1PutAccountDedicatedIpWarmupAttribu } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1262,12 +1262,12 @@ export async function serializeAws_restJson1_1PutAccountSendingAttributesCommand } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1290,12 +1290,12 @@ export async function serializeAws_restJson1_1PutAccountSuppressionAttributesCom } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1333,12 +1333,12 @@ export async function serializeAws_restJson1_1PutConfigurationSetDeliveryOptions } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1373,12 +1373,12 @@ export async function serializeAws_restJson1_1PutConfigurationSetReputationOptio } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1413,12 +1413,12 @@ export async function serializeAws_restJson1_1PutConfigurationSetSendingOptionsC } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1458,12 +1458,12 @@ export async function serializeAws_restJson1_1PutConfigurationSetSuppressionOpti } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1498,12 +1498,12 @@ export async function serializeAws_restJson1_1PutConfigurationSetTrackingOptions } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1533,12 +1533,12 @@ export async function serializeAws_restJson1_1PutDedicatedIpInPoolCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1568,12 +1568,12 @@ export async function serializeAws_restJson1_1PutDedicatedIpWarmupAttributesComm } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1599,12 +1599,12 @@ export async function serializeAws_restJson1_1PutDeliverabilityDashboardOptionCo } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1636,12 +1636,12 @@ export async function serializeAws_restJson1_1PutEmailIdentityDkimAttributesComm } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1681,12 +1681,12 @@ export async function serializeAws_restJson1_1PutEmailIdentityDkimSigningAttribu } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1718,12 +1718,12 @@ export async function serializeAws_restJson1_1PutEmailIdentityFeedbackAttributes } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1758,12 +1758,12 @@ export async function serializeAws_restJson1_1PutEmailIdentityMailFromAttributes } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1784,12 +1784,12 @@ export async function serializeAws_restJson1_1PutSuppressedDestinationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1838,12 +1838,12 @@ export async function serializeAws_restJson1_1SendEmailCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1864,12 +1864,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1889,13 +1889,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1951,12 +1951,12 @@ export async function serializeAws_restJson1_1UpdateConfigurationSetEventDestina } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-sfn/protocols/Aws_json1_0.ts b/clients/client-sfn/protocols/Aws_json1_0.ts index c62c72952364..95eed09039d1 100644 --- a/clients/client-sfn/protocols/Aws_json1_0.ts +++ b/clients/client-sfn/protocols/Aws_json1_0.ts @@ -5075,11 +5075,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 f0b2206b8f2a..4d704cfc7988 100644 --- a/clients/client-shield/protocols/Aws_json1_1.ts +++ b/clients/client-shield/protocols/Aws_json1_1.ts @@ -3478,11 +3478,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 5c9d555eff62..02467f4a54ea 100644 --- a/clients/client-signer/protocols/Aws_restJson1_1.ts +++ b/clients/client-signer/protocols/Aws_restJson1_1.ts @@ -113,12 +113,12 @@ export async function serializeAws_restJson1_1CancelSigningProfileCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -143,12 +143,12 @@ export async function serializeAws_restJson1_1DescribeSigningJobCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -173,12 +173,12 @@ export async function serializeAws_restJson1_1GetSigningPlatformCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -205,12 +205,12 @@ export async function serializeAws_restJson1_1GetSigningProfileCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -239,13 +239,13 @@ export async function serializeAws_restJson1_1ListSigningJobsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -274,13 +274,13 @@ export async function serializeAws_restJson1_1ListSigningPlatformsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -303,13 +303,13 @@ export async function serializeAws_restJson1_1ListSigningProfilesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -336,12 +336,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -394,12 +394,12 @@ export async function serializeAws_restJson1_1PutSigningProfileCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -435,12 +435,12 @@ export async function serializeAws_restJson1_1StartSigningJobCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -472,12 +472,12 @@ export async function serializeAws_restJson1_1TagResourceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -508,13 +508,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-sms/protocols/Aws_json1_1.ts b/clients/client-sms/protocols/Aws_json1_1.ts index e77ecbab42a7..5fa0520493e8 100644 --- a/clients/client-sms/protocols/Aws_json1_1.ts +++ b/clients/client-sms/protocols/Aws_json1_1.ts @@ -5990,11 +5990,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 288517bd8b5f..0854d85ae0eb 100644 --- a/clients/client-snowball/protocols/Aws_json1_1.ts +++ b/clients/client-snowball/protocols/Aws_json1_1.ts @@ -3741,11 +3741,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 54df1a28298c..353f1efd6600 100644 --- a/clients/client-sns/protocols/Aws_query.ts +++ b/clients/client-sns/protocols/Aws_query.ts @@ -6533,11 +6533,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 d5b637df5954..5042f646eb76 100644 --- a/clients/client-sqs/protocols/Aws_query.ts +++ b/clients/client-sqs/protocols/Aws_query.ts @@ -3746,11 +3746,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 3b6c342b981b..b0e1469e4dc7 100644 --- a/clients/client-ssm/protocols/Aws_json1_1.ts +++ b/clients/client-ssm/protocols/Aws_json1_1.ts @@ -30973,11 +30973,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 32298eb7d85c..b7179c755909 100644 --- a/clients/client-sso-oidc/protocols/Aws_restJson1_1.ts +++ b/clients/client-sso-oidc/protocols/Aws_restJson1_1.ts @@ -71,12 +71,12 @@ export async function serializeAws_restJson1_1CreateTokenCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -103,12 +103,12 @@ export async function serializeAws_restJson1_1RegisterClientCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -132,12 +132,12 @@ export async function serializeAws_restJson1_1StartDeviceAuthorizationCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-sso/protocols/Aws_restJson1_1.ts b/clients/client-sso/protocols/Aws_restJson1_1.ts index 116cd49b57ea..6afbfaec47d0 100644 --- a/clients/client-sso/protocols/Aws_restJson1_1.ts +++ b/clients/client-sso/protocols/Aws_restJson1_1.ts @@ -57,13 +57,13 @@ export async function serializeAws_restJson1_1GetRoleCredentialsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -89,13 +89,13 @@ export async function serializeAws_restJson1_1ListAccountRolesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -118,13 +118,13 @@ export async function serializeAws_restJson1_1ListAccountsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -140,12 +140,12 @@ export async function serializeAws_restJson1_1LogoutCommand( let resolvedPath = "/logout"; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-storage-gateway/protocols/Aws_json1_1.ts b/clients/client-storage-gateway/protocols/Aws_json1_1.ts index 601f775c5a92..ce6f5d285697 100644 --- a/clients/client-storage-gateway/protocols/Aws_json1_1.ts +++ b/clients/client-storage-gateway/protocols/Aws_json1_1.ts @@ -11396,11 +11396,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 75f108b7edf5..7b73606c1ccb 100644 --- a/clients/client-sts/protocols/Aws_query.ts +++ b/clients/client-sts/protocols/Aws_query.ts @@ -1799,11 +1799,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 0da2d2327f1d..dd59e6a3c30a 100644 --- a/clients/client-support/protocols/Aws_json1_1.ts +++ b/clients/client-support/protocols/Aws_json1_1.ts @@ -2865,11 +2865,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 974e068cadc3..967aa958a3cb 100644 --- a/clients/client-swf/protocols/Aws_json1_0.ts +++ b/clients/client-swf/protocols/Aws_json1_0.ts @@ -8708,11 +8708,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 111ed2492eb0..5cdc7360359e 100644 --- a/clients/client-textract/protocols/Aws_json1_1.ts +++ b/clients/client-textract/protocols/Aws_json1_1.ts @@ -2316,11 +2316,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 b87c00f62c31..c1361ae0531a 100644 --- a/clients/client-transcribe-streaming/protocols/Aws_restJson1_1.ts +++ b/clients/client-transcribe-streaming/protocols/Aws_restJson1_1.ts @@ -65,12 +65,12 @@ export async function serializeAws_restJson1_1StartStreamTranscriptionCommand( } body = JSON.stringify(body); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-transcribe/protocols/Aws_json1_1.ts b/clients/client-transcribe/protocols/Aws_json1_1.ts index 71d89e340155..b295aa1fdd09 100644 --- a/clients/client-transcribe/protocols/Aws_json1_1.ts +++ b/clients/client-transcribe/protocols/Aws_json1_1.ts @@ -2769,11 +2769,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 77070e72e788..6f17d3246b01 100644 --- a/clients/client-transfer/protocols/Aws_json1_1.ts +++ b/clients/client-transfer/protocols/Aws_json1_1.ts @@ -3517,11 +3517,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 9af16f9c04b3..54d7234b912c 100644 --- a/clients/client-translate/protocols/Aws_json1_1.ts +++ b/clients/client-translate/protocols/Aws_json1_1.ts @@ -2319,11 +2319,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 b248b2e2d4c1..ba461689a29a 100644 --- a/clients/client-waf-regional/protocols/Aws_json1_1.ts +++ b/clients/client-waf-regional/protocols/Aws_json1_1.ts @@ -15216,11 +15216,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 17ac894404b5..b6ab34906e6b 100644 --- a/clients/client-waf/protocols/Aws_json1_1.ts +++ b/clients/client-waf/protocols/Aws_json1_1.ts @@ -14578,11 +14578,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 09c79dfbd8aa..1253244aed6b 100644 --- a/clients/client-wafv2/protocols/Aws_json1_1.ts +++ b/clients/client-wafv2/protocols/Aws_json1_1.ts @@ -8464,11 +8464,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 d3ffe35cd129..5b71e274d5dc 100644 --- a/clients/client-workdocs/protocols/Aws_restJson1_1.ts +++ b/clients/client-workdocs/protocols/Aws_restJson1_1.ts @@ -262,12 +262,12 @@ export async function serializeAws_restJson1_1AbortDocumentVersionUploadCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -295,12 +295,12 @@ export async function serializeAws_restJson1_1ActivateUserCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -344,12 +344,12 @@ export async function serializeAws_restJson1_1AddResourcePermissionsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -407,12 +407,12 @@ export async function serializeAws_restJson1_1CreateCommentCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -452,13 +452,13 @@ export async function serializeAws_restJson1_1CreateCustomMetadataCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -482,12 +482,12 @@ export async function serializeAws_restJson1_1CreateFolderCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -523,12 +523,12 @@ export async function serializeAws_restJson1_1CreateLabelsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PUT", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -566,12 +566,12 @@ export async function serializeAws_restJson1_1CreateNotificationSubscriptionComm } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -616,12 +616,12 @@ export async function serializeAws_restJson1_1CreateUserCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -649,12 +649,12 @@ export async function serializeAws_restJson1_1DeactivateUserCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -707,12 +707,12 @@ export async function serializeAws_restJson1_1DeleteCommentCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -750,13 +750,13 @@ export async function serializeAws_restJson1_1DeleteCustomMetadataCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -784,12 +784,12 @@ export async function serializeAws_restJson1_1DeleteDocumentCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -817,12 +817,12 @@ export async function serializeAws_restJson1_1DeleteFolderCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -850,12 +850,12 @@ export async function serializeAws_restJson1_1DeleteFolderContentsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -890,13 +890,13 @@ export async function serializeAws_restJson1_1DeleteLabelsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -938,12 +938,12 @@ export async function serializeAws_restJson1_1DeleteNotificationSubscriptionComm } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -971,12 +971,12 @@ export async function serializeAws_restJson1_1DeleteUserCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1026,13 +1026,13 @@ export async function serializeAws_restJson1_1DescribeActivitiesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1080,13 +1080,13 @@ export async function serializeAws_restJson1_1DescribeCommentsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1127,13 +1127,13 @@ export async function serializeAws_restJson1_1DescribeDocumentVersionsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1180,13 +1180,13 @@ export async function serializeAws_restJson1_1DescribeFolderContentsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1215,13 +1215,13 @@ export async function serializeAws_restJson1_1DescribeGroupsCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1255,13 +1255,13 @@ export async function serializeAws_restJson1_1DescribeNotificationSubscriptionsC } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1299,13 +1299,13 @@ export async function serializeAws_restJson1_1DescribeResourcePermissionsCommand } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1328,13 +1328,13 @@ export async function serializeAws_restJson1_1DescribeRootFoldersCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1378,13 +1378,13 @@ export async function serializeAws_restJson1_1DescribeUsersCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1400,12 +1400,12 @@ export async function serializeAws_restJson1_1GetCurrentUserCommand( let resolvedPath = "/api/v1/me"; let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1437,13 +1437,13 @@ export async function serializeAws_restJson1_1GetDocumentCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1481,13 +1481,13 @@ export async function serializeAws_restJson1_1GetDocumentPathCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1534,13 +1534,13 @@ export async function serializeAws_restJson1_1GetDocumentVersionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1572,13 +1572,13 @@ export async function serializeAws_restJson1_1GetFolderCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1616,13 +1616,13 @@ export async function serializeAws_restJson1_1GetFolderPathCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1651,13 +1651,13 @@ export async function serializeAws_restJson1_1GetResourcesCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1700,12 +1700,12 @@ export async function serializeAws_restJson1_1InitiateDocumentVersionUploadComma } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1733,12 +1733,12 @@ export async function serializeAws_restJson1_1RemoveAllResourcePermissionsComman } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1784,13 +1784,13 @@ export async function serializeAws_restJson1_1RemoveResourcePermissionCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "DELETE", headers: headers, path: resolvedPath, query: query, - body: body + body: body, + ...context.endpoint }); } @@ -1829,12 +1829,12 @@ export async function serializeAws_restJson1_1UpdateDocumentCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1879,12 +1879,12 @@ export async function serializeAws_restJson1_1UpdateDocumentVersionCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1923,12 +1923,12 @@ export async function serializeAws_restJson1_1UpdateFolderCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -1982,12 +1982,12 @@ export async function serializeAws_restJson1_1UpdateUserCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-worklink/protocols/Aws_restJson1_1.ts b/clients/client-worklink/protocols/Aws_restJson1_1.ts index 91a4f064640c..e83b0e81ee3e 100644 --- a/clients/client-worklink/protocols/Aws_restJson1_1.ts +++ b/clients/client-worklink/protocols/Aws_restJson1_1.ts @@ -166,12 +166,12 @@ export async function serializeAws_restJson1_1AssociateDomainCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -195,12 +195,12 @@ export async function serializeAws_restJson1_1AssociateWebsiteAuthorizationProvi } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -224,12 +224,12 @@ export async function serializeAws_restJson1_1AssociateWebsiteCertificateAuthori } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -253,12 +253,12 @@ export async function serializeAws_restJson1_1CreateFleetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -276,12 +276,12 @@ export async function serializeAws_restJson1_1DeleteFleetCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -299,12 +299,12 @@ export async function serializeAws_restJson1_1DescribeAuditStreamConfigurationCo } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -322,12 +322,12 @@ export async function serializeAws_restJson1_1DescribeCompanyNetworkConfiguratio } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -348,12 +348,12 @@ export async function serializeAws_restJson1_1DescribeDeviceCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -371,12 +371,12 @@ export async function serializeAws_restJson1_1DescribeDevicePolicyConfigurationC } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -397,12 +397,12 @@ export async function serializeAws_restJson1_1DescribeDomainCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -420,12 +420,12 @@ export async function serializeAws_restJson1_1DescribeFleetMetadataCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -443,12 +443,12 @@ export async function serializeAws_restJson1_1DescribeIdentityProviderConfigurat } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -469,12 +469,12 @@ export async function serializeAws_restJson1_1DescribeWebsiteCertificateAuthorit } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -495,12 +495,12 @@ export async function serializeAws_restJson1_1DisassociateDomainCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -521,12 +521,12 @@ export async function serializeAws_restJson1_1DisassociateWebsiteAuthorizationPr } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -547,12 +547,12 @@ export async function serializeAws_restJson1_1DisassociateWebsiteCertificateAuth } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -576,12 +576,12 @@ export async function serializeAws_restJson1_1ListDevicesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -605,12 +605,12 @@ export async function serializeAws_restJson1_1ListDomainsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -631,12 +631,12 @@ export async function serializeAws_restJson1_1ListFleetsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -660,12 +660,12 @@ export async function serializeAws_restJson1_1ListWebsiteAuthorizationProvidersC } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -689,12 +689,12 @@ export async function serializeAws_restJson1_1ListWebsiteCertificateAuthoritiesC } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -715,12 +715,12 @@ export async function serializeAws_restJson1_1RestoreDomainAccessCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -741,12 +741,12 @@ export async function serializeAws_restJson1_1RevokeDomainAccessCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -767,12 +767,12 @@ export async function serializeAws_restJson1_1SignOutUserCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -793,12 +793,12 @@ export async function serializeAws_restJson1_1UpdateAuditStreamConfigurationComm } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -831,12 +831,12 @@ export async function serializeAws_restJson1_1UpdateCompanyNetworkConfigurationC } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -857,12 +857,12 @@ export async function serializeAws_restJson1_1UpdateDevicePolicyConfigurationCom } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -886,12 +886,12 @@ export async function serializeAws_restJson1_1UpdateDomainMetadataCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -915,12 +915,12 @@ export async function serializeAws_restJson1_1UpdateFleetMetadataCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -945,12 +945,12 @@ export async function serializeAws_restJson1_1UpdateIdentityProviderConfiguratio } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-workmail/protocols/Aws_json1_1.ts b/clients/client-workmail/protocols/Aws_json1_1.ts index b4e61971ef39..bfac5158789b 100644 --- a/clients/client-workmail/protocols/Aws_json1_1.ts +++ b/clients/client-workmail/protocols/Aws_json1_1.ts @@ -6454,11 +6454,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 4384dfb9b83b..c7360ab8332b 100644 --- a/clients/client-workmailmessageflow/protocols/Aws_restJson1_1.ts +++ b/clients/client-workmailmessageflow/protocols/Aws_restJson1_1.ts @@ -39,12 +39,12 @@ export async function serializeAws_restJson1_1GetRawMessageContentCommand( } let body: any; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "GET", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/clients/client-workspaces/protocols/Aws_json1_1.ts b/clients/client-workspaces/protocols/Aws_json1_1.ts index 4c8148995267..af47ef6338f1 100644 --- a/clients/client-workspaces/protocols/Aws_json1_1.ts +++ b/clients/client-workspaces/protocols/Aws_json1_1.ts @@ -7629,11 +7629,11 @@ const buildHttpRpcRequest = ( body: any ): __HttpRequest => { const contents: any = { - ...context.endpoint, protocol: "https", method: "POST", path: path, - headers: headers + headers: headers, + ...context.endpoint }; 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 3c5b5d275a7e..d2bb8f93fdb2 100644 --- a/clients/client-xray/protocols/Aws_restJson1_1.ts +++ b/clients/client-xray/protocols/Aws_restJson1_1.ts @@ -159,12 +159,12 @@ export async function serializeAws_restJson1_1BatchGetTracesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -185,12 +185,12 @@ export async function serializeAws_restJson1_1CreateGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -211,12 +211,12 @@ export async function serializeAws_restJson1_1CreateSamplingRuleCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -237,12 +237,12 @@ export async function serializeAws_restJson1_1DeleteGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -263,12 +263,12 @@ export async function serializeAws_restJson1_1DeleteSamplingRuleCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -282,12 +282,12 @@ export async function serializeAws_restJson1_1GetEncryptionConfigCommand( let body: any; body = "{}"; return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -308,12 +308,12 @@ export async function serializeAws_restJson1_1GetGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -331,12 +331,12 @@ export async function serializeAws_restJson1_1GetGroupsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -354,12 +354,12 @@ export async function serializeAws_restJson1_1GetSamplingRulesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -377,12 +377,12 @@ export async function serializeAws_restJson1_1GetSamplingStatisticSummariesComma } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -405,12 +405,12 @@ export async function serializeAws_restJson1_1GetSamplingTargetsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -440,12 +440,12 @@ export async function serializeAws_restJson1_1GetServiceGraphCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -481,12 +481,12 @@ export async function serializeAws_restJson1_1GetTimeSeriesServiceStatisticsComm } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -510,12 +510,12 @@ export async function serializeAws_restJson1_1GetTraceGraphCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -554,12 +554,12 @@ export async function serializeAws_restJson1_1GetTraceSummariesCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -580,12 +580,12 @@ export async function serializeAws_restJson1_1PutEncryptionConfigCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -617,12 +617,12 @@ export async function serializeAws_restJson1_1PutTelemetryRecordsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -645,12 +645,12 @@ export async function serializeAws_restJson1_1PutTraceSegmentsCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -674,12 +674,12 @@ export async function serializeAws_restJson1_1UpdateGroupCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } @@ -702,12 +702,12 @@ export async function serializeAws_restJson1_1UpdateSamplingRuleCommand( } body = JSON.stringify(bodyParams); return new __HttpRequest({ - ...context.endpoint, protocol: "https", method: "POST", headers: headers, path: resolvedPath, - body: body + body: body, + ...context.endpoint }); } diff --git a/jest.config.js b/jest.config.js index 54abecf4feab..476b385a1437 100644 --- a/jest.config.js +++ b/jest.config.js @@ -4,7 +4,8 @@ module.exports = { ...base, projects: [ "/protocol_tests/*/jest.config.js", - "/packages/*/jest.config.js" + "/packages/*/jest.config.js", + "/clients/*/jest.config.js" ], testPathIgnorePatterns: ["/node_modules/", "/clients/client-.*"], coveragePathIgnorePatterns: [