diff --git a/IntegrationTests/Services/AWSS3IntegrationTests/S3StreamTests.swift b/IntegrationTests/Services/AWSS3IntegrationTests/S3StreamTests.swift index ba77fb044b3..03d22402d92 100644 --- a/IntegrationTests/Services/AWSS3IntegrationTests/S3StreamTests.swift +++ b/IntegrationTests/Services/AWSS3IntegrationTests/S3StreamTests.swift @@ -7,6 +7,7 @@ import XCTest import AWSS3 +import ClientRuntime final class S3StreamTests: S3XCTestCase { let objectName = "hello-world" @@ -25,6 +26,8 @@ final class S3StreamTests: S3XCTestCase { case .stream(let stream): let actual = String(data: try await stream.readToEndAsync()!, encoding: .utf8) XCTAssertEqual(actual, expected) + case .noStream: + XCTFail("Expected stream") } } @@ -40,7 +43,8 @@ final class S3StreamTests: S3XCTestCase { func test_putObject_givenStreamBody() async throws { let audioURL = Bundle.module.url(forResource: objectName, withExtension: nil)! let fileHandle = FileHandle(forReadingAtPath: audioURL.relativePath)! - let input = PutObjectInput(body: .from(fileHandle: fileHandle), bucket: bucketName, key: objectName) + let fileByteStream = try ByteStream.data(try fileHandle.readToEnd() ?? Data()) + let input = PutObjectInput(body: fileByteStream, bucket: bucketName, key: objectName) let output = try await client.putObject(input: input) XCTAssertNotNil(output) diff --git a/IntegrationTests/Services/AWSS3IntegrationTests/S3XCTestCase.swift b/IntegrationTests/Services/AWSS3IntegrationTests/S3XCTestCase.swift index ae119e80076..18a4642c752 100644 --- a/IntegrationTests/Services/AWSS3IntegrationTests/S3XCTestCase.swift +++ b/IntegrationTests/Services/AWSS3IntegrationTests/S3XCTestCase.swift @@ -90,6 +90,8 @@ class S3XCTestCase: XCTestCase { return String(data: data, encoding: .utf8) case .stream(let stream): return String(data: try await stream.readToEndAsync()!, encoding: .utf8) + case .noStream: + return nil } } diff --git a/Sources/Services/AWSAPIGateway/models/Models.swift b/Sources/Services/AWSAPIGateway/models/Models.swift index 2a81182043c..20977c4a07f 100644 --- a/Sources/Services/AWSAPIGateway/models/Models.swift +++ b/Sources/Services/AWSAPIGateway/models/Models.swift @@ -10050,7 +10050,7 @@ extension GetExportOutput: ClientRuntime.HttpResponseBinding { self.body = data case .stream(let stream): self.body = try stream.readToEnd() - case .none: + case .noStream: self.body = nil } } @@ -12593,7 +12593,7 @@ extension GetSdkOutput: ClientRuntime.HttpResponseBinding { self.body = data case .stream(let stream): self.body = try stream.readToEnd() - case .none: + case .noStream: self.body = nil } } diff --git a/Sources/Services/AWSApiGatewayV2/models/Models.swift b/Sources/Services/AWSApiGatewayV2/models/Models.swift index 185b0126dc5..eb979d446af 100644 --- a/Sources/Services/AWSApiGatewayV2/models/Models.swift +++ b/Sources/Services/AWSApiGatewayV2/models/Models.swift @@ -6111,7 +6111,7 @@ extension ExportApiOutput: ClientRuntime.HttpResponseBinding { self.body = data case .stream(let stream): self.body = try stream.readToEnd() - case .none: + case .noStream: self.body = nil } } diff --git a/Sources/Services/AWSAppConfig/models/Models.swift b/Sources/Services/AWSAppConfig/models/Models.swift index 5f6ccc7b83a..04c0da92c55 100644 --- a/Sources/Services/AWSAppConfig/models/Models.swift +++ b/Sources/Services/AWSAppConfig/models/Models.swift @@ -2360,7 +2360,7 @@ extension CreateHostedConfigurationVersionOutput: ClientRuntime.HttpResponseBind self.content = data case .stream(let stream): self.content = try stream.readToEnd() - case .none: + case .noStream: self.content = nil } } @@ -3762,7 +3762,7 @@ extension GetConfigurationOutput: ClientRuntime.HttpResponseBinding { self.content = data case .stream(let stream): self.content = try stream.readToEnd() - case .none: + case .noStream: self.content = nil } } @@ -5065,7 +5065,7 @@ extension GetHostedConfigurationVersionOutput: ClientRuntime.HttpResponseBinding self.content = data case .stream(let stream): self.content = try stream.readToEnd() - case .none: + case .noStream: self.content = nil } } diff --git a/Sources/Services/AWSAppConfigData/models/Models.swift b/Sources/Services/AWSAppConfigData/models/Models.swift index 8ddffb24207..41dcca83054 100644 --- a/Sources/Services/AWSAppConfigData/models/Models.swift +++ b/Sources/Services/AWSAppConfigData/models/Models.swift @@ -231,7 +231,7 @@ extension GetLatestConfigurationOutput: ClientRuntime.HttpResponseBinding { self.configuration = data case .stream(let stream): self.configuration = try stream.readToEnd() - case .none: + case .noStream: self.configuration = nil } } diff --git a/Sources/Services/AWSAppSync/models/Models.swift b/Sources/Services/AWSAppSync/models/Models.swift index 2c7f0cd943c..5dae305556b 100644 --- a/Sources/Services/AWSAppSync/models/Models.swift +++ b/Sources/Services/AWSAppSync/models/Models.swift @@ -6438,7 +6438,7 @@ extension GetIntrospectionSchemaOutput: ClientRuntime.HttpResponseBinding { self.schema = data case .stream(let stream): self.schema = try stream.readToEnd() - case .none: + case .noStream: self.schema = nil } } diff --git a/Sources/Services/AWSBackupStorage/models/Models.swift b/Sources/Services/AWSBackupStorage/models/Models.swift index c6810a7d098..812aac556eb 100644 --- a/Sources/Services/AWSBackupStorage/models/Models.swift +++ b/Sources/Services/AWSBackupStorage/models/Models.swift @@ -456,7 +456,7 @@ extension GetChunkOutput: ClientRuntime.HttpResponseBinding { self.data = .data(data) case .stream(let stream): self.data = .stream(stream) - case .none: + case .noStream: self.data = nil } } @@ -589,7 +589,7 @@ extension GetObjectMetadataOutput: ClientRuntime.HttpResponseBinding { self.metadataBlob = .data(data) case .stream(let stream): self.metadataBlob = .stream(stream) - case .none: + case .noStream: self.metadataBlob = nil } } diff --git a/Sources/Services/AWSBedrockRuntime/models/Models.swift b/Sources/Services/AWSBedrockRuntime/models/Models.swift index 9b61215e7c2..45c1a38c053 100644 --- a/Sources/Services/AWSBedrockRuntime/models/Models.swift +++ b/Sources/Services/AWSBedrockRuntime/models/Models.swift @@ -230,7 +230,7 @@ extension InvokeModelOutput: ClientRuntime.HttpResponseBinding { self.body = data case .stream(let stream): self.body = try stream.readToEnd() - case .none: + case .noStream: self.body = nil } } diff --git a/Sources/Services/AWSCloudFront/models/Models.swift b/Sources/Services/AWSCloudFront/models/Models.swift index 3dbb3172227..0872bba0e2f 100644 --- a/Sources/Services/AWSCloudFront/models/Models.swift +++ b/Sources/Services/AWSCloudFront/models/Models.swift @@ -11196,7 +11196,7 @@ extension GetFunctionOutput: ClientRuntime.HttpResponseBinding { self.functionCode = data case .stream(let stream): self.functionCode = try stream.readToEnd() - case .none: + case .noStream: self.functionCode = nil } } diff --git a/Sources/Services/AWSCodeGuruProfiler/models/Models.swift b/Sources/Services/AWSCodeGuruProfiler/models/Models.swift index 1429193dbac..abc391c1edb 100644 --- a/Sources/Services/AWSCodeGuruProfiler/models/Models.swift +++ b/Sources/Services/AWSCodeGuruProfiler/models/Models.swift @@ -2134,7 +2134,7 @@ extension GetProfileOutput: ClientRuntime.HttpResponseBinding { self.profile = data case .stream(let stream): self.profile = try stream.readToEnd() - case .none: + case .noStream: self.profile = nil } } diff --git a/Sources/Services/AWSCodeartifact/models/Models.swift b/Sources/Services/AWSCodeartifact/models/Models.swift index 0bf337a551b..e2716a85a95 100644 --- a/Sources/Services/AWSCodeartifact/models/Models.swift +++ b/Sources/Services/AWSCodeartifact/models/Models.swift @@ -3543,7 +3543,7 @@ extension GetPackageVersionAssetOutput: ClientRuntime.HttpResponseBinding { self.asset = .data(data) case .stream(let stream): self.asset = .stream(stream) - case .none: + case .noStream: self.asset = nil } } diff --git a/Sources/Services/AWSEBS/models/Models.swift b/Sources/Services/AWSEBS/models/Models.swift index ffcccc25875..834f50146cb 100644 --- a/Sources/Services/AWSEBS/models/Models.swift +++ b/Sources/Services/AWSEBS/models/Models.swift @@ -583,7 +583,7 @@ extension GetSnapshotBlockOutput: ClientRuntime.HttpResponseBinding { self.blockData = .data(data) case .stream(let stream): self.blockData = .stream(stream) - case .none: + case .noStream: self.blockData = nil } } diff --git a/Sources/Services/AWSGlacier/models/Models.swift b/Sources/Services/AWSGlacier/models/Models.swift index e4f253e3e93..e5f5d848ee6 100644 --- a/Sources/Services/AWSGlacier/models/Models.swift +++ b/Sources/Services/AWSGlacier/models/Models.swift @@ -2006,7 +2006,7 @@ extension GetJobOutputOutput: ClientRuntime.HttpResponseBinding { self.body = .data(data) case .stream(let stream): self.body = .stream(stream) - case .none: + case .noStream: self.body = nil } self.status = httpResponse.statusCode.rawValue diff --git a/Sources/Services/AWSIoTDataPlane/models/Models.swift b/Sources/Services/AWSIoTDataPlane/models/Models.swift index e14fc0f16ee..113b73ee399 100644 --- a/Sources/Services/AWSIoTDataPlane/models/Models.swift +++ b/Sources/Services/AWSIoTDataPlane/models/Models.swift @@ -114,7 +114,7 @@ extension DeleteThingShadowOutput: ClientRuntime.HttpResponseBinding { self.payload = data case .stream(let stream): self.payload = try stream.readToEnd() - case .none: + case .noStream: self.payload = nil } } @@ -354,7 +354,7 @@ extension GetThingShadowOutput: ClientRuntime.HttpResponseBinding { self.payload = data case .stream(let stream): self.payload = try stream.readToEnd() - case .none: + case .noStream: self.payload = nil } } @@ -1516,7 +1516,7 @@ extension UpdateThingShadowOutput: ClientRuntime.HttpResponseBinding { self.payload = data case .stream(let stream): self.payload = try stream.readToEnd() - case .none: + case .noStream: self.payload = nil } } diff --git a/Sources/Services/AWSIoTWireless/models/Models.swift b/Sources/Services/AWSIoTWireless/models/Models.swift index 8169d2615fb..1bfeb12c38b 100644 --- a/Sources/Services/AWSIoTWireless/models/Models.swift +++ b/Sources/Services/AWSIoTWireless/models/Models.swift @@ -7364,7 +7364,7 @@ extension GetPositionEstimateOutput: ClientRuntime.HttpResponseBinding { self.geoJsonPayload = data case .stream(let stream): self.geoJsonPayload = try stream.readToEnd() - case .none: + case .noStream: self.geoJsonPayload = nil } } @@ -7898,7 +7898,7 @@ extension GetResourcePositionOutput: ClientRuntime.HttpResponseBinding { self.geoJsonPayload = data case .stream(let stream): self.geoJsonPayload = try stream.readToEnd() - case .none: + case .noStream: self.geoJsonPayload = nil } } diff --git a/Sources/Services/AWSKinesisVideoArchivedMedia/models/Models.swift b/Sources/Services/AWSKinesisVideoArchivedMedia/models/Models.swift index a9d8073148d..f7762ea9326 100644 --- a/Sources/Services/AWSKinesisVideoArchivedMedia/models/Models.swift +++ b/Sources/Services/AWSKinesisVideoArchivedMedia/models/Models.swift @@ -746,7 +746,7 @@ extension GetClipOutput: ClientRuntime.HttpResponseBinding { self.payload = .data(data) case .stream(let stream): self.payload = .stream(stream) - case .none: + case .noStream: self.payload = nil } } @@ -1584,7 +1584,7 @@ extension GetMediaForFragmentListOutput: ClientRuntime.HttpResponseBinding { self.payload = .data(data) case .stream(let stream): self.payload = .stream(stream) - case .none: + case .noStream: self.payload = nil } } diff --git a/Sources/Services/AWSKinesisVideoMedia/models/Models.swift b/Sources/Services/AWSKinesisVideoMedia/models/Models.swift index e3011e43008..1a2c3c94434 100644 --- a/Sources/Services/AWSKinesisVideoMedia/models/Models.swift +++ b/Sources/Services/AWSKinesisVideoMedia/models/Models.swift @@ -196,7 +196,7 @@ extension GetMediaOutput: ClientRuntime.HttpResponseBinding { self.payload = .data(data) case .stream(let stream): self.payload = .stream(stream) - case .none: + case .noStream: self.payload = nil } } diff --git a/Sources/Services/AWSLakeFormation/models/Models.swift b/Sources/Services/AWSLakeFormation/models/Models.swift index 2c290153a48..6a8b3465887 100644 --- a/Sources/Services/AWSLakeFormation/models/Models.swift +++ b/Sources/Services/AWSLakeFormation/models/Models.swift @@ -5598,7 +5598,7 @@ extension GetWorkUnitResultsOutput: ClientRuntime.HttpResponseBinding { self.resultStream = .data(data) case .stream(let stream): self.resultStream = .stream(stream) - case .none: + case .noStream: self.resultStream = nil } } diff --git a/Sources/Services/AWSLambda/models/Models.swift b/Sources/Services/AWSLambda/models/Models.swift index d9a640832d3..2346b6aa6f2 100644 --- a/Sources/Services/AWSLambda/models/Models.swift +++ b/Sources/Services/AWSLambda/models/Models.swift @@ -10530,7 +10530,7 @@ extension InvokeOutput: ClientRuntime.HttpResponseBinding { self.payload = data case .stream(let stream): self.payload = try stream.readToEnd() - case .none: + case .noStream: self.payload = nil } self.statusCode = httpResponse.statusCode.rawValue diff --git a/Sources/Services/AWSLexRuntimeService/models/Models.swift b/Sources/Services/AWSLexRuntimeService/models/Models.swift index dcf7e6c92db..5b1537c1298 100644 --- a/Sources/Services/AWSLexRuntimeService/models/Models.swift +++ b/Sources/Services/AWSLexRuntimeService/models/Models.swift @@ -1884,7 +1884,7 @@ extension PostContentOutput: ClientRuntime.HttpResponseBinding { self.audioStream = .data(data) case .stream(let stream): self.audioStream = .stream(stream) - case .none: + case .noStream: self.audioStream = nil } } @@ -2763,7 +2763,7 @@ extension PutSessionOutput: ClientRuntime.HttpResponseBinding { self.audioStream = .data(data) case .stream(let stream): self.audioStream = .stream(stream) - case .none: + case .noStream: self.audioStream = nil } } diff --git a/Sources/Services/AWSLexRuntimeV2/models/Models.swift b/Sources/Services/AWSLexRuntimeV2/models/Models.swift index 8f47ecb9502..b6c273dba86 100644 --- a/Sources/Services/AWSLexRuntimeV2/models/Models.swift +++ b/Sources/Services/AWSLexRuntimeV2/models/Models.swift @@ -2388,7 +2388,7 @@ extension PutSessionOutput: ClientRuntime.HttpResponseBinding { self.audioStream = .data(data) case .stream(let stream): self.audioStream = .stream(stream) - case .none: + case .noStream: self.audioStream = nil } } @@ -2928,7 +2928,7 @@ extension RecognizeUtteranceOutput: ClientRuntime.HttpResponseBinding { self.audioStream = .data(data) case .stream(let stream): self.audioStream = .stream(stream) - case .none: + case .noStream: self.audioStream = nil } } diff --git a/Sources/Services/AWSLocation/models/Models.swift b/Sources/Services/AWSLocation/models/Models.swift index ac1552415b1..b72381f6128 100644 --- a/Sources/Services/AWSLocation/models/Models.swift +++ b/Sources/Services/AWSLocation/models/Models.swift @@ -6844,7 +6844,7 @@ extension GetMapGlyphsOutput: ClientRuntime.HttpResponseBinding { self.blob = data case .stream(let stream): self.blob = try stream.readToEnd() - case .none: + case .noStream: self.blob = nil } } @@ -6990,7 +6990,7 @@ extension GetMapSpritesOutput: ClientRuntime.HttpResponseBinding { self.blob = data case .stream(let stream): self.blob = try stream.readToEnd() - case .none: + case .noStream: self.blob = nil } } @@ -7117,7 +7117,7 @@ extension GetMapStyleDescriptorOutput: ClientRuntime.HttpResponseBinding { self.blob = data case .stream(let stream): self.blob = try stream.readToEnd() - case .none: + case .noStream: self.blob = nil } } @@ -7268,7 +7268,7 @@ extension GetMapTileOutput: ClientRuntime.HttpResponseBinding { self.blob = data case .stream(let stream): self.blob = try stream.readToEnd() - case .none: + case .noStream: self.blob = nil } } diff --git a/Sources/Services/AWSMediaLive/models/Models.swift b/Sources/Services/AWSMediaLive/models/Models.swift index a29505f01b8..2a504c4606c 100644 --- a/Sources/Services/AWSMediaLive/models/Models.swift +++ b/Sources/Services/AWSMediaLive/models/Models.swift @@ -9112,7 +9112,7 @@ extension DescribeInputDeviceThumbnailOutput: ClientRuntime.HttpResponseBinding self.body = .data(data) case .stream(let stream): self.body = .stream(stream) - case .none: + case .noStream: self.body = nil } } diff --git a/Sources/Services/AWSMediaStoreData/models/Models.swift b/Sources/Services/AWSMediaStoreData/models/Models.swift index 02fbe447051..94ef16153b5 100644 --- a/Sources/Services/AWSMediaStoreData/models/Models.swift +++ b/Sources/Services/AWSMediaStoreData/models/Models.swift @@ -295,7 +295,7 @@ extension GetObjectOutput: ClientRuntime.HttpResponseBinding { self.body = .data(data) case .stream(let stream): self.body = .stream(stream) - case .none: + case .noStream: self.body = nil } self.statusCode = httpResponse.statusCode.rawValue diff --git a/Sources/Services/AWSMedicalImaging/models/Models.swift b/Sources/Services/AWSMedicalImaging/models/Models.swift index d824ab1198e..d32124f2181 100644 --- a/Sources/Services/AWSMedicalImaging/models/Models.swift +++ b/Sources/Services/AWSMedicalImaging/models/Models.swift @@ -1951,7 +1951,7 @@ extension GetImageFrameOutput: ClientRuntime.HttpResponseBinding { self.imageFrameBlob = .data(data) case .stream(let stream): self.imageFrameBlob = .stream(stream) - case .none: + case .noStream: self.imageFrameBlob = nil } } @@ -2135,7 +2135,7 @@ extension GetImageSetMetadataOutput: ClientRuntime.HttpResponseBinding { self.imageSetMetadataBlob = .data(data) case .stream(let stream): self.imageSetMetadataBlob = .stream(stream) - case .none: + case .noStream: self.imageSetMetadataBlob = nil } } diff --git a/Sources/Services/AWSNeptunedata/models/Models.swift b/Sources/Services/AWSNeptunedata/models/Models.swift index b6736ee6446..19608d2a399 100644 --- a/Sources/Services/AWSNeptunedata/models/Models.swift +++ b/Sources/Services/AWSNeptunedata/models/Models.swift @@ -2221,7 +2221,7 @@ extension ExecuteGremlinExplainQueryOutput: ClientRuntime.HttpResponseBinding { self.output = data case .stream(let stream): self.output = try stream.readToEnd() - case .none: + case .noStream: self.output = nil } } @@ -2388,7 +2388,7 @@ extension ExecuteGremlinProfileQueryOutput: ClientRuntime.HttpResponseBinding { self.output = data case .stream(let stream): self.output = try stream.readToEnd() - case .none: + case .noStream: self.output = nil } } @@ -2694,7 +2694,7 @@ extension ExecuteOpenCypherExplainQueryOutput: ClientRuntime.HttpResponseBinding self.results = data case .stream(let stream): self.results = try stream.readToEnd() - case .none: + case .noStream: self.results = nil } } diff --git a/Sources/Services/AWSOmics/models/Models.swift b/Sources/Services/AWSOmics/models/Models.swift index 24616946c37..cfec97bf81b 100644 --- a/Sources/Services/AWSOmics/models/Models.swift +++ b/Sources/Services/AWSOmics/models/Models.swift @@ -6758,7 +6758,7 @@ extension GetReadSetOutput: ClientRuntime.HttpResponseBinding { self.payload = .data(data) case .stream(let stream): self.payload = .stream(stream) - case .none: + case .noStream: self.payload = nil } } @@ -7269,7 +7269,7 @@ extension GetReferenceOutput: ClientRuntime.HttpResponseBinding { self.payload = .data(data) case .stream(let stream): self.payload = .stream(stream) - case .none: + case .noStream: self.payload = nil } } diff --git a/Sources/Services/AWSPolly/models/Models.swift b/Sources/Services/AWSPolly/models/Models.swift index 9cf6da598d2..1b325db7899 100644 --- a/Sources/Services/AWSPolly/models/Models.swift +++ b/Sources/Services/AWSPolly/models/Models.swift @@ -2955,7 +2955,7 @@ extension SynthesizeSpeechOutput: ClientRuntime.HttpResponseBinding { self.audioStream = .data(data) case .stream(let stream): self.audioStream = .stream(stream) - case .none: + case .noStream: self.audioStream = nil } } diff --git a/Sources/Services/AWSS3/models/Models.swift b/Sources/Services/AWSS3/models/Models.swift index ca92c010298..7ed5c2188b1 100644 --- a/Sources/Services/AWSS3/models/Models.swift +++ b/Sources/Services/AWSS3/models/Models.swift @@ -10430,7 +10430,7 @@ extension GetObjectOutput: ClientRuntime.HttpResponseBinding { self.body = .data(data) case .stream(let stream): self.body = .stream(stream) - case .none: + case .noStream: self.body = nil } } @@ -10608,7 +10608,7 @@ extension GetObjectOutputBody: Swift.Decodable { let bodyDecoded = try containerValues.decodeIfPresent(ClientRuntime.ByteStream.self, forKey: .body) body = bodyDecoded } catch { - body = ClientRuntime.ByteStream.from(data: "".data(using: .utf8)!) + body = ClientRuntime.ByteStream.data("".data(using: .utf8)!) } } else { body = nil @@ -10953,7 +10953,7 @@ extension GetObjectTorrentOutput: ClientRuntime.HttpResponseBinding { self.body = .data(data) case .stream(let stream): self.body = .stream(stream) - case .none: + case .noStream: self.body = nil } } @@ -10991,7 +10991,7 @@ extension GetObjectTorrentOutputBody: Swift.Decodable { let bodyDecoded = try containerValues.decodeIfPresent(ClientRuntime.ByteStream.self, forKey: .body) body = bodyDecoded } catch { - body = ClientRuntime.ByteStream.from(data: "".data(using: .utf8)!) + body = ClientRuntime.ByteStream.data("".data(using: .utf8)!) } } else { body = nil @@ -20797,7 +20797,7 @@ extension PutObjectInputBody: Swift.Decodable { let bodyDecoded = try containerValues.decodeIfPresent(ClientRuntime.ByteStream.self, forKey: .body) body = bodyDecoded } catch { - body = ClientRuntime.ByteStream.from(data: "".data(using: .utf8)!) + body = ClientRuntime.ByteStream.data("".data(using: .utf8)!) } } else { body = nil @@ -25124,7 +25124,7 @@ extension UploadPartInputBody: Swift.Decodable { let bodyDecoded = try containerValues.decodeIfPresent(ClientRuntime.ByteStream.self, forKey: .body) body = bodyDecoded } catch { - body = ClientRuntime.ByteStream.from(data: "".data(using: .utf8)!) + body = ClientRuntime.ByteStream.data("".data(using: .utf8)!) } } else { body = nil @@ -25745,7 +25745,7 @@ extension WriteGetObjectResponseInputBody: Swift.Decodable { let bodyDecoded = try containerValues.decodeIfPresent(ClientRuntime.ByteStream.self, forKey: .body) body = bodyDecoded } catch { - body = ClientRuntime.ByteStream.from(data: "".data(using: .utf8)!) + body = ClientRuntime.ByteStream.data("".data(using: .utf8)!) } } else { body = nil diff --git a/Sources/Services/AWSSageMakerGeospatial/models/Models.swift b/Sources/Services/AWSSageMakerGeospatial/models/Models.swift index 808d27b2d22..09329700dad 100644 --- a/Sources/Services/AWSSageMakerGeospatial/models/Models.swift +++ b/Sources/Services/AWSSageMakerGeospatial/models/Models.swift @@ -2428,7 +2428,7 @@ extension GetTileOutput: ClientRuntime.HttpResponseBinding { self.binaryFile = .data(data) case .stream(let stream): self.binaryFile = .stream(stream) - case .none: + case .noStream: self.binaryFile = nil } } diff --git a/Sources/Services/AWSSageMakerRuntime/models/Models.swift b/Sources/Services/AWSSageMakerRuntime/models/Models.swift index 1bfb2d9cdfa..a59dac6c006 100644 --- a/Sources/Services/AWSSageMakerRuntime/models/Models.swift +++ b/Sources/Services/AWSSageMakerRuntime/models/Models.swift @@ -508,7 +508,7 @@ extension InvokeEndpointOutput: ClientRuntime.HttpResponseBinding { self.body = data case .stream(let stream): self.body = try stream.readToEnd() - case .none: + case .noStream: self.body = nil } } diff --git a/Sources/Services/AWSSchemas/models/Models.swift b/Sources/Services/AWSSchemas/models/Models.swift index 9bd29658644..0f7311e187d 100644 --- a/Sources/Services/AWSSchemas/models/Models.swift +++ b/Sources/Services/AWSSchemas/models/Models.swift @@ -2187,7 +2187,7 @@ extension GetCodeBindingSourceOutput: ClientRuntime.HttpResponseBinding { self.body = data case .stream(let stream): self.body = try stream.readToEnd() - case .none: + case .noStream: self.body = nil } } diff --git a/Sources/Services/AWSTnb/models/Models.swift b/Sources/Services/AWSTnb/models/Models.swift index 87c38ac161f..675af6abbe7 100644 --- a/Sources/Services/AWSTnb/models/Models.swift +++ b/Sources/Services/AWSTnb/models/Models.swift @@ -1317,7 +1317,7 @@ extension GetSolFunctionPackageContentOutput: ClientRuntime.HttpResponseBinding self.packageContent = data case .stream(let stream): self.packageContent = try stream.readToEnd() - case .none: + case .noStream: self.packageContent = nil } } @@ -1428,7 +1428,7 @@ extension GetSolFunctionPackageDescriptorOutput: ClientRuntime.HttpResponseBindi self.vnfd = data case .stream(let stream): self.vnfd = try stream.readToEnd() - case .none: + case .noStream: self.vnfd = nil } } @@ -2414,7 +2414,7 @@ extension GetSolNetworkPackageContentOutput: ClientRuntime.HttpResponseBinding { self.nsdContent = data case .stream(let stream): self.nsdContent = try stream.readToEnd() - case .none: + case .noStream: self.nsdContent = nil } } @@ -2510,7 +2510,7 @@ extension GetSolNetworkPackageDescriptorOutput: ClientRuntime.HttpResponseBindin self.nsd = data case .stream(let stream): self.nsd = try stream.readToEnd() - case .none: + case .noStream: self.nsd = nil } } diff --git a/Sources/Services/AWSWorkMailMessageFlow/models/Models.swift b/Sources/Services/AWSWorkMailMessageFlow/models/Models.swift index 9eac37ddd8d..e8683bc11cc 100644 --- a/Sources/Services/AWSWorkMailMessageFlow/models/Models.swift +++ b/Sources/Services/AWSWorkMailMessageFlow/models/Models.swift @@ -40,7 +40,7 @@ extension GetRawMessageContentOutput: ClientRuntime.HttpResponseBinding { self.messageContent = .data(data) case .stream(let stream): self.messageContent = .stream(stream) - case .none: + case .noStream: self.messageContent = nil } }