diff --git a/clients/client-amp/src/protocols/Aws_restJson1.ts b/clients/client-amp/src/protocols/Aws_restJson1.ts index a775f08eb659..dcc9fa1b6b01 100644 --- a/clients/client-amp/src/protocols/Aws_restJson1.ts +++ b/clients/client-amp/src/protocols/Aws_restJson1.ts @@ -440,12 +440,9 @@ export const se_GetDefaultScraperConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/scraperconfiguration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-api-gateway/src/protocols/Aws_restJson1.ts b/clients/client-api-gateway/src/protocols/Aws_restJson1.ts index 749f99dfec6b..8a45e15e28b8 100644 --- a/clients/client-api-gateway/src/protocols/Aws_restJson1.ts +++ b/clients/client-api-gateway/src/protocols/Aws_restJson1.ts @@ -1124,12 +1124,9 @@ export const se_GetAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/account"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-application-signals/src/protocols/Aws_restJson1.ts b/clients/client-application-signals/src/protocols/Aws_restJson1.ts index 8d700dc7f8ad..43793944947a 100644 --- a/clients/client-application-signals/src/protocols/Aws_restJson1.ts +++ b/clients/client-application-signals/src/protocols/Aws_restJson1.ts @@ -367,12 +367,9 @@ export const se_StartDiscoveryCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/start-discovery"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-artifact/src/protocols/Aws_restJson1.ts b/clients/client-artifact/src/protocols/Aws_restJson1.ts index 55812cfe4738..f6301dad9e8f 100644 --- a/clients/client-artifact/src/protocols/Aws_restJson1.ts +++ b/clients/client-artifact/src/protocols/Aws_restJson1.ts @@ -50,12 +50,9 @@ export const se_GetAccountSettingsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/v1/account-settings/get"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-auditmanager/src/protocols/Aws_restJson1.ts b/clients/client-auditmanager/src/protocols/Aws_restJson1.ts index 2a5699020cf2..1626ba901c3e 100644 --- a/clients/client-auditmanager/src/protocols/Aws_restJson1.ts +++ b/clients/client-auditmanager/src/protocols/Aws_restJson1.ts @@ -593,12 +593,9 @@ export const se_DeregisterAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/account/deregisterAccount"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -656,12 +653,9 @@ export const se_GetAccountStatusCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/account/status"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -901,12 +895,9 @@ export const se_GetInsightsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/insights"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -935,12 +926,9 @@ export const se_GetOrganizationAdminAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/account/organizationAdminAccount"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -953,12 +941,9 @@ export const se_GetServicesInScopeCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/services"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-backup/src/protocols/Aws_restJson1.ts b/clients/client-backup/src/protocols/Aws_restJson1.ts index a900f89a5f5f..57734efaf34e 100644 --- a/clients/client-backup/src/protocols/Aws_restJson1.ts +++ b/clients/client-backup/src/protocols/Aws_restJson1.ts @@ -835,12 +835,9 @@ export const se_DescribeGlobalSettingsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/global-settings"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -889,12 +886,9 @@ export const se_DescribeRegionSettingsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/account-settings"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1216,12 +1210,9 @@ export const se_GetSupportedResourceTypesCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/supported-resource-types"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-bedrock/src/protocols/Aws_restJson1.ts b/clients/client-bedrock/src/protocols/Aws_restJson1.ts index e95b3c99f97f..efb53485552b 100644 --- a/clients/client-bedrock/src/protocols/Aws_restJson1.ts +++ b/clients/client-bedrock/src/protocols/Aws_restJson1.ts @@ -350,12 +350,9 @@ export const se_DeleteModelInvocationLoggingConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/logging/modelinvocations"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; @@ -467,12 +464,9 @@ export const se_GetModelInvocationLoggingConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/logging/modelinvocations"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-chatbot/src/protocols/Aws_restJson1.ts b/clients/client-chatbot/src/protocols/Aws_restJson1.ts index aaf9d11ef960..3a7223836699 100644 --- a/clients/client-chatbot/src/protocols/Aws_restJson1.ts +++ b/clients/client-chatbot/src/protocols/Aws_restJson1.ts @@ -505,12 +505,9 @@ export const se_GetAccountPreferencesCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/get-account-preferences"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-chime-sdk-messaging/src/protocols/Aws_restJson1.ts b/clients/client-chime-sdk-messaging/src/protocols/Aws_restJson1.ts index a1813c46d160..9eb84b7a7750 100644 --- a/clients/client-chime-sdk-messaging/src/protocols/Aws_restJson1.ts +++ b/clients/client-chime-sdk-messaging/src/protocols/Aws_restJson1.ts @@ -787,12 +787,9 @@ export const se_GetMessagingSessionEndpointCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/endpoints/messaging-session"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-chime-sdk-voice/src/protocols/Aws_restJson1.ts b/clients/client-chime-sdk-voice/src/protocols/Aws_restJson1.ts index 6c3443cf8dd9..a782bd26ea0d 100644 --- a/clients/client-chime-sdk-voice/src/protocols/Aws_restJson1.ts +++ b/clients/client-chime-sdk-voice/src/protocols/Aws_restJson1.ts @@ -1004,12 +1004,9 @@ export const se_GetGlobalSettingsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/settings"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1054,12 +1051,9 @@ export const se_GetPhoneNumberSettingsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/settings/phone-number"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1366,12 +1360,9 @@ export const se_ListAvailableVoiceConnectorRegionsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/voice-connector-regions"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-chime/src/protocols/Aws_restJson1.ts b/clients/client-chime/src/protocols/Aws_restJson1.ts index e7d78ab4a69d..5c7255dee4d0 100644 --- a/clients/client-chime/src/protocols/Aws_restJson1.ts +++ b/clients/client-chime/src/protocols/Aws_restJson1.ts @@ -2678,12 +2678,9 @@ export const se_GetGlobalSettingsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/settings"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -2728,12 +2725,9 @@ export const se_GetMessagingSessionEndpointCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/endpoints/messaging-session"); let body: any; - body = ""; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "messaging-" + resolvedHostname; @@ -2786,12 +2780,9 @@ export const se_GetPhoneNumberSettingsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/settings/phone-number"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-codecatalyst/src/protocols/Aws_restJson1.ts b/clients/client-codecatalyst/src/protocols/Aws_restJson1.ts index d07fc0039cb2..98504d9bc0bf 100644 --- a/clients/client-codecatalyst/src/protocols/Aws_restJson1.ts +++ b/clients/client-codecatalyst/src/protocols/Aws_restJson1.ts @@ -964,12 +964,9 @@ export const se_VerifySessionCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/session"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-codeguru-security/src/protocols/Aws_restJson1.ts b/clients/client-codeguru-security/src/protocols/Aws_restJson1.ts index 9d7800d2da69..7fefe07dec42 100644 --- a/clients/client-codeguru-security/src/protocols/Aws_restJson1.ts +++ b/clients/client-codeguru-security/src/protocols/Aws_restJson1.ts @@ -154,12 +154,9 @@ export const se_GetAccountConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/accountConfiguration/get"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-detective/src/protocols/Aws_restJson1.ts b/clients/client-detective/src/protocols/Aws_restJson1.ts index 44dfd38181c6..4a8a8fc62372 100644 --- a/clients/client-detective/src/protocols/Aws_restJson1.ts +++ b/clients/client-detective/src/protocols/Aws_restJson1.ts @@ -309,12 +309,9 @@ export const se_DisableOrganizationAdminAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/orgs/disableAdminAccount"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-devops-guru/src/protocols/Aws_restJson1.ts b/clients/client-devops-guru/src/protocols/Aws_restJson1.ts index 2b41a71421a6..c5ac3646a2e6 100644 --- a/clients/client-devops-guru/src/protocols/Aws_restJson1.ts +++ b/clients/client-devops-guru/src/protocols/Aws_restJson1.ts @@ -249,12 +249,9 @@ export const se_DescribeAccountHealthCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/accounts/health"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -309,12 +306,9 @@ export const se_DescribeEventSourcesConfigCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/event-sources"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -461,12 +455,9 @@ export const se_DescribeServiceIntegrationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/service-integrations"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-drs/src/protocols/Aws_restJson1.ts b/clients/client-drs/src/protocols/Aws_restJson1.ts index d9cfb2ed078e..b65459300323 100644 --- a/clients/client-drs/src/protocols/Aws_restJson1.ts +++ b/clients/client-drs/src/protocols/Aws_restJson1.ts @@ -837,12 +837,9 @@ export const se_InitializeServiceCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/InitializeService"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-elastic-inference/src/protocols/Aws_restJson1.ts b/clients/client-elastic-inference/src/protocols/Aws_restJson1.ts index 3538a0917cb2..73a92d6c69ca 100644 --- a/clients/client-elastic-inference/src/protocols/Aws_restJson1.ts +++ b/clients/client-elastic-inference/src/protocols/Aws_restJson1.ts @@ -98,12 +98,9 @@ export const se_DescribeAcceleratorTypesCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/describe-accelerator-types"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-elasticsearch-service/src/protocols/Aws_restJson1.ts b/clients/client-elasticsearch-service/src/protocols/Aws_restJson1.ts index f155fcccca95..a3e5a192f33c 100644 --- a/clients/client-elasticsearch-service/src/protocols/Aws_restJson1.ts +++ b/clients/client-elasticsearch-service/src/protocols/Aws_restJson1.ts @@ -519,12 +519,9 @@ export const se_DeleteElasticsearchServiceRoleCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/2015-01-01/es/role"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; diff --git a/clients/client-greengrass/src/protocols/Aws_restJson1.ts b/clients/client-greengrass/src/protocols/Aws_restJson1.ts index 248b9eac08e0..f9232c2fc103 100644 --- a/clients/client-greengrass/src/protocols/Aws_restJson1.ts +++ b/clients/client-greengrass/src/protocols/Aws_restJson1.ts @@ -1048,12 +1048,9 @@ export const se_DisassociateServiceRoleFromAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/greengrass/servicerole"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; @@ -1412,12 +1409,9 @@ export const se_GetServiceRoleForAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/greengrass/servicerole"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-greengrassv2/src/protocols/Aws_restJson1.ts b/clients/client-greengrassv2/src/protocols/Aws_restJson1.ts index 4f6d5a0eb555..0f81697c64bc 100644 --- a/clients/client-greengrassv2/src/protocols/Aws_restJson1.ts +++ b/clients/client-greengrassv2/src/protocols/Aws_restJson1.ts @@ -361,12 +361,9 @@ export const se_DisassociateServiceRoleFromAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/greengrass/servicerole"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; @@ -468,12 +465,9 @@ export const se_GetServiceRoleForAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/greengrass/servicerole"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-guardduty/src/protocols/Aws_restJson1.ts b/clients/client-guardduty/src/protocols/Aws_restJson1.ts index fc34f437f099..aea635b4839a 100644 --- a/clients/client-guardduty/src/protocols/Aws_restJson1.ts +++ b/clients/client-guardduty/src/protocols/Aws_restJson1.ts @@ -1163,12 +1163,9 @@ export const se_GetInvitationsCountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/invitation/count"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1292,12 +1289,9 @@ export const se_GetOrganizationStatisticsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/organization/statistics"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-inspector2/src/protocols/Aws_restJson1.ts b/clients/client-inspector2/src/protocols/Aws_restJson1.ts index 19cf3eebbd68..b9927b914ded 100644 --- a/clients/client-inspector2/src/protocols/Aws_restJson1.ts +++ b/clients/client-inspector2/src/protocols/Aws_restJson1.ts @@ -658,12 +658,9 @@ export const se_DescribeOrganizationConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/organizationconfiguration/describe"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -840,12 +837,9 @@ export const se_GetConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/configuration/get"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -858,12 +852,9 @@ export const se_GetDelegatedAdminAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/delegatedadminaccounts/get"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -876,12 +867,9 @@ export const se_GetEc2DeepInspectionConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/ec2deepinspectionconfiguration/get"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-iot-events/src/protocols/Aws_restJson1.ts b/clients/client-iot-events/src/protocols/Aws_restJson1.ts index fb2cef3321c4..9fc8956f8ece 100644 --- a/clients/client-iot-events/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot-events/src/protocols/Aws_restJson1.ts @@ -365,12 +365,9 @@ export const se_DescribeLoggingOptionsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/logging"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-iot-wireless/src/protocols/Aws_restJson1.ts b/clients/client-iot-wireless/src/protocols/Aws_restJson1.ts index ae21bcc00707..50c525710845 100644 --- a/clients/client-iot-wireless/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot-wireless/src/protocols/Aws_restJson1.ts @@ -1333,12 +1333,9 @@ export const se_GetEventConfigurationByResourceTypesCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/event-configurations-resource-types"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1367,12 +1364,9 @@ export const se_GetLogLevelsByResourceTypesCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/log-levels"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1385,12 +1379,9 @@ export const se_GetMetricConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/metric-configuration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -2188,12 +2179,9 @@ export const se_ResetAllResourceLogLevelsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/log-levels"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; diff --git a/clients/client-iot/src/protocols/Aws_restJson1.ts b/clients/client-iot/src/protocols/Aws_restJson1.ts index 67ad12647433..4c1a314723f3 100644 --- a/clients/client-iot/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot/src/protocols/Aws_restJson1.ts @@ -1245,12 +1245,9 @@ export const se_ClearDefaultAuthorizerCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/default-authorizer"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; @@ -2517,12 +2514,9 @@ export const se_DeleteRegistrationCodeCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/registrationcode"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; @@ -2730,12 +2724,9 @@ export const se_DescribeAccountAuditConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/audit/configuration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -2915,12 +2906,9 @@ export const se_DescribeDefaultAuthorizerCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/default-authorizer"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -2999,12 +2987,9 @@ export const se_DescribeEventConfigurationsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/event-configurations"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -3504,12 +3489,9 @@ export const se_GetIndexingConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/indexing/config"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -3538,12 +3520,9 @@ export const se_GetLoggingOptionsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/loggingOptions"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -3588,12 +3567,9 @@ export const se_GetPackageConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/package-configuration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -3682,12 +3658,9 @@ export const se_GetRegistrationCodeCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/registrationcode"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -3757,12 +3730,9 @@ export const se_GetV2LoggingOptionsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/v2LoggingOptions"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-iotanalytics/src/protocols/Aws_restJson1.ts b/clients/client-iotanalytics/src/protocols/Aws_restJson1.ts index 646bf888fce5..1cc398a22383 100644 --- a/clients/client-iotanalytics/src/protocols/Aws_restJson1.ts +++ b/clients/client-iotanalytics/src/protocols/Aws_restJson1.ts @@ -480,12 +480,9 @@ export const se_DescribeLoggingOptionsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/logging"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-iotsitewise/src/protocols/Aws_restJson1.ts b/clients/client-iotsitewise/src/protocols/Aws_restJson1.ts index b5265d35197e..bc96029fe7c2 100644 --- a/clients/client-iotsitewise/src/protocols/Aws_restJson1.ts +++ b/clients/client-iotsitewise/src/protocols/Aws_restJson1.ts @@ -1382,12 +1382,9 @@ export const se_DescribeDefaultEncryptionConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/configuration/account/encryption"); let body: any; - body = ""; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "api." + resolvedHostname; @@ -1457,12 +1454,9 @@ export const se_DescribeLoggingOptionsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/logging"); let body: any; - body = ""; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "api." + resolvedHostname; @@ -1531,12 +1525,9 @@ export const se_DescribeStorageConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/configuration/account/storage"); let body: any; - body = ""; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "api." + resolvedHostname; diff --git a/clients/client-iottwinmaker/src/protocols/Aws_restJson1.ts b/clients/client-iottwinmaker/src/protocols/Aws_restJson1.ts index 77c00e11fa2c..f47722ccf5a3 100644 --- a/clients/client-iottwinmaker/src/protocols/Aws_restJson1.ts +++ b/clients/client-iottwinmaker/src/protocols/Aws_restJson1.ts @@ -686,12 +686,9 @@ export const se_GetPricingPlanCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/pricingplan"); let body: any; - body = ""; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "api." + resolvedHostname; diff --git a/clients/client-lakeformation/src/protocols/Aws_restJson1.ts b/clients/client-lakeformation/src/protocols/Aws_restJson1.ts index 337fe70014d3..693aa98cfce3 100644 --- a/clients/client-lakeformation/src/protocols/Aws_restJson1.ts +++ b/clients/client-lakeformation/src/protocols/Aws_restJson1.ts @@ -721,12 +721,9 @@ export const se_GetDataLakePrincipalCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/GetDataLakePrincipal"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-lambda/src/protocols/Aws_restJson1.ts b/clients/client-lambda/src/protocols/Aws_restJson1.ts index 2d165ba86355..4d9d62c836ef 100644 --- a/clients/client-lambda/src/protocols/Aws_restJson1.ts +++ b/clients/client-lambda/src/protocols/Aws_restJson1.ts @@ -712,12 +712,9 @@ export const se_GetAccountSettingsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/2016-08-19/account-settings"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts b/clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts index 700b01c431c2..95b476312ba1 100644 --- a/clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts +++ b/clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts @@ -904,12 +904,9 @@ export const se_CreateUploadUrlCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/createuploadurl"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts b/clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts index be11a1449cc2..18db24c80674 100644 --- a/clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts +++ b/clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts @@ -207,6 +207,7 @@ export const se_StartConversationCommand = async ( ): Promise<__HttpRequest> => { const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/json", [_xalcm]: input[_cM]!, }); b.bp("/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/conversation"); diff --git a/clients/client-license-manager-linux-subscriptions/src/protocols/Aws_restJson1.ts b/clients/client-license-manager-linux-subscriptions/src/protocols/Aws_restJson1.ts index 759c056278d9..7c2c402d9272 100644 --- a/clients/client-license-manager-linux-subscriptions/src/protocols/Aws_restJson1.ts +++ b/clients/client-license-manager-linux-subscriptions/src/protocols/Aws_restJson1.ts @@ -49,12 +49,9 @@ export const se_GetServiceSettingsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/subscription/GetServiceSettings"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-m2/src/protocols/Aws_restJson1.ts b/clients/client-m2/src/protocols/Aws_restJson1.ts index 27253b69ccf6..83a2db28d235 100644 --- a/clients/client-m2/src/protocols/Aws_restJson1.ts +++ b/clients/client-m2/src/protocols/Aws_restJson1.ts @@ -456,12 +456,9 @@ export const se_GetSignedBluinsightsUrlCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/signed-bi-url"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-macie2/src/protocols/Aws_restJson1.ts b/clients/client-macie2/src/protocols/Aws_restJson1.ts index 150100249de9..2934489f8563 100644 --- a/clients/client-macie2/src/protocols/Aws_restJson1.ts +++ b/clients/client-macie2/src/protocols/Aws_restJson1.ts @@ -833,12 +833,9 @@ export const se_DescribeOrganizationConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/admin/configuration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -851,12 +848,9 @@ export const se_DisableMacieCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/macie"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; @@ -887,12 +881,9 @@ export const se_DisassociateFromAdministratorAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/administrator/disassociate"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -905,12 +896,9 @@ export const se_DisassociateFromMasterAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/master/disassociate"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -986,12 +974,9 @@ export const se_GetAdministratorAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/administrator"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1020,12 +1005,9 @@ export const se_GetAutomatedDiscoveryConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/automated-discovery/configuration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1060,12 +1042,9 @@ export const se_GetClassificationExportConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/classification-export-configuration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1149,12 +1128,9 @@ export const se_GetFindingsPublicationConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/findings-publication-configuration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1192,12 +1168,9 @@ export const se_GetInvitationsCountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/invitations/count"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1210,12 +1183,9 @@ export const se_GetMacieSessionCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/macie"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1228,12 +1198,9 @@ export const se_GetMasterAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/master"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1280,12 +1247,9 @@ export const se_GetRevealConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/reveal-configuration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-mediaconvert/src/protocols/Aws_restJson1.ts b/clients/client-mediaconvert/src/protocols/Aws_restJson1.ts index 11dec5924990..cd93ac2b3f43 100644 --- a/clients/client-mediaconvert/src/protocols/Aws_restJson1.ts +++ b/clients/client-mediaconvert/src/protocols/Aws_restJson1.ts @@ -438,12 +438,9 @@ export const se_DeletePolicyCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/2017-08-29/policy"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; @@ -557,12 +554,9 @@ export const se_GetPolicyCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/2017-08-29/policy"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-medialive/src/protocols/Aws_restJson1.ts b/clients/client-medialive/src/protocols/Aws_restJson1.ts index 3280eb52f05b..7cc5bd82a36b 100644 --- a/clients/client-medialive/src/protocols/Aws_restJson1.ts +++ b/clients/client-medialive/src/protocols/Aws_restJson1.ts @@ -1244,12 +1244,9 @@ export const se_DescribeAccountConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/prod/accountConfiguration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-mgn/src/protocols/Aws_restJson1.ts b/clients/client-mgn/src/protocols/Aws_restJson1.ts index 1f97c2d4fdfc..7021d3e5fbdb 100644 --- a/clients/client-mgn/src/protocols/Aws_restJson1.ts +++ b/clients/client-mgn/src/protocols/Aws_restJson1.ts @@ -966,12 +966,9 @@ export const se_InitializeServiceCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/InitializeService"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-migrationhubstrategy/src/protocols/Aws_restJson1.ts b/clients/client-migrationhubstrategy/src/protocols/Aws_restJson1.ts index 342fb7074c25..8ce38b1b743a 100644 --- a/clients/client-migrationhubstrategy/src/protocols/Aws_restJson1.ts +++ b/clients/client-migrationhubstrategy/src/protocols/Aws_restJson1.ts @@ -199,12 +199,9 @@ export const se_GetLatestAssessmentIdCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/get-latest-assessment-id"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -217,12 +214,9 @@ export const se_GetPortfolioPreferencesCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/get-portfolio-preferences"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -235,12 +229,9 @@ export const se_GetPortfolioSummaryCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/get-portfolio-summary"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-neptunedata/src/protocols/Aws_restJson1.ts b/clients/client-neptunedata/src/protocols/Aws_restJson1.ts index 022f75fc3a1a..786417af2542 100644 --- a/clients/client-neptunedata/src/protocols/Aws_restJson1.ts +++ b/clients/client-neptunedata/src/protocols/Aws_restJson1.ts @@ -374,12 +374,9 @@ export const se_DeletePropertygraphStatisticsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/propertygraph/statistics"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; @@ -392,12 +389,9 @@ export const se_DeleteSparqlStatisticsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/sparql/statistics"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; @@ -551,12 +545,9 @@ export const se_GetEngineStatusCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/status"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -699,12 +690,9 @@ export const se_GetPropertygraphStatisticsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/propertygraph/statistics"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -776,12 +764,9 @@ export const se_GetSparqlStatisticsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/sparql/statistics"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-osis/src/protocols/Aws_restJson1.ts b/clients/client-osis/src/protocols/Aws_restJson1.ts index 5e775ae8c6ab..5dcf1958d8c3 100644 --- a/clients/client-osis/src/protocols/Aws_restJson1.ts +++ b/clients/client-osis/src/protocols/Aws_restJson1.ts @@ -180,12 +180,9 @@ export const se_ListPipelineBlueprintsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/2022-01-01/osis/listPipelineBlueprints"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-pinpoint-email/src/protocols/Aws_restJson1.ts b/clients/client-pinpoint-email/src/protocols/Aws_restJson1.ts index 33be7fafc9fe..dd4e3d46337e 100644 --- a/clients/client-pinpoint-email/src/protocols/Aws_restJson1.ts +++ b/clients/client-pinpoint-email/src/protocols/Aws_restJson1.ts @@ -414,12 +414,9 @@ export const se_GetAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/v1/email/account"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -521,12 +518,9 @@ export const se_GetDeliverabilityDashboardOptionsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/v1/email/deliverability-dashboard"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-privatenetworks/src/protocols/Aws_restJson1.ts b/clients/client-privatenetworks/src/protocols/Aws_restJson1.ts index bb9a0cdaaaae..12805a85ec8e 100644 --- a/clients/client-privatenetworks/src/protocols/Aws_restJson1.ts +++ b/clients/client-privatenetworks/src/protocols/Aws_restJson1.ts @@ -548,12 +548,9 @@ export const se_ListTagsForResourceCommand = async ( */ export const se_PingCommand = async (input: PingCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/ping"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-qbusiness/src/protocols/Aws_restJson1.ts b/clients/client-qbusiness/src/protocols/Aws_restJson1.ts index ac7580960c43..3d43d6fcadb2 100644 --- a/clients/client-qbusiness/src/protocols/Aws_restJson1.ts +++ b/clients/client-qbusiness/src/protocols/Aws_restJson1.ts @@ -285,7 +285,9 @@ export const se_ChatCommand = async ( context: __SerdeContext & __EventStreamSerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = {}; + const headers: any = { + "content-type": "application/json", + }; b.bp("/applications/{applicationId}/conversations"); b.p("applicationId", () => input.applicationId!, "{applicationId}", false); const query: any = map({ diff --git a/clients/client-ram/src/protocols/Aws_restJson1.ts b/clients/client-ram/src/protocols/Aws_restJson1.ts index b4c2794e65bb..576aaa38c4ca 100644 --- a/clients/client-ram/src/protocols/Aws_restJson1.ts +++ b/clients/client-ram/src/protocols/Aws_restJson1.ts @@ -442,12 +442,9 @@ export const se_EnableSharingWithAwsOrganizationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/enablesharingwithawsorganization"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-rekognitionstreaming/src/protocols/Aws_restJson1.ts b/clients/client-rekognitionstreaming/src/protocols/Aws_restJson1.ts index 4ee328d6c196..645b63a94548 100644 --- a/clients/client-rekognitionstreaming/src/protocols/Aws_restJson1.ts +++ b/clients/client-rekognitionstreaming/src/protocols/Aws_restJson1.ts @@ -71,6 +71,7 @@ export const se_StartFaceLivenessSessionCommand = async ( ): Promise<__HttpRequest> => { const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/json", [_xarslsi]: input[_SI]!, [_xarslvw]: input[_VW]!, [_xarslvh]: input[_VH]!, diff --git a/clients/client-resource-explorer-2/src/protocols/Aws_restJson1.ts b/clients/client-resource-explorer-2/src/protocols/Aws_restJson1.ts index 985a2136cd07..dbbda5bc463c 100644 --- a/clients/client-resource-explorer-2/src/protocols/Aws_restJson1.ts +++ b/clients/client-resource-explorer-2/src/protocols/Aws_restJson1.ts @@ -226,12 +226,9 @@ export const se_DisassociateDefaultViewCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/DisassociateDefaultView"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -244,12 +241,9 @@ export const se_GetAccountLevelServiceConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/GetAccountLevelServiceConfiguration"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -262,12 +256,9 @@ export const se_GetDefaultViewCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/GetDefaultView"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -280,12 +271,9 @@ export const se_GetIndexCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/GetIndex"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-resource-groups/src/protocols/Aws_restJson1.ts b/clients/client-resource-groups/src/protocols/Aws_restJson1.ts index 26ac7a82cd30..ca10d2add77d 100644 --- a/clients/client-resource-groups/src/protocols/Aws_restJson1.ts +++ b/clients/client-resource-groups/src/protocols/Aws_restJson1.ts @@ -121,12 +121,9 @@ export const se_GetAccountSettingsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/get-account-settings"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-route-53/src/protocols/Aws_restXml.ts b/clients/client-route-53/src/protocols/Aws_restXml.ts index 8214031eabd7..f397bdd84426 100644 --- a/clients/client-route-53/src/protocols/Aws_restXml.ts +++ b/clients/client-route-53/src/protocols/Aws_restXml.ts @@ -1047,12 +1047,9 @@ export const se_GetCheckerIpRangesCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/2013-04-01/checkeripranges"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1117,12 +1114,9 @@ export const se_GetHealthCheckCountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/2013-04-01/healthcheckcount"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1183,12 +1177,9 @@ export const se_GetHostedZoneCountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/2013-04-01/hostedzonecount"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1300,12 +1291,9 @@ export const se_GetTrafficPolicyInstanceCountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/2013-04-01/trafficpolicyinstancecount"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-s3/src/protocols/Aws_restXml.ts b/clients/client-s3/src/protocols/Aws_restXml.ts index 1299ff6e0364..7ceba3bab08a 100644 --- a/clients/client-s3/src/protocols/Aws_restXml.ts +++ b/clients/client-s3/src/protocols/Aws_restXml.ts @@ -1864,15 +1864,12 @@ export const se_ListBucketsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/"); const query: any = map({ [_xi]: [, "ListBuckets"], }); let body: any; - body = ""; b.m("GET").h(headers).q(query).b(body); return b.build(); }; diff --git a/clients/client-securityhub/src/protocols/Aws_restJson1.ts b/clients/client-securityhub/src/protocols/Aws_restJson1.ts index 3f8bd93fb29a..c54013292bd7 100644 --- a/clients/client-securityhub/src/protocols/Aws_restJson1.ts +++ b/clients/client-securityhub/src/protocols/Aws_restJson1.ts @@ -1550,12 +1550,9 @@ export const se_DescribeOrganizationConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/organization/configuration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1665,12 +1662,9 @@ export const se_DisableSecurityHubCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/accounts"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; @@ -1683,12 +1677,9 @@ export const se_DisassociateFromAdministratorAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/administrator/disassociate"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -1701,12 +1692,9 @@ export const se_DisassociateFromMasterAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/master/disassociate"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -1809,12 +1797,9 @@ export const se_GetAdministratorAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/administrator"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1996,12 +1981,9 @@ export const se_GetInvitationsCountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/invitations/count"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -2014,12 +1996,9 @@ export const se_GetMasterAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/master"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-securitylake/src/protocols/Aws_restJson1.ts b/clients/client-securitylake/src/protocols/Aws_restJson1.ts index f6bae9304d5d..4149a9dab8af 100644 --- a/clients/client-securitylake/src/protocols/Aws_restJson1.ts +++ b/clients/client-securitylake/src/protocols/Aws_restJson1.ts @@ -374,12 +374,9 @@ export const se_DeleteDataLakeExceptionSubscriptionCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/v1/datalake/exceptions/subscription"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; @@ -446,12 +443,9 @@ export const se_DeregisterDataLakeDelegatedAdministratorCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/v1/datalake/delegate"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; @@ -464,12 +458,9 @@ export const se_GetDataLakeExceptionSubscriptionCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/v1/datalake/exceptions/subscription"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -482,12 +473,9 @@ export const se_GetDataLakeOrganizationConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/v1/datalake/organization/configuration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-service-catalog-appregistry/src/protocols/Aws_restJson1.ts b/clients/client-service-catalog-appregistry/src/protocols/Aws_restJson1.ts index 89983598ff7f..d9ff342afdad 100644 --- a/clients/client-service-catalog-appregistry/src/protocols/Aws_restJson1.ts +++ b/clients/client-service-catalog-appregistry/src/protocols/Aws_restJson1.ts @@ -325,12 +325,9 @@ export const se_GetConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/configuration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-sesv2/src/protocols/Aws_restJson1.ts b/clients/client-sesv2/src/protocols/Aws_restJson1.ts index f359e08779db..698ba465330a 100644 --- a/clients/client-sesv2/src/protocols/Aws_restJson1.ts +++ b/clients/client-sesv2/src/protocols/Aws_restJson1.ts @@ -907,12 +907,9 @@ export const se_GetAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/v2/email/account"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1079,12 +1076,9 @@ export const se_GetDeliverabilityDashboardOptionsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/v2/email/deliverability-dashboard"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-support-app/src/protocols/Aws_restJson1.ts b/clients/client-support-app/src/protocols/Aws_restJson1.ts index bac05083bc78..d90c706ce6cd 100644 --- a/clients/client-support-app/src/protocols/Aws_restJson1.ts +++ b/clients/client-support-app/src/protocols/Aws_restJson1.ts @@ -98,12 +98,9 @@ export const se_DeleteAccountAliasCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/control/delete-account-alias"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -161,12 +158,9 @@ export const se_GetAccountAliasCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/control/get-account-alias"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-transcribe-streaming/src/protocols/Aws_restJson1.ts b/clients/client-transcribe-streaming/src/protocols/Aws_restJson1.ts index 7f37a7670684..03cb376627d7 100644 --- a/clients/client-transcribe-streaming/src/protocols/Aws_restJson1.ts +++ b/clients/client-transcribe-streaming/src/protocols/Aws_restJson1.ts @@ -80,6 +80,7 @@ export const se_StartCallAnalyticsStreamTranscriptionCommand = async ( ): Promise<__HttpRequest> => { const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/json", [_xatlc]: input[_LC]!, [_xatsr]: [() => isSerializableHeaderValue(input[_MSRH]), () => input[_MSRH]!.toString()], [_xatme]: input[_ME]!, @@ -112,6 +113,7 @@ export const se_StartMedicalStreamTranscriptionCommand = async ( ): Promise<__HttpRequest> => { const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/json", [_xatlc]: input[_LC]!, [_xatsr]: [() => isSerializableHeaderValue(input[_MSRH]), () => input[_MSRH]!.toString()], [_xatme]: input[_ME]!, @@ -142,6 +144,7 @@ export const se_StartStreamTranscriptionCommand = async ( ): Promise<__HttpRequest> => { const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/json", [_xatlc]: input[_LC]!, [_xatsr]: [() => isSerializableHeaderValue(input[_MSRH]), () => input[_MSRH]!.toString()], [_xatme]: input[_ME]!, diff --git a/clients/client-wellarchitected/src/protocols/Aws_restJson1.ts b/clients/client-wellarchitected/src/protocols/Aws_restJson1.ts index bb82919ccb13..bf5d6426500c 100644 --- a/clients/client-wellarchitected/src/protocols/Aws_restJson1.ts +++ b/clients/client-wellarchitected/src/protocols/Aws_restJson1.ts @@ -773,12 +773,9 @@ export const se_GetGlobalSettingsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/global-settings"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -906,12 +903,9 @@ export const se_GetProfileTemplateCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/profileTemplate"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-xray/src/protocols/Aws_restJson1.ts b/clients/client-xray/src/protocols/Aws_restJson1.ts index ac1647478a88..342259f4edeb 100644 --- a/clients/client-xray/src/protocols/Aws_restJson1.ts +++ b/clients/client-xray/src/protocols/Aws_restJson1.ts @@ -282,12 +282,9 @@ export const se_GetEncryptionConfigCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/EncryptionConfig"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/private/aws-protocoltests-restjson/src/protocols/Aws_restJson1.ts b/private/aws-protocoltests-restjson/src/protocols/Aws_restJson1.ts index df2fea4dd88b..6856fa584b9e 100644 --- a/private/aws-protocoltests-restjson/src/protocols/Aws_restJson1.ts +++ b/private/aws-protocoltests-restjson/src/protocols/Aws_restJson1.ts @@ -445,12 +445,9 @@ export const se_DatetimeOffsetsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/DatetimeOffsets"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -533,12 +530,9 @@ export const se_EmptyInputAndEmptyOutputCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/EmptyInputAndEmptyOutput"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -551,12 +545,9 @@ export const se_EndpointOperationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/EndpointOperation"); let body: any; - body = ""; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "foo." + resolvedHostname; @@ -611,12 +602,9 @@ export const se_FractionalSecondsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/FractionalSeconds"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -629,12 +617,9 @@ export const se_GreetingWithErrorsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/GreetingWithErrors"); let body: any; - body = ""; b.m("PUT").h(headers).b(body); return b.build(); }; @@ -647,12 +632,9 @@ export const se_HostWithPathOperationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/HostWithPathOperation"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -819,12 +801,9 @@ export const se_HttpPrefixHeadersInResponseCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/HttpPrefixHeadersResponse"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -944,12 +923,9 @@ export const se_HttpResponseCodeCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/HttpResponseCode"); let body: any; - body = ""; b.m("PUT").h(headers).b(body); return b.build(); }; @@ -982,12 +958,9 @@ export const se_IgnoreQueryParamsInResponseCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/IgnoreQueryParamsInResponse"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1243,12 +1216,9 @@ export const se_MalformedAcceptWithBodyCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/MalformedAcceptWithBody"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -1261,12 +1231,9 @@ export const se_MalformedAcceptWithGenericStringCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/MalformedAcceptWithGenericString"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -1279,12 +1246,9 @@ export const se_MalformedAcceptWithPayloadCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/MalformedAcceptWithPayload"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -1415,12 +1379,9 @@ export const se_MalformedContentTypeWithoutBodyCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/MalformedContentTypeWithoutBody"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -1958,12 +1919,9 @@ export const se_NoInputAndNoOutputCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/NoInputAndNoOutput"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -1976,12 +1934,9 @@ export const se_NoInputAndOutputCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/NoInputAndOutputOutput"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -2491,12 +2446,9 @@ export const se_UnitInputAndOutputCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/UnitInputAndOutput"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/private/aws-protocoltests-restxml/src/protocols/Aws_restXml.ts b/private/aws-protocoltests-restxml/src/protocols/Aws_restXml.ts index 1bb2b6f101a3..e8cd612ece48 100644 --- a/private/aws-protocoltests-restxml/src/protocols/Aws_restXml.ts +++ b/private/aws-protocoltests-restxml/src/protocols/Aws_restXml.ts @@ -351,12 +351,9 @@ export const se_DatetimeOffsetsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/DatetimeOffsets"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -369,12 +366,9 @@ export const se_EmptyInputAndEmptyOutputCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/EmptyInputAndEmptyOutput"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -387,12 +381,9 @@ export const se_EndpointOperationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/EndpointOperation"); let body: any; - body = ""; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "foo." + resolvedHostname; @@ -519,12 +510,9 @@ export const se_FlattenedXmlMapWithXmlNamespaceCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/FlattenedXmlMapWithXmlNamespace"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -537,12 +525,9 @@ export const se_FractionalSecondsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/FractionalSeconds"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -555,12 +540,9 @@ export const se_GreetingWithErrorsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/GreetingWithErrors"); let body: any; - body = ""; b.m("PUT").h(headers).b(body); return b.build(); }; @@ -895,12 +877,9 @@ export const se_HttpResponseCodeCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/HttpResponseCode"); let body: any; - body = ""; b.m("PUT").h(headers).b(body); return b.build(); }; @@ -935,12 +914,9 @@ export const se_IgnoreQueryParamsInResponseCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/IgnoreQueryParamsInResponse"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1031,12 +1007,9 @@ export const se_NoInputAndNoOutputCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/NoInputAndNoOutput"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -1049,12 +1022,9 @@ export const se_NoInputAndOutputCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/NoInputAndOutputOutput"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/scripts/generate-clients/config.js b/scripts/generate-clients/config.js index 91b1a1797637..0edb634097a9 100644 --- a/scripts/generate-clients/config.js +++ b/scripts/generate-clients/config.js @@ -1,7 +1,7 @@ // Update this commit when taking up new changes from smithy-typescript. module.exports = { // Use full commit hash as we explicitly fetch it. - SMITHY_TS_COMMIT: "d777776c17ee2b6cc212f8f9f8d6eea13eaba026", + SMITHY_TS_COMMIT: "dddbe3c972dcc794a0fd5fe98d4238f61777a4a9", }; if (module.exports.SMITHY_TS_COMMIT.length < 40) {