From 8dfee581debabff45f6fc72660254845bfd55064 Mon Sep 17 00:00:00 2001 From: Josh Elkins Date: Thu, 16 May 2024 14:55:42 -0500 Subject: [PATCH] chore: Updated codegen --- .../AWSAPIGateway/models/Models.swift | 42 ++++++++----------- .../AWSApiGatewayV2/models/Models.swift | 3 -- .../Services/AWSAppConfig/models/Models.swift | 9 ---- .../AWSAppConfigData/models/Models.swift | 3 -- .../Services/AWSAppSync/models/Models.swift | 3 -- .../AWSBedrockRuntime/models/Models.swift | 3 -- .../AWSCloudFront/models/Models.swift | 3 -- .../AWSCodeGuruProfiler/models/Models.swift | 3 -- .../AWSDataExchange/models/Models.swift | 3 -- .../AWSIoTDataPlane/models/Models.swift | 9 ---- .../AWSIoTWireless/models/Models.swift | 6 --- .../Services/AWSLambda/models/Models.swift | 3 -- .../Services/AWSLocation/models/Models.swift | 12 ------ .../AWSNeptunedata/models/Models.swift | 9 ---- Sources/Services/AWSS3/models/Models.swift | 3 -- .../AWSSageMakerRuntime/models/Models.swift | 3 -- .../Services/AWSSchemas/models/Models.swift | 3 -- Sources/Services/AWSTnb/models/Models.swift | 12 ------ 18 files changed, 18 insertions(+), 114 deletions(-) diff --git a/Sources/Services/AWSAPIGateway/models/Models.swift b/Sources/Services/AWSAPIGateway/models/Models.swift index 99d7bc6e7f2..c53d1d6227f 100644 --- a/Sources/Services/AWSAPIGateway/models/Models.swift +++ b/Sources/Services/AWSAPIGateway/models/Models.swift @@ -5122,8 +5122,8 @@ extension GetApiKeysOutput { let reader = responseReader var value = GetApiKeysOutput() value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.ApiKey.read(from:), memberNodeInfo: "member", isFlattened: false) + value.position = try reader["position"].readIfPresent() value.warnings = try reader["warnings"].readListIfPresent(memberReadingClosure: Swift.String.read(from:), memberNodeInfo: "member", isFlattened: false) - value.position = nil return value } } @@ -5341,7 +5341,7 @@ extension GetAuthorizersOutput { let reader = responseReader var value = GetAuthorizersOutput() value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.Authorizer.read(from:), memberNodeInfo: "member", isFlattened: false) - value.position = nil + value.position = try reader["position"].readIfPresent() return value } } @@ -5520,7 +5520,7 @@ extension GetBasePathMappingsOutput { let reader = responseReader var value = GetBasePathMappingsOutput() value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.BasePathMapping.read(from:), memberNodeInfo: "member", isFlattened: false) - value.position = nil + value.position = try reader["position"].readIfPresent() return value } } @@ -5698,7 +5698,7 @@ extension GetClientCertificatesOutput { let reader = responseReader var value = GetClientCertificatesOutput() value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.ClientCertificate.read(from:), memberNodeInfo: "member", isFlattened: false) - value.position = nil + value.position = try reader["position"].readIfPresent() return value } } @@ -5901,7 +5901,7 @@ extension GetDeploymentsOutput { let reader = responseReader var value = GetDeploymentsOutput() value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.Deployment.read(from:), memberNodeInfo: "member", isFlattened: false) - value.position = nil + value.position = try reader["position"].readIfPresent() return value } } @@ -6113,7 +6113,7 @@ extension GetDocumentationPartsOutput { let reader = responseReader var value = GetDocumentationPartsOutput() value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.DocumentationPart.read(from:), memberNodeInfo: "member", isFlattened: false) - value.position = nil + value.position = try reader["position"].readIfPresent() return value } } @@ -6291,7 +6291,7 @@ extension GetDocumentationVersionsOutput { let reader = responseReader var value = GetDocumentationVersionsOutput() value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.DocumentationVersion.read(from:), memberNodeInfo: "member", isFlattened: false) - value.position = nil + value.position = try reader["position"].readIfPresent() return value } } @@ -6524,7 +6524,7 @@ extension GetDomainNamesOutput { let reader = responseReader var value = GetDomainNamesOutput() value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.DomainName.read(from:), memberNodeInfo: "member", isFlattened: false) - value.position = nil + value.position = try reader["position"].readIfPresent() return value } } @@ -6642,9 +6642,6 @@ public struct GetExportInput { extension GetExportOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetExportOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = GetExportOutput() if let contentDispositionHeaderValue = httpResponse.headers.value(for: "Content-Disposition") { value.contentDisposition = contentDispositionHeaderValue @@ -6854,7 +6851,7 @@ extension GetGatewayResponsesOutput { let reader = responseReader var value = GetGatewayResponsesOutput() value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.GatewayResponse.read(from:), memberNodeInfo: "member", isFlattened: false) - value.position = nil + value.position = try reader["position"].readIfPresent() return value } } @@ -7625,7 +7622,7 @@ extension GetModelsOutput { let reader = responseReader var value = GetModelsOutput() value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.Model.read(from:), memberNodeInfo: "member", isFlattened: false) - value.position = nil + value.position = try reader["position"].readIfPresent() return value } } @@ -7809,7 +7806,7 @@ extension GetRequestValidatorsOutput { let reader = responseReader var value = GetRequestValidatorsOutput() value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.RequestValidator.read(from:), memberNodeInfo: "member", isFlattened: false) - value.position = nil + value.position = try reader["position"].readIfPresent() return value } } @@ -8025,7 +8022,7 @@ extension GetResourcesOutput { let reader = responseReader var value = GetResourcesOutput() value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.Resource.read(from:), memberNodeInfo: "member", isFlattened: false) - value.position = nil + value.position = try reader["position"].readIfPresent() return value } } @@ -8243,7 +8240,7 @@ extension GetRestApisOutput { let reader = responseReader var value = GetRestApisOutput() value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.RestApi.read(from:), memberNodeInfo: "member", isFlattened: false) - value.position = nil + value.position = try reader["position"].readIfPresent() return value } } @@ -8346,9 +8343,6 @@ public struct GetSdkInput { extension GetSdkOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetSdkOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = GetSdkOutput() if let contentDispositionHeaderValue = httpResponse.headers.value(for: "Content-Disposition") { value.contentDisposition = contentDispositionHeaderValue @@ -8988,9 +8982,9 @@ extension GetUsageOutput { var value = GetUsageOutput() value.endDate = try reader["endDate"].readIfPresent() value.items = try reader["values"].readMapIfPresent(valueReadingClosure: listReadingClosure(memberReadingClosure: listReadingClosure(memberReadingClosure: Swift.Int.read(from:), memberNodeInfo: "member", isFlattened: false), memberNodeInfo: "member", isFlattened: false), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) + value.position = try reader["position"].readIfPresent() value.startDate = try reader["startDate"].readIfPresent() value.usagePlanId = try reader["usagePlanId"].readIfPresent() - value.position = nil return value } } @@ -9218,7 +9212,7 @@ extension GetUsagePlanKeysOutput { let reader = responseReader var value = GetUsagePlanKeysOutput() value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.UsagePlanKey.read(from:), memberNodeInfo: "member", isFlattened: false) - value.position = nil + value.position = try reader["position"].readIfPresent() return value } } @@ -9390,7 +9384,7 @@ extension GetUsagePlansOutput { let reader = responseReader var value = GetUsagePlansOutput() value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.UsagePlan.read(from:), memberNodeInfo: "member", isFlattened: false) - value.position = nil + value.position = try reader["position"].readIfPresent() return value } } @@ -9573,7 +9567,7 @@ extension GetVpcLinksOutput { let reader = responseReader var value = GetVpcLinksOutput() value.items = try reader["item"].readListIfPresent(memberReadingClosure: APIGatewayClientTypes.VpcLink.read(from:), memberNodeInfo: "member", isFlattened: false) - value.position = nil + value.position = try reader["position"].readIfPresent() return value } } @@ -15208,9 +15202,9 @@ extension UpdateUsageOutput { var value = UpdateUsageOutput() value.endDate = try reader["endDate"].readIfPresent() value.items = try reader["values"].readMapIfPresent(valueReadingClosure: listReadingClosure(memberReadingClosure: listReadingClosure(memberReadingClosure: Swift.Int.read(from:), memberNodeInfo: "member", isFlattened: false), memberNodeInfo: "member", isFlattened: false), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) + value.position = try reader["position"].readIfPresent() value.startDate = try reader["startDate"].readIfPresent() value.usagePlanId = try reader["usagePlanId"].readIfPresent() - value.position = nil return value } } diff --git a/Sources/Services/AWSApiGatewayV2/models/Models.swift b/Sources/Services/AWSApiGatewayV2/models/Models.swift index c1d0923ed8c..8ed11751ee8 100644 --- a/Sources/Services/AWSApiGatewayV2/models/Models.swift +++ b/Sources/Services/AWSApiGatewayV2/models/Models.swift @@ -3678,9 +3678,6 @@ public struct ExportApiInput { extension ExportApiOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> ExportApiOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = ExportApiOutput() switch httpResponse.body { case .data(let data): diff --git a/Sources/Services/AWSAppConfig/models/Models.swift b/Sources/Services/AWSAppConfig/models/Models.swift index 39b49fe2e71..9eaaaf9cce1 100644 --- a/Sources/Services/AWSAppConfig/models/Models.swift +++ b/Sources/Services/AWSAppConfig/models/Models.swift @@ -1323,9 +1323,6 @@ extension CreateHostedConfigurationVersionOutput: Swift.CustomDebugStringConvert extension CreateHostedConfigurationVersionOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> CreateHostedConfigurationVersionOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = CreateHostedConfigurationVersionOutput() if let applicationIdHeaderValue = httpResponse.headers.value(for: "Application-Id") { value.applicationId = applicationIdHeaderValue @@ -2418,9 +2415,6 @@ extension GetConfigurationOutput: Swift.CustomDebugStringConvertible { extension GetConfigurationOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetConfigurationOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = GetConfigurationOutput() if let configurationVersionHeaderValue = httpResponse.headers.value(for: "Configuration-Version") { value.configurationVersion = configurationVersionHeaderValue @@ -3215,9 +3209,6 @@ extension GetHostedConfigurationVersionOutput: Swift.CustomDebugStringConvertibl extension GetHostedConfigurationVersionOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetHostedConfigurationVersionOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = GetHostedConfigurationVersionOutput() if let applicationIdHeaderValue = httpResponse.headers.value(for: "Application-Id") { value.applicationId = applicationIdHeaderValue diff --git a/Sources/Services/AWSAppConfigData/models/Models.swift b/Sources/Services/AWSAppConfigData/models/Models.swift index e809dbcc336..c3765bd50ad 100644 --- a/Sources/Services/AWSAppConfigData/models/Models.swift +++ b/Sources/Services/AWSAppConfigData/models/Models.swift @@ -147,9 +147,6 @@ extension GetLatestConfigurationOutput: Swift.CustomDebugStringConvertible { extension GetLatestConfigurationOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetLatestConfigurationOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = GetLatestConfigurationOutput() if let contentTypeHeaderValue = httpResponse.headers.value(for: "Content-Type") { value.contentType = contentTypeHeaderValue diff --git a/Sources/Services/AWSAppSync/models/Models.swift b/Sources/Services/AWSAppSync/models/Models.swift index 857428b5e2c..41659ffb880 100644 --- a/Sources/Services/AWSAppSync/models/Models.swift +++ b/Sources/Services/AWSAppSync/models/Models.swift @@ -4899,9 +4899,6 @@ public struct GetIntrospectionSchemaInput { extension GetIntrospectionSchemaOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetIntrospectionSchemaOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = GetIntrospectionSchemaOutput() switch httpResponse.body { case .data(let data): diff --git a/Sources/Services/AWSBedrockRuntime/models/Models.swift b/Sources/Services/AWSBedrockRuntime/models/Models.swift index bb87ae3c3ff..95369369891 100644 --- a/Sources/Services/AWSBedrockRuntime/models/Models.swift +++ b/Sources/Services/AWSBedrockRuntime/models/Models.swift @@ -194,9 +194,6 @@ extension InvokeModelOutput: Swift.CustomDebugStringConvertible { extension InvokeModelOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> InvokeModelOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = InvokeModelOutput() if let contentTypeHeaderValue = httpResponse.headers.value(for: "Content-Type") { value.contentType = contentTypeHeaderValue diff --git a/Sources/Services/AWSCloudFront/models/Models.swift b/Sources/Services/AWSCloudFront/models/Models.swift index 602f5f4c83d..5eb114d3a7b 100644 --- a/Sources/Services/AWSCloudFront/models/Models.swift +++ b/Sources/Services/AWSCloudFront/models/Models.swift @@ -8746,9 +8746,6 @@ extension GetFunctionOutput: Swift.CustomDebugStringConvertible { extension GetFunctionOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetFunctionOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyXML.Reader.from(data: data) - let reader = responseReader var value = GetFunctionOutput() if let contentTypeHeaderValue = httpResponse.headers.value(for: "Content-Type") { value.contentType = contentTypeHeaderValue diff --git a/Sources/Services/AWSCodeGuruProfiler/models/Models.swift b/Sources/Services/AWSCodeGuruProfiler/models/Models.swift index cd1e3651033..7afdf6acbd6 100644 --- a/Sources/Services/AWSCodeGuruProfiler/models/Models.swift +++ b/Sources/Services/AWSCodeGuruProfiler/models/Models.swift @@ -1506,9 +1506,6 @@ public struct GetProfileInput { extension GetProfileOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetProfileOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = GetProfileOutput() if let contentEncodingHeaderValue = httpResponse.headers.value(for: "Content-Encoding") { value.contentEncoding = contentEncodingHeaderValue diff --git a/Sources/Services/AWSDataExchange/models/Models.swift b/Sources/Services/AWSDataExchange/models/Models.swift index ab5c6f6bce4..bfcbcf9485c 100644 --- a/Sources/Services/AWSDataExchange/models/Models.swift +++ b/Sources/Services/AWSDataExchange/models/Models.swift @@ -5554,9 +5554,6 @@ public struct SendApiAssetInput { extension SendApiAssetOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> SendApiAssetOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = SendApiAssetOutput() let keysForResponseHeaders = httpResponse.headers.dictionary.keys if (!keysForResponseHeaders.isEmpty) { diff --git a/Sources/Services/AWSIoTDataPlane/models/Models.swift b/Sources/Services/AWSIoTDataPlane/models/Models.swift index fb480e6648d..dca551e5ee8 100644 --- a/Sources/Services/AWSIoTDataPlane/models/Models.swift +++ b/Sources/Services/AWSIoTDataPlane/models/Models.swift @@ -85,9 +85,6 @@ public struct DeleteThingShadowInput { extension DeleteThingShadowOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> DeleteThingShadowOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = DeleteThingShadowOutput() switch httpResponse.body { case .data(let data): @@ -268,9 +265,6 @@ public struct GetThingShadowInput { extension GetThingShadowOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetThingShadowOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = GetThingShadowOutput() switch httpResponse.body { case .data(let data): @@ -1124,9 +1118,6 @@ public struct UpdateThingShadowInput { extension UpdateThingShadowOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> UpdateThingShadowOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = UpdateThingShadowOutput() switch httpResponse.body { case .data(let data): diff --git a/Sources/Services/AWSIoTWireless/models/Models.swift b/Sources/Services/AWSIoTWireless/models/Models.swift index 26409816bc7..f8b9cd0d688 100644 --- a/Sources/Services/AWSIoTWireless/models/Models.swift +++ b/Sources/Services/AWSIoTWireless/models/Models.swift @@ -5369,9 +5369,6 @@ public struct GetPositionEstimateInput { extension GetPositionEstimateOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetPositionEstimateOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = GetPositionEstimateOutput() switch httpResponse.body { case .data(let data): @@ -5767,9 +5764,6 @@ public struct GetResourcePositionInput { extension GetResourcePositionOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetResourcePositionOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = GetResourcePositionOutput() switch httpResponse.body { case .data(let data): diff --git a/Sources/Services/AWSLambda/models/Models.swift b/Sources/Services/AWSLambda/models/Models.swift index c18a9d6dfd6..5336bfe42e9 100644 --- a/Sources/Services/AWSLambda/models/Models.swift +++ b/Sources/Services/AWSLambda/models/Models.swift @@ -6683,9 +6683,6 @@ extension InvokeOutput: Swift.CustomDebugStringConvertible { extension InvokeOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> InvokeOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = InvokeOutput() if let executedVersionHeaderValue = httpResponse.headers.value(for: "X-Amz-Executed-Version") { value.executedVersion = executedVersionHeaderValue diff --git a/Sources/Services/AWSLocation/models/Models.swift b/Sources/Services/AWSLocation/models/Models.swift index fbfe9d03d29..e0c95a5d91e 100644 --- a/Sources/Services/AWSLocation/models/Models.swift +++ b/Sources/Services/AWSLocation/models/Models.swift @@ -4379,9 +4379,6 @@ public struct GetMapGlyphsInput { extension GetMapGlyphsOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetMapGlyphsOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = GetMapGlyphsOutput() if let cacheControlHeaderValue = httpResponse.headers.value(for: "Cache-Control") { value.cacheControl = cacheControlHeaderValue @@ -4505,9 +4502,6 @@ public struct GetMapSpritesInput { extension GetMapSpritesOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetMapSpritesOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = GetMapSpritesOutput() if let cacheControlHeaderValue = httpResponse.headers.value(for: "Cache-Control") { value.cacheControl = cacheControlHeaderValue @@ -4612,9 +4606,6 @@ public struct GetMapStyleDescriptorInput { extension GetMapStyleDescriptorOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetMapStyleDescriptorOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = GetMapStyleDescriptorOutput() if let cacheControlHeaderValue = httpResponse.headers.value(for: "Cache-Control") { value.cacheControl = cacheControlHeaderValue @@ -4743,9 +4734,6 @@ public struct GetMapTileInput { extension GetMapTileOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetMapTileOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = GetMapTileOutput() if let cacheControlHeaderValue = httpResponse.headers.value(for: "Cache-Control") { value.cacheControl = cacheControlHeaderValue diff --git a/Sources/Services/AWSNeptunedata/models/Models.swift b/Sources/Services/AWSNeptunedata/models/Models.swift index 2dd662a80fe..7e6062a165a 100644 --- a/Sources/Services/AWSNeptunedata/models/Models.swift +++ b/Sources/Services/AWSNeptunedata/models/Models.swift @@ -1561,9 +1561,6 @@ public struct ExecuteGremlinExplainQueryInput { extension ExecuteGremlinExplainQueryOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> ExecuteGremlinExplainQueryOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = ExecuteGremlinExplainQueryOutput() switch httpResponse.body { case .data(let data): @@ -1673,9 +1670,6 @@ public struct ExecuteGremlinProfileQueryInput { extension ExecuteGremlinProfileQueryOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> ExecuteGremlinProfileQueryOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = ExecuteGremlinProfileQueryOutput() switch httpResponse.body { case .data(let data): @@ -1891,9 +1885,6 @@ public struct ExecuteOpenCypherExplainQueryInput { extension ExecuteOpenCypherExplainQueryOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> ExecuteOpenCypherExplainQueryOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = ExecuteOpenCypherExplainQueryOutput() switch httpResponse.body { case .data(let data): diff --git a/Sources/Services/AWSS3/models/Models.swift b/Sources/Services/AWSS3/models/Models.swift index 3b79f0a3533..4df7deb43bb 100644 --- a/Sources/Services/AWSS3/models/Models.swift +++ b/Sources/Services/AWSS3/models/Models.swift @@ -7544,9 +7544,6 @@ public struct GetBucketPolicyInput { extension GetBucketPolicyOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetBucketPolicyOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyXML.Reader.from(data: data) - let reader = responseReader var value = GetBucketPolicyOutput() if let data = try await httpResponse.body.readData(), let output = Swift.String(data: data, encoding: .utf8) { value.policy = output diff --git a/Sources/Services/AWSSageMakerRuntime/models/Models.swift b/Sources/Services/AWSSageMakerRuntime/models/Models.swift index 42b760df9ec..8ffb3642d19 100644 --- a/Sources/Services/AWSSageMakerRuntime/models/Models.swift +++ b/Sources/Services/AWSSageMakerRuntime/models/Models.swift @@ -385,9 +385,6 @@ extension InvokeEndpointOutput: Swift.CustomDebugStringConvertible { extension InvokeEndpointOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> InvokeEndpointOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = InvokeEndpointOutput() if let contentTypeHeaderValue = httpResponse.headers.value(for: "Content-Type") { value.contentType = contentTypeHeaderValue diff --git a/Sources/Services/AWSSchemas/models/Models.swift b/Sources/Services/AWSSchemas/models/Models.swift index e86dba5747a..952a8f34ffa 100644 --- a/Sources/Services/AWSSchemas/models/Models.swift +++ b/Sources/Services/AWSSchemas/models/Models.swift @@ -1495,9 +1495,6 @@ public struct GetCodeBindingSourceInput { extension GetCodeBindingSourceOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetCodeBindingSourceOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = GetCodeBindingSourceOutput() switch httpResponse.body { case .data(let data): diff --git a/Sources/Services/AWSTnb/models/Models.swift b/Sources/Services/AWSTnb/models/Models.swift index 7c7153c41e7..a55da7580c3 100644 --- a/Sources/Services/AWSTnb/models/Models.swift +++ b/Sources/Services/AWSTnb/models/Models.swift @@ -884,9 +884,6 @@ public struct GetSolFunctionPackageContentInput { extension GetSolFunctionPackageContentOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetSolFunctionPackageContentOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = GetSolFunctionPackageContentOutput() if let contentTypeHeaderValue = httpResponse.headers.value(for: "Content-Type") { value.contentType = TnbClientTypes.PackageContentType(rawValue: contentTypeHeaderValue) @@ -979,9 +976,6 @@ public struct GetSolFunctionPackageDescriptorInput { extension GetSolFunctionPackageDescriptorOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetSolFunctionPackageDescriptorOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = GetSolFunctionPackageDescriptorOutput() if let contentTypeHeaderValue = httpResponse.headers.value(for: "Content-Type") { value.contentType = TnbClientTypes.DescriptorContentType(rawValue: contentTypeHeaderValue) @@ -1613,9 +1607,6 @@ public struct GetSolNetworkPackageContentInput { extension GetSolNetworkPackageContentOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetSolNetworkPackageContentOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = GetSolNetworkPackageContentOutput() if let contentTypeHeaderValue = httpResponse.headers.value(for: "Content-Type") { value.contentType = TnbClientTypes.PackageContentType(rawValue: contentTypeHeaderValue) @@ -1692,9 +1683,6 @@ public struct GetSolNetworkPackageDescriptorInput { extension GetSolNetworkPackageDescriptorOutput { static func httpOutput(from httpResponse: ClientRuntime.HttpResponse) async throws -> GetSolNetworkPackageDescriptorOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader var value = GetSolNetworkPackageDescriptorOutput() if let contentTypeHeaderValue = httpResponse.headers.value(for: "Content-Type") { value.contentType = TnbClientTypes.DescriptorContentType(rawValue: contentTypeHeaderValue)